diff --git a/.gitignore b/.gitignore index 123ae94d..ca21307e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,78 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + # Logs logs *.log @@ -23,5 +98,13 @@ coverage build/Release # Dependency directory -# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- node_modules + +# Debug log from npm +npm-debug.log + + +#####=== Proprietary ===##### +lib.compiled +/tests/* \ No newline at end of file diff --git a/.jscs.json b/.jscs.json new file mode 100644 index 00000000..a52911fe --- /dev/null +++ b/.jscs.json @@ -0,0 +1,3 @@ +{ + "preset": "airbnb" +} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..52c9558a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,31 @@ +language: node_js +sudo: false +node_js: +- '0.12' + +cache: + directories: + - "$(npm root -g)" + +branches: + only: + - master + - stage + - test + - dev + +before_install: +- npm install -g babel +- npm install -g browserify +- npm install -g mocha +- npm install -g mocha-babel +- npm install -g istanbul +- npm install -g coveralls +- npm install -g codacy-coverage +- npm install -g istanbul-combine +- cp test/package.json . +- test/bin/setup_npm.sh + +after_success: +- npm run coverage + diff --git a/LICENSE b/LICENSE index 2d5011e0..e3604507 100644 --- a/LICENSE +++ b/LICENSE @@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/bin/_head.sh b/bin/_head.sh new file mode 100644 index 00000000..63528e34 --- /dev/null +++ b/bin/_head.sh @@ -0,0 +1,39 @@ +#!/usr/bin/env bash + +path=$(cd $(dirname $0); pwd -P) +npm=$(which npm) +esdoc=$(which esdoc) + +publish_npm_package() { + name=$(basename $1) + + echo "Publishing "${name} + + if [ -z $2 ] || ! $2; then + cd $1 && rm -rf node_modules/ && npm install && ${npm} version $3 && ${npm} publish + else + cd $1 && ${npm} version $3 + fi +} + +escape_sed() { + echo $(echo $1 | sed -e 's/[\/&]/\\&/g') +} + +assure_esdoc() { + if [ -z ${esdoc} ]; then + echo "Installing esdoc..." + ${npm} install -g esdoc + + esdoc=$(which esdoc) + fi +} + +assure_npm() { + if [ -z ${npm} ]; then + echo "Installing nodejs..." + brew install nodejs + + npm=$(which npm) + fi +} diff --git a/bin/gen_api_docs.sh b/bin/gen_api_docs.sh new file mode 100755 index 00000000..3258adeb --- /dev/null +++ b/bin/gen_api_docs.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +source $(dirname $0)/_head.sh + +assure_npm +assure_esdoc + +ESDOC_CFG_TPL='{"index": "{readme}","source": "{src}","destination": "{dest}","includes": ["\\.(js|es6)$"],"title": "{title}", "package": "{pkg}"}' + +DOCS_BASEPATH=${path}/../docs-api + +for lib in ${path}/../src/deep-*/; do + name=$(basename ${lib}) + lib=$(cd ${lib}; pwd -P) + + lib_path=$(escape_sed ${lib}/lib) + raw_docs_path=${DOCS_BASEPATH}/${name} + docs_path=$(escape_sed ${raw_docs_path}) + npm_pkg=$(escape_sed ${lib}/package.json) + readme=$(escape_sed ${lib}/README.md) + pck_name=$(node -e "console.log(require('$npm_pkg').description)") + + if [ ${name} != 'deep-framework' ]; then + tmp_esdoc_cfg=$(mktemp) + esdoc_cfg=$(echo ${ESDOC_CFG_TPL} | sed "s/{src}/$lib_path/" | sed "s/{dest}/$docs_path/" | sed "s/{title}/$pck_name/" | sed "s/{pkg}/$npm_pkg/" | sed "s/{readme}/$readme/") + + echo ${esdoc_cfg} > ${tmp_esdoc_cfg} + + ${esdoc} -c ${tmp_esdoc_cfg} + fi +done diff --git a/bin/install_precommit.sh b/bin/install_precommit.sh new file mode 100755 index 00000000..34e429d3 --- /dev/null +++ b/bin/install_precommit.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +source $(dirname $0)/_head.sh +jscs=`which jscs` + +if [ -z ${jscs} ]; then + assure_npm + + ${npm} -g install jscs +fi + +if [ -f ${path}/../.git/hooks/pre-commit ]; then + cp ${path}/../.git/hooks/pre-commit ${path}/../.git/hooks/pre-commit_$(date +%F-%H%M%S).bak +fi + +cp ${path}/pre-commit ${path}/../.git/hooks/. diff --git a/bin/pre-commit b/bin/pre-commit new file mode 100755 index 00000000..05107f3b --- /dev/null +++ b/bin/pre-commit @@ -0,0 +1,33 @@ +#!/usr/bin/env bash + +files=$(git diff --cached --name-only --diff-filter=ACM | egrep "^lib/(.)+/lib/(.)+\.js$|^microservice/(.)+/Backend/src/(.)+\.es6$|^src/(.)+/lib/(.)+\.js$") + +if [ "$files" = "" ]; then + exit 0 +fi + +pass=true + +echo -e "\nValidating JavaScript:\n" + +for file in ${files}; do + output=$(jscs ${file} --config=./.jscs.json) + + jscs_run_result=$(echo $?) + + if [ ${jscs_run_result} -eq 0 ]; then + echo -e "\t\033[32mJSCS Passed: ${file}\033[0m" + else + echo -e "\t\033[31mJSCS Failed: ${file}\033[0m" + pass=false + fi +done + +echo -e "\nJavaScript validation complete\n" + +if ! $pass; then + echo -e "\033[41mCOMMIT FAILED:\033[0m Your commit contains files that should pass JSCS but do not. Please fix the JSCS errors and try again.\n" + exit 1 +else + echo -e "\033[42mCOMMIT SUCCEEDED\033[0m\n" +fi diff --git a/bin/publish.sh b/bin/publish.sh new file mode 100755 index 00000000..93866a5a --- /dev/null +++ b/bin/publish.sh @@ -0,0 +1,72 @@ +#!/usr/bin/env bash + +source $(dirname $0)/_head.sh + +assure_npm + +DRY_RUN=false +HELP=false +PACKAGE_PATH="" +VERSION_TYPE="patch" + +for i in "$@" +do + case ${i} in + --patch) + VERSION_TYPE="patch" + ;; + --minor) + VERSION_TYPE="minor" + ;; + --major) + VERSION_TYPE="major" + ;; + --help) + HELP=true + ;; + --dry-run) + DRY_RUN=true + ;; + *) + PACKAGE_PATH=${i} + ;; + esac + + shift +done + +if ${HELP}; then + echo "-------------------------------------------------------------------" + echo "Usage example: bin/publish.sh src/deep-db --dry-run" + echo "" + echo "Arguments and options:" + echo " src/deep-db The path to the certain package to be published" + echo " --dry-run Skip uploading packages to NPM registry" + echo "-------------------------------------------------------------------" + exit 0 +fi + +if ${DRY_RUN}; then + echo "" + echo "Dry run mode on!!!" + echo "" +fi + +if [ -z ${PACKAGE_PATH} ]; then + publish_npm_package ${path}/../src/deep-core/ ${DRY_RUN} ${VERSION_TYPE} + publish_npm_package ${path}/../src/deep-di/ ${DRY_RUN} ${VERSION_TYPE} + publish_npm_package ${path}/../src/deep-kernel/ ${DRY_RUN} ${VERSION_TYPE} + publish_npm_package ${path}/../src/deep-validation/ ${DRY_RUN} ${VERSION_TYPE} + + for src in ${path}/../src/deep-*/; do + name=$(basename ${src}) + + if [ ${name} != 'deep-framework' ] && [ ${name} != 'deep-core' ] && [ ${name} != 'deep-di' ] && [ ${name} != 'deep-kernel' ] && [ ${name} != 'deep-validation' ]; then + publish_npm_package ${src} ${DRY_RUN} ${VERSION_TYPE} + fi + done + + publish_npm_package ${path}/../src/deep-framework/ ${DRY_RUN} ${VERSION_TYPE} +else + publish_npm_package ${PACKAGE_PATH} ${DRY_RUN} ${VERSION_TYPE} +fi diff --git a/bin/remove_node_modules.sh b/bin/remove_node_modules.sh new file mode 100755 index 00000000..2085e3e6 --- /dev/null +++ b/bin/remove_node_modules.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +__SCRIPT_PATH=$(cd $(dirname $0); pwd -P) + +for path in $__SCRIPT_PATH/../*/*/node_modules +do + echo "Removed "${path} + rm -rf ${path} +done diff --git a/docs-api/deep-asset/ast/source/Asset.js.json b/docs-api/deep-asset/ast/source/Asset.js.json new file mode 100644 index 00000000..42d095c8 --- /dev/null +++ b/docs-api/deep-asset/ast/source/Asset.js.json @@ -0,0 +1,2954 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 42, + 54 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 42, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 5/28/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 64, + 70 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + }, + "range": [ + 64, + 70 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-kernel", + "raw": "'deep-kernel'", + "range": [ + 76, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 19 + }, + "end": { + "line": 7, + "column": 32 + } + } + }, + "range": [ + 57, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 33 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Path", + "range": [ + 98, + 102 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 11 + } + } + }, + "range": [ + 98, + 102 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "path", + "raw": "'path'", + "range": [ + 108, + 114 + ], + "loc": { + "start": { + "line": 8, + "column": 17 + }, + "end": { + "line": 8, + "column": 23 + } + } + }, + "range": [ + 91, + 115 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 24 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @temp Asset class definition\n ", + "range": [ + 117, + 156 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Asset", + "range": [ + 170, + 175 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 18 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 184, + 190 + ], + "loc": { + "start": { + "line": 13, + "column": 27 + }, + "end": { + "line": 13, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "ContainerAware", + "range": [ + 191, + 205 + ], + "loc": { + "start": { + "line": 13, + "column": 34 + }, + "end": { + "line": 13, + "column": 48 + } + } + }, + "range": [ + 184, + 205 + ], + "loc": { + "start": { + "line": 13, + "column": 27 + }, + "end": { + "line": 13, + "column": 48 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 210, + 221 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 14, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 230, + 235 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 230, + 237 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 11 + } + } + }, + "range": [ + 230, + 238 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 12 + } + } + } + ], + "range": [ + 224, + 242 + ], + "loc": { + "start": { + "line": 14, + "column": 16 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 221, + 242 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 210, + 242 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 3 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 246, + 351 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "boot", + "range": [ + 354, + 358 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "kernel", + "range": [ + 359, + 365 + ], + "loc": { + "start": { + "line": 24, + "column": 7 + }, + "end": { + "line": 24, + "column": 13 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 367, + 375 + ], + "loc": { + "start": { + "line": 24, + "column": 15 + }, + "end": { + "line": 24, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 387, + 393 + ], + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "isFrontend", + "range": [ + 394, + 404 + ], + "loc": { + "start": { + "line": 25, + "column": 15 + }, + "end": { + "line": 25, + "column": 25 + } + } + }, + "range": [ + 387, + 404 + ], + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 25 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "loadVector", + "range": [ + 418, + 428 + ], + "loc": { + "start": { + "line": 26, + "column": 10 + }, + "end": { + "line": 26, + "column": 20 + } + } + }, + "init": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 431, + 433 + ], + "loc": { + "start": { + "line": 26, + "column": 23 + }, + "end": { + "line": 26, + "column": 25 + } + } + }, + "range": [ + 418, + 433 + ], + "loc": { + "start": { + "line": 26, + "column": 10 + }, + "end": { + "line": 26, + "column": 25 + } + } + } + ], + "kind": "let", + "range": [ + 414, + 434 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 26 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "microservices", + "range": [ + 445, + 458 + ], + "loc": { + "start": { + "line": 27, + "column": 10 + }, + "end": { + "line": 27, + "column": 23 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 461, + 467 + ], + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservices", + "range": [ + 468, + 481 + ], + "loc": { + "start": { + "line": 27, + "column": 33 + }, + "end": { + "line": 27, + "column": 46 + } + } + }, + "range": [ + 461, + 481 + ], + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 46 + } + } + }, + "range": [ + 445, + 481 + ], + "loc": { + "start": { + "line": 27, + "column": 10 + }, + "end": { + "line": 27, + "column": 46 + } + } + } + ], + "kind": "let", + "range": [ + 441, + 482 + ], + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 47 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "microserviceKey", + "range": [ + 499, + 514 + ], + "loc": { + "start": { + "line": 29, + "column": 15 + }, + "end": { + "line": 29, + "column": 30 + } + } + }, + "init": null, + "range": [ + 499, + 514 + ], + "loc": { + "start": { + "line": 29, + "column": 15 + }, + "end": { + "line": 29, + "column": 30 + } + } + } + ], + "kind": "let", + "range": [ + 495, + 514 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 30 + } + } + }, + "right": { + "type": "Identifier", + "name": "microservices", + "range": [ + 518, + 531 + ], + "loc": { + "start": { + "line": 29, + "column": 34 + }, + "end": { + "line": 29, + "column": 47 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "microservices", + "range": [ + 548, + 561 + ], + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 562, + 576 + ], + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 41 + } + } + }, + "range": [ + 548, + 576 + ], + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 41 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "microserviceKey", + "range": [ + 577, + 592 + ], + "loc": { + "start": { + "line": 30, + "column": 42 + }, + "end": { + "line": 30, + "column": 57 + } + } + } + ], + "range": [ + 548, + 593 + ], + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 58 + } + } + }, + "prefix": true, + "range": [ + 547, + 593 + ], + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 58 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 607, + 616 + ], + "loc": { + "start": { + "line": 31, + "column": 10 + }, + "end": { + "line": 31, + "column": 19 + } + } + } + ], + "range": [ + 595, + 626 + ], + "loc": { + "start": { + "line": 30, + "column": 60 + }, + "end": { + "line": 32, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 543, + 626 + ], + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 32, + "column": 9 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "microservice", + "range": [ + 640, + 652 + ], + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 24 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "microservices", + "range": [ + 655, + 668 + ], + "loc": { + "start": { + "line": 34, + "column": 27 + }, + "end": { + "line": 34, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "microserviceKey", + "range": [ + 669, + 684 + ], + "loc": { + "start": { + "line": 34, + "column": 41 + }, + "end": { + "line": 34, + "column": 56 + } + } + }, + "range": [ + 655, + 685 + ], + "loc": { + "start": { + "line": 34, + "column": 27 + }, + "end": { + "line": 34, + "column": 57 + } + } + }, + "range": [ + 640, + 685 + ], + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 57 + } + } + } + ], + "kind": "let", + "range": [ + 636, + 686 + ], + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 58 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "microservice", + "range": [ + 700, + 712 + ], + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "isRoot", + "range": [ + 713, + 719 + ], + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 36, + "column": 31 + } + } + }, + "range": [ + 700, + 719 + ], + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 31 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 733, + 742 + ], + "loc": { + "start": { + "line": 37, + "column": 10 + }, + "end": { + "line": 37, + "column": 19 + } + } + } + ], + "range": [ + 721, + 752 + ], + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 38, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 696, + 752 + ], + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 38, + "column": 9 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "loadVector", + "range": [ + 762, + 772 + ], + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "push", + "range": [ + 773, + 777 + ], + "loc": { + "start": { + "line": 40, + "column": 19 + }, + "end": { + "line": 40, + "column": 23 + } + } + }, + "range": [ + 762, + 777 + ], + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 778, + 782 + ], + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 783, + 787 + ], + "loc": { + "start": { + "line": 40, + "column": 29 + }, + "end": { + "line": 40, + "column": 33 + } + } + }, + "range": [ + 778, + 787 + ], + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "microservice", + "range": [ + 788, + 800 + ], + "loc": { + "start": { + "line": 40, + "column": 34 + }, + "end": { + "line": 40, + "column": 46 + } + } + } + ], + "range": [ + 778, + 801 + ], + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "locate", + "range": [ + 802, + 808 + ], + "loc": { + "start": { + "line": 40, + "column": 48 + }, + "end": { + "line": 40, + "column": 54 + } + } + }, + "range": [ + 778, + 808 + ], + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 54 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "bootstrap.js", + "raw": "'bootstrap.js'", + "range": [ + 809, + 823 + ], + "loc": { + "start": { + "line": 40, + "column": 55 + }, + "end": { + "line": 40, + "column": 69 + } + } + } + ], + "range": [ + 778, + 824 + ], + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 70 + } + } + } + ], + "range": [ + 762, + 825 + ], + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 71 + } + } + }, + "range": [ + 762, + 826 + ], + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 72 + } + } + } + ], + "range": [ + 533, + 834 + ], + "loc": { + "start": { + "line": 29, + "column": 49 + }, + "end": { + "line": 41, + "column": 7 + } + } + }, + "each": false, + "range": [ + 490, + 834 + ], + "loc": { + "start": { + "line": 29, + "column": 6 + }, + "end": { + "line": 41, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 842, + 848 + ], + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "container", + "range": [ + 849, + 858 + ], + "loc": { + "start": { + "line": 43, + "column": 13 + }, + "end": { + "line": 43, + "column": 22 + } + } + }, + "range": [ + 842, + 858 + ], + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "addParameter", + "range": [ + 859, + 871 + ], + "loc": { + "start": { + "line": 43, + "column": 23 + }, + "end": { + "line": 43, + "column": 35 + } + } + }, + "range": [ + 842, + 871 + ], + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 881, + 887 + ], + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "FRONTEND_BOOTSTRAP_VECTOR", + "range": [ + 888, + 913 + ], + "loc": { + "start": { + "line": 44, + "column": 15 + }, + "end": { + "line": 44, + "column": 40 + } + } + }, + "range": [ + 881, + 913 + ], + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 40 + } + } + }, + { + "type": "Identifier", + "name": "loadVector", + "range": [ + 923, + 933 + ], + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 45, + "column": 18 + } + } + } + ], + "range": [ + 842, + 941 + ], + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 46, + "column": 7 + } + } + }, + "range": [ + 842, + 942 + ], + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 46, + "column": 8 + } + } + } + ], + "range": [ + 406, + 948 + ], + "loc": { + "start": { + "line": 25, + "column": 27 + }, + "end": { + "line": 47, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 383, + 948 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 47, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 954, + 962 + ], + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 12 + } + } + }, + "arguments": [], + "range": [ + 954, + 964 + ], + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 14 + } + } + }, + "range": [ + 954, + 965 + ], + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 15 + } + } + } + ], + "range": [ + 377, + 969 + ], + "loc": { + "start": { + "line": 24, + "column": 25 + }, + "end": { + "line": 50, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 358, + 969 + ], + "loc": { + "start": { + "line": 24, + "column": 6 + }, + "end": { + "line": 50, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 354, + 969 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 50, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 246, + 351 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} object\n * @param {String} suffix\n * @returns {String}\n ", + "range": [ + 973, + 1061 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "locate", + "range": [ + 1064, + 1070 + ], + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 57, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "object", + "range": [ + 1071, + 1077 + ], + "loc": { + "start": { + "line": 57, + "column": 9 + }, + "end": { + "line": 57, + "column": 15 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "suffix", + "range": [ + 1079, + 1085 + ], + "loc": { + "start": { + "line": 57, + "column": 17 + }, + "end": { + "line": 57, + "column": 23 + } + } + }, + "right": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 1088, + 1090 + ], + "loc": { + "start": { + "line": 57, + "column": 26 + }, + "end": { + "line": 57, + "column": 28 + } + } + }, + "range": [ + 1079, + 1090 + ], + "loc": { + "start": { + "line": 57, + "column": 17 + }, + "end": { + "line": 57, + "column": 28 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "path", + "range": [ + 1169, + 1173 + ], + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 12 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1176, + 1180 + ], + "loc": { + "start": { + "line": 59, + "column": 15 + }, + "end": { + "line": 59, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resolvePath", + "range": [ + 1181, + 1193 + ], + "loc": { + "start": { + "line": 59, + "column": 20 + }, + "end": { + "line": 59, + "column": 32 + } + } + }, + "range": [ + 1176, + 1193 + ], + "loc": { + "start": { + "line": 59, + "column": 15 + }, + "end": { + "line": 59, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "object", + "range": [ + 1194, + 1200 + ], + "loc": { + "start": { + "line": 59, + "column": 33 + }, + "end": { + "line": 59, + "column": 39 + } + } + } + ], + "range": [ + 1176, + 1201 + ], + "loc": { + "start": { + "line": 59, + "column": 15 + }, + "end": { + "line": 59, + "column": 40 + } + } + }, + "range": [ + 1169, + 1201 + ], + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 40 + } + } + } + ], + "kind": "let", + "range": [ + 1165, + 1202 + ], + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 41 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " binds working microservice if specified in object parameter", + "range": [ + 1098, + 1160 + ], + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 66 + } + } + } + ] + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1212, + 1216 + ], + "loc": { + "start": { + "line": 61, + "column": 8 + }, + "end": { + "line": 61, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1217, + 1229 + ], + "loc": { + "start": { + "line": 61, + "column": 13 + }, + "end": { + "line": 61, + "column": 25 + } + } + }, + "range": [ + 1212, + 1229 + ], + "loc": { + "start": { + "line": 61, + "column": 8 + }, + "end": { + "line": 61, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "isRoot", + "range": [ + 1230, + 1236 + ], + "loc": { + "start": { + "line": 61, + "column": 26 + }, + "end": { + "line": 61, + "column": 32 + } + } + }, + "range": [ + 1212, + 1236 + ], + "loc": { + "start": { + "line": 61, + "column": 8 + }, + "end": { + "line": 61, + "column": 32 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "BinaryExpression", + "operator": "+", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Path", + "range": [ + 1253, + 1257 + ], + "loc": { + "start": { + "line": 62, + "column": 13 + }, + "end": { + "line": 62, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "join", + "range": [ + 1258, + 1262 + ], + "loc": { + "start": { + "line": 62, + "column": 18 + }, + "end": { + "line": 62, + "column": 22 + } + } + }, + "range": [ + 1253, + 1262 + ], + "loc": { + "start": { + "line": 62, + "column": 13 + }, + "end": { + "line": 62, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "path", + "range": [ + 1263, + 1267 + ], + "loc": { + "start": { + "line": 62, + "column": 23 + }, + "end": { + "line": 62, + "column": 27 + } + } + } + ], + "range": [ + 1253, + 1268 + ], + "loc": { + "start": { + "line": 62, + "column": 13 + }, + "end": { + "line": 62, + "column": 28 + } + } + }, + "right": { + "type": "Identifier", + "name": "suffix", + "range": [ + 1271, + 1277 + ], + "loc": { + "start": { + "line": 62, + "column": 31 + }, + "end": { + "line": 62, + "column": 37 + } + } + }, + "range": [ + 1253, + 1277 + ], + "loc": { + "start": { + "line": 62, + "column": 13 + }, + "end": { + "line": 62, + "column": 37 + } + } + }, + "range": [ + 1246, + 1278 + ], + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 38 + } + } + } + ], + "range": [ + 1238, + 1284 + ], + "loc": { + "start": { + "line": 61, + "column": 34 + }, + "end": { + "line": 63, + "column": 5 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "BinaryExpression", + "operator": "+", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Path", + "range": [ + 1305, + 1309 + ], + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 64, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "join", + "range": [ + 1310, + 1314 + ], + "loc": { + "start": { + "line": 64, + "column": 18 + }, + "end": { + "line": 64, + "column": 22 + } + } + }, + "range": [ + 1305, + 1314 + ], + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 64, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1315, + 1319 + ], + "loc": { + "start": { + "line": 64, + "column": 23 + }, + "end": { + "line": 64, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1320, + 1332 + ], + "loc": { + "start": { + "line": 64, + "column": 28 + }, + "end": { + "line": 64, + "column": 40 + } + } + }, + "range": [ + 1315, + 1332 + ], + "loc": { + "start": { + "line": 64, + "column": 23 + }, + "end": { + "line": 64, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "toString", + "range": [ + 1333, + 1341 + ], + "loc": { + "start": { + "line": 64, + "column": 41 + }, + "end": { + "line": 64, + "column": 49 + } + } + }, + "range": [ + 1315, + 1341 + ], + "loc": { + "start": { + "line": 64, + "column": 23 + }, + "end": { + "line": 64, + "column": 49 + } + } + }, + "arguments": [], + "range": [ + 1315, + 1343 + ], + "loc": { + "start": { + "line": 64, + "column": 23 + }, + "end": { + "line": 64, + "column": 51 + } + } + }, + { + "type": "Identifier", + "name": "path", + "range": [ + 1345, + 1349 + ], + "loc": { + "start": { + "line": 64, + "column": 53 + }, + "end": { + "line": 64, + "column": 57 + } + } + } + ], + "range": [ + 1305, + 1350 + ], + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 64, + "column": 58 + } + } + }, + "right": { + "type": "Identifier", + "name": "suffix", + "range": [ + 1353, + 1359 + ], + "loc": { + "start": { + "line": 64, + "column": 61 + }, + "end": { + "line": 64, + "column": 67 + } + } + }, + "range": [ + 1305, + 1359 + ], + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 64, + "column": 67 + } + } + }, + "range": [ + 1298, + 1360 + ], + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 68 + } + } + } + ], + "range": [ + 1290, + 1366 + ], + "loc": { + "start": { + "line": 63, + "column": 11 + }, + "end": { + "line": 65, + "column": 5 + } + } + }, + "range": [ + 1208, + 1366 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ], + "range": [ + 1092, + 1370 + ], + "loc": { + "start": { + "line": 57, + "column": 30 + }, + "end": { + "line": 66, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1070, + 1370 + ], + "loc": { + "start": { + "line": 57, + "column": 8 + }, + "end": { + "line": 66, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1064, + 1370 + ], + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 66, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} object\n * @param {String} suffix\n * @returns {String}\n ", + "range": [ + 973, + 1061 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 206, + 1372 + ], + "loc": { + "start": { + "line": 13, + "column": 49 + }, + "end": { + "line": 67, + "column": 1 + } + } + }, + "range": [ + 164, + 1372 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 67, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @temp Asset class definition\n ", + "range": [ + 117, + 156 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 157, + 1372 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 67, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @temp Asset class definition\n ", + "range": [ + 117, + 156 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 42, + 1372 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 67, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 5/28/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @temp Asset class definition\n ", + "range": [ + 117, + 156 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 246, + 351 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} object\n * @param {String} suffix\n * @returns {String}\n ", + "range": [ + 973, + 1061 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " binds working microservice if specified in object parameter", + "range": [ + 1098, + 1160 + ], + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 66 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-asset/ast/source/Exception/Exception.js.json b/docs-api/deep-asset/ast/source/Exception/Exception.js.json new file mode 100644 index 00000000..a5724794 --- /dev/null +++ b/docs-api/deep-asset/ast/source/Exception/Exception.js.json @@ -0,0 +1,651 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 149, + 158 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 167, + 171 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 172, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "range": [ + 167, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 182, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "range": [ + 167, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 233, + 244 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 248, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 245, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 260, + 265 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 269, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 266, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 260, + 274 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 260, + 275 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 254, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 244, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 233, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 192, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 143, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 136, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 281 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-asset/ast/source/bootstrap.js.json b/docs-api/deep-asset/ast/source/bootstrap.js.json new file mode 100644 index 00000000..fab3da9b --- /dev/null +++ b/docs-api/deep-asset/ast/source/bootstrap.js.json @@ -0,0 +1,332 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 43, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 43, + 56 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 5/27/2015\n ", + "range": [ + 0, + 41 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Asset", + "range": [ + 66, + 71 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 13 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Asset", + "range": [ + 66, + 71 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 13 + } + } + }, + "range": [ + 66, + 71 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Asset", + "raw": "'./Asset'", + "range": [ + 78, + 87 + ], + "loc": { + "start": { + "line": 7, + "column": 20 + }, + "end": { + "line": 7, + "column": 29 + } + } + }, + "range": [ + 58, + 88 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 30 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "exports", + "range": [ + 94, + 101 + ], + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 11 + } + } + }, + "init": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "module", + "range": [ + 104, + 110 + ], + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exports", + "range": [ + 111, + 118 + ], + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 28 + } + } + }, + "range": [ + 104, + 118 + ], + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 28 + } + } + }, + "right": { + "type": "Identifier", + "name": "Asset", + "range": [ + 121, + 126 + ], + "loc": { + "start": { + "line": 9, + "column": 31 + }, + "end": { + "line": 9, + "column": 36 + } + } + }, + "range": [ + 104, + 126 + ], + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 36 + } + } + }, + "range": [ + 94, + 126 + ], + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 36 + } + } + } + ], + "kind": "let", + "range": [ + 90, + 127 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 37 + } + } + } + ], + "sourceType": "module", + "range": [ + 43, + 127 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 9, + "column": 37 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 5/27/2015\n ", + "range": [ + 0, + 41 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-asset/badge.svg b/docs-api/deep-asset/badge.svg new file mode 100644 index 00000000..d6092cc1 --- /dev/null +++ b/docs-api/deep-asset/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 83% + 83% + + diff --git a/docs-api/deep-asset/class/lib/Asset.js~Asset.html b/docs-api/deep-asset/class/lib/Asset.js~Asset.html new file mode 100644 index 00000000..62d5c57f --- /dev/null +++ b/docs-api/deep-asset/class/lib/Asset.js~Asset.html @@ -0,0 +1,370 @@ + + + + + + Asset | DEEP Asset Library API Document + + + + + + + + +
+ Home + Identifier + Source + + Repository + +
+ + + +
+
import {Asset} from 'deep-asset/lib/Asset.js'
+ public + class + + + + | source +
+ +
+

Asset

+ + + + + +

Extends:

deep-kernel~Kernel.ContainerAware → Asset
+ + + + + + + + + + + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ constructor +

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

Method Summary

+ + + + + + + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ boot(kernel: Kernel, callback: Function) +

+
+
+ + +
Booting a certain service
+
+
+ + +
+ public + + + + + +
+

+ locate(object: String, suffix: String): String +

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

Public Constructors

+ +
+

+ public + + + + + constructor + + + + source + +

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

Public Methods

+ +
+

+ public + + + + + boot(kernel: Kernel, callback: Function) + + + + source + +

+ + + + +

Booting a certain service

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
kernelKernel
callbackFunction
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + locate(object: String, suffix: String): String + + + + source + +

+ + + + + + + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
objectString
suffixString
+
+
+ +
+

Return:

+ + + + + +
String
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/docs-api/deep-asset/class/lib/Exception/Exception.js~Exception.html b/docs-api/deep-asset/class/lib/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..ae83be4a --- /dev/null +++ b/docs-api/deep-asset/class/lib/Exception/Exception.js~Exception.html @@ -0,0 +1,194 @@ + + + + + + Exception | DEEP Asset Library API Document + + + + + + + + +
+ Home + Identifier + Source + + Repository + +
+ + + +
+
import {Exception} from 'deep-asset/lib/Exception/Exception.js'
+ public + class + + + + | source +
+ +
+

Exception

+ + + + + +

Extends:

deep-core~Core.Exception.Exception → Exception
+ + + + + + + + + +

Thrown when any exception occurs

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

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ constructor(args: Array) +

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

Public Constructors

+ +
+

+ public + + + + + constructor(args: Array) + + + + source + +

+ + + + + + + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
argsArray
+
+
+ + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + diff --git a/docs-api/deep-asset/coverage.json b/docs-api/deep-asset/coverage.json new file mode 100644 index 00000000..a07c72ae --- /dev/null +++ b/docs-api/deep-asset/coverage.json @@ -0,0 +1,19 @@ +{ + "coverage": "83.33%", + "expectCount": 6, + "actualCount": 5, + "files": { + "lib/Asset.js": { + "expectCount": 4, + "actualCount": 3, + "undocumentLines": [ + 14 + ] + }, + "lib/Exception/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/docs-api/deep-asset/css/prettify-tomorrow.css b/docs-api/deep-asset/css/prettify-tomorrow.css new file mode 100644 index 00000000..b6f92a78 --- /dev/null +++ b/docs-api/deep-asset/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs-api/deep-asset/css/style.css b/docs-api/deep-asset/css/style.css new file mode 100644 index 00000000..4dc99a1b --- /dev/null +++ b/docs-api/deep-asset/css/style.css @@ -0,0 +1,862 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Roboto', sans-serif; + overflow: auto; + font-size: 14px; + /*color: #4d4e53;*/ + color: rgba(0, 0, 0, .68); + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + background-color: #E2E2E2; + padding: 4px; + font-weight: 300; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 19px; +} + +p > code { + background-color: #f5f5f5; + border-radius: 3px; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0 4px; + border-radius: 3px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: white; + top: 0; + border-bottom: solid 1px #E02130; +} +.layout-container > header > a{ + margin: 0 5px; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid rgba(0, 0, 0, 0.1); +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation .nav-dir-path { + margin-top: 0.7em; + margin-bottom: 0.25em; + font-size: 0.8em; + color: #aaa; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #999; + color: white; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +pre.source-code { + background: #f5f5f5; + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150); +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #999; + color: white; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} + +table.test-summary thead { + background: #999; + color: white; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-describe .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; +} + +table.test-summary tr.test-describe .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-describe .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} + +.inner-link-active { + background: rgb(255, 255, 150); +} + +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + +/* coverage badge */ +.esdoc-coverage { + display: inline-block; + height: 20px; + vertical-align: top; +} + +h1 .esdoc-coverage { + position: relative; + top: -4px; +} + +.esdoc-coverage-wrap { + color: white; + font-size: 12px; + font-weight: 500; +} + +.esdoc-coverage-label { + padding: 3px 4px 3px 6px; + background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%); + border-radius: 4px 0 0 4px; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-ratio { + padding: 3px 6px 3px 4px; + border-radius: 0 4px 4px 0; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-low { + background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%); +} + +.esdoc-coverage-middle { + background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%); +} + +.esdoc-coverage-high { + background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%); +} + +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; + background-color: transparent; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} diff --git a/docs-api/deep-asset/dump.json b/docs-api/deep-asset/dump.json new file mode 100644 index 00000000..91b9559e --- /dev/null +++ b/docs-api/deep-asset/dump.json @@ -0,0 +1,868 @@ +[ + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Asset.js", + "memberof": null, + "longname": "lib/Asset.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 5/28/15.\n */\n\n'use strict';\n\nimport Kernel from 'deep-kernel';\nimport Path from 'path';\n\n/**\n * @temp Asset class definition\n */\nexport class Asset extends Kernel.ContainerAware {\n constructor() {\n super();\n }\n\n /**\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n */\n boot(kernel, callback) {\n if (kernel.isFrontend) {\n let loadVector = [];\n let microservices = kernel.microservices;\n\n for (let microserviceKey in microservices) {\n if (!microservices.hasOwnProperty(microserviceKey)) {\n continue;\n }\n\n let microservice = microservices[microserviceKey];\n\n if (microservice.isRoot) {\n continue;\n }\n\n loadVector.push(this.bind(microservice).locate('bootstrap.js'));\n }\n\n kernel.container.addParameter(\n Kernel.FRONTEND_BOOTSTRAP_VECTOR,\n loadVector\n );\n }\n\n callback();\n }\n\n /**\n * @param {String} object\n * @param {String} suffix\n * @returns {String}\n */\n locate(object, suffix = '') {\n // binds working microservice if specified in object parameter\n let path = this._resolvePath(object);\n\n if (this.microservice.isRoot) {\n return Path.join(path) + suffix;\n } else {\n return Path.join(this.microservice.toString(), path) + suffix;\n }\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Asset", + "memberof": "lib/Asset.js", + "longname": "lib/Asset.js~Asset", + "access": null, + "export": true, + "importPath": "deep-asset/lib/Asset.js", + "importStyle": "{Asset}", + "description": null, + "lineNumber": 13, + "unknown": [ + { + "tagName": "@temp", + "tagValue": "Asset class definition" + } + ], + "interface": false, + "extends": [ + "deep-kernel~Kernel.ContainerAware" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Asset.js~Asset", + "longname": "lib/Asset.js~Asset#constructor", + "access": null, + "description": null, + "lineNumber": 14, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "boot", + "memberof": "lib/Asset.js~Asset", + "longname": "lib/Asset.js~Asset#boot", + "access": null, + "description": "Booting a certain service", + "lineNumber": 24, + "params": [ + { + "nullable": null, + "types": [ + "Kernel" + ], + "spread": false, + "optional": false, + "name": "kernel", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "locate", + "memberof": "lib/Asset.js~Asset", + "longname": "lib/Asset.js~Asset#locate", + "access": null, + "description": null, + "lineNumber": 57, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "object", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "suffix", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/Exception.js", + "memberof": null, + "longname": "lib/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\n\n/**\n * Thrown when any exception occurs\n */\nexport class Exception extends Core.Exception.Exception {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Exception/Exception.js", + "longname": "lib/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-asset/lib/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Thrown when any exception occurs", + "lineNumber": 12, + "interface": false, + "extends": [ + "deep-core~Core.Exception.Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/Exception.js~Exception", + "longname": "lib/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/bootstrap.js", + "memberof": null, + "longname": "lib/bootstrap.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 5/27/2015\n */\n\n'use strict';\n\nimport {Asset} from './Asset';\n\nlet exports = module.exports = Asset;\n" + }, + { + "kind": "variable", + "static": true, + "variation": null, + "name": "exports", + "memberof": "lib/bootstrap.js", + "longname": "lib/bootstrap.js~exports", + "access": null, + "export": false, + "importPath": "deep-asset/lib/bootstrap.js", + "importStyle": null, + "description": null, + "lineNumber": 9, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~null", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Error", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Date", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~String", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~string", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Map", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Set", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "CanvasRenderingContext2D", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DocumentFragment", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Element", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Element", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Event", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Event", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Node", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Node", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NodeList", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~NodeList", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "XMLHttpRequest", + "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "access": null, + "description": null, + "builtinExternal": true + } +] \ No newline at end of file diff --git a/docs-api/deep-asset/file/lib/Asset.js.html b/docs-api/deep-asset/file/lib/Asset.js.html new file mode 100644 index 00000000..33656f2f --- /dev/null +++ b/docs-api/deep-asset/file/lib/Asset.js.html @@ -0,0 +1,123 @@ + + + + + + lib/Asset.js | DEEP Asset Library API Document + + + + + + + + +
+ Home + Identifier + Source + + Repository + +
+ + + +

lib/Asset.js

+
/**
+ * Created by mgoria on 5/28/15.
+ */
+
+'use strict';
+
+import Kernel from 'deep-kernel';
+import Path from 'path';
+
+/**
+ * @temp Asset class definition
+ */
+export class Asset extends Kernel.ContainerAware {
+  constructor() {
+    super();
+  }
+
+  /**
+   * Booting a certain service
+   *
+   * @param {Kernel} kernel
+   * @param {Function} callback
+   */
+  boot(kernel, callback) {
+    if (kernel.isFrontend) {
+      let loadVector = [];
+      let microservices = kernel.microservices;
+
+      for (let microserviceKey in microservices) {
+        if (!microservices.hasOwnProperty(microserviceKey)) {
+          continue;
+        }
+
+        let microservice = microservices[microserviceKey];
+
+        if (microservice.isRoot) {
+          continue;
+        }
+
+        loadVector.push(this.bind(microservice).locate('bootstrap.js'));
+      }
+
+      kernel.container.addParameter(
+        Kernel.FRONTEND_BOOTSTRAP_VECTOR,
+        loadVector
+      );
+    }
+
+    callback();
+  }
+
+  /**
+   * @param {String} object
+   * @param {String} suffix
+   * @returns {String}
+   */
+  locate(object, suffix = '') {
+    // binds working microservice if specified in object parameter
+    let path = this._resolvePath(object);
+
+    if (this.microservice.isRoot) {
+      return Path.join(path) + suffix;
+    } else {
+      return Path.join(this.microservice.toString(), path) + suffix;
+    }
+  }
+}
+
+ +
+ + + + + + + + + + + + diff --git a/docs-api/deep-asset/file/lib/Exception/Exception.js.html b/docs-api/deep-asset/file/lib/Exception/Exception.js.html new file mode 100644 index 00000000..de2965bd --- /dev/null +++ b/docs-api/deep-asset/file/lib/Exception/Exception.js.html @@ -0,0 +1,75 @@ + + + + + + lib/Exception/Exception.js | DEEP Asset Library API Document + + + + + + + + +
+ Home + Identifier + Source + + Repository + +
+ + + +

lib/Exception/Exception.js

+
/**
+ * Created by AlexanderC on 6/10/15.
+ */
+
+'use strict';
+
+import Core from 'deep-core';
+
+/**
+ * Thrown when any exception occurs
+ */
+export class Exception extends Core.Exception.Exception {
+  /**
+   * @param {Array} args
+   */
+  constructor(...args) {
+    super(...args);
+  }
+}
+
+ +
+ + + + + + + + + + + + diff --git a/docs-api/deep-asset/file/lib/bootstrap.js.html b/docs-api/deep-asset/file/lib/bootstrap.js.html new file mode 100644 index 00000000..abc7dfa6 --- /dev/null +++ b/docs-api/deep-asset/file/lib/bootstrap.js.html @@ -0,0 +1,65 @@ + + + + + + lib/bootstrap.js | DEEP Asset Library API Document + + + + + + + + +
+ Home + Identifier + Source + + Repository + +
+ + + +

lib/bootstrap.js

+
/**
+ * Created by mgoria on 5/27/2015
+ */
+
+'use strict';
+
+import {Asset} from './Asset';
+
+let exports = module.exports = Asset;
+
+ +
+ + + + + + + + + + + + diff --git a/docs-api/deep-asset/identifiers.html b/docs-api/deep-asset/identifiers.html new file mode 100644 index 00000000..9f94a549 --- /dev/null +++ b/docs-api/deep-asset/identifiers.html @@ -0,0 +1,115 @@ + + + + + + Index | DEEP Asset Library API Document + + + + + + + + +
+ Home + Identifier + Source + + Repository + +
+ + + +

Identifier

+

Class Summary

+ + + + + + + + + + + + + + +
Static Public Class Summary
+ public + + + + + +
+

+ Asset +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ Exception +

+
+
+ + +
Thrown when any exception occurs
+
+
+ + +
+
+ + + + +
+ + + + + + + + + + + + diff --git a/docs-api/deep-asset/image/badge.svg b/docs-api/deep-asset/image/badge.svg new file mode 100644 index 00000000..324db4c5 --- /dev/null +++ b/docs-api/deep-asset/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/docs-api/deep-asset/image/github.png b/docs-api/deep-asset/image/github.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/docs-api/deep-asset/image/github.png differ diff --git a/docs-api/deep-asset/image/search.png b/docs-api/deep-asset/image/search.png new file mode 100644 index 00000000..f5d84b69 Binary files /dev/null and b/docs-api/deep-asset/image/search.png differ diff --git a/docs-api/deep-asset/index.html b/docs-api/deep-asset/index.html new file mode 100644 index 00000000..d1bd50af --- /dev/null +++ b/docs-api/deep-asset/index.html @@ -0,0 +1,188 @@ + + + + + + DEEP Asset Library API Document + + + + + + + + +
+ Home + Identifier + Source + + Repository + +
+ + + +

deep-asset

+

NPM Version +Build Status +Coverage Status +Codacy Badge +API Docs

+

deep-asset is a node.js library, part of DEEP Framework.

+

Digital Enterprise End-to-end Platform, aka DEEP

+

Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less.

+

DEEP for Businesses Join char on gitter.im

+

User Guide Documentation (to be updated later)

+

DEEP is enabling small and medium businesses, as well as enterprises to:

+ +
+

DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

+
+

DEEP for Developers Join char on gitter.im

+

API Guide Documentation

+

Developer Guide Documentation

+

DEEP is enabling developers and architects to:

+ +
+

DEEP Microservice is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with DEEP Microservices HelloWorld or DEEP Microservices ToDo App, as well as DEEP CLI (aka deepify).

+

DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

+
+

DEEP Architecture on AWS Join char on gitter.im

+

Digital Enterprise End-to-end Platform, aka DEEP

+

DEEP is using microservices architecture on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DEEP Abstracted LibraryDescriptionAWS Abstracted Service(s)
deep-assetAssets Management LibraryAmazon S3
deep-cacheCache Management LibraryAmazon ElastiCache
deep-coreCore Management Library-
deep-dbDatabase Management LibraryAmazon DynamoDB, Amazon SQS
deep-diDependency Injection Management Library-
deep-eventEvents Management LibraryAmazon Kinesis
deep-fsFile System Management LibraryAmazon S3
deep-kernelKernel Management Library-
deep-logLogs Management LibraryAmazon CloudWatch Logs
deep-notificationNotifications Management LibraryAmazon SNS
deep-resourceResouces Management LibraryAWS Lambda, Amazon API Gateway
deep-securitySecurity Management LibraryAWS IAM, Amazon Cognito
deep-validationValidation Management Library-
+

Feedback

+

We are eager to get your feedback, so please use whatever communication channel you prefer:

+ +

License

+

This repository can be used under the MIT license.

+
+

See LICENSE for more details.

+
+

Sponsors

+

This repository is being sponsored by:

+
+

Mitoc Group

+
+
+
+ + + + + + + + + + + + diff --git a/docs-api/deep-asset/package.json b/docs-api/deep-asset/package.json new file mode 100644 index 00000000..e04469fe --- /dev/null +++ b/docs-api/deep-asset/package.json @@ -0,0 +1,68 @@ +{ + "name": "deep-asset", + "version": "0.0.46", + "description": "DEEP Asset Library", + "keywords": [ + "Digital Enterprise End-To-End Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Asset" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Veaceslav Cotruta", + "email": "vcotruta@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "*", + "deep-core": "*" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/docs-api/deep-asset/script/inherited-summary.js b/docs-api/deep-asset/script/inherited-summary.js new file mode 100644 index 00000000..0a35b6df --- /dev/null +++ b/docs-api/deep-asset/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/docs-api/deep-asset/script/inner-link.js b/docs-api/deep-asset/script/inner-link.js new file mode 100644 index 00000000..99d76273 --- /dev/null +++ b/docs-api/deep-asset/script/inner-link.js @@ -0,0 +1,29 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + var el = document.querySelector(location.hash); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = location.href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/docs-api/deep-asset/script/patch-for-local.js b/docs-api/deep-asset/script/patch-for-local.js new file mode 100644 index 00000000..5756d135 --- /dev/null +++ b/docs-api/deep-asset/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/docs-api/deep-asset/script/prettify/Apache-License-2.0.txt b/docs-api/deep-asset/script/prettify/Apache-License-2.0.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/docs-api/deep-asset/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs-api/deep-asset/script/prettify/prettify.js b/docs-api/deep-asset/script/prettify/prettify.js new file mode 100644 index 00000000..eef5ad7e --- /dev/null +++ b/docs-api/deep-asset/script/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/docs-api/deep-asset/script/search_index.js b/docs-api/deep-asset/script/search_index.js new file mode 100644 index 00000000..fb506b95 --- /dev/null +++ b/docs-api/deep-asset/script/search_index.js @@ -0,0 +1,380 @@ +window.esdocSearchIndex = [ + [ + "deep-asset/lib/asset.js~asset", + "class/lib/Asset.js~Asset.html", + "Asset deep-asset/lib/Asset.js", + "class" + ], + [ + "deep-asset/lib/exception/exception.js~exception", + "class/lib/Exception/Exception.js~Exception.html", + "Exception deep-asset/lib/Exception/Exception.js", + "class" + ], + [ + "builtinexternal/ecmascriptexternal.js~array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~arraybuffer", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~dataview", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~DataView", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~date", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Date", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~error", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Error", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~evalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float64array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generator", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Generator", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generatorfunction", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~infinity", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~internalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~json", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~JSON", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~map", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Map", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~nan", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~NaN", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~promise", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Promise", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~proxy", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~rangeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~referenceerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~reflect", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~regexp", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~set", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Set", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~String", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~symbol", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~syntaxerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~typeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~urierror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~URIError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8clampedarray", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakmap", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakset", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~null", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~null", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~string", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~undefined", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~undefined", + "external" + ], + [ + "builtinexternal/webapiexternal.js~canvasrenderingcontext2d", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "external" + ], + [ + "builtinexternal/webapiexternal.js~documentfragment", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "external" + ], + [ + "builtinexternal/webapiexternal.js~element", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Element", + "external" + ], + [ + "builtinexternal/webapiexternal.js~event", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Event", + "external" + ], + [ + "builtinexternal/webapiexternal.js~node", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Node", + "external" + ], + [ + "builtinexternal/webapiexternal.js~nodelist", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~NodeList", + "external" + ], + [ + "builtinexternal/webapiexternal.js~xmlhttprequest", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "external" + ], + [ + "lib/asset.js", + "file/lib/Asset.js.html", + "lib/Asset.js", + "file" + ], + [ + "lib/asset.js~asset#boot", + "class/lib/Asset.js~Asset.html#instance-method-boot", + "lib/Asset.js~Asset#boot", + "method" + ], + [ + "lib/asset.js~asset#constructor", + "class/lib/Asset.js~Asset.html#instance-constructor-constructor", + "lib/Asset.js~Asset#constructor", + "method" + ], + [ + "lib/asset.js~asset#locate", + "class/lib/Asset.js~Asset.html#instance-method-locate", + "lib/Asset.js~Asset#locate", + "method" + ], + [ + "lib/exception/exception.js", + "file/lib/Exception/Exception.js.html", + "lib/Exception/Exception.js", + "file" + ], + [ + "lib/exception/exception.js~exception#constructor", + "class/lib/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/bootstrap.js", + "file/lib/bootstrap.js.html", + "lib/bootstrap.js", + "file" + ] +] \ No newline at end of file diff --git a/docs-api/deep-asset/script/test-summary.js b/docs-api/deep-asset/script/test-summary.js new file mode 100644 index 00000000..2f32cb00 --- /dev/null +++ b/docs-api/deep-asset/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-describe')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-describe .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/docs-api/deep-asset/source.html b/docs-api/deep-asset/source.html new file mode 100644 index 00000000..015cb3e8 --- /dev/null +++ b/docs-api/deep-asset/source.html @@ -0,0 +1,94 @@ + + + + + + Source | DEEP Asset Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Source 5/6

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    lib/Asset.jsAsset75 %3/41373 byte672015-10-07 19:56:07 (UTC)
    lib/Exception/Exception.jsException100 %2/2282 byte192015-10-07 19:56:07 (UTC)
    lib/bootstrap.js--128 byte92015-09-04 12:52:16 (UTC)
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/ast/source/Cache.js.json b/docs-api/deep-cache/ast/source/Cache.js.json new file mode 100644 index 00000000..52418ba1 --- /dev/null +++ b/docs-api/deep-cache/ast/source/Cache.js.json @@ -0,0 +1,3834 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 68, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + }, + "range": [ + 68, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-kernel", + "raw": "'deep-kernel'", + "range": [ + 80, + 93 + ], + "loc": { + "start": { + "line": 7, + "column": 19 + }, + "end": { + "line": 7, + "column": 32 + } + } + }, + "range": [ + 61, + 94 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 33 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "InMemoryDriver", + "range": [ + 103, + 117 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 22 + } + } + }, + "imported": { + "type": "Identifier", + "name": "InMemoryDriver", + "range": [ + 103, + 117 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 22 + } + } + }, + "range": [ + 103, + 117 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 22 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Driver/InMemoryDriver", + "raw": "'./Driver/InMemoryDriver'", + "range": [ + 124, + 149 + ], + "loc": { + "start": { + "line": 8, + "column": 29 + }, + "end": { + "line": 8, + "column": 54 + } + } + }, + "range": [ + 95, + 150 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 55 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "RedisDriver", + "range": [ + 159, + 170 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 19 + } + } + }, + "imported": { + "type": "Identifier", + "name": "RedisDriver", + "range": [ + 159, + 170 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 19 + } + } + }, + "range": [ + 159, + 170 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 19 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Driver/RedisDriver", + "raw": "'./Driver/RedisDriver'", + "range": [ + 177, + 199 + ], + "loc": { + "start": { + "line": 9, + "column": 26 + }, + "end": { + "line": 9, + "column": 48 + } + } + }, + "range": [ + 151, + 200 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 49 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 209, + 218 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 209, + 218 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 17 + } + } + }, + "range": [ + 209, + 218 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/Exception", + "raw": "'./Exception/Exception'", + "range": [ + 225, + 248 + ], + "loc": { + "start": { + "line": 10, + "column": 24 + }, + "end": { + "line": 10, + "column": 47 + } + } + }, + "range": [ + 201, + 249 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 48 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Cache manager\n ", + "range": [ + 251, + 275 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Cache", + "range": [ + 289, + 294 + ], + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 18 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 303, + 309 + ], + "loc": { + "start": { + "line": 15, + "column": 27 + }, + "end": { + "line": 15, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "ContainerAware", + "range": [ + 310, + 324 + ], + "loc": { + "start": { + "line": 15, + "column": 34 + }, + "end": { + "line": 15, + "column": 48 + } + } + }, + "range": [ + 303, + 324 + ], + "loc": { + "start": { + "line": 15, + "column": 27 + }, + "end": { + "line": 15, + "column": 48 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 377, + 388 + ], + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "driver", + "range": [ + 389, + 395 + ], + "loc": { + "start": { + "line": 19, + "column": 14 + }, + "end": { + "line": 19, + "column": 20 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 398, + 402 + ], + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 19, + "column": 27 + } + } + }, + "range": [ + 389, + 402 + ], + "loc": { + "start": { + "line": 19, + "column": 14 + }, + "end": { + "line": 19, + "column": 27 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 410, + 415 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 410, + 417 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 11 + } + } + }, + "range": [ + 410, + 418 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 424, + 428 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_driver", + "range": [ + 429, + 436 + ], + "loc": { + "start": { + "line": 22, + "column": 9 + }, + "end": { + "line": 22, + "column": 16 + } + } + }, + "range": [ + 424, + 436 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "driver", + "range": [ + 439, + 445 + ], + "loc": { + "start": { + "line": 22, + "column": 19 + }, + "end": { + "line": 22, + "column": 25 + } + } + }, + "range": [ + 424, + 445 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 25 + } + } + }, + "range": [ + 424, + 446 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 26 + } + } + } + ], + "range": [ + 404, + 450 + ], + "loc": { + "start": { + "line": 19, + "column": 29 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 388, + 450 + ], + "loc": { + "start": { + "line": 19, + "column": 13 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 377, + 450 + ], + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {AbstractDriver} driver\n ", + "range": [ + 329, + 374 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @param {Array} args\n * @returns {AbstractDriver}\n ", + "range": [ + 454, + 545 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "createDriver", + "range": [ + 555, + 567 + ], + "loc": { + "start": { + "line": 30, + "column": 9 + }, + "end": { + "line": 30, + "column": 21 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 568, + 572 + ], + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 26 + } + } + }, + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 577, + 581 + ], + "loc": { + "start": { + "line": 30, + "column": 31 + }, + "end": { + "line": 30, + "column": 35 + } + } + }, + "range": [ + 574, + 581 + ], + "loc": { + "start": { + "line": 30, + "column": 28 + }, + "end": { + "line": 30, + "column": 35 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "DriverPrototype", + "range": [ + 593, + 608 + ], + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 23 + } + } + }, + "init": null, + "range": [ + 593, + 608 + ], + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 23 + } + } + } + ], + "kind": "var", + "range": [ + 589, + 609 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 24 + } + } + }, + { + "type": "SwitchStatement", + "discriminant": { + "type": "Identifier", + "name": "name", + "range": [ + 623, + 627 + ], + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 16 + } + } + }, + "cases": [ + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": "memory", + "raw": "'memory'", + "range": [ + 642, + 650 + ], + "loc": { + "start": { + "line": 34, + "column": 11 + }, + "end": { + "line": 34, + "column": 19 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "DriverPrototype", + "range": [ + 660, + 675 + ], + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 23 + } + } + }, + "right": { + "type": "Identifier", + "name": "InMemoryDriver", + "range": [ + 678, + 692 + ], + "loc": { + "start": { + "line": 35, + "column": 26 + }, + "end": { + "line": 35, + "column": 40 + } + } + }, + "range": [ + 660, + 692 + ], + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 40 + } + } + }, + "range": [ + 660, + 693 + ], + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 41 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 702, + 708 + ], + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 14 + } + } + } + ], + "range": [ + 637, + 708 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 36, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": "redis", + "raw": "'redis'", + "range": [ + 720, + 727 + ], + "loc": { + "start": { + "line": 37, + "column": 11 + }, + "end": { + "line": 37, + "column": 18 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "DriverPrototype", + "range": [ + 737, + 752 + ], + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 23 + } + } + }, + "right": { + "type": "Identifier", + "name": "RedisDriver", + "range": [ + 755, + 766 + ], + "loc": { + "start": { + "line": 38, + "column": 26 + }, + "end": { + "line": 38, + "column": 37 + } + } + }, + "range": [ + 737, + 766 + ], + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 37 + } + } + }, + "range": [ + 737, + 767 + ], + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 38 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 776, + 782 + ], + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 14 + } + } + } + ], + "range": [ + 715, + 782 + ], + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 39, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": "local-storage", + "raw": "'local-storage'", + "range": [ + 794, + 809 + ], + "loc": { + "start": { + "line": 40, + "column": 11 + }, + "end": { + "line": 40, + "column": 26 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "DriverPrototype", + "range": [ + 896, + 911 + ], + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 23 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "require", + "range": [ + 914, + 921 + ], + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "./Driver/LocalStorageDriver", + "raw": "'./Driver/LocalStorageDriver'", + "range": [ + 922, + 951 + ], + "loc": { + "start": { + "line": 43, + "column": 34 + }, + "end": { + "line": 43, + "column": 63 + } + } + } + ], + "range": [ + 914, + 952 + ], + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 64 + } + } + }, + "property": { + "type": "Identifier", + "name": "LocalStorageDriver", + "range": [ + 953, + 971 + ], + "loc": { + "start": { + "line": 43, + "column": 65 + }, + "end": { + "line": 43, + "column": 83 + } + } + }, + "range": [ + 914, + 971 + ], + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 83 + } + } + }, + "range": [ + 896, + 971 + ], + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 83 + } + } + }, + "range": [ + 896, + 972 + ], + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 84 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: figure out a smarter way to avoid conflicts in nodejs env", + "range": [ + 820, + 887 + ], + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 75 + } + } + } + ] + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 981, + 987 + ], + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 14 + } + } + } + ], + "range": [ + 789, + 987 + ], + "loc": { + "start": { + "line": 40, + "column": 6 + }, + "end": { + "line": 44, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": null, + "consequent": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Exception", + "range": [ + 1021, + 1030 + ], + "loc": { + "start": { + "line": 46, + "column": 18 + }, + "end": { + "line": 46, + "column": 27 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Missing driver ", + "cooked": "Missing driver " + }, + "tail": false, + "range": [ + 1031, + 1049 + ], + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 46 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 1053, + 1055 + ], + "loc": { + "start": { + "line": 46, + "column": 50 + }, + "end": { + "line": 46, + "column": 52 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1049, + 1053 + ], + "loc": { + "start": { + "line": 46, + "column": 46 + }, + "end": { + "line": 46, + "column": 50 + } + } + } + ], + "range": [ + 1031, + 1055 + ], + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 46, + "column": 52 + } + } + } + ], + "range": [ + 1017, + 1056 + ], + "loc": { + "start": { + "line": 46, + "column": 14 + }, + "end": { + "line": 46, + "column": 53 + } + } + }, + "range": [ + 1011, + 1057 + ], + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 54 + } + } + } + ], + "range": [ + 994, + 1057 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 46, + "column": 54 + } + } + } + ], + "range": [ + 615, + 1063 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 47, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "DriverPrototype", + "range": [ + 1080, + 1095 + ], + "loc": { + "start": { + "line": 49, + "column": 15 + }, + "end": { + "line": 49, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 1099, + 1103 + ], + "loc": { + "start": { + "line": 49, + "column": 34 + }, + "end": { + "line": 49, + "column": 38 + } + } + }, + "range": [ + 1096, + 1103 + ], + "loc": { + "start": { + "line": 49, + "column": 31 + }, + "end": { + "line": 49, + "column": 38 + } + } + } + ], + "range": [ + 1076, + 1104 + ], + "loc": { + "start": { + "line": 49, + "column": 11 + }, + "end": { + "line": 49, + "column": 39 + } + } + }, + "range": [ + 1069, + 1105 + ], + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 40 + } + } + } + ], + "range": [ + 583, + 1109 + ], + "loc": { + "start": { + "line": 30, + "column": 37 + }, + "end": { + "line": 50, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 567, + 1109 + ], + "loc": { + "start": { + "line": 30, + "column": 21 + }, + "end": { + "line": 50, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 548, + 1109 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 50, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @param {Array} args\n * @returns {AbstractDriver}\n ", + "range": [ + 454, + 545 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 1113, + 1218 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 57, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "boot", + "range": [ + 1221, + 1225 + ], + "loc": { + "start": { + "line": 58, + "column": 2 + }, + "end": { + "line": 58, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "kernel", + "range": [ + 1226, + 1232 + ], + "loc": { + "start": { + "line": 58, + "column": 7 + }, + "end": { + "line": 58, + "column": 13 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 1234, + 1242 + ], + "loc": { + "start": { + "line": 58, + "column": 15 + }, + "end": { + "line": 58, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "driverName", + "range": [ + 1321, + 1331 + ], + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 60, + "column": 18 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 1334, + 1340 + ], + "loc": { + "start": { + "line": 60, + "column": 21 + }, + "end": { + "line": 60, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "isFrontend", + "range": [ + 1341, + 1351 + ], + "loc": { + "start": { + "line": 60, + "column": 28 + }, + "end": { + "line": 60, + "column": 38 + } + } + }, + "range": [ + 1334, + 1351 + ], + "loc": { + "start": { + "line": 60, + "column": 21 + }, + "end": { + "line": 60, + "column": 38 + } + } + }, + "consequent": { + "type": "Literal", + "value": "local-storage", + "raw": "'local-storage'", + "range": [ + 1354, + 1369 + ], + "loc": { + "start": { + "line": 60, + "column": 41 + }, + "end": { + "line": 60, + "column": 56 + } + } + }, + "alternate": { + "type": "Literal", + "value": "memory", + "raw": "'memory'", + "range": [ + 1372, + 1380 + ], + "loc": { + "start": { + "line": 60, + "column": 59 + }, + "end": { + "line": 60, + "column": 67 + } + } + }, + "range": [ + 1334, + 1380 + ], + "loc": { + "start": { + "line": 60, + "column": 21 + }, + "end": { + "line": 60, + "column": 67 + } + } + }, + "range": [ + 1321, + 1380 + ], + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 60, + "column": 67 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "'redis'", + "range": [ + 1380, + 1391 + ], + "loc": { + "start": { + "line": 60, + "column": 67 + }, + "end": { + "line": 60, + "column": 78 + } + } + } + ] + } + ], + "kind": "let", + "range": [ + 1317, + 1392 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 79 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: switch to redis when issue with Elasticache is fixed", + "range": [ + 1250, + 1312 + ], + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 66 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1398, + 1402 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_driver", + "range": [ + 1403, + 1410 + ], + "loc": { + "start": { + "line": 62, + "column": 9 + }, + "end": { + "line": 62, + "column": 16 + } + } + }, + "range": [ + 1398, + 1410 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 16 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Cache", + "range": [ + 1413, + 1418 + ], + "loc": { + "start": { + "line": 62, + "column": 19 + }, + "end": { + "line": 62, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "createDriver", + "range": [ + 1419, + 1431 + ], + "loc": { + "start": { + "line": 62, + "column": 25 + }, + "end": { + "line": 62, + "column": 37 + } + } + }, + "range": [ + 1413, + 1431 + ], + "loc": { + "start": { + "line": 62, + "column": 19 + }, + "end": { + "line": 62, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "driverName", + "range": [ + 1432, + 1442 + ], + "loc": { + "start": { + "line": 62, + "column": 38 + }, + "end": { + "line": 62, + "column": 48 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": ", kernel.config.cacheDsn", + "range": [ + 1442, + 1470 + ], + "loc": { + "start": { + "line": 62, + "column": 48 + }, + "end": { + "line": 62, + "column": 76 + } + } + } + ] + } + ], + "range": [ + 1413, + 1471 + ], + "loc": { + "start": { + "line": 62, + "column": 19 + }, + "end": { + "line": 62, + "column": 77 + } + } + }, + "range": [ + 1398, + 1471 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 77 + } + } + }, + "range": [ + 1398, + 1472 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 78 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "'redis'", + "range": [ + 1380, + 1391 + ], + "loc": { + "start": { + "line": 60, + "column": 67 + }, + "end": { + "line": 60, + "column": 78 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1477, + 1481 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_driver", + "range": [ + 1482, + 1489 + ], + "loc": { + "start": { + "line": 63, + "column": 9 + }, + "end": { + "line": 63, + "column": 16 + } + } + }, + "range": [ + 1477, + 1489 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "buildId", + "range": [ + 1490, + 1497 + ], + "loc": { + "start": { + "line": 63, + "column": 17 + }, + "end": { + "line": 63, + "column": 24 + } + } + }, + "range": [ + 1477, + 1497 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 24 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 1500, + 1506 + ], + "loc": { + "start": { + "line": 63, + "column": 27 + }, + "end": { + "line": 63, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "buildId", + "range": [ + 1507, + 1514 + ], + "loc": { + "start": { + "line": 63, + "column": 34 + }, + "end": { + "line": 63, + "column": 41 + } + } + }, + "range": [ + 1500, + 1514 + ], + "loc": { + "start": { + "line": 63, + "column": 27 + }, + "end": { + "line": 63, + "column": 41 + } + } + }, + "range": [ + 1477, + 1514 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 41 + } + } + }, + "range": [ + 1477, + 1515 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 42 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": ", kernel.config.cacheDsn", + "range": [ + 1442, + 1470 + ], + "loc": { + "start": { + "line": 62, + "column": 48 + }, + "end": { + "line": 62, + "column": 76 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 1521, + 1527 + ], + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 65, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "container", + "range": [ + 1528, + 1537 + ], + "loc": { + "start": { + "line": 65, + "column": 11 + }, + "end": { + "line": 65, + "column": 20 + } + } + }, + "range": [ + 1521, + 1537 + ], + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 65, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "addService", + "range": [ + 1538, + 1548 + ], + "loc": { + "start": { + "line": 65, + "column": 21 + }, + "end": { + "line": 65, + "column": 31 + } + } + }, + "range": [ + 1521, + 1548 + ], + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 65, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": false, + "range": [ + 1556, + 1559 + ], + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 9 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ".prototype", + "cooked": ".prototype" + }, + "tail": true, + "range": [ + 1568, + 1580 + ], + "loc": { + "start": { + "line": 66, + "column": 18 + }, + "end": { + "line": 66, + "column": 30 + } + } + } + ], + "expressions": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1559, + 1563 + ], + "loc": { + "start": { + "line": 66, + "column": 9 + }, + "end": { + "line": 66, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 1564, + 1568 + ], + "loc": { + "start": { + "line": 66, + "column": 14 + }, + "end": { + "line": 66, + "column": 18 + } + } + }, + "range": [ + 1559, + 1568 + ], + "loc": { + "start": { + "line": 66, + "column": 9 + }, + "end": { + "line": 66, + "column": 18 + } + } + } + ], + "range": [ + 1556, + 1580 + ], + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 30 + } + } + }, + { + "type": "ThisExpression", + "range": [ + 1588, + 1592 + ], + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 10 + } + } + } + ], + "range": [ + 1521, + 1598 + ], + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 68, + "column": 5 + } + } + }, + "range": [ + 1521, + 1599 + ], + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 68, + "column": 6 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1605, + 1613 + ], + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 70, + "column": 12 + } + } + }, + "arguments": [], + "range": [ + 1605, + 1615 + ], + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 70, + "column": 14 + } + } + }, + "range": [ + 1605, + 1616 + ], + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 70, + "column": 15 + } + } + } + ], + "range": [ + 1244, + 1620 + ], + "loc": { + "start": { + "line": 58, + "column": 25 + }, + "end": { + "line": 71, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1225, + 1620 + ], + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 71, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1221, + 1620 + ], + "loc": { + "start": { + "line": 58, + "column": 2 + }, + "end": { + "line": 71, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 1113, + 1218 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 57, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * DO NOT REMOVE THIS!\n * It's used while kernel boot\n *\n * @returns {Object}\n ", + "range": [ + 1624, + 1719 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 78, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "service", + "range": [ + 1726, + 1733 + ], + "loc": { + "start": { + "line": 79, + "column": 6 + }, + "end": { + "line": 79, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1749, + 1753 + ], + "loc": { + "start": { + "line": 80, + "column": 11 + }, + "end": { + "line": 80, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_driver", + "range": [ + 1754, + 1761 + ], + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 80, + "column": 23 + } + } + }, + "range": [ + 1749, + 1761 + ], + "loc": { + "start": { + "line": 80, + "column": 11 + }, + "end": { + "line": 80, + "column": 23 + } + } + }, + "range": [ + 1742, + 1762 + ], + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 24 + } + } + } + ], + "range": [ + 1736, + 1766 + ], + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1733, + 1766 + ], + "loc": { + "start": { + "line": 79, + "column": 13 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1722, + 1766 + ], + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 81, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * DO NOT REMOVE THIS!\n * It's used while kernel boot\n *\n * @returns {Object}\n ", + "range": [ + 1624, + 1719 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 78, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {AbstractDriver} driver\n ", + "range": [ + 1770, + 1815 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 85, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "driver", + "range": [ + 1822, + 1828 + ], + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "driver", + "range": [ + 1829, + 1835 + ], + "loc": { + "start": { + "line": 86, + "column": 13 + }, + "end": { + "line": 86, + "column": 19 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1843, + 1847 + ], + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 87, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_driver", + "range": [ + 1848, + 1855 + ], + "loc": { + "start": { + "line": 87, + "column": 9 + }, + "end": { + "line": 87, + "column": 16 + } + } + }, + "range": [ + 1843, + 1855 + ], + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 87, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "driver", + "range": [ + 1858, + 1864 + ], + "loc": { + "start": { + "line": 87, + "column": 19 + }, + "end": { + "line": 87, + "column": 25 + } + } + }, + "range": [ + 1843, + 1864 + ], + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 87, + "column": 25 + } + } + }, + "range": [ + 1843, + 1865 + ], + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 87, + "column": 26 + } + } + } + ], + "range": [ + 1837, + 1869 + ], + "loc": { + "start": { + "line": 86, + "column": 21 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1828, + 1869 + ], + "loc": { + "start": { + "line": 86, + "column": 12 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 1818, + 1869 + ], + "loc": { + "start": { + "line": 86, + "column": 2 + }, + "end": { + "line": 88, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {AbstractDriver} driver\n ", + "range": [ + 1770, + 1815 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 85, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {AbstractDriver}\n ", + "range": [ + 1873, + 1913 + ], + "loc": { + "start": { + "line": 90, + "column": 2 + }, + "end": { + "line": 92, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "driver", + "range": [ + 1920, + 1926 + ], + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1942, + 1946 + ], + "loc": { + "start": { + "line": 94, + "column": 11 + }, + "end": { + "line": 94, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_driver", + "range": [ + 1947, + 1954 + ], + "loc": { + "start": { + "line": 94, + "column": 16 + }, + "end": { + "line": 94, + "column": 23 + } + } + }, + "range": [ + 1942, + 1954 + ], + "loc": { + "start": { + "line": 94, + "column": 11 + }, + "end": { + "line": 94, + "column": 23 + } + } + }, + "range": [ + 1935, + 1955 + ], + "loc": { + "start": { + "line": 94, + "column": 4 + }, + "end": { + "line": 94, + "column": 24 + } + } + } + ], + "range": [ + 1929, + 1959 + ], + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 95, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1926, + 1959 + ], + "loc": { + "start": { + "line": 93, + "column": 12 + }, + "end": { + "line": 95, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1916, + 1959 + ], + "loc": { + "start": { + "line": 93, + "column": 2 + }, + "end": { + "line": 95, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {AbstractDriver}\n ", + "range": [ + 1873, + 1913 + ], + "loc": { + "start": { + "line": 90, + "column": 2 + }, + "end": { + "line": 92, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 325, + 1961 + ], + "loc": { + "start": { + "line": 15, + "column": 49 + }, + "end": { + "line": 96, + "column": 1 + } + } + }, + "range": [ + 283, + 1961 + ], + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 96, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Cache manager\n ", + "range": [ + 251, + 275 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 276, + 1961 + ], + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 96, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Cache manager\n ", + "range": [ + 251, + 275 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 1961 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 96, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Cache manager\n ", + "range": [ + 251, + 275 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {AbstractDriver} driver\n ", + "range": [ + 329, + 374 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} name\n * @param {Array} args\n * @returns {AbstractDriver}\n ", + "range": [ + 454, + 545 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: figure out a smarter way to avoid conflicts in nodejs env", + "range": [ + 820, + 887 + ], + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 75 + } + } + }, + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 1113, + 1218 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 57, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: switch to redis when issue with Elasticache is fixed", + "range": [ + 1250, + 1312 + ], + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 66 + } + } + }, + { + "type": "Block", + "value": "'redis'", + "range": [ + 1380, + 1391 + ], + "loc": { + "start": { + "line": 60, + "column": 67 + }, + "end": { + "line": 60, + "column": 78 + } + } + }, + { + "type": "Block", + "value": ", kernel.config.cacheDsn", + "range": [ + 1442, + 1470 + ], + "loc": { + "start": { + "line": 62, + "column": 48 + }, + "end": { + "line": 62, + "column": 76 + } + } + }, + { + "type": "Block", + "value": "*\n * DO NOT REMOVE THIS!\n * It's used while kernel boot\n *\n * @returns {Object}\n ", + "range": [ + 1624, + 1719 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 78, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {AbstractDriver} driver\n ", + "range": [ + 1770, + 1815 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 85, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {AbstractDriver}\n ", + "range": [ + 1873, + 1913 + ], + "loc": { + "start": { + "line": 90, + "column": 2 + }, + "end": { + "line": 92, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-cache/ast/source/Driver/AbstractDriver.js.json b/docs-api/deep-cache/ast/source/Driver/AbstractDriver.js.json new file mode 100644 index 00000000..28fb58d6 --- /dev/null +++ b/docs-api/deep-cache/ast/source/Driver/AbstractDriver.js.json @@ -0,0 +1,9293 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "MissingCacheException", + "range": [ + 99, + 120 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 29 + } + } + }, + "imported": { + "type": "Identifier", + "name": "MissingCacheException", + "range": [ + 99, + 120 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 29 + } + } + }, + "range": [ + 99, + 120 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 29 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/MissingCacheException", + "raw": "'./Exception/MissingCacheException'", + "range": [ + 127, + 162 + ], + "loc": { + "start": { + "line": 8, + "column": 36 + }, + "end": { + "line": 8, + "column": 71 + } + } + }, + "range": [ + 91, + 163 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 72 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "NoFlushException", + "range": [ + 172, + 188 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 24 + } + } + }, + "imported": { + "type": "Identifier", + "name": "NoFlushException", + "range": [ + 172, + 188 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 24 + } + } + }, + "range": [ + 172, + 188 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 24 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/NoFlushException", + "raw": "'./Exception/NoFlushException'", + "range": [ + 195, + 225 + ], + "loc": { + "start": { + "line": 9, + "column": 31 + }, + "end": { + "line": 9, + "column": 61 + } + } + }, + "range": [ + 164, + 226 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 62 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "DriverException", + "range": [ + 235, + 250 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 23 + } + } + }, + "imported": { + "type": "Identifier", + "name": "DriverException", + "range": [ + 235, + 250 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 23 + } + } + }, + "range": [ + 235, + 250 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 23 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/DriverException", + "raw": "'./Exception/DriverException'", + "range": [ + 257, + 286 + ], + "loc": { + "start": { + "line": 10, + "column": 30 + }, + "end": { + "line": 10, + "column": 59 + } + } + }, + "range": [ + 227, + 287 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 60 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Abstract driver implementation\n ", + "range": [ + 289, + 330 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 344, + 358 + ], + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 27 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 367, + 371 + ], + "loc": { + "start": { + "line": 15, + "column": 36 + }, + "end": { + "line": 15, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "OOP", + "range": [ + 372, + 375 + ], + "loc": { + "start": { + "line": 15, + "column": 41 + }, + "end": { + "line": 15, + "column": 44 + } + } + }, + "range": [ + 367, + 375 + ], + "loc": { + "start": { + "line": 15, + "column": 36 + }, + "end": { + "line": 15, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "Interface", + "range": [ + 376, + 385 + ], + "loc": { + "start": { + "line": 15, + "column": 45 + }, + "end": { + "line": 15, + "column": 54 + } + } + }, + "range": [ + 367, + 385 + ], + "loc": { + "start": { + "line": 15, + "column": 36 + }, + "end": { + "line": 15, + "column": 54 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 390, + 401 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 410, + 415 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "_get", + "raw": "'_get'", + "range": [ + 424, + 430 + ], + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 12 + } + } + }, + { + "type": "Literal", + "value": "_has", + "raw": "'_has'", + "range": [ + 432, + 438 + ], + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 20 + } + } + }, + { + "type": "Literal", + "value": "_set", + "raw": "'_set'", + "range": [ + 446, + 452 + ], + "loc": { + "start": { + "line": 19, + "column": 6 + }, + "end": { + "line": 19, + "column": 12 + } + } + }, + { + "type": "Literal", + "value": "_invalidate", + "raw": "'_invalidate'", + "range": [ + 454, + 467 + ], + "loc": { + "start": { + "line": 19, + "column": 14 + }, + "end": { + "line": 19, + "column": 27 + } + } + } + ], + "range": [ + 416, + 474 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ], + "range": [ + 410, + 475 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 20, + "column": 6 + } + } + }, + "range": [ + 410, + 476 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 482, + 486 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buildId", + "range": [ + 487, + 495 + ], + "loc": { + "start": { + "line": 22, + "column": 9 + }, + "end": { + "line": 22, + "column": 17 + } + } + }, + "range": [ + 482, + 495 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 17 + } + } + }, + "right": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 498, + 500 + ], + "loc": { + "start": { + "line": 22, + "column": 20 + }, + "end": { + "line": 22, + "column": 22 + } + } + }, + "range": [ + 482, + 500 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 22 + } + } + }, + "range": [ + 482, + 501 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 23 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 506, + 510 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_namespace", + "range": [ + 511, + 521 + ], + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 19 + } + } + }, + "range": [ + 506, + 521 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 524, + 526 + ], + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 23, + "column": 24 + } + } + }, + "range": [ + 506, + 526 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 24 + } + } + }, + "range": [ + 506, + 527 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 25 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 532, + 536 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_silent", + "range": [ + 537, + 544 + ], + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 16 + } + } + }, + "range": [ + 532, + 544 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 547, + 552 + ], + "loc": { + "start": { + "line": 24, + "column": 19 + }, + "end": { + "line": 24, + "column": 24 + } + } + }, + "range": [ + 532, + 552 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 24 + } + } + }, + "range": [ + 532, + 553 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 25 + } + } + } + ], + "range": [ + 404, + 557 + ], + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 25, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 401, + 557 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 25, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 390, + 557 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 561, + 593 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "buildId", + "range": [ + 600, + 607 + ], + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 623, + 627 + ], + "loc": { + "start": { + "line": 31, + "column": 11 + }, + "end": { + "line": 31, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buildId", + "range": [ + 628, + 636 + ], + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 24 + } + } + }, + "range": [ + 623, + 636 + ], + "loc": { + "start": { + "line": 31, + "column": 11 + }, + "end": { + "line": 31, + "column": 24 + } + } + }, + "range": [ + 616, + 637 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 25 + } + } + } + ], + "range": [ + 610, + 641 + ], + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 32, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 607, + 641 + ], + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 32, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 596, + 641 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 561, + 593 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} id\n ", + "range": [ + 645, + 678 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "buildId", + "range": [ + 685, + 692 + ], + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 37, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "id", + "range": [ + 693, + 695 + ], + "loc": { + "start": { + "line": 37, + "column": 14 + }, + "end": { + "line": 37, + "column": 16 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 703, + 707 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buildId", + "range": [ + 708, + 716 + ], + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 17 + } + } + }, + "range": [ + 703, + 716 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 17 + } + } + }, + "right": { + "type": "Identifier", + "name": "id", + "range": [ + 719, + 721 + ], + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 38, + "column": 22 + } + } + }, + "range": [ + 703, + 721 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 22 + } + } + }, + "range": [ + 703, + 722 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 23 + } + } + } + ], + "range": [ + 697, + 726 + ], + "loc": { + "start": { + "line": 37, + "column": 18 + }, + "end": { + "line": 39, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 692, + 726 + ], + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 39, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 681, + 726 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} id\n ", + "range": [ + 645, + 678 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 730, + 832 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 45, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "has", + "range": [ + 835, + 838 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 46, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 839, + 842 + ], + "loc": { + "start": { + "line": 46, + "column": 6 + }, + "end": { + "line": 46, + "column": 9 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 844, + 852 + ], + "loc": { + "start": { + "line": 46, + "column": 11 + }, + "end": { + "line": 46, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 855, + 859 + ], + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 26 + } + } + }, + "range": [ + 844, + 859 + ], + "loc": { + "start": { + "line": 46, + "column": 11 + }, + "end": { + "line": 46, + "column": 26 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 867, + 875 + ], + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 47, + "column": 12 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 878, + 886 + ], + "loc": { + "start": { + "line": 47, + "column": 15 + }, + "end": { + "line": 47, + "column": 23 + } + } + }, + "right": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [], + "range": [ + 901, + 910 + ], + "loc": { + "start": { + "line": 47, + "column": 38 + }, + "end": { + "line": 48, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 890, + 910 + ], + "loc": { + "start": { + "line": 47, + "column": 27 + }, + "end": { + "line": 48, + "column": 7 + } + } + }, + "range": [ + 878, + 910 + ], + "loc": { + "start": { + "line": 47, + "column": 15 + }, + "end": { + "line": 48, + "column": 7 + } + } + }, + "range": [ + 867, + 910 + ], + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 48, + "column": 7 + } + } + }, + "range": [ + 867, + 911 + ], + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 48, + "column": 8 + } + } + }, + { + "type": "TryStatement", + "block": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 929, + 933 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_has", + "range": [ + 934, + 938 + ], + "loc": { + "start": { + "line": 51, + "column": 11 + }, + "end": { + "line": 51, + "column": 15 + } + } + }, + "range": [ + 929, + 938 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 939, + 943 + ], + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buildKey", + "range": [ + 944, + 953 + ], + "loc": { + "start": { + "line": 51, + "column": 21 + }, + "end": { + "line": 51, + "column": 30 + } + } + }, + "range": [ + 939, + 953 + ], + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 954, + 957 + ], + "loc": { + "start": { + "line": 51, + "column": 31 + }, + "end": { + "line": 51, + "column": 34 + } + } + } + ], + "range": [ + 939, + 958 + ], + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 35 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "result", + "range": [ + 969, + 975 + ], + "loc": { + "start": { + "line": 51, + "column": 46 + }, + "end": { + "line": 51, + "column": 52 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 987, + 995 + ], + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "undefined", + "range": [ + 996, + 1005 + ], + "loc": { + "start": { + "line": 52, + "column": 17 + }, + "end": { + "line": 52, + "column": 26 + } + } + }, + { + "type": "Identifier", + "name": "result", + "range": [ + 1007, + 1013 + ], + "loc": { + "start": { + "line": 52, + "column": 28 + }, + "end": { + "line": 52, + "column": 34 + } + } + } + ], + "range": [ + 987, + 1014 + ], + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 35 + } + } + }, + "range": [ + 987, + 1015 + ], + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 36 + } + } + } + ], + "range": [ + 977, + 1023 + ], + "loc": { + "start": { + "line": 51, + "column": 54 + }, + "end": { + "line": 53, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 960, + 1023 + ], + "loc": { + "start": { + "line": 51, + "column": 37 + }, + "end": { + "line": 53, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 1024, + 1028 + ], + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 12 + } + } + }, + "range": [ + 960, + 1028 + ], + "loc": { + "start": { + "line": 51, + "column": 37 + }, + "end": { + "line": 53, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 1029, + 1033 + ], + "loc": { + "start": { + "line": 53, + "column": 13 + }, + "end": { + "line": 53, + "column": 17 + } + } + } + ], + "range": [ + 960, + 1034 + ], + "loc": { + "start": { + "line": 51, + "column": 37 + }, + "end": { + "line": 53, + "column": 18 + } + } + } + ], + "range": [ + 929, + 1035 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 53, + "column": 19 + } + } + }, + "range": [ + 929, + 1036 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 53, + "column": 20 + } + } + } + ], + "range": [ + 921, + 1042 + ], + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 54, + "column": 5 + } + } + }, + "handler": { + "type": "CatchClause", + "param": { + "type": "Identifier", + "name": "e", + "range": [ + 1050, + 1051 + ], + "loc": { + "start": { + "line": 54, + "column": 13 + }, + "end": { + "line": 54, + "column": 14 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1061, + 1069 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "DriverException", + "range": [ + 1074, + 1089 + ], + "loc": { + "start": { + "line": 55, + "column": 19 + }, + "end": { + "line": 55, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "e", + "range": [ + 1090, + 1091 + ], + "loc": { + "start": { + "line": 55, + "column": 35 + }, + "end": { + "line": 55, + "column": 36 + } + } + } + ], + "range": [ + 1070, + 1092 + ], + "loc": { + "start": { + "line": 55, + "column": 15 + }, + "end": { + "line": 55, + "column": 37 + } + } + }, + { + "type": "Identifier", + "name": "undefined", + "range": [ + 1094, + 1103 + ], + "loc": { + "start": { + "line": 55, + "column": 39 + }, + "end": { + "line": 55, + "column": 48 + } + } + } + ], + "range": [ + 1061, + 1104 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 49 + } + } + }, + "range": [ + 1061, + 1105 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 50 + } + } + } + ], + "range": [ + 1053, + 1111 + ], + "loc": { + "start": { + "line": 54, + "column": 16 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + "range": [ + 1043, + 1111 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + "finalizer": null, + "range": [ + 917, + 1111 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 1124, + 1128 + ], + "loc": { + "start": { + "line": 58, + "column": 11 + }, + "end": { + "line": 58, + "column": 15 + } + } + }, + "range": [ + 1117, + 1129 + ], + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 16 + } + } + } + ], + "range": [ + 861, + 1133 + ], + "loc": { + "start": { + "line": 46, + "column": 28 + }, + "end": { + "line": 59, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 838, + 1133 + ], + "loc": { + "start": { + "line": 46, + "column": 5 + }, + "end": { + "line": 59, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 835, + 1133 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 59, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 730, + 832 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 45, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 1137, + 1239 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "get", + "range": [ + 1242, + 1245 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 66, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1246, + 1249 + ], + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 9 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1251, + 1259 + ], + "loc": { + "start": { + "line": 66, + "column": 11 + }, + "end": { + "line": 66, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1262, + 1266 + ], + "loc": { + "start": { + "line": 66, + "column": 22 + }, + "end": { + "line": 66, + "column": 26 + } + } + }, + "range": [ + 1251, + 1266 + ], + "loc": { + "start": { + "line": 66, + "column": 11 + }, + "end": { + "line": 66, + "column": 26 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1274, + 1282 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 12 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1285, + 1293 + ], + "loc": { + "start": { + "line": 67, + "column": 15 + }, + "end": { + "line": 67, + "column": 23 + } + } + }, + "right": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [], + "range": [ + 1308, + 1317 + ], + "loc": { + "start": { + "line": 67, + "column": 38 + }, + "end": { + "line": 68, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1297, + 1317 + ], + "loc": { + "start": { + "line": 67, + "column": 27 + }, + "end": { + "line": 68, + "column": 7 + } + } + }, + "range": [ + 1285, + 1317 + ], + "loc": { + "start": { + "line": 67, + "column": 15 + }, + "end": { + "line": 68, + "column": 7 + } + } + }, + "range": [ + 1274, + 1317 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 68, + "column": 7 + } + } + }, + "range": [ + 1274, + 1318 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 68, + "column": 8 + } + } + }, + { + "type": "TryStatement", + "block": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1336, + 1340 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "has", + "range": [ + 1341, + 1344 + ], + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 14 + } + } + }, + "range": [ + 1336, + 1344 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1345, + 1348 + ], + "loc": { + "start": { + "line": 71, + "column": 15 + }, + "end": { + "line": 71, + "column": 18 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "exception", + "range": [ + 1359, + 1368 + ], + "loc": { + "start": { + "line": 71, + "column": 29 + }, + "end": { + "line": 71, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "result", + "range": [ + 1370, + 1376 + ], + "loc": { + "start": { + "line": 71, + "column": 40 + }, + "end": { + "line": 71, + "column": 46 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "exception", + "range": [ + 1392, + 1401 + ], + "loc": { + "start": { + "line": 72, + "column": 12 + }, + "end": { + "line": 72, + "column": 21 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "Identifier", + "name": "exception", + "range": [ + 1421, + 1430 + ], + "loc": { + "start": { + "line": 73, + "column": 16 + }, + "end": { + "line": 73, + "column": 25 + } + } + }, + "range": [ + 1415, + 1431 + ], + "loc": { + "start": { + "line": 73, + "column": 10 + }, + "end": { + "line": 73, + "column": 26 + } + } + } + ], + "range": [ + 1403, + 1441 + ], + "loc": { + "start": { + "line": 72, + "column": 23 + }, + "end": { + "line": 74, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 1388, + 1441 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 74, + "column": 9 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "result", + "range": [ + 1456, + 1462 + ], + "loc": { + "start": { + "line": 76, + "column": 13 + }, + "end": { + "line": 76, + "column": 19 + } + } + }, + "prefix": true, + "range": [ + 1455, + 1462 + ], + "loc": { + "start": { + "line": 76, + "column": 12 + }, + "end": { + "line": 76, + "column": 19 + } + } + }, + "right": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1467, + 1471 + ], + "loc": { + "start": { + "line": 76, + "column": 24 + }, + "end": { + "line": 76, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "_silent", + "range": [ + 1472, + 1479 + ], + "loc": { + "start": { + "line": 76, + "column": 29 + }, + "end": { + "line": 76, + "column": 36 + } + } + }, + "range": [ + 1467, + 1479 + ], + "loc": { + "start": { + "line": 76, + "column": 24 + }, + "end": { + "line": 76, + "column": 36 + } + } + }, + "prefix": true, + "range": [ + 1466, + 1479 + ], + "loc": { + "start": { + "line": 76, + "column": 23 + }, + "end": { + "line": 76, + "column": 36 + } + } + }, + "range": [ + 1455, + 1479 + ], + "loc": { + "start": { + "line": 76, + "column": 12 + }, + "end": { + "line": 76, + "column": 36 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "MissingCacheException", + "range": [ + 1503, + 1524 + ], + "loc": { + "start": { + "line": 77, + "column": 20 + }, + "end": { + "line": 77, + "column": 41 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1525, + 1528 + ], + "loc": { + "start": { + "line": 77, + "column": 42 + }, + "end": { + "line": 77, + "column": 45 + } + } + } + ], + "range": [ + 1499, + 1529 + ], + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 46 + } + } + }, + "range": [ + 1493, + 1530 + ], + "loc": { + "start": { + "line": 77, + "column": 10 + }, + "end": { + "line": 77, + "column": 47 + } + } + } + ], + "range": [ + 1481, + 1540 + ], + "loc": { + "start": { + "line": 76, + "column": 38 + }, + "end": { + "line": 78, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 1451, + 1540 + ], + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 78, + "column": 9 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1550, + 1554 + ], + "loc": { + "start": { + "line": 80, + "column": 8 + }, + "end": { + "line": 80, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_get", + "range": [ + 1555, + 1559 + ], + "loc": { + "start": { + "line": 80, + "column": 13 + }, + "end": { + "line": 80, + "column": 17 + } + } + }, + "range": [ + 1550, + 1559 + ], + "loc": { + "start": { + "line": 80, + "column": 8 + }, + "end": { + "line": 80, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1560, + 1564 + ], + "loc": { + "start": { + "line": 80, + "column": 18 + }, + "end": { + "line": 80, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buildKey", + "range": [ + 1565, + 1574 + ], + "loc": { + "start": { + "line": 80, + "column": 23 + }, + "end": { + "line": 80, + "column": 32 + } + } + }, + "range": [ + 1560, + 1574 + ], + "loc": { + "start": { + "line": 80, + "column": 18 + }, + "end": { + "line": 80, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1575, + 1578 + ], + "loc": { + "start": { + "line": 80, + "column": 33 + }, + "end": { + "line": 80, + "column": 36 + } + } + } + ], + "range": [ + 1560, + 1579 + ], + "loc": { + "start": { + "line": 80, + "column": 18 + }, + "end": { + "line": 80, + "column": 37 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "result", + "range": [ + 1590, + 1596 + ], + "loc": { + "start": { + "line": 80, + "column": 48 + }, + "end": { + "line": 80, + "column": 54 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1610, + 1618 + ], + "loc": { + "start": { + "line": 81, + "column": 10 + }, + "end": { + "line": 81, + "column": 18 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "undefined", + "range": [ + 1619, + 1628 + ], + "loc": { + "start": { + "line": 81, + "column": 19 + }, + "end": { + "line": 81, + "column": 28 + } + } + }, + { + "type": "Identifier", + "name": "result", + "range": [ + 1630, + 1636 + ], + "loc": { + "start": { + "line": 81, + "column": 30 + }, + "end": { + "line": 81, + "column": 36 + } + } + } + ], + "range": [ + 1610, + 1637 + ], + "loc": { + "start": { + "line": 81, + "column": 10 + }, + "end": { + "line": 81, + "column": 37 + } + } + }, + "range": [ + 1610, + 1638 + ], + "loc": { + "start": { + "line": 81, + "column": 10 + }, + "end": { + "line": 81, + "column": 38 + } + } + } + ], + "range": [ + 1598, + 1648 + ], + "loc": { + "start": { + "line": 80, + "column": 56 + }, + "end": { + "line": 82, + "column": 9 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1581, + 1648 + ], + "loc": { + "start": { + "line": 80, + "column": 39 + }, + "end": { + "line": 82, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 1649, + 1653 + ], + "loc": { + "start": { + "line": 82, + "column": 10 + }, + "end": { + "line": 82, + "column": 14 + } + } + }, + "range": [ + 1581, + 1653 + ], + "loc": { + "start": { + "line": 80, + "column": 39 + }, + "end": { + "line": 82, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 1654, + 1658 + ], + "loc": { + "start": { + "line": 82, + "column": 15 + }, + "end": { + "line": 82, + "column": 19 + } + } + } + ], + "range": [ + 1581, + 1659 + ], + "loc": { + "start": { + "line": 80, + "column": 39 + }, + "end": { + "line": 82, + "column": 20 + } + } + } + ], + "range": [ + 1550, + 1660 + ], + "loc": { + "start": { + "line": 80, + "column": 8 + }, + "end": { + "line": 82, + "column": 21 + } + } + }, + "range": [ + 1550, + 1661 + ], + "loc": { + "start": { + "line": 80, + "column": 8 + }, + "end": { + "line": 82, + "column": 22 + } + } + } + ], + "range": [ + 1378, + 1669 + ], + "loc": { + "start": { + "line": 71, + "column": 48 + }, + "end": { + "line": 83, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1350, + 1669 + ], + "loc": { + "start": { + "line": 71, + "column": 20 + }, + "end": { + "line": 83, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 1670, + 1674 + ], + "loc": { + "start": { + "line": 83, + "column": 8 + }, + "end": { + "line": 83, + "column": 12 + } + } + }, + "range": [ + 1350, + 1674 + ], + "loc": { + "start": { + "line": 71, + "column": 20 + }, + "end": { + "line": 83, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 1675, + 1679 + ], + "loc": { + "start": { + "line": 83, + "column": 13 + }, + "end": { + "line": 83, + "column": 17 + } + } + } + ], + "range": [ + 1350, + 1680 + ], + "loc": { + "start": { + "line": 71, + "column": 20 + }, + "end": { + "line": 83, + "column": 18 + } + } + } + ], + "range": [ + 1336, + 1681 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 83, + "column": 19 + } + } + }, + "range": [ + 1336, + 1682 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 83, + "column": 20 + } + } + } + ], + "range": [ + 1328, + 1688 + ], + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 84, + "column": 5 + } + } + }, + "handler": { + "type": "CatchClause", + "param": { + "type": "Identifier", + "name": "e", + "range": [ + 1696, + 1697 + ], + "loc": { + "start": { + "line": 84, + "column": 13 + }, + "end": { + "line": 84, + "column": 14 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1707, + 1715 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "DriverException", + "range": [ + 1720, + 1735 + ], + "loc": { + "start": { + "line": 85, + "column": 19 + }, + "end": { + "line": 85, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "e", + "range": [ + 1736, + 1737 + ], + "loc": { + "start": { + "line": 85, + "column": 35 + }, + "end": { + "line": 85, + "column": 36 + } + } + } + ], + "range": [ + 1716, + 1738 + ], + "loc": { + "start": { + "line": 85, + "column": 15 + }, + "end": { + "line": 85, + "column": 37 + } + } + }, + { + "type": "Identifier", + "name": "undefined", + "range": [ + 1740, + 1749 + ], + "loc": { + "start": { + "line": 85, + "column": 39 + }, + "end": { + "line": 85, + "column": 48 + } + } + } + ], + "range": [ + 1707, + 1750 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 49 + } + } + }, + "range": [ + 1707, + 1751 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 50 + } + } + } + ], + "range": [ + 1699, + 1757 + ], + "loc": { + "start": { + "line": 84, + "column": 16 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + "range": [ + 1689, + 1757 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + "finalizer": null, + "range": [ + 1324, + 1757 + ], + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 1770, + 1774 + ], + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 15 + } + } + }, + "range": [ + 1763, + 1775 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 16 + } + } + } + ], + "range": [ + 1268, + 1779 + ], + "loc": { + "start": { + "line": 66, + "column": 28 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1245, + 1779 + ], + "loc": { + "start": { + "line": 66, + "column": 5 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1242, + 1779 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 89, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 1137, + 1239 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n ", + "range": [ + 1783, + 1896 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "set", + "range": [ + 1899, + 1902 + ], + "loc": { + "start": { + "line": 97, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1903, + 1906 + ], + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 9 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 1908, + 1913 + ], + "loc": { + "start": { + "line": 97, + "column": 11 + }, + "end": { + "line": 97, + "column": 16 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "ttl", + "range": [ + 1915, + 1918 + ], + "loc": { + "start": { + "line": 97, + "column": 18 + }, + "end": { + "line": 97, + "column": 21 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1921, + 1922 + ], + "loc": { + "start": { + "line": 97, + "column": 24 + }, + "end": { + "line": 97, + "column": 25 + } + } + }, + "range": [ + 1915, + 1922 + ], + "loc": { + "start": { + "line": 97, + "column": 18 + }, + "end": { + "line": 97, + "column": 25 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1924, + 1932 + ], + "loc": { + "start": { + "line": 97, + "column": 27 + }, + "end": { + "line": 97, + "column": 35 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1935, + 1939 + ], + "loc": { + "start": { + "line": 97, + "column": 38 + }, + "end": { + "line": 97, + "column": 42 + } + } + }, + "range": [ + 1924, + 1939 + ], + "loc": { + "start": { + "line": 97, + "column": 27 + }, + "end": { + "line": 97, + "column": 42 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1947, + 1955 + ], + "loc": { + "start": { + "line": 98, + "column": 4 + }, + "end": { + "line": 98, + "column": 12 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1958, + 1966 + ], + "loc": { + "start": { + "line": 98, + "column": 15 + }, + "end": { + "line": 98, + "column": 23 + } + } + }, + "right": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [], + "range": [ + 1981, + 1990 + ], + "loc": { + "start": { + "line": 98, + "column": 38 + }, + "end": { + "line": 99, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1970, + 1990 + ], + "loc": { + "start": { + "line": 98, + "column": 27 + }, + "end": { + "line": 99, + "column": 7 + } + } + }, + "range": [ + 1958, + 1990 + ], + "loc": { + "start": { + "line": 98, + "column": 15 + }, + "end": { + "line": 99, + "column": 7 + } + } + }, + "range": [ + 1947, + 1990 + ], + "loc": { + "start": { + "line": 98, + "column": 4 + }, + "end": { + "line": 99, + "column": 7 + } + } + }, + "range": [ + 1947, + 1991 + ], + "loc": { + "start": { + "line": 98, + "column": 4 + }, + "end": { + "line": 99, + "column": 8 + } + } + }, + { + "type": "TryStatement", + "block": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2009, + 2013 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_set", + "range": [ + 2014, + 2018 + ], + "loc": { + "start": { + "line": 102, + "column": 11 + }, + "end": { + "line": 102, + "column": 15 + } + } + }, + "range": [ + 2009, + 2018 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2019, + 2023 + ], + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buildKey", + "range": [ + 2024, + 2033 + ], + "loc": { + "start": { + "line": 102, + "column": 21 + }, + "end": { + "line": 102, + "column": 30 + } + } + }, + "range": [ + 2019, + 2033 + ], + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 2034, + 2037 + ], + "loc": { + "start": { + "line": 102, + "column": 31 + }, + "end": { + "line": 102, + "column": 34 + } + } + } + ], + "range": [ + 2019, + 2038 + ], + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 35 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 2040, + 2045 + ], + "loc": { + "start": { + "line": 102, + "column": 37 + }, + "end": { + "line": 102, + "column": 42 + } + } + }, + { + "type": "Identifier", + "name": "ttl", + "range": [ + 2047, + 2050 + ], + "loc": { + "start": { + "line": 102, + "column": 44 + }, + "end": { + "line": 102, + "column": 47 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "result", + "range": [ + 2061, + 2067 + ], + "loc": { + "start": { + "line": 102, + "column": 58 + }, + "end": { + "line": 102, + "column": 64 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 2079, + 2087 + ], + "loc": { + "start": { + "line": 103, + "column": 8 + }, + "end": { + "line": 103, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "undefined", + "range": [ + 2088, + 2097 + ], + "loc": { + "start": { + "line": 103, + "column": 17 + }, + "end": { + "line": 103, + "column": 26 + } + } + }, + { + "type": "Identifier", + "name": "result", + "range": [ + 2099, + 2105 + ], + "loc": { + "start": { + "line": 103, + "column": 28 + }, + "end": { + "line": 103, + "column": 34 + } + } + } + ], + "range": [ + 2079, + 2106 + ], + "loc": { + "start": { + "line": 103, + "column": 8 + }, + "end": { + "line": 103, + "column": 35 + } + } + }, + "range": [ + 2079, + 2107 + ], + "loc": { + "start": { + "line": 103, + "column": 8 + }, + "end": { + "line": 103, + "column": 36 + } + } + } + ], + "range": [ + 2069, + 2115 + ], + "loc": { + "start": { + "line": 102, + "column": 66 + }, + "end": { + "line": 104, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2052, + 2115 + ], + "loc": { + "start": { + "line": 102, + "column": 49 + }, + "end": { + "line": 104, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 2116, + 2120 + ], + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 12 + } + } + }, + "range": [ + 2052, + 2120 + ], + "loc": { + "start": { + "line": 102, + "column": 49 + }, + "end": { + "line": 104, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 2121, + 2125 + ], + "loc": { + "start": { + "line": 104, + "column": 13 + }, + "end": { + "line": 104, + "column": 17 + } + } + } + ], + "range": [ + 2052, + 2126 + ], + "loc": { + "start": { + "line": 102, + "column": 49 + }, + "end": { + "line": 104, + "column": 18 + } + } + } + ], + "range": [ + 2009, + 2127 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 104, + "column": 19 + } + } + }, + "range": [ + 2009, + 2128 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 104, + "column": 20 + } + } + } + ], + "range": [ + 2001, + 2134 + ], + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 105, + "column": 5 + } + } + }, + "handler": { + "type": "CatchClause", + "param": { + "type": "Identifier", + "name": "e", + "range": [ + 2142, + 2143 + ], + "loc": { + "start": { + "line": 105, + "column": 13 + }, + "end": { + "line": 105, + "column": 14 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 2153, + 2161 + ], + "loc": { + "start": { + "line": 106, + "column": 6 + }, + "end": { + "line": 106, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "DriverException", + "range": [ + 2166, + 2181 + ], + "loc": { + "start": { + "line": 106, + "column": 19 + }, + "end": { + "line": 106, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "e", + "range": [ + 2182, + 2183 + ], + "loc": { + "start": { + "line": 106, + "column": 35 + }, + "end": { + "line": 106, + "column": 36 + } + } + } + ], + "range": [ + 2162, + 2184 + ], + "loc": { + "start": { + "line": 106, + "column": 15 + }, + "end": { + "line": 106, + "column": 37 + } + } + }, + { + "type": "Identifier", + "name": "undefined", + "range": [ + 2186, + 2195 + ], + "loc": { + "start": { + "line": 106, + "column": 39 + }, + "end": { + "line": 106, + "column": 48 + } + } + } + ], + "range": [ + 2153, + 2196 + ], + "loc": { + "start": { + "line": 106, + "column": 6 + }, + "end": { + "line": 106, + "column": 49 + } + } + }, + "range": [ + 2153, + 2197 + ], + "loc": { + "start": { + "line": 106, + "column": 6 + }, + "end": { + "line": 106, + "column": 50 + } + } + } + ], + "range": [ + 2145, + 2203 + ], + "loc": { + "start": { + "line": 105, + "column": 16 + }, + "end": { + "line": 107, + "column": 5 + } + } + }, + "range": [ + 2135, + 2203 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 107, + "column": 5 + } + } + }, + "finalizer": null, + "range": [ + 1997, + 2203 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 107, + "column": 5 + } + } + } + ], + "range": [ + 1941, + 2207 + ], + "loc": { + "start": { + "line": 97, + "column": 44 + }, + "end": { + "line": 108, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1902, + 2207 + ], + "loc": { + "start": { + "line": 97, + "column": 5 + }, + "end": { + "line": 108, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1899, + 2207 + ], + "loc": { + "start": { + "line": 97, + "column": 2 + }, + "end": { + "line": 108, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n ", + "range": [ + 1783, + 1896 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Number} timeout\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 2211, + 2342 + ], + "loc": { + "start": { + "line": 110, + "column": 2 + }, + "end": { + "line": 115, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "invalidate", + "range": [ + 2345, + 2355 + ], + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 116, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 2356, + 2359 + ], + "loc": { + "start": { + "line": 116, + "column": 13 + }, + "end": { + "line": 116, + "column": 16 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "timeout", + "range": [ + 2361, + 2368 + ], + "loc": { + "start": { + "line": 116, + "column": 18 + }, + "end": { + "line": 116, + "column": 25 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 2371, + 2372 + ], + "loc": { + "start": { + "line": 116, + "column": 28 + }, + "end": { + "line": 116, + "column": 29 + } + } + }, + "range": [ + 2361, + 2372 + ], + "loc": { + "start": { + "line": 116, + "column": 18 + }, + "end": { + "line": 116, + "column": 29 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 2374, + 2382 + ], + "loc": { + "start": { + "line": 116, + "column": 31 + }, + "end": { + "line": 116, + "column": 39 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 2385, + 2389 + ], + "loc": { + "start": { + "line": 116, + "column": 42 + }, + "end": { + "line": 116, + "column": 46 + } + } + }, + "range": [ + 2374, + 2389 + ], + "loc": { + "start": { + "line": 116, + "column": 31 + }, + "end": { + "line": 116, + "column": 46 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 2397, + 2405 + ], + "loc": { + "start": { + "line": 117, + "column": 4 + }, + "end": { + "line": 117, + "column": 12 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 2408, + 2416 + ], + "loc": { + "start": { + "line": 117, + "column": 15 + }, + "end": { + "line": 117, + "column": 23 + } + } + }, + "right": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [], + "range": [ + 2431, + 2440 + ], + "loc": { + "start": { + "line": 117, + "column": 38 + }, + "end": { + "line": 118, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2420, + 2440 + ], + "loc": { + "start": { + "line": 117, + "column": 27 + }, + "end": { + "line": 118, + "column": 7 + } + } + }, + "range": [ + 2408, + 2440 + ], + "loc": { + "start": { + "line": 117, + "column": 15 + }, + "end": { + "line": 118, + "column": 7 + } + } + }, + "range": [ + 2397, + 2440 + ], + "loc": { + "start": { + "line": 117, + "column": 4 + }, + "end": { + "line": 118, + "column": 7 + } + } + }, + "range": [ + 2397, + 2441 + ], + "loc": { + "start": { + "line": 117, + "column": 4 + }, + "end": { + "line": 118, + "column": 8 + } + } + }, + { + "type": "TryStatement", + "block": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2459, + 2463 + ], + "loc": { + "start": { + "line": 121, + "column": 6 + }, + "end": { + "line": 121, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "has", + "range": [ + 2464, + 2467 + ], + "loc": { + "start": { + "line": 121, + "column": 11 + }, + "end": { + "line": 121, + "column": 14 + } + } + }, + "range": [ + 2459, + 2467 + ], + "loc": { + "start": { + "line": 121, + "column": 6 + }, + "end": { + "line": 121, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 2468, + 2471 + ], + "loc": { + "start": { + "line": 121, + "column": 15 + }, + "end": { + "line": 121, + "column": 18 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "exception", + "range": [ + 2482, + 2491 + ], + "loc": { + "start": { + "line": 121, + "column": 29 + }, + "end": { + "line": 121, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "result", + "range": [ + 2493, + 2499 + ], + "loc": { + "start": { + "line": 121, + "column": 40 + }, + "end": { + "line": 121, + "column": 46 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "exception", + "range": [ + 2515, + 2524 + ], + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 122, + "column": 21 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "Identifier", + "name": "exception", + "range": [ + 2544, + 2553 + ], + "loc": { + "start": { + "line": 123, + "column": 16 + }, + "end": { + "line": 123, + "column": 25 + } + } + }, + "range": [ + 2538, + 2554 + ], + "loc": { + "start": { + "line": 123, + "column": 10 + }, + "end": { + "line": 123, + "column": 26 + } + } + } + ], + "range": [ + 2526, + 2564 + ], + "loc": { + "start": { + "line": 122, + "column": 23 + }, + "end": { + "line": 124, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 2511, + 2564 + ], + "loc": { + "start": { + "line": 122, + "column": 8 + }, + "end": { + "line": 124, + "column": 9 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "result", + "range": [ + 2579, + 2585 + ], + "loc": { + "start": { + "line": 126, + "column": 13 + }, + "end": { + "line": 126, + "column": 19 + } + } + }, + "prefix": true, + "range": [ + 2578, + 2585 + ], + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 19 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "MissingCacheException", + "range": [ + 2609, + 2630 + ], + "loc": { + "start": { + "line": 127, + "column": 20 + }, + "end": { + "line": 127, + "column": 41 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 2631, + 2634 + ], + "loc": { + "start": { + "line": 127, + "column": 42 + }, + "end": { + "line": 127, + "column": 45 + } + } + } + ], + "range": [ + 2605, + 2635 + ], + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 127, + "column": 46 + } + } + }, + "range": [ + 2599, + 2636 + ], + "loc": { + "start": { + "line": 127, + "column": 10 + }, + "end": { + "line": 127, + "column": 47 + } + } + } + ], + "range": [ + 2587, + 2646 + ], + "loc": { + "start": { + "line": 126, + "column": 21 + }, + "end": { + "line": 128, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 2574, + 2646 + ], + "loc": { + "start": { + "line": 126, + "column": 8 + }, + "end": { + "line": 128, + "column": 9 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2656, + 2660 + ], + "loc": { + "start": { + "line": 130, + "column": 8 + }, + "end": { + "line": 130, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_invalidate", + "range": [ + 2661, + 2672 + ], + "loc": { + "start": { + "line": 130, + "column": 13 + }, + "end": { + "line": 130, + "column": 24 + } + } + }, + "range": [ + 2656, + 2672 + ], + "loc": { + "start": { + "line": 130, + "column": 8 + }, + "end": { + "line": 130, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2673, + 2677 + ], + "loc": { + "start": { + "line": 130, + "column": 25 + }, + "end": { + "line": 130, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buildKey", + "range": [ + 2678, + 2687 + ], + "loc": { + "start": { + "line": 130, + "column": 30 + }, + "end": { + "line": 130, + "column": 39 + } + } + }, + "range": [ + 2673, + 2687 + ], + "loc": { + "start": { + "line": 130, + "column": 25 + }, + "end": { + "line": 130, + "column": 39 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 2688, + 2691 + ], + "loc": { + "start": { + "line": 130, + "column": 40 + }, + "end": { + "line": 130, + "column": 43 + } + } + } + ], + "range": [ + 2673, + 2692 + ], + "loc": { + "start": { + "line": 130, + "column": 25 + }, + "end": { + "line": 130, + "column": 44 + } + } + }, + { + "type": "Identifier", + "name": "timeout", + "range": [ + 2694, + 2701 + ], + "loc": { + "start": { + "line": 130, + "column": 46 + }, + "end": { + "line": 130, + "column": 53 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "result", + "range": [ + 2712, + 2718 + ], + "loc": { + "start": { + "line": 130, + "column": 64 + }, + "end": { + "line": 130, + "column": 70 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 2732, + 2740 + ], + "loc": { + "start": { + "line": 131, + "column": 10 + }, + "end": { + "line": 131, + "column": 18 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "undefined", + "range": [ + 2741, + 2750 + ], + "loc": { + "start": { + "line": 131, + "column": 19 + }, + "end": { + "line": 131, + "column": 28 + } + } + }, + { + "type": "Identifier", + "name": "result", + "range": [ + 2752, + 2758 + ], + "loc": { + "start": { + "line": 131, + "column": 30 + }, + "end": { + "line": 131, + "column": 36 + } + } + } + ], + "range": [ + 2732, + 2759 + ], + "loc": { + "start": { + "line": 131, + "column": 10 + }, + "end": { + "line": 131, + "column": 37 + } + } + }, + "range": [ + 2732, + 2760 + ], + "loc": { + "start": { + "line": 131, + "column": 10 + }, + "end": { + "line": 131, + "column": 38 + } + } + } + ], + "range": [ + 2720, + 2770 + ], + "loc": { + "start": { + "line": 130, + "column": 72 + }, + "end": { + "line": 132, + "column": 9 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2703, + 2770 + ], + "loc": { + "start": { + "line": 130, + "column": 55 + }, + "end": { + "line": 132, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 2771, + 2775 + ], + "loc": { + "start": { + "line": 132, + "column": 10 + }, + "end": { + "line": 132, + "column": 14 + } + } + }, + "range": [ + 2703, + 2775 + ], + "loc": { + "start": { + "line": 130, + "column": 55 + }, + "end": { + "line": 132, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 2776, + 2780 + ], + "loc": { + "start": { + "line": 132, + "column": 15 + }, + "end": { + "line": 132, + "column": 19 + } + } + } + ], + "range": [ + 2703, + 2781 + ], + "loc": { + "start": { + "line": 130, + "column": 55 + }, + "end": { + "line": 132, + "column": 20 + } + } + } + ], + "range": [ + 2656, + 2782 + ], + "loc": { + "start": { + "line": 130, + "column": 8 + }, + "end": { + "line": 132, + "column": 21 + } + } + }, + "range": [ + 2656, + 2783 + ], + "loc": { + "start": { + "line": 130, + "column": 8 + }, + "end": { + "line": 132, + "column": 22 + } + } + } + ], + "range": [ + 2501, + 2791 + ], + "loc": { + "start": { + "line": 121, + "column": 48 + }, + "end": { + "line": 133, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2473, + 2791 + ], + "loc": { + "start": { + "line": 121, + "column": 20 + }, + "end": { + "line": 133, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 2792, + 2796 + ], + "loc": { + "start": { + "line": 133, + "column": 8 + }, + "end": { + "line": 133, + "column": 12 + } + } + }, + "range": [ + 2473, + 2796 + ], + "loc": { + "start": { + "line": 121, + "column": 20 + }, + "end": { + "line": 133, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 2797, + 2801 + ], + "loc": { + "start": { + "line": 133, + "column": 13 + }, + "end": { + "line": 133, + "column": 17 + } + } + } + ], + "range": [ + 2473, + 2802 + ], + "loc": { + "start": { + "line": 121, + "column": 20 + }, + "end": { + "line": 133, + "column": 18 + } + } + } + ], + "range": [ + 2459, + 2803 + ], + "loc": { + "start": { + "line": 121, + "column": 6 + }, + "end": { + "line": 133, + "column": 19 + } + } + }, + "range": [ + 2459, + 2804 + ], + "loc": { + "start": { + "line": 121, + "column": 6 + }, + "end": { + "line": 133, + "column": 20 + } + } + } + ], + "range": [ + 2451, + 2810 + ], + "loc": { + "start": { + "line": 120, + "column": 8 + }, + "end": { + "line": 134, + "column": 5 + } + } + }, + "handler": { + "type": "CatchClause", + "param": { + "type": "Identifier", + "name": "e", + "range": [ + 2818, + 2819 + ], + "loc": { + "start": { + "line": 134, + "column": 13 + }, + "end": { + "line": 134, + "column": 14 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 2829, + 2837 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "DriverException", + "range": [ + 2842, + 2857 + ], + "loc": { + "start": { + "line": 135, + "column": 19 + }, + "end": { + "line": 135, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "e", + "range": [ + 2858, + 2859 + ], + "loc": { + "start": { + "line": 135, + "column": 35 + }, + "end": { + "line": 135, + "column": 36 + } + } + } + ], + "range": [ + 2838, + 2860 + ], + "loc": { + "start": { + "line": 135, + "column": 15 + }, + "end": { + "line": 135, + "column": 37 + } + } + }, + { + "type": "Identifier", + "name": "undefined", + "range": [ + 2862, + 2871 + ], + "loc": { + "start": { + "line": 135, + "column": 39 + }, + "end": { + "line": 135, + "column": 48 + } + } + } + ], + "range": [ + 2829, + 2872 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 49 + } + } + }, + "range": [ + 2829, + 2873 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 50 + } + } + } + ], + "range": [ + 2821, + 2879 + ], + "loc": { + "start": { + "line": 134, + "column": 16 + }, + "end": { + "line": 136, + "column": 5 + } + } + }, + "range": [ + 2811, + 2879 + ], + "loc": { + "start": { + "line": 134, + "column": 6 + }, + "end": { + "line": 136, + "column": 5 + } + } + }, + "finalizer": null, + "range": [ + 2447, + 2879 + ], + "loc": { + "start": { + "line": 120, + "column": 4 + }, + "end": { + "line": 136, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 2892, + 2896 + ], + "loc": { + "start": { + "line": 138, + "column": 11 + }, + "end": { + "line": 138, + "column": 15 + } + } + }, + "range": [ + 2885, + 2897 + ], + "loc": { + "start": { + "line": 138, + "column": 4 + }, + "end": { + "line": 138, + "column": 16 + } + } + } + ], + "range": [ + 2391, + 2901 + ], + "loc": { + "start": { + "line": 116, + "column": 48 + }, + "end": { + "line": 139, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2355, + 2901 + ], + "loc": { + "start": { + "line": 116, + "column": 12 + }, + "end": { + "line": 139, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2345, + 2901 + ], + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 139, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Number} timeout\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 2211, + 2342 + ], + "loc": { + "start": { + "line": 110, + "column": 2 + }, + "end": { + "line": 115, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 2905, + 2982 + ], + "loc": { + "start": { + "line": 141, + "column": 2 + }, + "end": { + "line": 144, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "flush", + "range": [ + 2985, + 2990 + ], + "loc": { + "start": { + "line": 145, + "column": 2 + }, + "end": { + "line": 145, + "column": 7 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 2991, + 2999 + ], + "loc": { + "start": { + "line": 145, + "column": 8 + }, + "end": { + "line": 145, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 3002, + 3006 + ], + "loc": { + "start": { + "line": 145, + "column": 19 + }, + "end": { + "line": 145, + "column": 23 + } + } + }, + "range": [ + 2991, + 3006 + ], + "loc": { + "start": { + "line": 145, + "column": 8 + }, + "end": { + "line": 145, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 3014, + 3022 + ], + "loc": { + "start": { + "line": 146, + "column": 4 + }, + "end": { + "line": 146, + "column": 12 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 3025, + 3033 + ], + "loc": { + "start": { + "line": 146, + "column": 15 + }, + "end": { + "line": 146, + "column": 23 + } + } + }, + "right": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [], + "range": [ + 3048, + 3057 + ], + "loc": { + "start": { + "line": 146, + "column": 38 + }, + "end": { + "line": 147, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3037, + 3057 + ], + "loc": { + "start": { + "line": 146, + "column": 27 + }, + "end": { + "line": 147, + "column": 7 + } + } + }, + "range": [ + 3025, + 3057 + ], + "loc": { + "start": { + "line": 146, + "column": 15 + }, + "end": { + "line": 147, + "column": 7 + } + } + }, + "range": [ + 3014, + 3057 + ], + "loc": { + "start": { + "line": 146, + "column": 4 + }, + "end": { + "line": 147, + "column": 7 + } + } + }, + "range": [ + 3014, + 3058 + ], + "loc": { + "start": { + "line": 146, + "column": 4 + }, + "end": { + "line": 147, + "column": 8 + } + } + }, + { + "type": "TryStatement", + "block": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3087, + 3091 + ], + "loc": { + "start": { + "line": 150, + "column": 17 + }, + "end": { + "line": 150, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "_flush", + "range": [ + 3092, + 3098 + ], + "loc": { + "start": { + "line": 150, + "column": 22 + }, + "end": { + "line": 150, + "column": 28 + } + } + }, + "range": [ + 3087, + 3098 + ], + "loc": { + "start": { + "line": 150, + "column": 17 + }, + "end": { + "line": 150, + "column": 28 + } + } + }, + "prefix": true, + "range": [ + 3080, + 3098 + ], + "loc": { + "start": { + "line": 150, + "column": 10 + }, + "end": { + "line": 150, + "column": 28 + } + } + }, + "right": { + "type": "Literal", + "value": "undefined", + "raw": "'undefined'", + "range": [ + 3103, + 3114 + ], + "loc": { + "start": { + "line": 150, + "column": 33 + }, + "end": { + "line": 150, + "column": 44 + } + } + }, + "range": [ + 3080, + 3114 + ], + "loc": { + "start": { + "line": 150, + "column": 10 + }, + "end": { + "line": 150, + "column": 44 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "NoFlushException", + "range": [ + 3136, + 3152 + ], + "loc": { + "start": { + "line": 151, + "column": 18 + }, + "end": { + "line": 151, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 3132, + 3154 + ], + "loc": { + "start": { + "line": 151, + "column": 14 + }, + "end": { + "line": 151, + "column": 36 + } + } + }, + "range": [ + 3126, + 3155 + ], + "loc": { + "start": { + "line": 151, + "column": 8 + }, + "end": { + "line": 151, + "column": 37 + } + } + } + ], + "range": [ + 3116, + 3163 + ], + "loc": { + "start": { + "line": 150, + "column": 46 + }, + "end": { + "line": 152, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 3076, + 3163 + ], + "loc": { + "start": { + "line": 150, + "column": 6 + }, + "end": { + "line": 152, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3171, + 3175 + ], + "loc": { + "start": { + "line": 154, + "column": 6 + }, + "end": { + "line": 154, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_flush", + "range": [ + 3176, + 3182 + ], + "loc": { + "start": { + "line": 154, + "column": 11 + }, + "end": { + "line": 154, + "column": 17 + } + } + }, + "range": [ + 3171, + 3182 + ], + "loc": { + "start": { + "line": 154, + "column": 6 + }, + "end": { + "line": 154, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "result", + "range": [ + 3192, + 3198 + ], + "loc": { + "start": { + "line": 154, + "column": 27 + }, + "end": { + "line": 154, + "column": 33 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 3210, + 3218 + ], + "loc": { + "start": { + "line": 155, + "column": 8 + }, + "end": { + "line": 155, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "undefined", + "range": [ + 3219, + 3228 + ], + "loc": { + "start": { + "line": 155, + "column": 17 + }, + "end": { + "line": 155, + "column": 26 + } + } + }, + { + "type": "Identifier", + "name": "result", + "range": [ + 3230, + 3236 + ], + "loc": { + "start": { + "line": 155, + "column": 28 + }, + "end": { + "line": 155, + "column": 34 + } + } + } + ], + "range": [ + 3210, + 3237 + ], + "loc": { + "start": { + "line": 155, + "column": 8 + }, + "end": { + "line": 155, + "column": 35 + } + } + }, + "range": [ + 3210, + 3238 + ], + "loc": { + "start": { + "line": 155, + "column": 8 + }, + "end": { + "line": 155, + "column": 36 + } + } + } + ], + "range": [ + 3200, + 3246 + ], + "loc": { + "start": { + "line": 154, + "column": 35 + }, + "end": { + "line": 156, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3183, + 3246 + ], + "loc": { + "start": { + "line": 154, + "column": 18 + }, + "end": { + "line": 156, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 3247, + 3251 + ], + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 12 + } + } + }, + "range": [ + 3183, + 3251 + ], + "loc": { + "start": { + "line": 154, + "column": 18 + }, + "end": { + "line": 156, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 3252, + 3256 + ], + "loc": { + "start": { + "line": 156, + "column": 13 + }, + "end": { + "line": 156, + "column": 17 + } + } + } + ], + "range": [ + 3183, + 3257 + ], + "loc": { + "start": { + "line": 154, + "column": 18 + }, + "end": { + "line": 156, + "column": 18 + } + } + } + ], + "range": [ + 3171, + 3258 + ], + "loc": { + "start": { + "line": 154, + "column": 6 + }, + "end": { + "line": 156, + "column": 19 + } + } + }, + "range": [ + 3171, + 3259 + ], + "loc": { + "start": { + "line": 154, + "column": 6 + }, + "end": { + "line": 156, + "column": 20 + } + } + } + ], + "range": [ + 3068, + 3265 + ], + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 157, + "column": 5 + } + } + }, + "handler": { + "type": "CatchClause", + "param": { + "type": "Identifier", + "name": "e", + "range": [ + 3273, + 3274 + ], + "loc": { + "start": { + "line": 157, + "column": 13 + }, + "end": { + "line": 157, + "column": 14 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 3284, + 3292 + ], + "loc": { + "start": { + "line": 158, + "column": 6 + }, + "end": { + "line": 158, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "DriverException", + "range": [ + 3297, + 3312 + ], + "loc": { + "start": { + "line": 158, + "column": 19 + }, + "end": { + "line": 158, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "e", + "range": [ + 3313, + 3314 + ], + "loc": { + "start": { + "line": 158, + "column": 35 + }, + "end": { + "line": 158, + "column": 36 + } + } + } + ], + "range": [ + 3293, + 3315 + ], + "loc": { + "start": { + "line": 158, + "column": 15 + }, + "end": { + "line": 158, + "column": 37 + } + } + }, + { + "type": "Identifier", + "name": "undefined", + "range": [ + 3317, + 3326 + ], + "loc": { + "start": { + "line": 158, + "column": 39 + }, + "end": { + "line": 158, + "column": 48 + } + } + } + ], + "range": [ + 3284, + 3327 + ], + "loc": { + "start": { + "line": 158, + "column": 6 + }, + "end": { + "line": 158, + "column": 49 + } + } + }, + "range": [ + 3284, + 3328 + ], + "loc": { + "start": { + "line": 158, + "column": 6 + }, + "end": { + "line": 158, + "column": 50 + } + } + } + ], + "range": [ + 3276, + 3334 + ], + "loc": { + "start": { + "line": 157, + "column": 16 + }, + "end": { + "line": 159, + "column": 5 + } + } + }, + "range": [ + 3266, + 3334 + ], + "loc": { + "start": { + "line": 157, + "column": 6 + }, + "end": { + "line": 159, + "column": 5 + } + } + }, + "finalizer": null, + "range": [ + 3064, + 3334 + ], + "loc": { + "start": { + "line": 149, + "column": 4 + }, + "end": { + "line": 159, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 3347, + 3351 + ], + "loc": { + "start": { + "line": 161, + "column": 11 + }, + "end": { + "line": 161, + "column": 15 + } + } + }, + "range": [ + 3340, + 3352 + ], + "loc": { + "start": { + "line": 161, + "column": 4 + }, + "end": { + "line": 161, + "column": 16 + } + } + } + ], + "range": [ + 3008, + 3356 + ], + "loc": { + "start": { + "line": 145, + "column": 25 + }, + "end": { + "line": 162, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2990, + 3356 + ], + "loc": { + "start": { + "line": 145, + "column": 7 + }, + "end": { + "line": 162, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2985, + 3356 + ], + "loc": { + "start": { + "line": 145, + "column": 2 + }, + "end": { + "line": 162, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 2905, + 2982 + ], + "loc": { + "start": { + "line": 141, + "column": 2 + }, + "end": { + "line": 144, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3360, + 3392 + ], + "loc": { + "start": { + "line": 164, + "column": 2 + }, + "end": { + "line": 166, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "namespace", + "range": [ + 3399, + 3408 + ], + "loc": { + "start": { + "line": 167, + "column": 6 + }, + "end": { + "line": 167, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3424, + 3428 + ], + "loc": { + "start": { + "line": 168, + "column": 11 + }, + "end": { + "line": 168, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_namespace", + "range": [ + 3429, + 3439 + ], + "loc": { + "start": { + "line": 168, + "column": 16 + }, + "end": { + "line": 168, + "column": 26 + } + } + }, + "range": [ + 3424, + 3439 + ], + "loc": { + "start": { + "line": 168, + "column": 11 + }, + "end": { + "line": 168, + "column": 26 + } + } + }, + "range": [ + 3417, + 3440 + ], + "loc": { + "start": { + "line": 168, + "column": 4 + }, + "end": { + "line": 168, + "column": 27 + } + } + } + ], + "range": [ + 3411, + 3444 + ], + "loc": { + "start": { + "line": 167, + "column": 18 + }, + "end": { + "line": 169, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3408, + 3444 + ], + "loc": { + "start": { + "line": 167, + "column": 15 + }, + "end": { + "line": 169, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3395, + 3444 + ], + "loc": { + "start": { + "line": 167, + "column": 2 + }, + "end": { + "line": 169, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3360, + 3392 + ], + "loc": { + "start": { + "line": 164, + "column": 2 + }, + "end": { + "line": 166, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} ns\n ", + "range": [ + 3448, + 3481 + ], + "loc": { + "start": { + "line": 171, + "column": 2 + }, + "end": { + "line": 173, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "namespace", + "range": [ + 3488, + 3497 + ], + "loc": { + "start": { + "line": 174, + "column": 6 + }, + "end": { + "line": 174, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "ns", + "range": [ + 3498, + 3500 + ], + "loc": { + "start": { + "line": 174, + "column": 16 + }, + "end": { + "line": 174, + "column": 18 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3508, + 3512 + ], + "loc": { + "start": { + "line": 175, + "column": 4 + }, + "end": { + "line": 175, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_namespace", + "range": [ + 3513, + 3523 + ], + "loc": { + "start": { + "line": 175, + "column": 9 + }, + "end": { + "line": 175, + "column": 19 + } + } + }, + "range": [ + 3508, + 3523 + ], + "loc": { + "start": { + "line": 175, + "column": 4 + }, + "end": { + "line": 175, + "column": 19 + } + } + }, + "right": { + "type": "Identifier", + "name": "ns", + "range": [ + 3526, + 3528 + ], + "loc": { + "start": { + "line": 175, + "column": 22 + }, + "end": { + "line": 175, + "column": 24 + } + } + }, + "range": [ + 3508, + 3528 + ], + "loc": { + "start": { + "line": 175, + "column": 4 + }, + "end": { + "line": 175, + "column": 24 + } + } + }, + "range": [ + 3508, + 3529 + ], + "loc": { + "start": { + "line": 175, + "column": 4 + }, + "end": { + "line": 175, + "column": 25 + } + } + } + ], + "range": [ + 3502, + 3533 + ], + "loc": { + "start": { + "line": 174, + "column": 20 + }, + "end": { + "line": 176, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3497, + 3533 + ], + "loc": { + "start": { + "line": 174, + "column": 15 + }, + "end": { + "line": 176, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 3484, + 3533 + ], + "loc": { + "start": { + "line": 174, + "column": 2 + }, + "end": { + "line": 176, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} ns\n ", + "range": [ + 3448, + 3481 + ], + "loc": { + "start": { + "line": 171, + "column": 2 + }, + "end": { + "line": 173, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Boolean} value\n ", + "range": [ + 3537, + 3574 + ], + "loc": { + "start": { + "line": 178, + "column": 2 + }, + "end": { + "line": 180, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "silent", + "range": [ + 3581, + 3587 + ], + "loc": { + "start": { + "line": 181, + "column": 6 + }, + "end": { + "line": 181, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "value", + "range": [ + 3588, + 3593 + ], + "loc": { + "start": { + "line": 181, + "column": 13 + }, + "end": { + "line": 181, + "column": 18 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3601, + 3605 + ], + "loc": { + "start": { + "line": 182, + "column": 4 + }, + "end": { + "line": 182, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_silent", + "range": [ + 3606, + 3613 + ], + "loc": { + "start": { + "line": 182, + "column": 9 + }, + "end": { + "line": 182, + "column": 16 + } + } + }, + "range": [ + 3601, + 3613 + ], + "loc": { + "start": { + "line": 182, + "column": 4 + }, + "end": { + "line": 182, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "value", + "range": [ + 3616, + 3621 + ], + "loc": { + "start": { + "line": 182, + "column": 19 + }, + "end": { + "line": 182, + "column": 24 + } + } + }, + "range": [ + 3601, + 3621 + ], + "loc": { + "start": { + "line": 182, + "column": 4 + }, + "end": { + "line": 182, + "column": 24 + } + } + }, + "range": [ + 3601, + 3622 + ], + "loc": { + "start": { + "line": 182, + "column": 4 + }, + "end": { + "line": 182, + "column": 25 + } + } + } + ], + "range": [ + 3595, + 3626 + ], + "loc": { + "start": { + "line": 181, + "column": 20 + }, + "end": { + "line": 183, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3587, + 3626 + ], + "loc": { + "start": { + "line": 181, + "column": 12 + }, + "end": { + "line": 183, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 3577, + 3626 + ], + "loc": { + "start": { + "line": 181, + "column": 2 + }, + "end": { + "line": 183, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Boolean} value\n ", + "range": [ + 3537, + 3574 + ], + "loc": { + "start": { + "line": 178, + "column": 2 + }, + "end": { + "line": 180, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 3630, + 3663 + ], + "loc": { + "start": { + "line": 185, + "column": 2 + }, + "end": { + "line": 187, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "silent", + "range": [ + 3670, + 3676 + ], + "loc": { + "start": { + "line": 188, + "column": 6 + }, + "end": { + "line": 188, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3692, + 3696 + ], + "loc": { + "start": { + "line": 189, + "column": 11 + }, + "end": { + "line": 189, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_silent", + "range": [ + 3697, + 3704 + ], + "loc": { + "start": { + "line": 189, + "column": 16 + }, + "end": { + "line": 189, + "column": 23 + } + } + }, + "range": [ + 3692, + 3704 + ], + "loc": { + "start": { + "line": 189, + "column": 11 + }, + "end": { + "line": 189, + "column": 23 + } + } + }, + "range": [ + 3685, + 3705 + ], + "loc": { + "start": { + "line": 189, + "column": 4 + }, + "end": { + "line": 189, + "column": 24 + } + } + } + ], + "range": [ + 3679, + 3709 + ], + "loc": { + "start": { + "line": 188, + "column": 15 + }, + "end": { + "line": 190, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3676, + 3709 + ], + "loc": { + "start": { + "line": 188, + "column": 12 + }, + "end": { + "line": 190, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3666, + 3709 + ], + "loc": { + "start": { + "line": 188, + "column": 2 + }, + "end": { + "line": 190, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 3630, + 3663 + ], + "loc": { + "start": { + "line": 185, + "column": 2 + }, + "end": { + "line": 187, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @returns {String}\n * @private\n ", + "range": [ + 3713, + 3784 + ], + "loc": { + "start": { + "line": 192, + "column": 2 + }, + "end": { + "line": 196, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_buildKey", + "range": [ + 3787, + 3796 + ], + "loc": { + "start": { + "line": 197, + "column": 2 + }, + "end": { + "line": 197, + "column": 11 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 3797, + 3800 + ], + "loc": { + "start": { + "line": 197, + "column": 12 + }, + "end": { + "line": 197, + "column": 15 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": false, + "range": [ + 3815, + 3818 + ], + "loc": { + "start": { + "line": 198, + "column": 11 + }, + "end": { + "line": 198, + "column": 14 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ":", + "cooked": ":" + }, + "tail": false, + "range": [ + 3831, + 3835 + ], + "loc": { + "start": { + "line": 198, + "column": 27 + }, + "end": { + "line": 198, + "column": 31 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "#", + "cooked": "#" + }, + "tail": false, + "range": [ + 3850, + 3854 + ], + "loc": { + "start": { + "line": 198, + "column": 46 + }, + "end": { + "line": 198, + "column": 50 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 3857, + 3859 + ], + "loc": { + "start": { + "line": 198, + "column": 53 + }, + "end": { + "line": 198, + "column": 55 + } + } + } + ], + "expressions": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3818, + 3822 + ], + "loc": { + "start": { + "line": 198, + "column": 14 + }, + "end": { + "line": 198, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buildId", + "range": [ + 3823, + 3831 + ], + "loc": { + "start": { + "line": 198, + "column": 19 + }, + "end": { + "line": 198, + "column": 27 + } + } + }, + "range": [ + 3818, + 3831 + ], + "loc": { + "start": { + "line": 198, + "column": 14 + }, + "end": { + "line": 198, + "column": 27 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3835, + 3839 + ], + "loc": { + "start": { + "line": 198, + "column": 31 + }, + "end": { + "line": 198, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "_namespace", + "range": [ + 3840, + 3850 + ], + "loc": { + "start": { + "line": 198, + "column": 36 + }, + "end": { + "line": 198, + "column": 46 + } + } + }, + "range": [ + 3835, + 3850 + ], + "loc": { + "start": { + "line": 198, + "column": 31 + }, + "end": { + "line": 198, + "column": 46 + } + } + }, + { + "type": "Identifier", + "name": "key", + "range": [ + 3854, + 3857 + ], + "loc": { + "start": { + "line": 198, + "column": 50 + }, + "end": { + "line": 198, + "column": 53 + } + } + } + ], + "range": [ + 3815, + 3859 + ], + "loc": { + "start": { + "line": 198, + "column": 11 + }, + "end": { + "line": 198, + "column": 55 + } + } + }, + "range": [ + 3808, + 3860 + ], + "loc": { + "start": { + "line": 198, + "column": 4 + }, + "end": { + "line": 198, + "column": 56 + } + } + } + ], + "range": [ + 3802, + 3864 + ], + "loc": { + "start": { + "line": 197, + "column": 17 + }, + "end": { + "line": 199, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3796, + 3864 + ], + "loc": { + "start": { + "line": 197, + "column": 11 + }, + "end": { + "line": 199, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 3787, + 3864 + ], + "loc": { + "start": { + "line": 197, + "column": 2 + }, + "end": { + "line": 199, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @returns {String}\n * @private\n ", + "range": [ + 3713, + 3784 + ], + "loc": { + "start": { + "line": 192, + "column": 2 + }, + "end": { + "line": 196, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 386, + 3866 + ], + "loc": { + "start": { + "line": 15, + "column": 55 + }, + "end": { + "line": 200, + "column": 1 + } + } + }, + "range": [ + 338, + 3866 + ], + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 200, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Abstract driver implementation\n ", + "range": [ + 289, + 330 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 331, + 3866 + ], + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 200, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Abstract driver implementation\n ", + "range": [ + 289, + 330 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 3866 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 200, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Abstract driver implementation\n ", + "range": [ + 289, + 330 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 561, + 593 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} id\n ", + "range": [ + 645, + 678 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 730, + 832 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 45, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 1137, + 1239 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n ", + "range": [ + 1783, + 1896 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Number} timeout\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 2211, + 2342 + ], + "loc": { + "start": { + "line": 110, + "column": 2 + }, + "end": { + "line": 115, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 2905, + 2982 + ], + "loc": { + "start": { + "line": 141, + "column": 2 + }, + "end": { + "line": 144, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3360, + 3392 + ], + "loc": { + "start": { + "line": 164, + "column": 2 + }, + "end": { + "line": 166, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} ns\n ", + "range": [ + 3448, + 3481 + ], + "loc": { + "start": { + "line": 171, + "column": 2 + }, + "end": { + "line": 173, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Boolean} value\n ", + "range": [ + 3537, + 3574 + ], + "loc": { + "start": { + "line": 178, + "column": 2 + }, + "end": { + "line": 180, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 3630, + 3663 + ], + "loc": { + "start": { + "line": 185, + "column": 2 + }, + "end": { + "line": 187, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @returns {String}\n * @private\n ", + "range": [ + 3713, + 3784 + ], + "loc": { + "start": { + "line": 192, + "column": 2 + }, + "end": { + "line": 196, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-cache/ast/source/Driver/Exception/DriverException.js.json b/docs-api/deep-cache/ast/source/Driver/Exception/DriverException.js.json new file mode 100644 index 00000000..2e5a2957 --- /dev/null +++ b/docs-api/deep-cache/ast/source/Driver/Exception/DriverException.js.json @@ -0,0 +1,1001 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 101, + 126 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "DriverException", + "range": [ + 140, + 155 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 28 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 164, + 173 + ], + "loc": { + "start": { + "line": 12, + "column": 37 + }, + "end": { + "line": 12, + "column": 46 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 228, + 239 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "originalException", + "range": [ + 240, + 257 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 31 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 265, + 270 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "originalException", + "range": [ + 271, + 288 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 27 + } + } + } + ], + "range": [ + 265, + 289 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 28 + } + } + }, + "range": [ + 265, + 290 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 29 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 296, + 300 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_originalException", + "range": [ + 301, + 319 + ], + "loc": { + "start": { + "line": 19, + "column": 9 + }, + "end": { + "line": 19, + "column": 27 + } + } + }, + "range": [ + 296, + 319 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 27 + } + } + }, + "right": { + "type": "ConditionalExpression", + "test": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "Identifier", + "name": "originalException", + "range": [ + 322, + 339 + ], + "loc": { + "start": { + "line": 19, + "column": 30 + }, + "end": { + "line": 19, + "column": 47 + } + } + }, + "right": { + "type": "Identifier", + "name": "Error", + "range": [ + 351, + 356 + ], + "loc": { + "start": { + "line": 19, + "column": 59 + }, + "end": { + "line": 19, + "column": 64 + } + } + }, + "range": [ + 322, + 356 + ], + "loc": { + "start": { + "line": 19, + "column": 30 + }, + "end": { + "line": 19, + "column": 64 + } + } + }, + "consequent": { + "type": "Identifier", + "name": "originalException", + "range": [ + 359, + 376 + ], + "loc": { + "start": { + "line": 19, + "column": 67 + }, + "end": { + "line": 19, + "column": 84 + } + } + }, + "alternate": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Error", + "range": [ + 383, + 388 + ], + "loc": { + "start": { + "line": 19, + "column": 91 + }, + "end": { + "line": 19, + "column": 96 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "originalException", + "range": [ + 389, + 406 + ], + "loc": { + "start": { + "line": 19, + "column": 97 + }, + "end": { + "line": 19, + "column": 114 + } + } + } + ], + "range": [ + 379, + 407 + ], + "loc": { + "start": { + "line": 19, + "column": 87 + }, + "end": { + "line": 19, + "column": 115 + } + } + }, + "range": [ + 322, + 407 + ], + "loc": { + "start": { + "line": 19, + "column": 30 + }, + "end": { + "line": 19, + "column": 115 + } + } + }, + "range": [ + 296, + 407 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 115 + } + } + }, + "range": [ + 296, + 408 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 116 + } + } + } + ], + "range": [ + 259, + 412 + ], + "loc": { + "start": { + "line": 16, + "column": 33 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 239, + 412 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 228, + 412 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Error} originalException\n ", + "range": [ + 178, + 225 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Error}\n ", + "range": [ + 416, + 447 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 24, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "originalException", + "range": [ + 454, + 471 + ], + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 23 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 487, + 491 + ], + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_originalException", + "range": [ + 492, + 510 + ], + "loc": { + "start": { + "line": 26, + "column": 16 + }, + "end": { + "line": 26, + "column": 34 + } + } + }, + "range": [ + 487, + 510 + ], + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 34 + } + } + }, + "range": [ + 480, + 511 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 35 + } + } + } + ], + "range": [ + 474, + 515 + ], + "loc": { + "start": { + "line": 25, + "column": 26 + }, + "end": { + "line": 27, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 471, + 515 + ], + "loc": { + "start": { + "line": 25, + "column": 23 + }, + "end": { + "line": 27, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 450, + 515 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 27, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Error}\n ", + "range": [ + 416, + 447 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 24, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 174, + 517 + ], + "loc": { + "start": { + "line": 12, + "column": 47 + }, + "end": { + "line": 28, + "column": 1 + } + } + }, + "range": [ + 134, + 517 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 101, + 126 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 127, + 517 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 101, + 126 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 517 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 101, + 126 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Error} originalException\n ", + "range": [ + 178, + 225 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Error}\n ", + "range": [ + 416, + 447 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 24, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-cache/ast/source/Driver/Exception/Exception.js.json b/docs-api/deep-cache/ast/source/Driver/Exception/Exception.js.json new file mode 100644 index 00000000..55abf4eb --- /dev/null +++ b/docs-api/deep-cache/ast/source/Driver/Exception/Exception.js.json @@ -0,0 +1,597 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "BaseException", + "range": [ + 82, + 95 + ], + "loc": { + "start": { + "line": 7, + "column": 21 + }, + "end": { + "line": 7, + "column": 34 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 95 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 34 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../Exception/Exception", + "raw": "'../../Exception/Exception'", + "range": [ + 102, + 129 + ], + "loc": { + "start": { + "line": 7, + "column": 41 + }, + "end": { + "line": 7, + "column": 68 + } + } + }, + "range": [ + 61, + 130 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 69 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 132, + 157 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 171, + 180 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "BaseException", + "range": [ + 189, + 202 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 44 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 244, + 255 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 259, + 263 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 256, + 263 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 271, + 276 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 280, + 284 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 277, + 284 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 271, + 285 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 271, + 286 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 265, + 290 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 255, + 290 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 244, + 290 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 207, + 241 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 203, + 292 + ], + "loc": { + "start": { + "line": 12, + "column": 45 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 165, + 292 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 132, + 157 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 158, + 292 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 132, + 157 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 292 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 132, + 157 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 207, + 241 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-cache/ast/source/Driver/Exception/MissingCacheException.js.json b/docs-api/deep-cache/ast/source/Driver/Exception/MissingCacheException.js.json new file mode 100644 index 00000000..bf76dcaf --- /dev/null +++ b/docs-api/deep-cache/ast/source/Driver/Exception/MissingCacheException.js.json @@ -0,0 +1,628 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing an item from cache\n ", + "range": [ + 101, + 150 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "MissingCacheException", + "range": [ + 164, + 185 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 34 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 194, + 203 + ], + "loc": { + "start": { + "line": 12, + "column": 43 + }, + "end": { + "line": 12, + "column": 52 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 250, + 261 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "cacheKey", + "range": [ + 262, + 270 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 22 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 278, + 283 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Missing key ", + "cooked": "Missing key " + }, + "tail": false, + "range": [ + 284, + 299 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 25 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " from cache", + "cooked": " from cache" + }, + "tail": true, + "range": [ + 307, + 320 + ], + "loc": { + "start": { + "line": 17, + "column": 33 + }, + "end": { + "line": 17, + "column": 46 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "cacheKey", + "range": [ + 299, + 307 + ], + "loc": { + "start": { + "line": 17, + "column": 25 + }, + "end": { + "line": 17, + "column": 33 + } + } + } + ], + "range": [ + 284, + 320 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 46 + } + } + } + ], + "range": [ + 278, + 321 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 47 + } + } + }, + "range": [ + 278, + 322 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 48 + } + } + } + ], + "range": [ + 272, + 326 + ], + "loc": { + "start": { + "line": 16, + "column": 24 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 261, + 326 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 250, + 326 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} cacheKey\n ", + "range": [ + 208, + 247 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 204, + 328 + ], + "loc": { + "start": { + "line": 12, + "column": 53 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 158, + 328 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing an item from cache\n ", + "range": [ + 101, + 150 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 151, + 328 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing an item from cache\n ", + "range": [ + 101, + 150 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 328 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when missing an item from cache\n ", + "range": [ + 101, + 150 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} cacheKey\n ", + "range": [ + 208, + 247 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-cache/ast/source/Driver/Exception/NoFlushException.js.json b/docs-api/deep-cache/ast/source/Driver/Exception/NoFlushException.js.json new file mode 100644 index 00000000..ce0c1af8 --- /dev/null +++ b/docs-api/deep-cache/ast/source/Driver/Exception/NoFlushException.js.json @@ -0,0 +1,507 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown if flush() is not implemented\n ", + "range": [ + 101, + 148 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "NoFlushException", + "range": [ + 162, + 178 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 29 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 187, + 196 + ], + "loc": { + "start": { + "line": 12, + "column": 38 + }, + "end": { + "line": 12, + "column": 47 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 201, + 212 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 221, + 226 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "Flush is not implemented for this driver", + "raw": "'Flush is not implemented for this driver'", + "range": [ + 227, + 269 + ], + "loc": { + "start": { + "line": 14, + "column": 10 + }, + "end": { + "line": 14, + "column": 52 + } + } + } + ], + "range": [ + 221, + 270 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 53 + } + } + }, + "range": [ + 221, + 271 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 54 + } + } + } + ], + "range": [ + 215, + 275 + ], + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 212, + 275 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 201, + 275 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "static": false + } + ], + "range": [ + 197, + 277 + ], + "loc": { + "start": { + "line": 12, + "column": 48 + }, + "end": { + "line": 16, + "column": 1 + } + } + }, + "range": [ + 156, + 277 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown if flush() is not implemented\n ", + "range": [ + 101, + 148 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 149, + 277 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown if flush() is not implemented\n ", + "range": [ + 101, + 148 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 277 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown if flush() is not implemented\n ", + "range": [ + 101, + 148 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-cache/ast/source/Driver/Exception/RedisClusterException.js.json b/docs-api/deep-cache/ast/source/Driver/Exception/RedisClusterException.js.json new file mode 100644 index 00000000..a6a04fb5 --- /dev/null +++ b/docs-api/deep-cache/ast/source/Driver/Exception/RedisClusterException.js.json @@ -0,0 +1,1356 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when redis cluster returned an error\n ", + "range": [ + 101, + 155 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "RedisClusterException", + "range": [ + 169, + 190 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 34 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 199, + 208 + ], + "loc": { + "start": { + "line": 12, + "column": 43 + }, + "end": { + "line": 12, + "column": 52 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 252, + 263 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 264, + 269 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 19 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "originalException", + "range": [ + 281, + 298 + ], + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 25 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "Identifier", + "name": "error", + "range": [ + 301, + 306 + ], + "loc": { + "start": { + "line": 17, + "column": 28 + }, + "end": { + "line": 17, + "column": 33 + } + } + }, + "right": { + "type": "Identifier", + "name": "Error", + "range": [ + 318, + 323 + ], + "loc": { + "start": { + "line": 17, + "column": 45 + }, + "end": { + "line": 17, + "column": 50 + } + } + }, + "range": [ + 301, + 323 + ], + "loc": { + "start": { + "line": 17, + "column": 28 + }, + "end": { + "line": 17, + "column": 50 + } + } + }, + "consequent": { + "type": "Identifier", + "name": "error", + "range": [ + 326, + 331 + ], + "loc": { + "start": { + "line": 17, + "column": 53 + }, + "end": { + "line": 17, + "column": 58 + } + } + }, + "alternate": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 334, + 338 + ], + "loc": { + "start": { + "line": 17, + "column": 61 + }, + "end": { + "line": 17, + "column": 65 + } + } + }, + "range": [ + 301, + 338 + ], + "loc": { + "start": { + "line": 17, + "column": 28 + }, + "end": { + "line": 17, + "column": 65 + } + } + }, + "range": [ + 281, + 338 + ], + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 65 + } + } + } + ], + "kind": "let", + "range": [ + 277, + 339 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 66 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "errorPlain", + "range": [ + 348, + 358 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 18 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "Identifier", + "name": "originalException", + "range": [ + 361, + 378 + ], + "loc": { + "start": { + "line": 18, + "column": 21 + }, + "end": { + "line": 18, + "column": 38 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 383, + 387 + ], + "loc": { + "start": { + "line": 18, + "column": 43 + }, + "end": { + "line": 18, + "column": 47 + } + } + }, + "range": [ + 361, + 387 + ], + "loc": { + "start": { + "line": 18, + "column": 21 + }, + "end": { + "line": 18, + "column": 47 + } + } + }, + "consequent": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "originalException", + "range": [ + 390, + 407 + ], + "loc": { + "start": { + "line": 18, + "column": 50 + }, + "end": { + "line": 18, + "column": 67 + } + } + }, + "property": { + "type": "Identifier", + "name": "message", + "range": [ + 408, + 415 + ], + "loc": { + "start": { + "line": 18, + "column": 68 + }, + "end": { + "line": 18, + "column": 75 + } + } + }, + "range": [ + 390, + 415 + ], + "loc": { + "start": { + "line": 18, + "column": 50 + }, + "end": { + "line": 18, + "column": 75 + } + } + }, + "alternate": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "error", + "range": [ + 418, + 423 + ], + "loc": { + "start": { + "line": 18, + "column": 78 + }, + "end": { + "line": 18, + "column": 83 + } + } + }, + "property": { + "type": "Identifier", + "name": "toString", + "range": [ + 424, + 432 + ], + "loc": { + "start": { + "line": 18, + "column": 84 + }, + "end": { + "line": 18, + "column": 92 + } + } + }, + "range": [ + 418, + 432 + ], + "loc": { + "start": { + "line": 18, + "column": 78 + }, + "end": { + "line": 18, + "column": 92 + } + } + }, + "arguments": [], + "range": [ + 418, + 434 + ], + "loc": { + "start": { + "line": 18, + "column": 78 + }, + "end": { + "line": 18, + "column": 94 + } + } + }, + "range": [ + 361, + 434 + ], + "loc": { + "start": { + "line": 18, + "column": 21 + }, + "end": { + "line": 18, + "column": 94 + } + } + }, + "range": [ + 348, + 434 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 94 + } + } + } + ], + "kind": "let", + "range": [ + 344, + 435 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 95 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 441, + 446 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Redis cluster operation failed: ", + "cooked": "Redis cluster operation failed: " + }, + "tail": false, + "range": [ + 447, + 482 + ], + "loc": { + "start": { + "line": 20, + "column": 10 + }, + "end": { + "line": 20, + "column": 45 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 492, + 494 + ], + "loc": { + "start": { + "line": 20, + "column": 55 + }, + "end": { + "line": 20, + "column": 57 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "errorPlain", + "range": [ + 482, + 492 + ], + "loc": { + "start": { + "line": 20, + "column": 45 + }, + "end": { + "line": 20, + "column": 55 + } + } + } + ], + "range": [ + 447, + 494 + ], + "loc": { + "start": { + "line": 20, + "column": 10 + }, + "end": { + "line": 20, + "column": 57 + } + } + } + ], + "range": [ + 441, + 495 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 58 + } + } + }, + "range": [ + 441, + 496 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 59 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 502, + 506 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_originalException", + "range": [ + 507, + 525 + ], + "loc": { + "start": { + "line": 22, + "column": 9 + }, + "end": { + "line": 22, + "column": 27 + } + } + }, + "range": [ + 502, + 525 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 27 + } + } + }, + "right": { + "type": "Identifier", + "name": "originalException", + "range": [ + 528, + 545 + ], + "loc": { + "start": { + "line": 22, + "column": 30 + }, + "end": { + "line": 22, + "column": 47 + } + } + }, + "range": [ + 502, + 545 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 47 + } + } + }, + "range": [ + 502, + 546 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 48 + } + } + } + ], + "range": [ + 271, + 550 + ], + "loc": { + "start": { + "line": 16, + "column": 21 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 263, + 550 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 252, + 550 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} error\n ", + "range": [ + 213, + 249 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Error}\n ", + "range": [ + 554, + 585 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "originalException", + "range": [ + 592, + 609 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 28, + "column": 23 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 625, + 629 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_originalException", + "range": [ + 630, + 648 + ], + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 34 + } + } + }, + "range": [ + 625, + 648 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 34 + } + } + }, + "range": [ + 618, + 649 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 35 + } + } + } + ], + "range": [ + 612, + 653 + ], + "loc": { + "start": { + "line": 28, + "column": 26 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 609, + 653 + ], + "loc": { + "start": { + "line": 28, + "column": 23 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 588, + 653 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Error}\n ", + "range": [ + 554, + 585 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 209, + 655 + ], + "loc": { + "start": { + "line": 12, + "column": 53 + }, + "end": { + "line": 31, + "column": 1 + } + } + }, + "range": [ + 163, + 655 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 31, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when redis cluster returned an error\n ", + "range": [ + 101, + 155 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 156, + 655 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 31, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when redis cluster returned an error\n ", + "range": [ + 101, + 155 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 655 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 31, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when redis cluster returned an error\n ", + "range": [ + 101, + 155 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} error\n ", + "range": [ + 213, + 249 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Error}\n ", + "range": [ + 554, + 585 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-cache/ast/source/Driver/InMemoryDriver.js.json b/docs-api/deep-cache/ast/source/Driver/InMemoryDriver.js.json new file mode 100644 index 00000000..005ba339 --- /dev/null +++ b/docs-api/deep-cache/ast/source/Driver/InMemoryDriver.js.json @@ -0,0 +1,4625 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + "imported": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./AbstractDriver", + "raw": "'./AbstractDriver'", + "range": [ + 90, + 108 + ], + "loc": { + "start": { + "line": 7, + "column": 29 + }, + "end": { + "line": 7, + "column": 47 + } + } + }, + "range": [ + 61, + 109 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 48 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * In memory driver implementation\n ", + "range": [ + 111, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "InMemoryDriver", + "range": [ + 167, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 27 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 190, + 204 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 50 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 209, + 220 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 229, + 234 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 229, + 236 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 11 + } + } + }, + "range": [ + 229, + 237 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 243, + 247 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_storage", + "range": [ + 248, + 256 + ], + "loc": { + "start": { + "line": 16, + "column": 9 + }, + "end": { + "line": 16, + "column": 17 + } + } + }, + "range": [ + 243, + 256 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 17 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 259, + 261 + ], + "loc": { + "start": { + "line": 16, + "column": 20 + }, + "end": { + "line": 16, + "column": 22 + } + } + }, + "range": [ + 243, + 261 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 22 + } + } + }, + "range": [ + 243, + 262 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 23 + } + } + } + ], + "range": [ + 223, + 266 + ], + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 17, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 220, + 266 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 17, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 209, + 266 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 17, + "column": 3 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 270, + 302 + ], + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 21, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "storage", + "range": [ + 309, + 316 + ], + "loc": { + "start": { + "line": 22, + "column": 6 + }, + "end": { + "line": 22, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 332, + 336 + ], + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 23, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_storage", + "range": [ + 337, + 345 + ], + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 23, + "column": 24 + } + } + }, + "range": [ + 332, + 345 + ], + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 23, + "column": 24 + } + } + }, + "range": [ + 325, + 346 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 25 + } + } + } + ], + "range": [ + 319, + 350 + ], + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 24, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 316, + 350 + ], + "loc": { + "start": { + "line": 22, + "column": 13 + }, + "end": { + "line": 24, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 305, + 350 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 24, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 270, + 302 + ], + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 21, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 354, + 420 + ], + "loc": { + "start": { + "line": 26, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_has", + "range": [ + 423, + 427 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 30, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 428, + 431 + ], + "loc": { + "start": { + "line": 30, + "column": 7 + }, + "end": { + "line": 30, + "column": 10 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 433, + 441 + ], + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 20 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 450, + 452 + ], + "loc": { + "start": { + "line": 30, + "column": 29 + }, + "end": { + "line": 30, + "column": 31 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 444, + 452 + ], + "loc": { + "start": { + "line": 30, + "column": 23 + }, + "end": { + "line": 30, + "column": 31 + } + } + }, + "range": [ + 433, + 452 + ], + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 31 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 471, + 475 + ], + "loc": { + "start": { + "line": 31, + "column": 15 + }, + "end": { + "line": 31, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "_storage", + "range": [ + 476, + 484 + ], + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 28 + } + } + }, + "range": [ + 471, + 484 + ], + "loc": { + "start": { + "line": 31, + "column": 15 + }, + "end": { + "line": 31, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 485, + 488 + ], + "loc": { + "start": { + "line": 31, + "column": 29 + }, + "end": { + "line": 31, + "column": 32 + } + } + }, + "range": [ + 471, + 489 + ], + "loc": { + "start": { + "line": 31, + "column": 15 + }, + "end": { + "line": 31, + "column": 33 + } + } + }, + "prefix": true, + "range": [ + 464, + 489 + ], + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 33 + } + } + }, + "right": { + "type": "Literal", + "value": "undefined", + "raw": "'undefined'", + "range": [ + 494, + 505 + ], + "loc": { + "start": { + "line": 31, + "column": 38 + }, + "end": { + "line": 31, + "column": 49 + } + } + }, + "range": [ + 464, + 505 + ], + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 49 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 509, + 513 + ], + "loc": { + "start": { + "line": 31, + "column": 53 + }, + "end": { + "line": 31, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "name": "_storage", + "range": [ + 514, + 522 + ], + "loc": { + "start": { + "line": 31, + "column": 58 + }, + "end": { + "line": 31, + "column": 66 + } + } + }, + "range": [ + 509, + 522 + ], + "loc": { + "start": { + "line": 31, + "column": 53 + }, + "end": { + "line": 31, + "column": 66 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 523, + 526 + ], + "loc": { + "start": { + "line": 31, + "column": 67 + }, + "end": { + "line": 31, + "column": 70 + } + } + }, + "range": [ + 509, + 527 + ], + "loc": { + "start": { + "line": 31, + "column": 53 + }, + "end": { + "line": 31, + "column": 71 + } + } + }, + "property": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 528, + 529 + ], + "loc": { + "start": { + "line": 31, + "column": 72 + }, + "end": { + "line": 31, + "column": 73 + } + } + }, + "range": [ + 509, + 530 + ], + "loc": { + "start": { + "line": 31, + "column": 53 + }, + "end": { + "line": 31, + "column": 74 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 535, + 540 + ], + "loc": { + "start": { + "line": 31, + "column": 79 + }, + "end": { + "line": 31, + "column": 84 + } + } + }, + "range": [ + 509, + 540 + ], + "loc": { + "start": { + "line": 31, + "column": 53 + }, + "end": { + "line": 31, + "column": 84 + } + } + }, + "range": [ + 464, + 540 + ], + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 84 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 550, + 558 + ], + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 559, + 564 + ], + "loc": { + "start": { + "line": 32, + "column": 15 + }, + "end": { + "line": 32, + "column": 20 + } + } + } + ], + "range": [ + 550, + 565 + ], + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 21 + } + } + }, + "range": [ + 550, + 566 + ], + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 22 + } + } + }, + { + "type": "ReturnStatement", + "argument": null, + "range": [ + 573, + 580 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 13 + } + } + } + ], + "range": [ + 542, + 586 + ], + "loc": { + "start": { + "line": 31, + "column": 86 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 460, + 586 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "result", + "range": [ + 596, + 602 + ], + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 14 + } + } + }, + "init": { + "type": "BinaryExpression", + "operator": "<", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 605, + 609 + ], + "loc": { + "start": { + "line": 36, + "column": 17 + }, + "end": { + "line": 36, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "_storage", + "range": [ + 610, + 618 + ], + "loc": { + "start": { + "line": 36, + "column": 22 + }, + "end": { + "line": 36, + "column": 30 + } + } + }, + "range": [ + 605, + 618 + ], + "loc": { + "start": { + "line": 36, + "column": 17 + }, + "end": { + "line": 36, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 619, + 622 + ], + "loc": { + "start": { + "line": 36, + "column": 31 + }, + "end": { + "line": 36, + "column": 34 + } + } + }, + "range": [ + 605, + 623 + ], + "loc": { + "start": { + "line": 36, + "column": 17 + }, + "end": { + "line": 36, + "column": 35 + } + } + }, + "property": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 624, + 625 + ], + "loc": { + "start": { + "line": 36, + "column": 36 + }, + "end": { + "line": 36, + "column": 37 + } + } + }, + "range": [ + 605, + 626 + ], + "loc": { + "start": { + "line": 36, + "column": 17 + }, + "end": { + "line": 36, + "column": 38 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "InMemoryDriver", + "range": [ + 629, + 643 + ], + "loc": { + "start": { + "line": 36, + "column": 41 + }, + "end": { + "line": 36, + "column": 55 + } + } + }, + "property": { + "type": "Identifier", + "name": "_now", + "range": [ + 644, + 648 + ], + "loc": { + "start": { + "line": 36, + "column": 56 + }, + "end": { + "line": 36, + "column": 60 + } + } + }, + "range": [ + 629, + 648 + ], + "loc": { + "start": { + "line": 36, + "column": 41 + }, + "end": { + "line": 36, + "column": 60 + } + } + }, + "range": [ + 605, + 648 + ], + "loc": { + "start": { + "line": 36, + "column": 17 + }, + "end": { + "line": 36, + "column": 60 + } + } + }, + "range": [ + 596, + 648 + ], + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 60 + } + } + } + ], + "kind": "let", + "range": [ + 592, + 649 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 61 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "result", + "range": [ + 660, + 666 + ], + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 15 + } + } + }, + "prefix": true, + "range": [ + 659, + 666 + ], + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 15 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 676, + 680 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_invalidate", + "range": [ + 681, + 692 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 22 + } + } + }, + "range": [ + 676, + 692 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 693, + 696 + ], + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 26 + } + } + } + ], + "range": [ + 676, + 697 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 27 + } + } + }, + "range": [ + 676, + 698 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 28 + } + } + } + ], + "range": [ + 668, + 704 + ], + "loc": { + "start": { + "line": 38, + "column": 17 + }, + "end": { + "line": 40, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 655, + 704 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 40, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 710, + 718 + ], + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "result", + "range": [ + 719, + 725 + ], + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 19 + } + } + } + ], + "range": [ + 710, + 726 + ], + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 20 + } + } + }, + "range": [ + 710, + 727 + ], + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 21 + } + } + } + ], + "range": [ + 454, + 731 + ], + "loc": { + "start": { + "line": 30, + "column": 33 + }, + "end": { + "line": 43, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 427, + 731 + ], + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 43, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 423, + 731 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 43, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 354, + 420 + ], + "loc": { + "start": { + "line": 26, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 735, + 801 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_get", + "range": [ + 804, + 808 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 49, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 809, + 812 + ], + "loc": { + "start": { + "line": 49, + "column": 7 + }, + "end": { + "line": 49, + "column": 10 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 814, + 822 + ], + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 20 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Identifier", + "name": "undefined", + "range": [ + 831, + 840 + ], + "loc": { + "start": { + "line": 49, + "column": 29 + }, + "end": { + "line": 49, + "column": 38 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 825, + 840 + ], + "loc": { + "start": { + "line": 49, + "column": 23 + }, + "end": { + "line": 49, + "column": 38 + } + } + }, + "range": [ + 814, + 840 + ], + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 38 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 848, + 856 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 857, + 861 + ], + "loc": { + "start": { + "line": 50, + "column": 13 + }, + "end": { + "line": 50, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_storage", + "range": [ + 862, + 870 + ], + "loc": { + "start": { + "line": 50, + "column": 18 + }, + "end": { + "line": 50, + "column": 26 + } + } + }, + "range": [ + 857, + 870 + ], + "loc": { + "start": { + "line": 50, + "column": 13 + }, + "end": { + "line": 50, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 871, + 874 + ], + "loc": { + "start": { + "line": 50, + "column": 27 + }, + "end": { + "line": 50, + "column": 30 + } + } + }, + "range": [ + 857, + 875 + ], + "loc": { + "start": { + "line": 50, + "column": 13 + }, + "end": { + "line": 50, + "column": 31 + } + } + } + ], + "range": [ + 848, + 876 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 32 + } + } + }, + "range": [ + 848, + 877 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 33 + } + } + } + ], + "range": [ + 842, + 881 + ], + "loc": { + "start": { + "line": 49, + "column": 40 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 808, + 881 + ], + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 804, + 881 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 735, + 801 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n * @returns {Boolean}\n ", + "range": [ + 885, + 1022 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 59, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_set", + "range": [ + 1025, + 1029 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 60, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1030, + 1033 + ], + "loc": { + "start": { + "line": 60, + "column": 7 + }, + "end": { + "line": 60, + "column": 10 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 1035, + 1040 + ], + "loc": { + "start": { + "line": 60, + "column": 12 + }, + "end": { + "line": 60, + "column": 17 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "ttl", + "range": [ + 1042, + 1045 + ], + "loc": { + "start": { + "line": 60, + "column": 19 + }, + "end": { + "line": 60, + "column": 22 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1048, + 1049 + ], + "loc": { + "start": { + "line": 60, + "column": 25 + }, + "end": { + "line": 60, + "column": 26 + } + } + }, + "range": [ + 1042, + 1049 + ], + "loc": { + "start": { + "line": 60, + "column": 19 + }, + "end": { + "line": 60, + "column": 26 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1051, + 1059 + ], + "loc": { + "start": { + "line": 60, + "column": 28 + }, + "end": { + "line": 60, + "column": 36 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Identifier", + "name": "undefined", + "range": [ + 1068, + 1077 + ], + "loc": { + "start": { + "line": 60, + "column": 45 + }, + "end": { + "line": 60, + "column": 54 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 1062, + 1077 + ], + "loc": { + "start": { + "line": 60, + "column": 39 + }, + "end": { + "line": 60, + "column": 54 + } + } + }, + "range": [ + 1051, + 1077 + ], + "loc": { + "start": { + "line": 60, + "column": 28 + }, + "end": { + "line": 60, + "column": 54 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1085, + 1089 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_storage", + "range": [ + 1090, + 1098 + ], + "loc": { + "start": { + "line": 61, + "column": 9 + }, + "end": { + "line": 61, + "column": 17 + } + } + }, + "range": [ + 1085, + 1098 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 1099, + 1102 + ], + "loc": { + "start": { + "line": 61, + "column": 18 + }, + "end": { + "line": 61, + "column": 21 + } + } + }, + "range": [ + 1085, + 1103 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 22 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [ + { + "type": "Identifier", + "name": "value", + "range": [ + 1107, + 1112 + ], + "loc": { + "start": { + "line": 61, + "column": 26 + }, + "end": { + "line": 61, + "column": 31 + } + } + }, + { + "type": "ConditionalExpression", + "test": { + "type": "BinaryExpression", + "operator": "<=", + "left": { + "type": "Identifier", + "name": "ttl", + "range": [ + 1114, + 1117 + ], + "loc": { + "start": { + "line": 61, + "column": 33 + }, + "end": { + "line": 61, + "column": 36 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1121, + 1122 + ], + "loc": { + "start": { + "line": 61, + "column": 40 + }, + "end": { + "line": 61, + "column": 41 + } + } + }, + "range": [ + 1114, + 1122 + ], + "loc": { + "start": { + "line": 61, + "column": 33 + }, + "end": { + "line": 61, + "column": 41 + } + } + }, + "consequent": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 1125, + 1130 + ], + "loc": { + "start": { + "line": 61, + "column": 44 + }, + "end": { + "line": 61, + "column": 49 + } + } + }, + "alternate": { + "type": "BinaryExpression", + "operator": "+", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "InMemoryDriver", + "range": [ + 1134, + 1148 + ], + "loc": { + "start": { + "line": 61, + "column": 53 + }, + "end": { + "line": 61, + "column": 67 + } + } + }, + "property": { + "type": "Identifier", + "name": "_now", + "range": [ + 1149, + 1153 + ], + "loc": { + "start": { + "line": 61, + "column": 68 + }, + "end": { + "line": 61, + "column": 72 + } + } + }, + "range": [ + 1134, + 1153 + ], + "loc": { + "start": { + "line": 61, + "column": 53 + }, + "end": { + "line": 61, + "column": 72 + } + } + }, + "right": { + "type": "Identifier", + "name": "ttl", + "range": [ + 1156, + 1159 + ], + "loc": { + "start": { + "line": 61, + "column": 75 + }, + "end": { + "line": 61, + "column": 78 + } + } + }, + "range": [ + 1134, + 1159 + ], + "loc": { + "start": { + "line": 61, + "column": 53 + }, + "end": { + "line": 61, + "column": 78 + } + } + }, + "range": [ + 1114, + 1160 + ], + "loc": { + "start": { + "line": 61, + "column": 33 + }, + "end": { + "line": 61, + "column": 79 + } + } + } + ], + "range": [ + 1106, + 1161 + ], + "loc": { + "start": { + "line": 61, + "column": 25 + }, + "end": { + "line": 61, + "column": 80 + } + } + }, + "range": [ + 1085, + 1161 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 80 + } + } + }, + "range": [ + 1085, + 1162 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 81 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1168, + 1176 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1177, + 1181 + ], + "loc": { + "start": { + "line": 63, + "column": 13 + }, + "end": { + "line": 63, + "column": 17 + } + } + } + ], + "range": [ + 1168, + 1182 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 18 + } + } + }, + "range": [ + 1168, + 1183 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 19 + } + } + } + ], + "range": [ + 1079, + 1187 + ], + "loc": { + "start": { + "line": 60, + "column": 56 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1029, + 1187 + ], + "loc": { + "start": { + "line": 60, + "column": 6 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1025, + 1187 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 64, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n * @returns {Boolean}\n ", + "range": [ + 885, + 1022 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 59, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Number} timeout\n * @param {Function} callback\n ", + "range": [ + 1191, + 1286 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_invalidate", + "range": [ + 1289, + 1300 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 71, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1301, + 1304 + ], + "loc": { + "start": { + "line": 71, + "column": 14 + }, + "end": { + "line": 71, + "column": 17 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "timeout", + "range": [ + 1306, + 1313 + ], + "loc": { + "start": { + "line": 71, + "column": 19 + }, + "end": { + "line": 71, + "column": 26 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1316, + 1317 + ], + "loc": { + "start": { + "line": 71, + "column": 29 + }, + "end": { + "line": 71, + "column": 30 + } + } + }, + "range": [ + 1306, + 1317 + ], + "loc": { + "start": { + "line": 71, + "column": 19 + }, + "end": { + "line": 71, + "column": 30 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1319, + 1327 + ], + "loc": { + "start": { + "line": 71, + "column": 32 + }, + "end": { + "line": 71, + "column": 40 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Identifier", + "name": "undefined", + "range": [ + 1336, + 1345 + ], + "loc": { + "start": { + "line": 71, + "column": 49 + }, + "end": { + "line": 71, + "column": 58 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 1330, + 1345 + ], + "loc": { + "start": { + "line": 71, + "column": 43 + }, + "end": { + "line": 71, + "column": 58 + } + } + }, + "range": [ + 1319, + 1345 + ], + "loc": { + "start": { + "line": 71, + "column": 32 + }, + "end": { + "line": 71, + "column": 58 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "<=", + "left": { + "type": "Identifier", + "name": "timeout", + "range": [ + 1357, + 1364 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 15 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1368, + 1369 + ], + "loc": { + "start": { + "line": 72, + "column": 19 + }, + "end": { + "line": 72, + "column": 20 + } + } + }, + "range": [ + 1357, + 1369 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 20 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "UnaryExpression", + "operator": "delete", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1386, + 1390 + ], + "loc": { + "start": { + "line": 73, + "column": 13 + }, + "end": { + "line": 73, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_storage", + "range": [ + 1391, + 1399 + ], + "loc": { + "start": { + "line": 73, + "column": 18 + }, + "end": { + "line": 73, + "column": 26 + } + } + }, + "range": [ + 1386, + 1399 + ], + "loc": { + "start": { + "line": 73, + "column": 13 + }, + "end": { + "line": 73, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 1400, + 1403 + ], + "loc": { + "start": { + "line": 73, + "column": 27 + }, + "end": { + "line": 73, + "column": 30 + } + } + }, + "range": [ + 1386, + 1404 + ], + "loc": { + "start": { + "line": 73, + "column": 13 + }, + "end": { + "line": 73, + "column": 31 + } + } + }, + "prefix": true, + "range": [ + 1379, + 1404 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 31 + } + } + }, + "range": [ + 1379, + 1405 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 32 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1413, + 1421 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1422, + 1426 + ], + "loc": { + "start": { + "line": 75, + "column": 15 + }, + "end": { + "line": 75, + "column": 19 + } + } + } + ], + "range": [ + 1413, + 1427 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 20 + } + } + }, + "range": [ + 1413, + 1428 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 21 + } + } + }, + { + "type": "ReturnStatement", + "argument": null, + "range": [ + 1435, + 1442 + ], + "loc": { + "start": { + "line": 76, + "column": 6 + }, + "end": { + "line": 76, + "column": 13 + } + } + } + ], + "range": [ + 1371, + 1448 + ], + "loc": { + "start": { + "line": 72, + "column": 22 + }, + "end": { + "line": 77, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1353, + 1448 + ], + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 77, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1454, + 1458 + ], + "loc": { + "start": { + "line": 79, + "column": 4 + }, + "end": { + "line": 79, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_storage", + "range": [ + 1459, + 1467 + ], + "loc": { + "start": { + "line": 79, + "column": 9 + }, + "end": { + "line": 79, + "column": 17 + } + } + }, + "range": [ + 1454, + 1467 + ], + "loc": { + "start": { + "line": 79, + "column": 4 + }, + "end": { + "line": 79, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 1468, + 1471 + ], + "loc": { + "start": { + "line": 79, + "column": 18 + }, + "end": { + "line": 79, + "column": 21 + } + } + }, + "range": [ + 1454, + 1472 + ], + "loc": { + "start": { + "line": 79, + "column": 4 + }, + "end": { + "line": 79, + "column": 22 + } + } + }, + "property": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 1473, + 1474 + ], + "loc": { + "start": { + "line": 79, + "column": 23 + }, + "end": { + "line": 79, + "column": 24 + } + } + }, + "range": [ + 1454, + 1475 + ], + "loc": { + "start": { + "line": 79, + "column": 4 + }, + "end": { + "line": 79, + "column": 25 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "+", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "InMemoryDriver", + "range": [ + 1478, + 1492 + ], + "loc": { + "start": { + "line": 79, + "column": 28 + }, + "end": { + "line": 79, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "name": "_now", + "range": [ + 1493, + 1497 + ], + "loc": { + "start": { + "line": 79, + "column": 43 + }, + "end": { + "line": 79, + "column": 47 + } + } + }, + "range": [ + 1478, + 1497 + ], + "loc": { + "start": { + "line": 79, + "column": 28 + }, + "end": { + "line": 79, + "column": 47 + } + } + }, + "right": { + "type": "Identifier", + "name": "timeout", + "range": [ + 1500, + 1507 + ], + "loc": { + "start": { + "line": 79, + "column": 50 + }, + "end": { + "line": 79, + "column": 57 + } + } + }, + "range": [ + 1478, + 1507 + ], + "loc": { + "start": { + "line": 79, + "column": 28 + }, + "end": { + "line": 79, + "column": 57 + } + } + }, + "range": [ + 1454, + 1507 + ], + "loc": { + "start": { + "line": 79, + "column": 4 + }, + "end": { + "line": 79, + "column": 57 + } + } + }, + "range": [ + 1454, + 1508 + ], + "loc": { + "start": { + "line": 79, + "column": 4 + }, + "end": { + "line": 79, + "column": 58 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1514, + 1522 + ], + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1523, + 1527 + ], + "loc": { + "start": { + "line": 81, + "column": 13 + }, + "end": { + "line": 81, + "column": 17 + } + } + } + ], + "range": [ + 1514, + 1528 + ], + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 18 + } + } + }, + "range": [ + 1514, + 1529 + ], + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 19 + } + } + } + ], + "range": [ + 1347, + 1533 + ], + "loc": { + "start": { + "line": 71, + "column": 60 + }, + "end": { + "line": 82, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1300, + 1533 + ], + "loc": { + "start": { + "line": 71, + "column": 13 + }, + "end": { + "line": 82, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1289, + 1533 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 82, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Number} timeout\n * @param {Function} callback\n ", + "range": [ + 1191, + 1286 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 1537, + 1609 + ], + "loc": { + "start": { + "line": 84, + "column": 2 + }, + "end": { + "line": 87, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_flush", + "range": [ + 1612, + 1618 + ], + "loc": { + "start": { + "line": 88, + "column": 2 + }, + "end": { + "line": 88, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1619, + 1627 + ], + "loc": { + "start": { + "line": 88, + "column": 9 + }, + "end": { + "line": 88, + "column": 17 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Identifier", + "name": "undefined", + "range": [ + 1636, + 1645 + ], + "loc": { + "start": { + "line": 88, + "column": 26 + }, + "end": { + "line": 88, + "column": 35 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 1630, + 1645 + ], + "loc": { + "start": { + "line": 88, + "column": 20 + }, + "end": { + "line": 88, + "column": 35 + } + } + }, + "range": [ + 1619, + 1645 + ], + "loc": { + "start": { + "line": 88, + "column": 9 + }, + "end": { + "line": 88, + "column": 35 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1653, + 1657 + ], + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 89, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_storage", + "range": [ + 1658, + 1666 + ], + "loc": { + "start": { + "line": 89, + "column": 9 + }, + "end": { + "line": 89, + "column": 17 + } + } + }, + "range": [ + 1653, + 1666 + ], + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 89, + "column": 17 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 1669, + 1671 + ], + "loc": { + "start": { + "line": 89, + "column": 20 + }, + "end": { + "line": 89, + "column": 22 + } + } + }, + "range": [ + 1653, + 1671 + ], + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 89, + "column": 22 + } + } + }, + "range": [ + 1653, + 1672 + ], + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 89, + "column": 23 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1678, + 1686 + ], + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1687, + 1691 + ], + "loc": { + "start": { + "line": 91, + "column": 13 + }, + "end": { + "line": 91, + "column": 17 + } + } + } + ], + "range": [ + 1678, + 1692 + ], + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 18 + } + } + }, + "range": [ + 1678, + 1693 + ], + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 19 + } + } + } + ], + "range": [ + 1647, + 1697 + ], + "loc": { + "start": { + "line": 88, + "column": 37 + }, + "end": { + "line": 92, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1618, + 1697 + ], + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 92, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1612, + 1697 + ], + "loc": { + "start": { + "line": 88, + "column": 2 + }, + "end": { + "line": 92, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 1537, + 1609 + ], + "loc": { + "start": { + "line": 84, + "column": 2 + }, + "end": { + "line": 87, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n * @private\n ", + "range": [ + 1701, + 1747 + ], + "loc": { + "start": { + "line": 94, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_now", + "range": [ + 1761, + 1765 + ], + "loc": { + "start": { + "line": 98, + "column": 13 + }, + "end": { + "line": 98, + "column": 17 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Date", + "range": [ + 1785, + 1789 + ], + "loc": { + "start": { + "line": 99, + "column": 15 + }, + "end": { + "line": 99, + "column": 19 + } + } + }, + "arguments": [], + "range": [ + 1781, + 1791 + ], + "loc": { + "start": { + "line": 99, + "column": 11 + }, + "end": { + "line": 99, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "getTime", + "range": [ + 1792, + 1799 + ], + "loc": { + "start": { + "line": 99, + "column": 22 + }, + "end": { + "line": 99, + "column": 29 + } + } + }, + "range": [ + 1781, + 1799 + ], + "loc": { + "start": { + "line": 99, + "column": 11 + }, + "end": { + "line": 99, + "column": 29 + } + } + }, + "arguments": [], + "range": [ + 1781, + 1801 + ], + "loc": { + "start": { + "line": 99, + "column": 11 + }, + "end": { + "line": 99, + "column": 31 + } + } + }, + "range": [ + 1774, + 1802 + ], + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 32 + } + } + } + ], + "range": [ + 1768, + 1806 + ], + "loc": { + "start": { + "line": 98, + "column": 20 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1765, + 1806 + ], + "loc": { + "start": { + "line": 98, + "column": 17 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1750, + 1806 + ], + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 100, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n * @private\n ", + "range": [ + 1701, + 1747 + ], + "loc": { + "start": { + "line": 94, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 205, + 1808 + ], + "loc": { + "start": { + "line": 12, + "column": 51 + }, + "end": { + "line": 101, + "column": 1 + } + } + }, + "range": [ + 161, + 1808 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 101, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * In memory driver implementation\n ", + "range": [ + 111, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 154, + 1808 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 101, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * In memory driver implementation\n ", + "range": [ + 111, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 1808 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 101, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * In memory driver implementation\n ", + "range": [ + 111, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 270, + 302 + ], + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 21, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 354, + 420 + ], + "loc": { + "start": { + "line": 26, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 735, + 801 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n * @returns {Boolean}\n ", + "range": [ + 885, + 1022 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 59, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Number} timeout\n * @param {Function} callback\n ", + "range": [ + 1191, + 1286 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 1537, + 1609 + ], + "loc": { + "start": { + "line": 84, + "column": 2 + }, + "end": { + "line": 87, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Number}\n * @private\n ", + "range": [ + 1701, + 1747 + ], + "loc": { + "start": { + "line": 94, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-cache/ast/source/Driver/LocalStorageDriver.js.json b/docs-api/deep-cache/ast/source/Driver/LocalStorageDriver.js.json new file mode 100644 index 00000000..b835caa0 --- /dev/null +++ b/docs-api/deep-cache/ast/source/Driver/LocalStorageDriver.js.json @@ -0,0 +1,5901 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + "imported": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./AbstractDriver", + "raw": "'./AbstractDriver'", + "range": [ + 90, + 108 + ], + "loc": { + "start": { + "line": 7, + "column": 29 + }, + "end": { + "line": 7, + "column": 47 + } + } + }, + "range": [ + 61, + 109 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 48 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "LocalStorage", + "range": [ + 117, + 129 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 19 + } + } + }, + "range": [ + 117, + 129 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 19 + } + } + } + ], + "source": { + "type": "Literal", + "value": "store", + "raw": "'store'", + "range": [ + 135, + 142 + ], + "loc": { + "start": { + "line": 8, + "column": 25 + }, + "end": { + "line": 8, + "column": 32 + } + } + }, + "range": [ + 110, + 143 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 33 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * In memory driver implementation\n ", + "range": [ + 145, + 187 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "LocalStorageDriver", + "range": [ + 201, + 219 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 31 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 228, + 242 + ], + "loc": { + "start": { + "line": 13, + "column": 40 + }, + "end": { + "line": 13, + "column": 54 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 247, + 258 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 14, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 267, + 272 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 267, + 274 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 11 + } + } + }, + "range": [ + 267, + 275 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 12 + } + } + } + ], + "range": [ + 261, + 279 + ], + "loc": { + "start": { + "line": 14, + "column": 16 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 258, + 279 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 247, + 279 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 3 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 283, + 349 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 21, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_has", + "range": [ + 352, + 356 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 357, + 360 + ], + "loc": { + "start": { + "line": 22, + "column": 7 + }, + "end": { + "line": 22, + "column": 10 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 362, + 370 + ], + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 20 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 373, + 377 + ], + "loc": { + "start": { + "line": 22, + "column": 23 + }, + "end": { + "line": 22, + "column": 27 + } + } + }, + "range": [ + 362, + 377 + ], + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 27 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 385, + 393 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 12 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 396, + 404 + ], + "loc": { + "start": { + "line": 23, + "column": 15 + }, + "end": { + "line": 23, + "column": 23 + } + } + }, + "right": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [], + "range": [ + 419, + 428 + ], + "loc": { + "start": { + "line": 23, + "column": 38 + }, + "end": { + "line": 24, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 408, + 428 + ], + "loc": { + "start": { + "line": 23, + "column": 27 + }, + "end": { + "line": 24, + "column": 7 + } + } + }, + "range": [ + 396, + 428 + ], + "loc": { + "start": { + "line": 23, + "column": 15 + }, + "end": { + "line": 24, + "column": 7 + } + } + }, + "range": [ + 385, + 428 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 24, + "column": 7 + } + } + }, + "range": [ + 385, + 429 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 24, + "column": 8 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 435, + 443 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalStorageDriver", + "range": [ + 444, + 462 + ], + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "_isAlive", + "range": [ + 463, + 471 + ], + "loc": { + "start": { + "line": 26, + "column": 32 + }, + "end": { + "line": 26, + "column": 40 + } + } + }, + "range": [ + 444, + 471 + ], + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalStorage", + "range": [ + 472, + 484 + ], + "loc": { + "start": { + "line": 26, + "column": 41 + }, + "end": { + "line": 26, + "column": 53 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 485, + 488 + ], + "loc": { + "start": { + "line": 26, + "column": 54 + }, + "end": { + "line": 26, + "column": 57 + } + } + }, + "range": [ + 472, + 488 + ], + "loc": { + "start": { + "line": 26, + "column": 41 + }, + "end": { + "line": 26, + "column": 57 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 489, + 492 + ], + "loc": { + "start": { + "line": 26, + "column": 58 + }, + "end": { + "line": 26, + "column": 61 + } + } + } + ], + "range": [ + 472, + 493 + ], + "loc": { + "start": { + "line": 26, + "column": 41 + }, + "end": { + "line": 26, + "column": 62 + } + } + }, + { + "type": "Identifier", + "name": "key", + "range": [ + 495, + 498 + ], + "loc": { + "start": { + "line": 26, + "column": 64 + }, + "end": { + "line": 26, + "column": 67 + } + } + } + ], + "range": [ + 444, + 499 + ], + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 68 + } + } + } + ], + "range": [ + 435, + 500 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 69 + } + } + }, + "range": [ + 435, + 501 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 70 + } + } + } + ], + "range": [ + 379, + 505 + ], + "loc": { + "start": { + "line": 22, + "column": 29 + }, + "end": { + "line": 27, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 356, + 505 + ], + "loc": { + "start": { + "line": 22, + "column": 6 + }, + "end": { + "line": 27, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 352, + 505 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 27, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 283, + 349 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 21, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 509, + 575 + ], + "loc": { + "start": { + "line": 29, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_get", + "range": [ + 578, + 582 + ], + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 33, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 583, + 586 + ], + "loc": { + "start": { + "line": 33, + "column": 7 + }, + "end": { + "line": 33, + "column": 10 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 588, + 596 + ], + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 20 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 599, + 603 + ], + "loc": { + "start": { + "line": 33, + "column": 23 + }, + "end": { + "line": 33, + "column": 27 + } + } + }, + "range": [ + 588, + 603 + ], + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 27 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 611, + 619 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 12 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 622, + 630 + ], + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 34, + "column": 23 + } + } + }, + "right": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [], + "range": [ + 645, + 654 + ], + "loc": { + "start": { + "line": 34, + "column": 38 + }, + "end": { + "line": 35, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 634, + 654 + ], + "loc": { + "start": { + "line": 34, + "column": 27 + }, + "end": { + "line": 35, + "column": 7 + } + } + }, + "range": [ + 622, + 654 + ], + "loc": { + "start": { + "line": 34, + "column": 15 + }, + "end": { + "line": 35, + "column": 7 + } + } + }, + "range": [ + 611, + 654 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + } + }, + "range": [ + 611, + 655 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 35, + "column": 8 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "record", + "range": [ + 665, + 671 + ], + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 14 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalStorage", + "range": [ + 674, + 686 + ], + "loc": { + "start": { + "line": 37, + "column": 17 + }, + "end": { + "line": 37, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 687, + 690 + ], + "loc": { + "start": { + "line": 37, + "column": 30 + }, + "end": { + "line": 37, + "column": 33 + } + } + }, + "range": [ + 674, + 690 + ], + "loc": { + "start": { + "line": 37, + "column": 17 + }, + "end": { + "line": 37, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 691, + 694 + ], + "loc": { + "start": { + "line": 37, + "column": 34 + }, + "end": { + "line": 37, + "column": 37 + } + } + } + ], + "range": [ + 674, + 695 + ], + "loc": { + "start": { + "line": 37, + "column": 17 + }, + "end": { + "line": 37, + "column": 38 + } + } + }, + "range": [ + 665, + 695 + ], + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 38 + } + } + } + ], + "kind": "let", + "range": [ + 661, + 696 + ], + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 39 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 702, + 710 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "ConditionalExpression", + "test": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalStorageDriver", + "range": [ + 711, + 729 + ], + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "_isAlive", + "range": [ + 730, + 738 + ], + "loc": { + "start": { + "line": 39, + "column": 32 + }, + "end": { + "line": 39, + "column": 40 + } + } + }, + "range": [ + 711, + 738 + ], + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "record", + "range": [ + 739, + 745 + ], + "loc": { + "start": { + "line": 39, + "column": 41 + }, + "end": { + "line": 39, + "column": 47 + } + } + }, + { + "type": "Identifier", + "name": "key", + "range": [ + 747, + 750 + ], + "loc": { + "start": { + "line": 39, + "column": 49 + }, + "end": { + "line": 39, + "column": 52 + } + } + } + ], + "range": [ + 711, + 751 + ], + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 53 + } + } + }, + "consequent": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "record", + "range": [ + 754, + 760 + ], + "loc": { + "start": { + "line": 39, + "column": 56 + }, + "end": { + "line": 39, + "column": 62 + } + } + }, + "property": { + "type": "Identifier", + "name": "value", + "range": [ + 761, + 766 + ], + "loc": { + "start": { + "line": 39, + "column": 63 + }, + "end": { + "line": 39, + "column": 68 + } + } + }, + "range": [ + 754, + 766 + ], + "loc": { + "start": { + "line": 39, + "column": 56 + }, + "end": { + "line": 39, + "column": 68 + } + } + }, + "alternate": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 769, + 773 + ], + "loc": { + "start": { + "line": 39, + "column": 71 + }, + "end": { + "line": 39, + "column": 75 + } + } + }, + "range": [ + 711, + 773 + ], + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 75 + } + } + } + ], + "range": [ + 702, + 774 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 76 + } + } + }, + "range": [ + 702, + 775 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 77 + } + } + } + ], + "range": [ + 605, + 779 + ], + "loc": { + "start": { + "line": 33, + "column": 29 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 582, + 779 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 578, + 779 + ], + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 40, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 509, + 575 + ], + "loc": { + "start": { + "line": 29, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n * @returns {Boolean}\n ", + "range": [ + 783, + 920 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_set", + "range": [ + 923, + 927 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 49, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 928, + 931 + ], + "loc": { + "start": { + "line": 49, + "column": 7 + }, + "end": { + "line": 49, + "column": 10 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 933, + 938 + ], + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 17 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "ttl", + "range": [ + 940, + 943 + ], + "loc": { + "start": { + "line": 49, + "column": 19 + }, + "end": { + "line": 49, + "column": 22 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 946, + 947 + ], + "loc": { + "start": { + "line": 49, + "column": 25 + }, + "end": { + "line": 49, + "column": 26 + } + } + }, + "range": [ + 940, + 947 + ], + "loc": { + "start": { + "line": 49, + "column": 19 + }, + "end": { + "line": 49, + "column": 26 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 949, + 957 + ], + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 36 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 960, + 964 + ], + "loc": { + "start": { + "line": 49, + "column": 39 + }, + "end": { + "line": 49, + "column": 43 + } + } + }, + "range": [ + 949, + 964 + ], + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 49, + "column": 43 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 972, + 980 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 12 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 983, + 991 + ], + "loc": { + "start": { + "line": 50, + "column": 15 + }, + "end": { + "line": 50, + "column": 23 + } + } + }, + "right": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [], + "range": [ + 1006, + 1015 + ], + "loc": { + "start": { + "line": 50, + "column": 38 + }, + "end": { + "line": 51, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 995, + 1015 + ], + "loc": { + "start": { + "line": 50, + "column": 27 + }, + "end": { + "line": 51, + "column": 7 + } + } + }, + "range": [ + 983, + 1015 + ], + "loc": { + "start": { + "line": 50, + "column": 15 + }, + "end": { + "line": 51, + "column": 7 + } + } + }, + "range": [ + 972, + 1015 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 51, + "column": 7 + } + } + }, + "range": [ + 972, + 1016 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 51, + "column": 8 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "<=", + "left": { + "type": "Identifier", + "name": "ttl", + "range": [ + 1026, + 1029 + ], + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 11 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1033, + 1034 + ], + "loc": { + "start": { + "line": 53, + "column": 15 + }, + "end": { + "line": 53, + "column": 16 + } + } + }, + "range": [ + 1026, + 1034 + ], + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 16 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalStorage", + "range": [ + 1044, + 1056 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 1057, + 1060 + ], + "loc": { + "start": { + "line": 54, + "column": 19 + }, + "end": { + "line": 54, + "column": 22 + } + } + }, + "range": [ + 1044, + 1060 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1061, + 1064 + ], + "loc": { + "start": { + "line": 54, + "column": 23 + }, + "end": { + "line": 54, + "column": 26 + } + } + }, + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "value", + "range": [ + 1067, + 1072 + ], + "loc": { + "start": { + "line": 54, + "column": 29 + }, + "end": { + "line": 54, + "column": 34 + } + } + }, + "value": { + "type": "Identifier", + "name": "value", + "range": [ + 1074, + 1079 + ], + "loc": { + "start": { + "line": 54, + "column": 36 + }, + "end": { + "line": 54, + "column": 41 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1067, + 1079 + ], + "loc": { + "start": { + "line": 54, + "column": 29 + }, + "end": { + "line": 54, + "column": 41 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "exd", + "range": [ + 1081, + 1084 + ], + "loc": { + "start": { + "line": 54, + "column": 43 + }, + "end": { + "line": 54, + "column": 46 + } + } + }, + "value": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1086, + 1090 + ], + "loc": { + "start": { + "line": 54, + "column": 48 + }, + "end": { + "line": 54, + "column": 52 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1081, + 1090 + ], + "loc": { + "start": { + "line": 54, + "column": 43 + }, + "end": { + "line": 54, + "column": 52 + } + } + } + ], + "range": [ + 1066, + 1091 + ], + "loc": { + "start": { + "line": 54, + "column": 28 + }, + "end": { + "line": 54, + "column": 53 + } + } + } + ], + "range": [ + 1044, + 1092 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 54 + } + } + }, + "range": [ + 1044, + 1093 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 55 + } + } + } + ], + "range": [ + 1036, + 1099 + ], + "loc": { + "start": { + "line": 53, + "column": 18 + }, + "end": { + "line": 55, + "column": 5 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalStorage", + "range": [ + 1113, + 1125 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 1126, + 1129 + ], + "loc": { + "start": { + "line": 56, + "column": 19 + }, + "end": { + "line": 56, + "column": 22 + } + } + }, + "range": [ + 1113, + 1129 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1130, + 1133 + ], + "loc": { + "start": { + "line": 56, + "column": 23 + }, + "end": { + "line": 56, + "column": 26 + } + } + }, + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "value", + "range": [ + 1136, + 1141 + ], + "loc": { + "start": { + "line": 56, + "column": 29 + }, + "end": { + "line": 56, + "column": 34 + } + } + }, + "value": { + "type": "Identifier", + "name": "value", + "range": [ + 1143, + 1148 + ], + "loc": { + "start": { + "line": 56, + "column": 36 + }, + "end": { + "line": 56, + "column": 41 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1136, + 1148 + ], + "loc": { + "start": { + "line": 56, + "column": 29 + }, + "end": { + "line": 56, + "column": 41 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "exd", + "range": [ + 1150, + 1153 + ], + "loc": { + "start": { + "line": 56, + "column": 43 + }, + "end": { + "line": 56, + "column": 46 + } + } + }, + "value": { + "type": "BinaryExpression", + "operator": "+", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalStorageDriver", + "range": [ + 1156, + 1174 + ], + "loc": { + "start": { + "line": 56, + "column": 49 + }, + "end": { + "line": 56, + "column": 67 + } + } + }, + "property": { + "type": "Identifier", + "name": "_now", + "range": [ + 1175, + 1179 + ], + "loc": { + "start": { + "line": 56, + "column": 68 + }, + "end": { + "line": 56, + "column": 72 + } + } + }, + "range": [ + 1156, + 1179 + ], + "loc": { + "start": { + "line": 56, + "column": 49 + }, + "end": { + "line": 56, + "column": 72 + } + } + }, + "right": { + "type": "Identifier", + "name": "ttl", + "range": [ + 1182, + 1185 + ], + "loc": { + "start": { + "line": 56, + "column": 75 + }, + "end": { + "line": 56, + "column": 78 + } + } + }, + "range": [ + 1156, + 1185 + ], + "loc": { + "start": { + "line": 56, + "column": 49 + }, + "end": { + "line": 56, + "column": 78 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1150, + 1186 + ], + "loc": { + "start": { + "line": 56, + "column": 43 + }, + "end": { + "line": 56, + "column": 79 + } + } + } + ], + "range": [ + 1135, + 1187 + ], + "loc": { + "start": { + "line": 56, + "column": 28 + }, + "end": { + "line": 56, + "column": 80 + } + } + } + ], + "range": [ + 1113, + 1188 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 81 + } + } + }, + "range": [ + 1113, + 1189 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 82 + } + } + } + ], + "range": [ + 1105, + 1195 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 57, + "column": 5 + } + } + }, + "range": [ + 1022, + 1195 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 57, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1201, + 1209 + ], + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1210, + 1214 + ], + "loc": { + "start": { + "line": 59, + "column": 13 + }, + "end": { + "line": 59, + "column": 17 + } + } + } + ], + "range": [ + 1201, + 1215 + ], + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 18 + } + } + }, + "range": [ + 1201, + 1216 + ], + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 19 + } + } + } + ], + "range": [ + 966, + 1220 + ], + "loc": { + "start": { + "line": 49, + "column": 45 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 927, + 1220 + ], + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 923, + 1220 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 60, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n * @returns {Boolean}\n ", + "range": [ + 783, + 920 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Number} timeout\n * @param {Function} callback\n ", + "range": [ + 1224, + 1319 + ], + "loc": { + "start": { + "line": 62, + "column": 2 + }, + "end": { + "line": 66, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_invalidate", + "range": [ + 1322, + 1333 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 67, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1334, + 1337 + ], + "loc": { + "start": { + "line": 67, + "column": 14 + }, + "end": { + "line": 67, + "column": 17 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "timeout", + "range": [ + 1339, + 1346 + ], + "loc": { + "start": { + "line": 67, + "column": 19 + }, + "end": { + "line": 67, + "column": 26 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1349, + 1350 + ], + "loc": { + "start": { + "line": 67, + "column": 29 + }, + "end": { + "line": 67, + "column": 30 + } + } + }, + "range": [ + 1339, + 1350 + ], + "loc": { + "start": { + "line": 67, + "column": 19 + }, + "end": { + "line": 67, + "column": 30 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1352, + 1360 + ], + "loc": { + "start": { + "line": 67, + "column": 32 + }, + "end": { + "line": 67, + "column": 40 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1363, + 1367 + ], + "loc": { + "start": { + "line": 67, + "column": 43 + }, + "end": { + "line": 67, + "column": 47 + } + } + }, + "range": [ + 1352, + 1367 + ], + "loc": { + "start": { + "line": 67, + "column": 32 + }, + "end": { + "line": 67, + "column": 47 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1375, + 1383 + ], + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 68, + "column": 12 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1386, + 1394 + ], + "loc": { + "start": { + "line": 68, + "column": 15 + }, + "end": { + "line": 68, + "column": 23 + } + } + }, + "right": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [], + "range": [ + 1409, + 1418 + ], + "loc": { + "start": { + "line": 68, + "column": 38 + }, + "end": { + "line": 69, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1398, + 1418 + ], + "loc": { + "start": { + "line": 68, + "column": 27 + }, + "end": { + "line": 69, + "column": 7 + } + } + }, + "range": [ + 1386, + 1418 + ], + "loc": { + "start": { + "line": 68, + "column": 15 + }, + "end": { + "line": 69, + "column": 7 + } + } + }, + "range": [ + 1375, + 1418 + ], + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 69, + "column": 7 + } + } + }, + "range": [ + 1375, + 1419 + ], + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 69, + "column": 8 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "<=", + "left": { + "type": "Identifier", + "name": "timeout", + "range": [ + 1429, + 1436 + ], + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 15 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1440, + 1441 + ], + "loc": { + "start": { + "line": 71, + "column": 19 + }, + "end": { + "line": 71, + "column": 20 + } + } + }, + "range": [ + 1429, + 1441 + ], + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 20 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalStorage", + "range": [ + 1451, + 1463 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "remove", + "range": [ + 1464, + 1470 + ], + "loc": { + "start": { + "line": 72, + "column": 19 + }, + "end": { + "line": 72, + "column": 25 + } + } + }, + "range": [ + 1451, + 1470 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1471, + 1474 + ], + "loc": { + "start": { + "line": 72, + "column": 26 + }, + "end": { + "line": 72, + "column": 29 + } + } + } + ], + "range": [ + 1451, + 1475 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 30 + } + } + }, + "range": [ + 1451, + 1476 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1484, + 1492 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1493, + 1497 + ], + "loc": { + "start": { + "line": 74, + "column": 15 + }, + "end": { + "line": 74, + "column": 19 + } + } + } + ], + "range": [ + 1484, + 1498 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 20 + } + } + }, + "range": [ + 1484, + 1499 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 21 + } + } + }, + { + "type": "ReturnStatement", + "argument": null, + "range": [ + 1506, + 1513 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 13 + } + } + } + ], + "range": [ + 1443, + 1519 + ], + "loc": { + "start": { + "line": 71, + "column": 22 + }, + "end": { + "line": 76, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1425, + 1519 + ], + "loc": { + "start": { + "line": 71, + "column": 4 + }, + "end": { + "line": 76, + "column": 5 + } + } + }, + { + "type": "TryStatement", + "block": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "record", + "range": [ + 1541, + 1547 + ], + "loc": { + "start": { + "line": 79, + "column": 10 + }, + "end": { + "line": 79, + "column": 16 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalStorage", + "range": [ + 1550, + 1562 + ], + "loc": { + "start": { + "line": 79, + "column": 19 + }, + "end": { + "line": 79, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 1563, + 1566 + ], + "loc": { + "start": { + "line": 79, + "column": 32 + }, + "end": { + "line": 79, + "column": 35 + } + } + }, + "range": [ + 1550, + 1566 + ], + "loc": { + "start": { + "line": 79, + "column": 19 + }, + "end": { + "line": 79, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1567, + 1570 + ], + "loc": { + "start": { + "line": 79, + "column": 36 + }, + "end": { + "line": 79, + "column": 39 + } + } + } + ], + "range": [ + 1550, + 1571 + ], + "loc": { + "start": { + "line": 79, + "column": 19 + }, + "end": { + "line": 79, + "column": 40 + } + } + }, + "range": [ + 1541, + 1571 + ], + "loc": { + "start": { + "line": 79, + "column": 10 + }, + "end": { + "line": 79, + "column": 40 + } + } + } + ], + "kind": "let", + "range": [ + 1537, + 1572 + ], + "loc": { + "start": { + "line": 79, + "column": 6 + }, + "end": { + "line": 79, + "column": 41 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "record", + "range": [ + 1580, + 1586 + ], + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "exd", + "range": [ + 1587, + 1590 + ], + "loc": { + "start": { + "line": 81, + "column": 13 + }, + "end": { + "line": 81, + "column": 16 + } + } + }, + "range": [ + 1580, + 1590 + ], + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 16 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "+", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalStorageDriver", + "range": [ + 1593, + 1611 + ], + "loc": { + "start": { + "line": 81, + "column": 19 + }, + "end": { + "line": 81, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "_now", + "range": [ + 1612, + 1616 + ], + "loc": { + "start": { + "line": 81, + "column": 38 + }, + "end": { + "line": 81, + "column": 42 + } + } + }, + "range": [ + 1593, + 1616 + ], + "loc": { + "start": { + "line": 81, + "column": 19 + }, + "end": { + "line": 81, + "column": 42 + } + } + }, + "right": { + "type": "Identifier", + "name": "timeout", + "range": [ + 1619, + 1626 + ], + "loc": { + "start": { + "line": 81, + "column": 45 + }, + "end": { + "line": 81, + "column": 52 + } + } + }, + "range": [ + 1593, + 1626 + ], + "loc": { + "start": { + "line": 81, + "column": 19 + }, + "end": { + "line": 81, + "column": 52 + } + } + }, + "range": [ + 1580, + 1626 + ], + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 52 + } + } + }, + "range": [ + 1580, + 1627 + ], + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 53 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalStorage", + "range": [ + 1635, + 1647 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 1648, + 1651 + ], + "loc": { + "start": { + "line": 83, + "column": 19 + }, + "end": { + "line": 83, + "column": 22 + } + } + }, + "range": [ + 1635, + 1651 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1652, + 1655 + ], + "loc": { + "start": { + "line": 83, + "column": 23 + }, + "end": { + "line": 83, + "column": 26 + } + } + }, + { + "type": "Identifier", + "name": "record", + "range": [ + 1657, + 1663 + ], + "loc": { + "start": { + "line": 83, + "column": 28 + }, + "end": { + "line": 83, + "column": 34 + } + } + } + ], + "range": [ + 1635, + 1664 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 35 + } + } + }, + "range": [ + 1635, + 1665 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 36 + } + } + } + ], + "range": [ + 1529, + 1671 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 84, + "column": 5 + } + } + }, + "handler": { + "type": "CatchClause", + "param": { + "type": "Identifier", + "name": "e", + "range": [ + 1679, + 1680 + ], + "loc": { + "start": { + "line": 84, + "column": 13 + }, + "end": { + "line": 84, + "column": 14 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [], + "range": [ + 1682, + 1712 + ], + "loc": { + "start": { + "line": 84, + "column": 16 + }, + "end": { + "line": 86, + "column": 5 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " do nothing...", + "range": [ + 1690, + 1706 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 22 + } + } + } + ] + }, + "range": [ + 1672, + 1712 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + "finalizer": null, + "range": [ + 1525, + 1712 + ], + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1718, + 1726 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1727, + 1731 + ], + "loc": { + "start": { + "line": 88, + "column": 13 + }, + "end": { + "line": 88, + "column": 17 + } + } + } + ], + "range": [ + 1718, + 1732 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 18 + } + } + }, + "range": [ + 1718, + 1733 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 19 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " do nothing...", + "range": [ + 1690, + 1706 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 22 + } + } + } + ] + } + ], + "range": [ + 1369, + 1737 + ], + "loc": { + "start": { + "line": 67, + "column": 49 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1333, + 1737 + ], + "loc": { + "start": { + "line": 67, + "column": 13 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1322, + 1737 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 89, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Number} timeout\n * @param {Function} callback\n ", + "range": [ + 1224, + 1319 + ], + "loc": { + "start": { + "line": 62, + "column": 2 + }, + "end": { + "line": 66, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 1741, + 1813 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 94, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_flush", + "range": [ + 1816, + 1822 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 95, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1823, + 1831 + ], + "loc": { + "start": { + "line": 95, + "column": 9 + }, + "end": { + "line": 95, + "column": 17 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1834, + 1838 + ], + "loc": { + "start": { + "line": 95, + "column": 20 + }, + "end": { + "line": 95, + "column": 24 + } + } + }, + "range": [ + 1823, + 1838 + ], + "loc": { + "start": { + "line": 95, + "column": 9 + }, + "end": { + "line": 95, + "column": 24 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1846, + 1854 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 96, + "column": 12 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1857, + 1865 + ], + "loc": { + "start": { + "line": 96, + "column": 15 + }, + "end": { + "line": 96, + "column": 23 + } + } + }, + "right": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [], + "range": [ + 1880, + 1889 + ], + "loc": { + "start": { + "line": 96, + "column": 38 + }, + "end": { + "line": 97, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1869, + 1889 + ], + "loc": { + "start": { + "line": 96, + "column": 27 + }, + "end": { + "line": 97, + "column": 7 + } + } + }, + "range": [ + 1857, + 1889 + ], + "loc": { + "start": { + "line": 96, + "column": 15 + }, + "end": { + "line": 97, + "column": 7 + } + } + }, + "range": [ + 1846, + 1889 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 97, + "column": 7 + } + } + }, + "range": [ + 1846, + 1890 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 97, + "column": 8 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalStorage", + "range": [ + 1896, + 1908 + ], + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "clear", + "range": [ + 1909, + 1914 + ], + "loc": { + "start": { + "line": 99, + "column": 17 + }, + "end": { + "line": 99, + "column": 22 + } + } + }, + "range": [ + 1896, + 1914 + ], + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 22 + } + } + }, + "arguments": [], + "range": [ + 1896, + 1916 + ], + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 24 + } + } + }, + "range": [ + 1896, + 1917 + ], + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 25 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1923, + 1931 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1932, + 1936 + ], + "loc": { + "start": { + "line": 101, + "column": 13 + }, + "end": { + "line": 101, + "column": 17 + } + } + } + ], + "range": [ + 1923, + 1937 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 18 + } + } + }, + "range": [ + 1923, + 1938 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 19 + } + } + } + ], + "range": [ + 1840, + 1942 + ], + "loc": { + "start": { + "line": 95, + "column": 26 + }, + "end": { + "line": 102, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1822, + 1942 + ], + "loc": { + "start": { + "line": 95, + "column": 8 + }, + "end": { + "line": 102, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1816, + 1942 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 102, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 1741, + 1813 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 94, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n * @private\n ", + "range": [ + 1946, + 1992 + ], + "loc": { + "start": { + "line": 104, + "column": 2 + }, + "end": { + "line": 107, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_now", + "range": [ + 2006, + 2010 + ], + "loc": { + "start": { + "line": 108, + "column": 13 + }, + "end": { + "line": 108, + "column": 17 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Date", + "range": [ + 2030, + 2034 + ], + "loc": { + "start": { + "line": 109, + "column": 15 + }, + "end": { + "line": 109, + "column": 19 + } + } + }, + "arguments": [], + "range": [ + 2026, + 2036 + ], + "loc": { + "start": { + "line": 109, + "column": 11 + }, + "end": { + "line": 109, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "getTime", + "range": [ + 2037, + 2044 + ], + "loc": { + "start": { + "line": 109, + "column": 22 + }, + "end": { + "line": 109, + "column": 29 + } + } + }, + "range": [ + 2026, + 2044 + ], + "loc": { + "start": { + "line": 109, + "column": 11 + }, + "end": { + "line": 109, + "column": 29 + } + } + }, + "arguments": [], + "range": [ + 2026, + 2046 + ], + "loc": { + "start": { + "line": 109, + "column": 11 + }, + "end": { + "line": 109, + "column": 31 + } + } + }, + "range": [ + 2019, + 2047 + ], + "loc": { + "start": { + "line": 109, + "column": 4 + }, + "end": { + "line": 109, + "column": 32 + } + } + } + ], + "range": [ + 2013, + 2051 + ], + "loc": { + "start": { + "line": 108, + "column": 20 + }, + "end": { + "line": 110, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2010, + 2051 + ], + "loc": { + "start": { + "line": 108, + "column": 17 + }, + "end": { + "line": 110, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1995, + 2051 + ], + "loc": { + "start": { + "line": 108, + "column": 2 + }, + "end": { + "line": 110, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n * @private\n ", + "range": [ + 1946, + 1992 + ], + "loc": { + "start": { + "line": 104, + "column": 2 + }, + "end": { + "line": 107, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n *\n * @param {Object} response\n * @param {String} key\n * @returns {*}\n * @private\n ", + "range": [ + 2055, + 2156 + ], + "loc": { + "start": { + "line": 112, + "column": 2 + }, + "end": { + "line": 118, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_isAlive", + "range": [ + 2166, + 2174 + ], + "loc": { + "start": { + "line": 119, + "column": 9 + }, + "end": { + "line": 119, + "column": 17 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "response", + "range": [ + 2175, + 2183 + ], + "loc": { + "start": { + "line": 119, + "column": 18 + }, + "end": { + "line": 119, + "column": 26 + } + } + }, + { + "type": "Identifier", + "name": "key", + "range": [ + 2185, + 2188 + ], + "loc": { + "start": { + "line": 119, + "column": 28 + }, + "end": { + "line": 119, + "column": 31 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "response", + "range": [ + 2201, + 2209 + ], + "loc": { + "start": { + "line": 120, + "column": 9 + }, + "end": { + "line": 120, + "column": 17 + } + } + }, + "prefix": true, + "range": [ + 2200, + 2209 + ], + "loc": { + "start": { + "line": 120, + "column": 8 + }, + "end": { + "line": 120, + "column": 17 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 2226, + 2231 + ], + "loc": { + "start": { + "line": 121, + "column": 13 + }, + "end": { + "line": 121, + "column": 18 + } + } + }, + "range": [ + 2219, + 2232 + ], + "loc": { + "start": { + "line": 121, + "column": 6 + }, + "end": { + "line": 121, + "column": 19 + } + } + } + ], + "range": [ + 2211, + 2238 + ], + "loc": { + "start": { + "line": 120, + "column": 19 + }, + "end": { + "line": 122, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 2196, + 2238 + ], + "loc": { + "start": { + "line": 120, + "column": 4 + }, + "end": { + "line": 122, + "column": 5 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 2248, + 2256 + ], + "loc": { + "start": { + "line": 124, + "column": 8 + }, + "end": { + "line": 124, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "exd", + "range": [ + 2257, + 2260 + ], + "loc": { + "start": { + "line": 124, + "column": 17 + }, + "end": { + "line": 124, + "column": 20 + } + } + }, + "range": [ + 2248, + 2260 + ], + "loc": { + "start": { + "line": 124, + "column": 8 + }, + "end": { + "line": 124, + "column": 20 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 2264, + 2272 + ], + "loc": { + "start": { + "line": 124, + "column": 24 + }, + "end": { + "line": 124, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "exd", + "range": [ + 2273, + 2276 + ], + "loc": { + "start": { + "line": 124, + "column": 33 + }, + "end": { + "line": 124, + "column": 36 + } + } + }, + "range": [ + 2264, + 2276 + ], + "loc": { + "start": { + "line": 124, + "column": 24 + }, + "end": { + "line": 124, + "column": 36 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 2281, + 2285 + ], + "loc": { + "start": { + "line": 124, + "column": 41 + }, + "end": { + "line": 124, + "column": 45 + } + } + }, + "range": [ + 2264, + 2285 + ], + "loc": { + "start": { + "line": 124, + "column": 24 + }, + "end": { + "line": 124, + "column": 45 + } + } + }, + "range": [ + 2248, + 2285 + ], + "loc": { + "start": { + "line": 124, + "column": 8 + }, + "end": { + "line": 124, + "column": 45 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "<=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 2289, + 2297 + ], + "loc": { + "start": { + "line": 124, + "column": 49 + }, + "end": { + "line": 124, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "name": "exd", + "range": [ + 2298, + 2301 + ], + "loc": { + "start": { + "line": 124, + "column": 58 + }, + "end": { + "line": 124, + "column": 61 + } + } + }, + "range": [ + 2289, + 2301 + ], + "loc": { + "start": { + "line": 124, + "column": 49 + }, + "end": { + "line": 124, + "column": 61 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalStorageDriver", + "range": [ + 2305, + 2323 + ], + "loc": { + "start": { + "line": 124, + "column": 65 + }, + "end": { + "line": 124, + "column": 83 + } + } + }, + "property": { + "type": "Identifier", + "name": "_now", + "range": [ + 2324, + 2328 + ], + "loc": { + "start": { + "line": 124, + "column": 84 + }, + "end": { + "line": 124, + "column": 88 + } + } + }, + "range": [ + 2305, + 2328 + ], + "loc": { + "start": { + "line": 124, + "column": 65 + }, + "end": { + "line": 124, + "column": 88 + } + } + }, + "range": [ + 2289, + 2328 + ], + "loc": { + "start": { + "line": 124, + "column": 49 + }, + "end": { + "line": 124, + "column": 88 + } + } + }, + "range": [ + 2248, + 2328 + ], + "loc": { + "start": { + "line": 124, + "column": 8 + }, + "end": { + "line": 124, + "column": 88 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalStorage", + "range": [ + 2338, + 2350 + ], + "loc": { + "start": { + "line": 125, + "column": 6 + }, + "end": { + "line": 125, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "remove", + "range": [ + 2351, + 2357 + ], + "loc": { + "start": { + "line": 125, + "column": 19 + }, + "end": { + "line": 125, + "column": 25 + } + } + }, + "range": [ + 2338, + 2357 + ], + "loc": { + "start": { + "line": 125, + "column": 6 + }, + "end": { + "line": 125, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 2358, + 2361 + ], + "loc": { + "start": { + "line": 125, + "column": 26 + }, + "end": { + "line": 125, + "column": 29 + } + } + } + ], + "range": [ + 2338, + 2362 + ], + "loc": { + "start": { + "line": 125, + "column": 6 + }, + "end": { + "line": 125, + "column": 30 + } + } + }, + "range": [ + 2338, + 2363 + ], + "loc": { + "start": { + "line": 125, + "column": 6 + }, + "end": { + "line": 125, + "column": 31 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 2377, + 2382 + ], + "loc": { + "start": { + "line": 126, + "column": 13 + }, + "end": { + "line": 126, + "column": 18 + } + } + }, + "range": [ + 2370, + 2383 + ], + "loc": { + "start": { + "line": 126, + "column": 6 + }, + "end": { + "line": 126, + "column": 19 + } + } + } + ], + "range": [ + 2330, + 2389 + ], + "loc": { + "start": { + "line": 124, + "column": 90 + }, + "end": { + "line": 127, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 2244, + 2389 + ], + "loc": { + "start": { + "line": 124, + "column": 4 + }, + "end": { + "line": 127, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 2402, + 2406 + ], + "loc": { + "start": { + "line": 129, + "column": 11 + }, + "end": { + "line": 129, + "column": 15 + } + } + }, + "range": [ + 2395, + 2407 + ], + "loc": { + "start": { + "line": 129, + "column": 4 + }, + "end": { + "line": 129, + "column": 16 + } + } + } + ], + "range": [ + 2190, + 2411 + ], + "loc": { + "start": { + "line": 119, + "column": 33 + }, + "end": { + "line": 130, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2174, + 2411 + ], + "loc": { + "start": { + "line": 119, + "column": 17 + }, + "end": { + "line": 130, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2159, + 2411 + ], + "loc": { + "start": { + "line": 119, + "column": 2 + }, + "end": { + "line": 130, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n *\n * @param {Object} response\n * @param {String} key\n * @returns {*}\n * @private\n ", + "range": [ + 2055, + 2156 + ], + "loc": { + "start": { + "line": 112, + "column": 2 + }, + "end": { + "line": 118, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 243, + 2413 + ], + "loc": { + "start": { + "line": 13, + "column": 55 + }, + "end": { + "line": 131, + "column": 1 + } + } + }, + "range": [ + 195, + 2413 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 131, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * In memory driver implementation\n ", + "range": [ + 145, + 187 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 188, + 2413 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 131, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * In memory driver implementation\n ", + "range": [ + 145, + 187 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 2413 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 131, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * In memory driver implementation\n ", + "range": [ + 145, + 187 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 283, + 349 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 21, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 509, + 575 + ], + "loc": { + "start": { + "line": 29, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n * @returns {Boolean}\n ", + "range": [ + 783, + 920 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Number} timeout\n * @param {Function} callback\n ", + "range": [ + 1224, + 1319 + ], + "loc": { + "start": { + "line": 62, + "column": 2 + }, + "end": { + "line": 66, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " do nothing...", + "range": [ + 1690, + 1706 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 22 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 1741, + 1813 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 94, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Number}\n * @private\n ", + "range": [ + 1946, + 1992 + ], + "loc": { + "start": { + "line": 104, + "column": 2 + }, + "end": { + "line": 107, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n *\n * @param {Object} response\n * @param {String} key\n * @returns {*}\n * @private\n ", + "range": [ + 2055, + 2156 + ], + "loc": { + "start": { + "line": 112, + "column": 2 + }, + "end": { + "line": 118, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-cache/ast/source/Driver/RedisDriver.js.json b/docs-api/deep-cache/ast/source/Driver/RedisDriver.js.json new file mode 100644 index 00000000..f3513d2b --- /dev/null +++ b/docs-api/deep-cache/ast/source/Driver/RedisDriver.js.json @@ -0,0 +1,5191 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + "imported": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./AbstractDriver", + "raw": "'./AbstractDriver'", + "range": [ + 90, + 108 + ], + "loc": { + "start": { + "line": 7, + "column": 29 + }, + "end": { + "line": 7, + "column": 47 + } + } + }, + "range": [ + 61, + 109 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 48 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Redis", + "range": [ + 117, + 122 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 12 + } + } + }, + "range": [ + 117, + 122 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 12 + } + } + } + ], + "source": { + "type": "Literal", + "value": "ioredis", + "raw": "'ioredis'", + "range": [ + 128, + 137 + ], + "loc": { + "start": { + "line": 8, + "column": 18 + }, + "end": { + "line": 8, + "column": 27 + } + } + }, + "range": [ + 110, + 138 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 28 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "RedisClusterException", + "range": [ + 147, + 168 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 29 + } + } + }, + "imported": { + "type": "Identifier", + "name": "RedisClusterException", + "range": [ + 147, + 168 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 29 + } + } + }, + "range": [ + 147, + 168 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 29 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/RedisClusterException", + "raw": "'./Exception/RedisClusterException'", + "range": [ + 175, + 210 + ], + "loc": { + "start": { + "line": 9, + "column": 36 + }, + "end": { + "line": 9, + "column": 71 + } + } + }, + "range": [ + 139, + 211 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 72 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Redis/Elasticache driver implementation\n ", + "range": [ + 213, + 263 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "RedisDriver", + "range": [ + 277, + 288 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 24 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 297, + 311 + ], + "loc": { + "start": { + "line": 14, + "column": 33 + }, + "end": { + "line": 14, + "column": 47 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 353, + 364 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "dsn", + "range": [ + 365, + 368 + ], + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 17 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 376, + 381 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 376, + 383 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 11 + } + } + }, + "range": [ + 376, + 384 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 390, + 394 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_client", + "range": [ + 395, + 402 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 16 + } + } + }, + "range": [ + 390, + 402 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 16 + } + } + }, + "right": { + "type": "ConditionalExpression", + "test": { + "type": "Identifier", + "name": "dsn", + "range": [ + 405, + 408 + ], + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 22 + } + } + }, + "consequent": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Redis", + "range": [ + 415, + 420 + ], + "loc": { + "start": { + "line": 21, + "column": 29 + }, + "end": { + "line": 21, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "dsn", + "range": [ + 421, + 424 + ], + "loc": { + "start": { + "line": 21, + "column": 35 + }, + "end": { + "line": 21, + "column": 38 + } + } + } + ], + "range": [ + 411, + 425 + ], + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 39 + } + } + }, + "alternate": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Redis", + "range": [ + 432, + 437 + ], + "loc": { + "start": { + "line": 21, + "column": 46 + }, + "end": { + "line": 21, + "column": 51 + } + } + }, + "arguments": [], + "range": [ + 428, + 439 + ], + "loc": { + "start": { + "line": 21, + "column": 42 + }, + "end": { + "line": 21, + "column": 53 + } + } + }, + "range": [ + 405, + 439 + ], + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 53 + } + } + }, + "range": [ + 390, + 439 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 53 + } + } + }, + "range": [ + 390, + 440 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 54 + } + } + } + ], + "range": [ + 370, + 444 + ], + "loc": { + "start": { + "line": 18, + "column": 19 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 364, + 444 + ], + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 353, + 444 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} dsn\n ", + "range": [ + 316, + 350 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Redis}\n ", + "range": [ + 448, + 479 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "client", + "range": [ + 486, + 492 + ], + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 508, + 512 + ], + "loc": { + "start": { + "line": 28, + "column": 11 + }, + "end": { + "line": 28, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_client", + "range": [ + 513, + 520 + ], + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 23 + } + } + }, + "range": [ + 508, + 520 + ], + "loc": { + "start": { + "line": 28, + "column": 11 + }, + "end": { + "line": 28, + "column": 23 + } + } + }, + "range": [ + 501, + 521 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 24 + } + } + } + ], + "range": [ + 495, + 525 + ], + "loc": { + "start": { + "line": 27, + "column": 15 + }, + "end": { + "line": 29, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 492, + 525 + ], + "loc": { + "start": { + "line": 27, + "column": 12 + }, + "end": { + "line": 29, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 482, + 525 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Redis}\n ", + "range": [ + 448, + 479 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 529, + 595 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_has", + "range": [ + 598, + 602 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 35, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 603, + 606 + ], + "loc": { + "start": { + "line": 35, + "column": 7 + }, + "end": { + "line": 35, + "column": 10 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 608, + 616 + ], + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 20 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 625, + 627 + ], + "loc": { + "start": { + "line": 35, + "column": 29 + }, + "end": { + "line": 35, + "column": 31 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 619, + 627 + ], + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 31 + } + } + }, + "range": [ + 608, + 627 + ], + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 31 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 635, + 639 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_client", + "range": [ + 640, + 647 + ], + "loc": { + "start": { + "line": 36, + "column": 9 + }, + "end": { + "line": 36, + "column": 16 + } + } + }, + "range": [ + 635, + 647 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "exists", + "range": [ + 648, + 654 + ], + "loc": { + "start": { + "line": 36, + "column": 17 + }, + "end": { + "line": 36, + "column": 23 + } + } + }, + "range": [ + 635, + 654 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 655, + 658 + ], + "loc": { + "start": { + "line": 36, + "column": 24 + }, + "end": { + "line": 36, + "column": 27 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 669, + 674 + ], + "loc": { + "start": { + "line": 36, + "column": 38 + }, + "end": { + "line": 36, + "column": 43 + } + } + }, + { + "type": "Identifier", + "name": "results", + "range": [ + 676, + 683 + ], + "loc": { + "start": { + "line": 36, + "column": 45 + }, + "end": { + "line": 36, + "column": 52 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "error", + "range": [ + 697, + 702 + ], + "loc": { + "start": { + "line": 37, + "column": 10 + }, + "end": { + "line": 37, + "column": 15 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "Identifier", + "name": "error", + "range": [ + 706, + 711 + ], + "loc": { + "start": { + "line": 37, + "column": 19 + }, + "end": { + "line": 37, + "column": 24 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 716, + 720 + ], + "loc": { + "start": { + "line": 37, + "column": 29 + }, + "end": { + "line": 37, + "column": 33 + } + } + }, + "range": [ + 706, + 720 + ], + "loc": { + "start": { + "line": 37, + "column": 19 + }, + "end": { + "line": 37, + "column": 33 + } + } + }, + "range": [ + 697, + 720 + ], + "loc": { + "start": { + "line": 37, + "column": 10 + }, + "end": { + "line": 37, + "column": 33 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "RedisClusterException", + "range": [ + 742, + 763 + ], + "loc": { + "start": { + "line": 38, + "column": 18 + }, + "end": { + "line": 38, + "column": 39 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 764, + 769 + ], + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 45 + } + } + } + ], + "range": [ + 738, + 770 + ], + "loc": { + "start": { + "line": 38, + "column": 14 + }, + "end": { + "line": 38, + "column": 46 + } + } + }, + "range": [ + 732, + 771 + ], + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 47 + } + } + } + ], + "range": [ + 722, + 779 + ], + "loc": { + "start": { + "line": 37, + "column": 35 + }, + "end": { + "line": 39, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 693, + 779 + ], + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 39, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 787, + 795 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "results", + "range": [ + 796, + 803 + ], + "loc": { + "start": { + "line": 41, + "column": 15 + }, + "end": { + "line": 41, + "column": 22 + } + } + } + ], + "range": [ + 787, + 804 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 23 + } + } + }, + "range": [ + 787, + 805 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 24 + } + } + } + ], + "range": [ + 685, + 811 + ], + "loc": { + "start": { + "line": 36, + "column": 54 + }, + "end": { + "line": 42, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 660, + 811 + ], + "loc": { + "start": { + "line": 36, + "column": 29 + }, + "end": { + "line": 42, + "column": 5 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 812, + 816 + ], + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 10 + } + } + }, + "range": [ + 660, + 816 + ], + "loc": { + "start": { + "line": 36, + "column": 29 + }, + "end": { + "line": 42, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 817, + 821 + ], + "loc": { + "start": { + "line": 42, + "column": 11 + }, + "end": { + "line": 42, + "column": 15 + } + } + } + ], + "range": [ + 660, + 822 + ], + "loc": { + "start": { + "line": 36, + "column": 29 + }, + "end": { + "line": 42, + "column": 16 + } + } + } + ], + "range": [ + 635, + 823 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 42, + "column": 17 + } + } + }, + "range": [ + 635, + 824 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 42, + "column": 18 + } + } + } + ], + "range": [ + 629, + 828 + ], + "loc": { + "start": { + "line": 35, + "column": 33 + }, + "end": { + "line": 43, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 602, + 828 + ], + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 43, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 598, + 828 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 43, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 529, + 595 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 832, + 898 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_get", + "range": [ + 901, + 905 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 49, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 906, + 909 + ], + "loc": { + "start": { + "line": 49, + "column": 7 + }, + "end": { + "line": 49, + "column": 10 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 911, + 919 + ], + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 20 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 928, + 930 + ], + "loc": { + "start": { + "line": 49, + "column": 29 + }, + "end": { + "line": 49, + "column": 31 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 922, + 930 + ], + "loc": { + "start": { + "line": 49, + "column": 23 + }, + "end": { + "line": 49, + "column": 31 + } + } + }, + "range": [ + 911, + 930 + ], + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 31 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 938, + 942 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_client", + "range": [ + 943, + 950 + ], + "loc": { + "start": { + "line": 50, + "column": 9 + }, + "end": { + "line": 50, + "column": 16 + } + } + }, + "range": [ + 938, + 950 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 951, + 954 + ], + "loc": { + "start": { + "line": 50, + "column": 17 + }, + "end": { + "line": 50, + "column": 20 + } + } + }, + "range": [ + 938, + 954 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 955, + 958 + ], + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 24 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 969, + 974 + ], + "loc": { + "start": { + "line": 50, + "column": 35 + }, + "end": { + "line": 50, + "column": 40 + } + } + }, + { + "type": "Identifier", + "name": "results", + "range": [ + 976, + 983 + ], + "loc": { + "start": { + "line": 50, + "column": 42 + }, + "end": { + "line": 50, + "column": 49 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "error", + "range": [ + 997, + 1002 + ], + "loc": { + "start": { + "line": 51, + "column": 10 + }, + "end": { + "line": 51, + "column": 15 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "Identifier", + "name": "error", + "range": [ + 1006, + 1011 + ], + "loc": { + "start": { + "line": 51, + "column": 19 + }, + "end": { + "line": 51, + "column": 24 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1016, + 1020 + ], + "loc": { + "start": { + "line": 51, + "column": 29 + }, + "end": { + "line": 51, + "column": 33 + } + } + }, + "range": [ + 1006, + 1020 + ], + "loc": { + "start": { + "line": 51, + "column": 19 + }, + "end": { + "line": 51, + "column": 33 + } + } + }, + "range": [ + 997, + 1020 + ], + "loc": { + "start": { + "line": 51, + "column": 10 + }, + "end": { + "line": 51, + "column": 33 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "RedisClusterException", + "range": [ + 1042, + 1063 + ], + "loc": { + "start": { + "line": 52, + "column": 18 + }, + "end": { + "line": 52, + "column": 39 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 1064, + 1069 + ], + "loc": { + "start": { + "line": 52, + "column": 40 + }, + "end": { + "line": 52, + "column": 45 + } + } + } + ], + "range": [ + 1038, + 1070 + ], + "loc": { + "start": { + "line": 52, + "column": 14 + }, + "end": { + "line": 52, + "column": 46 + } + } + }, + "range": [ + 1032, + 1071 + ], + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 47 + } + } + } + ], + "range": [ + 1022, + 1079 + ], + "loc": { + "start": { + "line": 51, + "column": 35 + }, + "end": { + "line": 53, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 993, + 1079 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 53, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1087, + 1095 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "results", + "range": [ + 1096, + 1103 + ], + "loc": { + "start": { + "line": 55, + "column": 15 + }, + "end": { + "line": 55, + "column": 22 + } + } + } + ], + "range": [ + 1087, + 1104 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 23 + } + } + }, + "range": [ + 1087, + 1105 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 24 + } + } + } + ], + "range": [ + 985, + 1111 + ], + "loc": { + "start": { + "line": 50, + "column": 51 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 960, + 1111 + ], + "loc": { + "start": { + "line": 50, + "column": 26 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 1112, + 1116 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 10 + } + } + }, + "range": [ + 960, + 1116 + ], + "loc": { + "start": { + "line": 50, + "column": 26 + }, + "end": { + "line": 56, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 1117, + 1121 + ], + "loc": { + "start": { + "line": 56, + "column": 11 + }, + "end": { + "line": 56, + "column": 15 + } + } + } + ], + "range": [ + 960, + 1122 + ], + "loc": { + "start": { + "line": 50, + "column": 26 + }, + "end": { + "line": 56, + "column": 16 + } + } + } + ], + "range": [ + 938, + 1123 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 56, + "column": 17 + } + } + }, + "range": [ + 938, + 1124 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 56, + "column": 18 + } + } + } + ], + "range": [ + 932, + 1128 + ], + "loc": { + "start": { + "line": 49, + "column": 33 + }, + "end": { + "line": 57, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 905, + 1128 + ], + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 57, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 901, + 1128 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 57, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 832, + 898 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n * @returns {Boolean}\n ", + "range": [ + 1132, + 1269 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_set", + "range": [ + 1272, + 1276 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 66, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1277, + 1280 + ], + "loc": { + "start": { + "line": 66, + "column": 7 + }, + "end": { + "line": 66, + "column": 10 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 1282, + 1287 + ], + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 17 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "ttl", + "range": [ + 1289, + 1292 + ], + "loc": { + "start": { + "line": 66, + "column": 19 + }, + "end": { + "line": 66, + "column": 22 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1295, + 1296 + ], + "loc": { + "start": { + "line": 66, + "column": 25 + }, + "end": { + "line": 66, + "column": 26 + } + } + }, + "range": [ + 1289, + 1296 + ], + "loc": { + "start": { + "line": 66, + "column": 19 + }, + "end": { + "line": 66, + "column": 26 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1297, + 1305 + ], + "loc": { + "start": { + "line": 66, + "column": 27 + }, + "end": { + "line": 66, + "column": 35 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 1314, + 1316 + ], + "loc": { + "start": { + "line": 66, + "column": 44 + }, + "end": { + "line": 66, + "column": 46 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 1308, + 1316 + ], + "loc": { + "start": { + "line": 66, + "column": 38 + }, + "end": { + "line": 66, + "column": 46 + } + } + }, + "range": [ + 1297, + 1316 + ], + "loc": { + "start": { + "line": 66, + "column": 27 + }, + "end": { + "line": 66, + "column": 46 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1324, + 1328 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_client", + "range": [ + 1329, + 1336 + ], + "loc": { + "start": { + "line": 67, + "column": 9 + }, + "end": { + "line": 67, + "column": 16 + } + } + }, + "range": [ + 1324, + 1336 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 1337, + 1340 + ], + "loc": { + "start": { + "line": 67, + "column": 17 + }, + "end": { + "line": 67, + "column": 20 + } + } + }, + "range": [ + 1324, + 1340 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1341, + 1344 + ], + "loc": { + "start": { + "line": 67, + "column": 21 + }, + "end": { + "line": 67, + "column": 24 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 1346, + 1351 + ], + "loc": { + "start": { + "line": 67, + "column": 26 + }, + "end": { + "line": 67, + "column": 31 + } + } + }, + { + "type": "Identifier", + "name": "ttl", + "range": [ + 1353, + 1356 + ], + "loc": { + "start": { + "line": 67, + "column": 33 + }, + "end": { + "line": 67, + "column": 36 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 1367, + 1372 + ], + "loc": { + "start": { + "line": 67, + "column": 47 + }, + "end": { + "line": 67, + "column": 52 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "error", + "range": [ + 1386, + 1391 + ], + "loc": { + "start": { + "line": 68, + "column": 10 + }, + "end": { + "line": 68, + "column": 15 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "Identifier", + "name": "error", + "range": [ + 1395, + 1400 + ], + "loc": { + "start": { + "line": 68, + "column": 19 + }, + "end": { + "line": 68, + "column": 24 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1405, + 1409 + ], + "loc": { + "start": { + "line": 68, + "column": 29 + }, + "end": { + "line": 68, + "column": 33 + } + } + }, + "range": [ + 1395, + 1409 + ], + "loc": { + "start": { + "line": 68, + "column": 19 + }, + "end": { + "line": 68, + "column": 33 + } + } + }, + "range": [ + 1386, + 1409 + ], + "loc": { + "start": { + "line": 68, + "column": 10 + }, + "end": { + "line": 68, + "column": 33 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "RedisClusterException", + "range": [ + 1431, + 1452 + ], + "loc": { + "start": { + "line": 69, + "column": 18 + }, + "end": { + "line": 69, + "column": 39 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 1453, + 1458 + ], + "loc": { + "start": { + "line": 69, + "column": 40 + }, + "end": { + "line": 69, + "column": 45 + } + } + } + ], + "range": [ + 1427, + 1459 + ], + "loc": { + "start": { + "line": 69, + "column": 14 + }, + "end": { + "line": 69, + "column": 46 + } + } + }, + "range": [ + 1421, + 1460 + ], + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 47 + } + } + } + ], + "range": [ + 1411, + 1468 + ], + "loc": { + "start": { + "line": 68, + "column": 35 + }, + "end": { + "line": 70, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1382, + 1468 + ], + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 70, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1476, + 1484 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1485, + 1489 + ], + "loc": { + "start": { + "line": 72, + "column": 15 + }, + "end": { + "line": 72, + "column": 19 + } + } + } + ], + "range": [ + 1476, + 1490 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 20 + } + } + }, + "range": [ + 1476, + 1491 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 21 + } + } + } + ], + "range": [ + 1374, + 1497 + ], + "loc": { + "start": { + "line": 67, + "column": 54 + }, + "end": { + "line": 73, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1358, + 1497 + ], + "loc": { + "start": { + "line": 67, + "column": 38 + }, + "end": { + "line": 73, + "column": 5 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 1498, + 1502 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 10 + } + } + }, + "range": [ + 1358, + 1502 + ], + "loc": { + "start": { + "line": 67, + "column": 38 + }, + "end": { + "line": 73, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 1503, + 1507 + ], + "loc": { + "start": { + "line": 73, + "column": 11 + }, + "end": { + "line": 73, + "column": 15 + } + } + } + ], + "range": [ + 1358, + 1508 + ], + "loc": { + "start": { + "line": 67, + "column": 38 + }, + "end": { + "line": 73, + "column": 16 + } + } + } + ], + "range": [ + 1324, + 1509 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 73, + "column": 17 + } + } + }, + "range": [ + 1324, + 1510 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 73, + "column": 18 + } + } + } + ], + "range": [ + 1318, + 1514 + ], + "loc": { + "start": { + "line": 66, + "column": 48 + }, + "end": { + "line": 74, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1276, + 1514 + ], + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 74, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1272, + 1514 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 74, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n * @returns {Boolean}\n ", + "range": [ + 1132, + 1269 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Number} timeout\n * @param {Function} callback\n ", + "range": [ + 1518, + 1613 + ], + "loc": { + "start": { + "line": 76, + "column": 2 + }, + "end": { + "line": 80, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_invalidate", + "range": [ + 1616, + 1627 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 81, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1628, + 1631 + ], + "loc": { + "start": { + "line": 81, + "column": 14 + }, + "end": { + "line": 81, + "column": 17 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "timeout", + "range": [ + 1633, + 1640 + ], + "loc": { + "start": { + "line": 81, + "column": 19 + }, + "end": { + "line": 81, + "column": 26 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1643, + 1644 + ], + "loc": { + "start": { + "line": 81, + "column": 29 + }, + "end": { + "line": 81, + "column": 30 + } + } + }, + "range": [ + 1633, + 1644 + ], + "loc": { + "start": { + "line": 81, + "column": 19 + }, + "end": { + "line": 81, + "column": 30 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1646, + 1654 + ], + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 40 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 1663, + 1665 + ], + "loc": { + "start": { + "line": 81, + "column": 49 + }, + "end": { + "line": 81, + "column": 51 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 1657, + 1665 + ], + "loc": { + "start": { + "line": 81, + "column": 43 + }, + "end": { + "line": 81, + "column": 51 + } + } + }, + "range": [ + 1646, + 1665 + ], + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 51 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1673, + 1677 + ], + "loc": { + "start": { + "line": 82, + "column": 4 + }, + "end": { + "line": 82, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_client", + "range": [ + 1678, + 1685 + ], + "loc": { + "start": { + "line": 82, + "column": 9 + }, + "end": { + "line": 82, + "column": 16 + } + } + }, + "range": [ + 1673, + 1685 + ], + "loc": { + "start": { + "line": 82, + "column": 4 + }, + "end": { + "line": 82, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "del", + "range": [ + 1686, + 1689 + ], + "loc": { + "start": { + "line": 82, + "column": 17 + }, + "end": { + "line": 82, + "column": 20 + } + } + }, + "range": [ + 1673, + 1689 + ], + "loc": { + "start": { + "line": 82, + "column": 4 + }, + "end": { + "line": 82, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1690, + 1693 + ], + "loc": { + "start": { + "line": 82, + "column": 21 + }, + "end": { + "line": 82, + "column": 24 + } + } + }, + { + "type": "Identifier", + "name": "timeout", + "range": [ + 1695, + 1702 + ], + "loc": { + "start": { + "line": 82, + "column": 26 + }, + "end": { + "line": 82, + "column": 33 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 1713, + 1718 + ], + "loc": { + "start": { + "line": 82, + "column": 44 + }, + "end": { + "line": 82, + "column": 49 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "error", + "range": [ + 1732, + 1737 + ], + "loc": { + "start": { + "line": 83, + "column": 10 + }, + "end": { + "line": 83, + "column": 15 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "Identifier", + "name": "error", + "range": [ + 1741, + 1746 + ], + "loc": { + "start": { + "line": 83, + "column": 19 + }, + "end": { + "line": 83, + "column": 24 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1751, + 1755 + ], + "loc": { + "start": { + "line": 83, + "column": 29 + }, + "end": { + "line": 83, + "column": 33 + } + } + }, + "range": [ + 1741, + 1755 + ], + "loc": { + "start": { + "line": 83, + "column": 19 + }, + "end": { + "line": 83, + "column": 33 + } + } + }, + "range": [ + 1732, + 1755 + ], + "loc": { + "start": { + "line": 83, + "column": 10 + }, + "end": { + "line": 83, + "column": 33 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "RedisClusterException", + "range": [ + 1777, + 1798 + ], + "loc": { + "start": { + "line": 84, + "column": 18 + }, + "end": { + "line": 84, + "column": 39 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 1799, + 1804 + ], + "loc": { + "start": { + "line": 84, + "column": 40 + }, + "end": { + "line": 84, + "column": 45 + } + } + } + ], + "range": [ + 1773, + 1805 + ], + "loc": { + "start": { + "line": 84, + "column": 14 + }, + "end": { + "line": 84, + "column": 46 + } + } + }, + "range": [ + 1767, + 1806 + ], + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 47 + } + } + } + ], + "range": [ + 1757, + 1814 + ], + "loc": { + "start": { + "line": 83, + "column": 35 + }, + "end": { + "line": 85, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1728, + 1814 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 85, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1822, + 1830 + ], + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1831, + 1835 + ], + "loc": { + "start": { + "line": 87, + "column": 15 + }, + "end": { + "line": 87, + "column": 19 + } + } + } + ], + "range": [ + 1822, + 1836 + ], + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 20 + } + } + }, + "range": [ + 1822, + 1837 + ], + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 21 + } + } + } + ], + "range": [ + 1720, + 1843 + ], + "loc": { + "start": { + "line": 82, + "column": 51 + }, + "end": { + "line": 88, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1704, + 1843 + ], + "loc": { + "start": { + "line": 82, + "column": 35 + }, + "end": { + "line": 88, + "column": 5 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 1844, + 1848 + ], + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 88, + "column": 10 + } + } + }, + "range": [ + 1704, + 1848 + ], + "loc": { + "start": { + "line": 82, + "column": 35 + }, + "end": { + "line": 88, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 1849, + 1853 + ], + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 15 + } + } + } + ], + "range": [ + 1704, + 1854 + ], + "loc": { + "start": { + "line": 82, + "column": 35 + }, + "end": { + "line": 88, + "column": 16 + } + } + } + ], + "range": [ + 1673, + 1855 + ], + "loc": { + "start": { + "line": 82, + "column": 4 + }, + "end": { + "line": 88, + "column": 17 + } + } + }, + "range": [ + 1673, + 1856 + ], + "loc": { + "start": { + "line": 82, + "column": 4 + }, + "end": { + "line": 88, + "column": 18 + } + } + } + ], + "range": [ + 1667, + 1860 + ], + "loc": { + "start": { + "line": 81, + "column": 53 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1627, + 1860 + ], + "loc": { + "start": { + "line": 81, + "column": 13 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1616, + 1860 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 89, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Number} timeout\n * @param {Function} callback\n ", + "range": [ + 1518, + 1613 + ], + "loc": { + "start": { + "line": 76, + "column": 2 + }, + "end": { + "line": 80, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 1864, + 1936 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 94, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_flush", + "range": [ + 1939, + 1945 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 95, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 1946, + 1954 + ], + "loc": { + "start": { + "line": 95, + "column": 9 + }, + "end": { + "line": 95, + "column": 17 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 1963, + 1965 + ], + "loc": { + "start": { + "line": 95, + "column": 26 + }, + "end": { + "line": 95, + "column": 28 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 1957, + 1965 + ], + "loc": { + "start": { + "line": 95, + "column": 20 + }, + "end": { + "line": 95, + "column": 28 + } + } + }, + "range": [ + 1946, + 1965 + ], + "loc": { + "start": { + "line": 95, + "column": 9 + }, + "end": { + "line": 95, + "column": 28 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1973, + 1977 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 96, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_client", + "range": [ + 1978, + 1985 + ], + "loc": { + "start": { + "line": 96, + "column": 9 + }, + "end": { + "line": 96, + "column": 16 + } + } + }, + "range": [ + 1973, + 1985 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 96, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "flushall", + "range": [ + 1986, + 1994 + ], + "loc": { + "start": { + "line": 96, + "column": 17 + }, + "end": { + "line": 96, + "column": 25 + } + } + }, + "range": [ + 1973, + 1994 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 96, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 2004, + 2009 + ], + "loc": { + "start": { + "line": 96, + "column": 35 + }, + "end": { + "line": 96, + "column": 40 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "error", + "range": [ + 2023, + 2028 + ], + "loc": { + "start": { + "line": 97, + "column": 10 + }, + "end": { + "line": 97, + "column": 15 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "Identifier", + "name": "error", + "range": [ + 2032, + 2037 + ], + "loc": { + "start": { + "line": 97, + "column": 19 + }, + "end": { + "line": 97, + "column": 24 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 2042, + 2046 + ], + "loc": { + "start": { + "line": 97, + "column": 29 + }, + "end": { + "line": 97, + "column": 33 + } + } + }, + "range": [ + 2032, + 2046 + ], + "loc": { + "start": { + "line": 97, + "column": 19 + }, + "end": { + "line": 97, + "column": 33 + } + } + }, + "range": [ + 2023, + 2046 + ], + "loc": { + "start": { + "line": 97, + "column": 10 + }, + "end": { + "line": 97, + "column": 33 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "RedisClusterException", + "range": [ + 2068, + 2089 + ], + "loc": { + "start": { + "line": 98, + "column": 18 + }, + "end": { + "line": 98, + "column": 39 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 2090, + 2095 + ], + "loc": { + "start": { + "line": 98, + "column": 40 + }, + "end": { + "line": 98, + "column": 45 + } + } + } + ], + "range": [ + 2064, + 2096 + ], + "loc": { + "start": { + "line": 98, + "column": 14 + }, + "end": { + "line": 98, + "column": 46 + } + } + }, + "range": [ + 2058, + 2097 + ], + "loc": { + "start": { + "line": 98, + "column": 8 + }, + "end": { + "line": 98, + "column": 47 + } + } + } + ], + "range": [ + 2048, + 2105 + ], + "loc": { + "start": { + "line": 97, + "column": 35 + }, + "end": { + "line": 99, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 2019, + 2105 + ], + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 99, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 2113, + 2121 + ], + "loc": { + "start": { + "line": 101, + "column": 6 + }, + "end": { + "line": 101, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 2122, + 2126 + ], + "loc": { + "start": { + "line": 101, + "column": 15 + }, + "end": { + "line": 101, + "column": 19 + } + } + } + ], + "range": [ + 2113, + 2127 + ], + "loc": { + "start": { + "line": 101, + "column": 6 + }, + "end": { + "line": 101, + "column": 20 + } + } + }, + "range": [ + 2113, + 2128 + ], + "loc": { + "start": { + "line": 101, + "column": 6 + }, + "end": { + "line": 101, + "column": 21 + } + } + } + ], + "range": [ + 2011, + 2134 + ], + "loc": { + "start": { + "line": 96, + "column": 42 + }, + "end": { + "line": 102, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1995, + 2134 + ], + "loc": { + "start": { + "line": 96, + "column": 26 + }, + "end": { + "line": 102, + "column": 5 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 2135, + 2139 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 10 + } + } + }, + "range": [ + 1995, + 2139 + ], + "loc": { + "start": { + "line": 96, + "column": 26 + }, + "end": { + "line": 102, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 2140, + 2144 + ], + "loc": { + "start": { + "line": 102, + "column": 11 + }, + "end": { + "line": 102, + "column": 15 + } + } + } + ], + "range": [ + 1995, + 2145 + ], + "loc": { + "start": { + "line": 96, + "column": 26 + }, + "end": { + "line": 102, + "column": 16 + } + } + } + ], + "range": [ + 1973, + 2146 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 102, + "column": 17 + } + } + }, + "range": [ + 1973, + 2147 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 102, + "column": 18 + } + } + } + ], + "range": [ + 1967, + 2151 + ], + "loc": { + "start": { + "line": 95, + "column": 30 + }, + "end": { + "line": 103, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1945, + 2151 + ], + "loc": { + "start": { + "line": 95, + "column": 8 + }, + "end": { + "line": 103, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1939, + 2151 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 103, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 1864, + 1936 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 94, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 312, + 2153 + ], + "loc": { + "start": { + "line": 14, + "column": 48 + }, + "end": { + "line": 104, + "column": 1 + } + } + }, + "range": [ + 271, + 2153 + ], + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 104, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Redis/Elasticache driver implementation\n ", + "range": [ + 213, + 263 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 264, + 2153 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 104, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Redis/Elasticache driver implementation\n ", + "range": [ + 213, + 263 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 2153 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 104, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/16/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Redis/Elasticache driver implementation\n ", + "range": [ + 213, + 263 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} dsn\n ", + "range": [ + 316, + 350 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Redis}\n ", + "range": [ + 448, + 479 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 529, + 595 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Function} callback\n ", + "range": [ + 832, + 898 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n * @returns {Boolean}\n ", + "range": [ + 1132, + 1269 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} key\n * @param {Number} timeout\n * @param {Function} callback\n ", + "range": [ + 1518, + 1613 + ], + "loc": { + "start": { + "line": 76, + "column": 2 + }, + "end": { + "line": 80, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {AbstractDriver}\n ", + "range": [ + 1864, + 1936 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 94, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-cache/ast/source/Exception/Exception.js.json b/docs-api/deep-cache/ast/source/Exception/Exception.js.json new file mode 100644 index 00000000..a5724794 --- /dev/null +++ b/docs-api/deep-cache/ast/source/Exception/Exception.js.json @@ -0,0 +1,651 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 149, + 158 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 167, + 171 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 172, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "range": [ + 167, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 182, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "range": [ + 167, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 233, + 244 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 248, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 245, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 260, + 265 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 269, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 266, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 260, + 274 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 260, + 275 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 254, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 244, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 233, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 192, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 143, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 136, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 281 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-cache/ast/source/bootstrap.js.json b/docs-api/deep-cache/ast/source/bootstrap.js.json new file mode 100644 index 00000000..5059c3c3 --- /dev/null +++ b/docs-api/deep-cache/ast/source/bootstrap.js.json @@ -0,0 +1,332 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 89, + 101 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + "range": [ + 89, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Cache", + "range": [ + 112, + 117 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 13 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Cache", + "range": [ + 112, + 117 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 13 + } + } + }, + "range": [ + 112, + 117 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Cache", + "raw": "'./Cache'", + "range": [ + 124, + 133 + ], + "loc": { + "start": { + "line": 9, + "column": 20 + }, + "end": { + "line": 9, + "column": 29 + } + } + }, + "range": [ + 104, + 134 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 30 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "exports", + "range": [ + 140, + 147 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + "init": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "module", + "range": [ + 150, + 156 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exports", + "range": [ + 157, + 164 + ], + "loc": { + "start": { + "line": 11, + "column": 21 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "range": [ + 150, + 164 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "right": { + "type": "Identifier", + "name": "Cache", + "range": [ + 167, + 172 + ], + "loc": { + "start": { + "line": 11, + "column": 31 + }, + "end": { + "line": 11, + "column": 36 + } + } + }, + "range": [ + 150, + 172 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 36 + } + } + }, + "range": [ + 140, + 172 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 36 + } + } + } + ], + "kind": "let", + "range": [ + 136, + 173 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 37 + } + } + } + ], + "sourceType": "module", + "range": [ + 89, + 173 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 11, + "column": 37 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-cache/badge.svg b/docs-api/deep-cache/badge.svg new file mode 100644 index 00000000..7d3502ee --- /dev/null +++ b/docs-api/deep-cache/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 90% + 90% + + diff --git a/docs-api/deep-cache/class/lib/Cache.js~Cache.html b/docs-api/deep-cache/class/lib/Cache.js~Cache.html new file mode 100644 index 00000000..88a642d5 --- /dev/null +++ b/docs-api/deep-cache/class/lib/Cache.js~Cache.html @@ -0,0 +1,630 @@ + + + + + + Cache | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Cache} from 'deep-cache/lib/Cache.js'
    + public + class + + + + | source +
    + +
    +

    Cache

    + + + + + +

    Extends:

    deep-kernel~Kernel.ContainerAware → Cache
    + + + + + + + + + +

    Cache manager

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

    Static Method Summary

    + + + + + + + + + +
    Static Public Methods
    + public + static + + + + +
    +

    + createDriver(name: String, args: Array): AbstractDriver +

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(driver: AbstractDriver) +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + set + + + +
    +

    + driver(driver: AbstractDriver): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + driver: AbstractDriver: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + service: Object: * +

    +
    +
    + + +
    DO NOT REMOVE THIS! +It's used while kernel boot
    +
    +
    + + +
    +
    +

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + boot(kernel: Kernel, callback: Function) +

    +
    +
    + + +
    Booting a certain service
    +
    +
    + + +
    +
    + + + + +

    Static Public Methods

    + +
    +

    + public + static + + + + createDriver(name: String, args: Array): AbstractDriver + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    nameString
    argsArray
    +
    +
    + +
    +

    Return:

    + + + + + +
    AbstractDriver
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Constructors

    + +
    +

    + public + + + + + constructor(driver: AbstractDriver) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    driverAbstractDriver
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + set + + + driver(driver: AbstractDriver): * + + + + source + +

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

    + public + + get + + + driver: AbstractDriver: * + + + + source + +

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

    Return:

    + + + + + +
    AbstractDriver
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + service: Object: * + + + + source + +

    + + + + +

    DO NOT REMOVE THIS! +It's used while kernel boot

    +
    + + + +
    +
    + +
    +

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + boot(kernel: Kernel, callback: Function) + + + + source + +

    + + + + +

    Booting a certain service

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    kernelKernel
    callbackFunction
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/class/lib/Driver/AbstractDriver.js~AbstractDriver.html b/docs-api/deep-cache/class/lib/Driver/AbstractDriver.js~AbstractDriver.html new file mode 100644 index 00000000..1453999d --- /dev/null +++ b/docs-api/deep-cache/class/lib/Driver/AbstractDriver.js~AbstractDriver.html @@ -0,0 +1,1110 @@ + + + + + + AbstractDriver | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {AbstractDriver} from 'deep-cache/lib/Driver/AbstractDriver.js'
    + public + class + + + + | source +
    + +
    +

    AbstractDriver

    + + + + + +

    Extends:

    deep-core~Core.OOP.Interface → AbstractDriver
    + + + + + + + + + +

    Abstract driver implementation

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + buildId: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + buildId(id: String): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + namespace: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + namespace(ns: String): * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + silent(value: Boolean): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + silent: Boolean: * +

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

    Method Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + flush(callback: Function | null): AbstractDriver +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + get(key: String, callback: Function | null): AbstractDriver +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + has(key: String, callback: Function | null): AbstractDriver +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + invalidate(key: String, timeout: Number, callback: Function | null): AbstractDriver +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + set(key: String, value: *, ttl: Number, callback: Function) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

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

    Public Members

    + +
    +

    + public + + get + + + buildId: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + buildId(id: String): * + + + + source + +

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

    + public + + get + + + namespace: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + namespace(ns: String): * + + + + source + +

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

    + public + + set + + + silent(value: Boolean): * + + + + source + +

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

    + public + + get + + + silent: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + flush(callback: Function | null): AbstractDriver + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    callbackFunction | null
    +
    +
    + +
    +

    Return:

    + + + + + +
    AbstractDriver
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + get(key: String, callback: Function | null): AbstractDriver + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    keyString
    callbackFunction | null
    +
    +
    + +
    +

    Return:

    + + + + + +
    AbstractDriver
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + has(key: String, callback: Function | null): AbstractDriver + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    keyString
    callbackFunction | null
    +
    +
    + +
    +

    Return:

    + + + + + +
    AbstractDriver
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + invalidate(key: String, timeout: Number, callback: Function | null): AbstractDriver + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    keyString
    timeoutNumber
    callbackFunction | null
    +
    +
    + +
    +

    Return:

    + + + + + +
    AbstractDriver
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + set(key: String, value: *, ttl: Number, callback: Function) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    keyString
    value*
    ttlNumber
    callbackFunction
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/class/lib/Driver/Exception/DriverException.js~DriverException.html b/docs-api/deep-cache/class/lib/Driver/Exception/DriverException.js~DriverException.html new file mode 100644 index 00000000..41c44fbf --- /dev/null +++ b/docs-api/deep-cache/class/lib/Driver/Exception/DriverException.js~DriverException.html @@ -0,0 +1,286 @@ + + + + + + DriverException | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    DriverException

    + + + + + +

    Extends:

    lib/Driver/Exception/Exception~Exception → DriverException
    + + + + + + + + + +

    Base exception

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(originalException: Error) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + originalException: Error: * +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(originalException: Error) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    originalExceptionError
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + originalException: Error: * + + + + source + +

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

    Return:

    + + + + + +
    Error
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/class/lib/Driver/Exception/Exception.js~Exception.html b/docs-api/deep-cache/class/lib/Driver/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..7e5b6155 --- /dev/null +++ b/docs-api/deep-cache/class/lib/Driver/Exception/Exception.js~Exception.html @@ -0,0 +1,203 @@ + + + + + + Exception | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    lib/Exception/Exception~BaseException → Exception
    + + + + + + + + + +

    Base exception

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/class/lib/Driver/Exception/MissingCacheException.js~MissingCacheException.html b/docs-api/deep-cache/class/lib/Driver/Exception/MissingCacheException.js~MissingCacheException.html new file mode 100644 index 00000000..b7ebe0ea --- /dev/null +++ b/docs-api/deep-cache/class/lib/Driver/Exception/MissingCacheException.js~MissingCacheException.html @@ -0,0 +1,203 @@ + + + + + + MissingCacheException | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {MissingCacheException} from 'deep-cache/lib/Driver/Exception/MissingCacheException.js'
    + public + class + + + + | source +
    + +
    +

    MissingCacheException

    + + + + + +

    Extends:

    lib/Driver/Exception/Exception~Exception → MissingCacheException
    + + + + + + + + + +

    Thrown when missing an item from cache

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(cacheKey: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(cacheKey: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    cacheKeyString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/class/lib/Driver/Exception/NoFlushException.js~NoFlushException.html b/docs-api/deep-cache/class/lib/Driver/Exception/NoFlushException.js~NoFlushException.html new file mode 100644 index 00000000..bc42f7ce --- /dev/null +++ b/docs-api/deep-cache/class/lib/Driver/Exception/NoFlushException.js~NoFlushException.html @@ -0,0 +1,187 @@ + + + + + + NoFlushException | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    NoFlushException

    + + + + + +

    Extends:

    lib/Driver/Exception/Exception~Exception → NoFlushException
    + + + + + + + + + +

    Thrown if flush() is not implemented

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

    + + + + + + + + +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/class/lib/Driver/Exception/RedisClusterException.js~RedisClusterException.html b/docs-api/deep-cache/class/lib/Driver/Exception/RedisClusterException.js~RedisClusterException.html new file mode 100644 index 00000000..e796c7a0 --- /dev/null +++ b/docs-api/deep-cache/class/lib/Driver/Exception/RedisClusterException.js~RedisClusterException.html @@ -0,0 +1,286 @@ + + + + + + RedisClusterException | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {RedisClusterException} from 'deep-cache/lib/Driver/Exception/RedisClusterException.js'
    + public + class + + + + | source +
    + +
    +

    RedisClusterException

    + + + + + +

    Extends:

    lib/Driver/Exception/Exception~Exception → RedisClusterException
    + + + + + + + + + +

    Thrown when redis cluster returned an error

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(error: String) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + originalException: Error: * +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(error: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    errorString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + originalException: Error: * + + + + source + +

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

    Return:

    + + + + + +
    Error
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/class/lib/Driver/InMemoryDriver.js~InMemoryDriver.html b/docs-api/deep-cache/class/lib/Driver/InMemoryDriver.js~InMemoryDriver.html new file mode 100644 index 00000000..8607bdb2 --- /dev/null +++ b/docs-api/deep-cache/class/lib/Driver/InMemoryDriver.js~InMemoryDriver.html @@ -0,0 +1,270 @@ + + + + + + InMemoryDriver | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {InMemoryDriver} from 'deep-cache/lib/Driver/InMemoryDriver.js'
    + public + class + + + + | source +
    + +
    +

    InMemoryDriver

    + + + + + +

    Extends:

    lib/Driver/AbstractDriver~AbstractDriver → InMemoryDriver
    + + + + + + + + + +

    In memory driver implementation

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + storage: Object: * +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

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

    Public Members

    + +
    +

    + public + + get + + + storage: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/class/lib/Driver/LocalStorageDriver.js~LocalStorageDriver.html b/docs-api/deep-cache/class/lib/Driver/LocalStorageDriver.js~LocalStorageDriver.html new file mode 100644 index 00000000..1a53ec10 --- /dev/null +++ b/docs-api/deep-cache/class/lib/Driver/LocalStorageDriver.js~LocalStorageDriver.html @@ -0,0 +1,187 @@ + + + + + + LocalStorageDriver | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {LocalStorageDriver} from 'deep-cache/lib/Driver/LocalStorageDriver.js'
    + public + class + + + + | source +
    + +
    +

    LocalStorageDriver

    + + + + + +

    Extends:

    lib/Driver/AbstractDriver~AbstractDriver → LocalStorageDriver
    + + + + + + + + + +

    In memory driver implementation

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

    + + + + + + + + +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/class/lib/Driver/RedisDriver.js~RedisDriver.html b/docs-api/deep-cache/class/lib/Driver/RedisDriver.js~RedisDriver.html new file mode 100644 index 00000000..02292b55 --- /dev/null +++ b/docs-api/deep-cache/class/lib/Driver/RedisDriver.js~RedisDriver.html @@ -0,0 +1,286 @@ + + + + + + RedisDriver | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {RedisDriver} from 'deep-cache/lib/Driver/RedisDriver.js'
    + public + class + + + + | source +
    + +
    +

    RedisDriver

    + + + + + +

    Extends:

    lib/Driver/AbstractDriver~AbstractDriver → RedisDriver
    + + + + + + + + + +

    Redis/Elasticache driver implementation

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(dsn: String) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + client: Redis: * +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(dsn: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    dsnString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + client: Redis: * + + + + source + +

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

    Return:

    + + + + + +
    Redis
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/class/lib/Exception/Exception.js~Exception.html b/docs-api/deep-cache/class/lib/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..ad1e7c98 --- /dev/null +++ b/docs-api/deep-cache/class/lib/Exception/Exception.js~Exception.html @@ -0,0 +1,203 @@ + + + + + + Exception | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Exception} from 'deep-cache/lib/Exception/Exception.js'
    + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    deep-core~Core.Exception.Exception → Exception
    + + + + + + + + + +

    Thrown when any exception occurs

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/coverage.json b/docs-api/deep-cache/coverage.json new file mode 100644 index 00000000..001b77af --- /dev/null +++ b/docs-api/deep-cache/coverage.json @@ -0,0 +1,70 @@ +{ + "coverage": "90.47%", + "expectCount": 42, + "actualCount": 38, + "files": { + "lib/Driver/AbstractDriver.js": { + "expectCount": 13, + "actualCount": 12, + "undocumentLines": [ + 16 + ] + }, + "lib/Cache.js": { + "expectCount": 7, + "actualCount": 7, + "undocumentLines": [] + }, + "lib/Driver/Exception/DriverException.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + }, + "lib/Exception/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Driver/Exception/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Driver/InMemoryDriver.js": { + "expectCount": 3, + "actualCount": 2, + "undocumentLines": [ + 13 + ] + }, + "lib/Driver/LocalStorageDriver.js": { + "expectCount": 2, + "actualCount": 1, + "undocumentLines": [ + 14 + ] + }, + "lib/Driver/Exception/MissingCacheException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Driver/Exception/NoFlushException.js": { + "expectCount": 2, + "actualCount": 1, + "undocumentLines": [ + 13 + ] + }, + "lib/Driver/Exception/RedisClusterException.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + }, + "lib/Driver/RedisDriver.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/docs-api/deep-cache/css/prettify-tomorrow.css b/docs-api/deep-cache/css/prettify-tomorrow.css new file mode 100644 index 00000000..b6f92a78 --- /dev/null +++ b/docs-api/deep-cache/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs-api/deep-cache/css/style.css b/docs-api/deep-cache/css/style.css new file mode 100644 index 00000000..4dc99a1b --- /dev/null +++ b/docs-api/deep-cache/css/style.css @@ -0,0 +1,862 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Roboto', sans-serif; + overflow: auto; + font-size: 14px; + /*color: #4d4e53;*/ + color: rgba(0, 0, 0, .68); + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + background-color: #E2E2E2; + padding: 4px; + font-weight: 300; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 19px; +} + +p > code { + background-color: #f5f5f5; + border-radius: 3px; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0 4px; + border-radius: 3px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: white; + top: 0; + border-bottom: solid 1px #E02130; +} +.layout-container > header > a{ + margin: 0 5px; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid rgba(0, 0, 0, 0.1); +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation .nav-dir-path { + margin-top: 0.7em; + margin-bottom: 0.25em; + font-size: 0.8em; + color: #aaa; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #999; + color: white; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +pre.source-code { + background: #f5f5f5; + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150); +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #999; + color: white; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} + +table.test-summary thead { + background: #999; + color: white; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-describe .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; +} + +table.test-summary tr.test-describe .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-describe .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} + +.inner-link-active { + background: rgb(255, 255, 150); +} + +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + +/* coverage badge */ +.esdoc-coverage { + display: inline-block; + height: 20px; + vertical-align: top; +} + +h1 .esdoc-coverage { + position: relative; + top: -4px; +} + +.esdoc-coverage-wrap { + color: white; + font-size: 12px; + font-weight: 500; +} + +.esdoc-coverage-label { + padding: 3px 4px 3px 6px; + background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%); + border-radius: 4px 0 0 4px; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-ratio { + padding: 3px 6px 3px 4px; + border-radius: 0 4px 4px 0; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-low { + background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%); +} + +.esdoc-coverage-middle { + background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%); +} + +.esdoc-coverage-high { + background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%); +} + +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; + background-color: transparent; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} diff --git a/docs-api/deep-cache/dump.json b/docs-api/deep-cache/dump.json new file mode 100644 index 00000000..222954bf --- /dev/null +++ b/docs-api/deep-cache/dump.json @@ -0,0 +1,3003 @@ +[ + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Cache.js", + "memberof": null, + "longname": "lib/Cache.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/16/15.\n */\n\n'use strict';\n\nimport Kernel from 'deep-kernel';\nimport {InMemoryDriver} from './Driver/InMemoryDriver';\nimport {RedisDriver} from './Driver/RedisDriver';\nimport {Exception} from './Exception/Exception';\n\n/**\n * Cache manager\n */\nexport class Cache extends Kernel.ContainerAware {\n /**\n * @param {AbstractDriver} driver\n */\n constructor(driver = null) {\n super();\n\n this._driver = driver;\n }\n\n /**\n * @param {String} name\n * @param {Array} args\n * @returns {AbstractDriver}\n */\n static createDriver(name, ...args) {\n var DriverPrototype;\n\n switch (name) {\n case 'memory':\n DriverPrototype = InMemoryDriver;\n break;\n case 'redis':\n DriverPrototype = RedisDriver;\n break;\n case 'local-storage':\n\n // @todo: figure out a smarter way to avoid conflicts in nodejs env\n DriverPrototype = require('./Driver/LocalStorageDriver').LocalStorageDriver;\n break;\n default:\n throw new Exception(`Missing driver ${name}`);\n }\n\n return new DriverPrototype(...args);\n }\n\n /**\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n */\n boot(kernel, callback) {\n // @todo: switch to redis when issue with Elasticache is fixed\n let driverName = kernel.isFrontend ? 'local-storage' : 'memory'/*'redis'*/;\n\n this._driver = Cache.createDriver(driverName/*, kernel.config.cacheDsn*/);\n this._driver.buildId = kernel.buildId;\n\n kernel.container.addService(\n `${this.name}.prototype`,\n this\n );\n\n callback();\n }\n\n /**\n * DO NOT REMOVE THIS!\n * It's used while kernel boot\n *\n * @returns {Object}\n */\n get service() {\n return this._driver;\n }\n\n /**\n * @param {AbstractDriver} driver\n */\n set driver(driver) {\n this._driver = driver;\n }\n\n /**\n * @returns {AbstractDriver}\n */\n get driver() {\n return this._driver;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Cache", + "memberof": "lib/Cache.js", + "longname": "lib/Cache.js~Cache", + "access": null, + "export": true, + "importPath": "deep-cache/lib/Cache.js", + "importStyle": "{Cache}", + "description": "Cache manager", + "lineNumber": 15, + "interface": false, + "extends": [ + "deep-kernel~Kernel.ContainerAware" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Cache.js~Cache", + "longname": "lib/Cache.js~Cache#constructor", + "access": null, + "description": null, + "lineNumber": 19, + "params": [ + { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "optional": false, + "name": "driver", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_driver", + "memberof": "lib/Cache.js~Cache", + "longname": "lib/Cache.js~Cache#_driver", + "access": null, + "description": null, + "lineNumber": 22, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "createDriver", + "memberof": "lib/Cache.js~Cache", + "longname": "lib/Cache.js~Cache.createDriver", + "access": null, + "description": null, + "lineNumber": 30, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{AbstractDriver}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + }, + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "boot", + "memberof": "lib/Cache.js~Cache", + "longname": "lib/Cache.js~Cache#boot", + "access": null, + "description": "Booting a certain service", + "lineNumber": 58, + "params": [ + { + "nullable": null, + "types": [ + "Kernel" + ], + "spread": false, + "optional": false, + "name": "kernel", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_driver", + "memberof": "lib/Cache.js~Cache", + "longname": "lib/Cache.js~Cache#_driver", + "access": null, + "description": null, + "lineNumber": 62, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "service", + "memberof": "lib/Cache.js~Cache", + "longname": "lib/Cache.js~Cache#service", + "access": null, + "description": "DO NOT REMOVE THIS!\nIt's used while kernel boot", + "lineNumber": 79, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "driver", + "memberof": "lib/Cache.js~Cache", + "longname": "lib/Cache.js~Cache#driver", + "access": null, + "description": null, + "lineNumber": 86, + "params": [ + { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "optional": false, + "name": "driver", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_driver", + "memberof": "lib/Cache.js~Cache", + "longname": "lib/Cache.js~Cache#_driver", + "access": null, + "description": null, + "lineNumber": 87, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "driver", + "memberof": "lib/Cache.js~Cache", + "longname": "lib/Cache.js~Cache#driver", + "access": null, + "description": null, + "lineNumber": 93, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{AbstractDriver}" + } + ], + "return": { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Driver/AbstractDriver.js", + "memberof": null, + "longname": "lib/Driver/AbstractDriver.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/16/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\nimport {MissingCacheException} from './Exception/MissingCacheException';\nimport {NoFlushException} from './Exception/NoFlushException';\nimport {DriverException} from './Exception/DriverException';\n\n/**\n * Abstract driver implementation\n */\nexport class AbstractDriver extends Core.OOP.Interface {\n constructor() {\n super([\n '_get', '_has',\n '_set', '_invalidate',\n ]);\n\n this._buildId = '';\n this._namespace = '';\n this._silent = false;\n }\n\n /**\n * @returns {String}\n */\n get buildId() {\n return this._buildId;\n }\n\n /**\n * @param {String} id\n */\n set buildId(id) {\n this._buildId = id;\n }\n\n /**\n * @param {String} key\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n */\n has(key, callback = null) {\n callback = callback || function() {\n };\n\n try {\n this._has(this._buildKey(key), function(result) {\n callback(undefined, result);\n }.bind(this));\n } catch (e) {\n callback(new DriverException(e), undefined);\n }\n\n return this;\n }\n\n /**\n * @param {String} key\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n */\n get(key, callback = null) {\n callback = callback || function() {\n };\n\n try {\n this.has(key, function(exception, result) {\n if (exception) {\n throw exception;\n }\n\n if (!result && !this._silent) {\n throw new MissingCacheException(key);\n }\n\n this._get(this._buildKey(key), function(result) {\n callback(undefined, result);\n }.bind(this));\n }.bind(this));\n } catch (e) {\n callback(new DriverException(e), undefined);\n }\n\n return this;\n }\n\n /**\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n */\n set(key, value, ttl = 0, callback = null) {\n callback = callback || function() {\n };\n\n try {\n this._set(this._buildKey(key), value, ttl, function(result) {\n callback(undefined, result);\n }.bind(this));\n } catch (e) {\n callback(new DriverException(e), undefined);\n }\n }\n\n /**\n * @param {String} key\n * @param {Number} timeout\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n */\n invalidate(key, timeout = 0, callback = null) {\n callback = callback || function() {\n };\n\n try {\n this.has(key, function(exception, result) {\n if (exception) {\n throw exception;\n }\n\n if (!result) {\n throw new MissingCacheException(key);\n }\n\n this._invalidate(this._buildKey(key), timeout, function(result) {\n callback(undefined, result);\n }.bind(this));\n }.bind(this));\n } catch (e) {\n callback(new DriverException(e), undefined);\n }\n\n return this;\n }\n\n /**\n * @param {Function|null} callback\n * @returns {AbstractDriver}\n */\n flush(callback = null) {\n callback = callback || function() {\n };\n\n try {\n if (typeof this._flush === 'undefined') {\n throw new NoFlushException();\n }\n\n this._flush(function(result) {\n callback(undefined, result);\n }.bind(this));\n } catch (e) {\n callback(new DriverException(e), undefined);\n }\n\n return this;\n }\n\n /**\n * @returns {String}\n */\n get namespace() {\n return this._namespace;\n }\n\n /**\n * @param {String} ns\n */\n set namespace(ns) {\n this._namespace = ns;\n }\n\n /**\n * @param {Boolean} value\n */\n set silent(value) {\n this._silent = value;\n }\n\n /**\n * @returns {Boolean}\n */\n get silent() {\n return this._silent;\n }\n\n /**\n * @param {String} key\n * @returns {String}\n * @private\n */\n _buildKey(key) {\n return `${this._buildId}:${this._namespace}#${key}`;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "AbstractDriver", + "memberof": "lib/Driver/AbstractDriver.js", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver", + "access": null, + "export": true, + "importPath": "deep-cache/lib/Driver/AbstractDriver.js", + "importStyle": "{AbstractDriver}", + "description": "Abstract driver implementation", + "lineNumber": 15, + "interface": false, + "extends": [ + "deep-core~Core.OOP.Interface" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_buildId", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#_buildId", + "access": null, + "description": null, + "lineNumber": 22, + "undocument": true, + "type": { + "types": [ + "string" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_namespace", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#_namespace", + "access": null, + "description": null, + "lineNumber": 23, + "undocument": true, + "type": { + "types": [ + "string" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_silent", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#_silent", + "access": null, + "description": null, + "lineNumber": 24, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "buildId", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#buildId", + "access": null, + "description": null, + "lineNumber": 30, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "buildId", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#buildId", + "access": null, + "description": null, + "lineNumber": 37, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "id", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_buildId", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#_buildId", + "access": null, + "description": null, + "lineNumber": 38, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "has", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#has", + "access": null, + "description": null, + "lineNumber": 46, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{AbstractDriver}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function", + "null" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "get", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#get", + "access": null, + "description": null, + "lineNumber": 66, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{AbstractDriver}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function", + "null" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "set", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#set", + "access": null, + "description": null, + "lineNumber": 97, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "value", + "description": "" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "ttl", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "invalidate", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#invalidate", + "access": null, + "description": null, + "lineNumber": 116, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{AbstractDriver}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "timeout", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function", + "null" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "flush", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#flush", + "access": null, + "description": null, + "lineNumber": 145, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{AbstractDriver}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function", + "null" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "namespace", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#namespace", + "access": null, + "description": null, + "lineNumber": 167, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "namespace", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#namespace", + "access": null, + "description": null, + "lineNumber": 174, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "ns", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_namespace", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#_namespace", + "access": null, + "description": null, + "lineNumber": 175, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "silent", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#silent", + "access": null, + "description": null, + "lineNumber": 181, + "params": [ + { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "optional": false, + "name": "value", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_silent", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#_silent", + "access": null, + "description": null, + "lineNumber": 182, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "silent", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#silent", + "access": null, + "description": null, + "lineNumber": 188, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_buildKey", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#_buildKey", + "access": "private", + "description": null, + "lineNumber": 197, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Driver/Exception/DriverException.js", + "memberof": null, + "longname": "lib/Driver/Exception/DriverException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/16/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Base exception\n */\nexport class DriverException extends Exception {\n /**\n * @param {Error} originalException\n */\n constructor(originalException) {\n super(originalException);\n\n this._originalException = originalException instanceof Error ? originalException : new Error(originalException);\n }\n\n /**\n * @returns {Error}\n */\n get originalException() {\n return this._originalException;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "DriverException", + "memberof": "lib/Driver/Exception/DriverException.js", + "longname": "lib/Driver/Exception/DriverException.js~DriverException", + "access": null, + "export": true, + "importPath": "deep-cache/lib/Driver/Exception/DriverException.js", + "importStyle": "{DriverException}", + "description": "Base exception", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Driver/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Driver/Exception/DriverException.js~DriverException", + "longname": "lib/Driver/Exception/DriverException.js~DriverException#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Error" + ], + "spread": false, + "optional": false, + "name": "originalException", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_originalException", + "memberof": "lib/Driver/Exception/DriverException.js~DriverException", + "longname": "lib/Driver/Exception/DriverException.js~DriverException#_originalException", + "access": null, + "description": null, + "lineNumber": 19, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "originalException", + "memberof": "lib/Driver/Exception/DriverException.js~DriverException", + "longname": "lib/Driver/Exception/DriverException.js~DriverException#originalException", + "access": null, + "description": null, + "lineNumber": 25, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Error}" + } + ], + "return": { + "nullable": null, + "types": [ + "Error" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Driver/Exception/Exception.js", + "memberof": null, + "longname": "lib/Driver/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/16/15.\n */\n\n'use strict';\n\nimport {Exception as BaseException} from '../../Exception/Exception';\n\n/**\n * Base exception\n */\nexport class Exception extends BaseException {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Driver/Exception/Exception.js", + "longname": "lib/Driver/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-cache/lib/Driver/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Base exception", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~BaseException" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Driver/Exception/Exception.js~Exception", + "longname": "lib/Driver/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Driver/Exception/MissingCacheException.js", + "memberof": null, + "longname": "lib/Driver/Exception/MissingCacheException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/16/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when missing an item from cache\n */\nexport class MissingCacheException extends Exception {\n /**\n * @param {String} cacheKey\n */\n constructor(cacheKey) {\n super(`Missing key ${cacheKey} from cache`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "MissingCacheException", + "memberof": "lib/Driver/Exception/MissingCacheException.js", + "longname": "lib/Driver/Exception/MissingCacheException.js~MissingCacheException", + "access": null, + "export": true, + "importPath": "deep-cache/lib/Driver/Exception/MissingCacheException.js", + "importStyle": "{MissingCacheException}", + "description": "Thrown when missing an item from cache", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Driver/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Driver/Exception/MissingCacheException.js~MissingCacheException", + "longname": "lib/Driver/Exception/MissingCacheException.js~MissingCacheException#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "cacheKey", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Driver/Exception/NoFlushException.js", + "memberof": null, + "longname": "lib/Driver/Exception/NoFlushException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/16/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown if flush() is not implemented\n */\nexport class NoFlushException extends Exception {\n constructor() {\n super('Flush is not implemented for this driver');\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "NoFlushException", + "memberof": "lib/Driver/Exception/NoFlushException.js", + "longname": "lib/Driver/Exception/NoFlushException.js~NoFlushException", + "access": null, + "export": true, + "importPath": "deep-cache/lib/Driver/Exception/NoFlushException.js", + "importStyle": "{NoFlushException}", + "description": "Thrown if flush() is not implemented", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Driver/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Driver/Exception/NoFlushException.js~NoFlushException", + "longname": "lib/Driver/Exception/NoFlushException.js~NoFlushException#constructor", + "access": null, + "description": null, + "lineNumber": 13, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Driver/Exception/RedisClusterException.js", + "memberof": null, + "longname": "lib/Driver/Exception/RedisClusterException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/16/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when redis cluster returned an error\n */\nexport class RedisClusterException extends Exception {\n /**\n * @param {String} error\n */\n constructor(error) {\n let originalException = error instanceof Error ? error : null;\n let errorPlain = originalException !== null ? originalException.message : error.toString();\n\n super(`Redis cluster operation failed: ${errorPlain}`);\n\n this._originalException = originalException;\n }\n\n /**\n * @returns {Error}\n */\n get originalException() {\n return this._originalException;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "RedisClusterException", + "memberof": "lib/Driver/Exception/RedisClusterException.js", + "longname": "lib/Driver/Exception/RedisClusterException.js~RedisClusterException", + "access": null, + "export": true, + "importPath": "deep-cache/lib/Driver/Exception/RedisClusterException.js", + "importStyle": "{RedisClusterException}", + "description": "Thrown when redis cluster returned an error", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Driver/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Driver/Exception/RedisClusterException.js~RedisClusterException", + "longname": "lib/Driver/Exception/RedisClusterException.js~RedisClusterException#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "error", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_originalException", + "memberof": "lib/Driver/Exception/RedisClusterException.js~RedisClusterException", + "longname": "lib/Driver/Exception/RedisClusterException.js~RedisClusterException#_originalException", + "access": null, + "description": null, + "lineNumber": 22, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "originalException", + "memberof": "lib/Driver/Exception/RedisClusterException.js~RedisClusterException", + "longname": "lib/Driver/Exception/RedisClusterException.js~RedisClusterException#originalException", + "access": null, + "description": null, + "lineNumber": 28, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Error}" + } + ], + "return": { + "nullable": null, + "types": [ + "Error" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Driver/InMemoryDriver.js", + "memberof": null, + "longname": "lib/Driver/InMemoryDriver.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/16/15.\n */\n\n'use strict';\n\nimport {AbstractDriver} from './AbstractDriver';\n\n/**\n * In memory driver implementation\n */\nexport class InMemoryDriver extends AbstractDriver {\n constructor() {\n super();\n\n this._storage = {};\n }\n\n /**\n * @returns {Object}\n */\n get storage() {\n return this._storage;\n }\n\n /**\n * @param {String} key\n * @param {Function} callback\n */\n _has(key, callback = () => '') {\n if (typeof this._storage[key] === 'undefined' || this._storage[key][1] === false) {\n callback(false);\n return;\n }\n\n let result = this._storage[key][1] < InMemoryDriver._now;\n\n if (!result) {\n this._invalidate(key);\n }\n\n callback(result);\n }\n\n /**\n * @param {String} key\n * @param {Function} callback\n */\n _get(key, callback = () => undefined) {\n callback(this._storage[key]);\n }\n\n /**\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n * @returns {Boolean}\n */\n _set(key, value, ttl = 0, callback = () => undefined) {\n this._storage[key] = [value, ttl <= 0 ? false : (InMemoryDriver._now + ttl)];\n\n callback(true);\n }\n\n /**\n * @param {String} key\n * @param {Number} timeout\n * @param {Function} callback\n */\n _invalidate(key, timeout = 0, callback = () => undefined) {\n if (timeout <= 0) {\n delete this._storage[key];\n\n callback(true);\n return;\n }\n\n this._storage[key][1] = InMemoryDriver._now + timeout;\n\n callback(true);\n }\n\n /**\n * @param {Function} callback\n * @returns {AbstractDriver}\n */\n _flush(callback = () => undefined) {\n this._storage = {};\n\n callback(true);\n }\n\n /**\n * @returns {Number}\n * @private\n */\n static get _now() {\n return new Date().getTime();\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "InMemoryDriver", + "memberof": "lib/Driver/InMemoryDriver.js", + "longname": "lib/Driver/InMemoryDriver.js~InMemoryDriver", + "access": null, + "export": true, + "importPath": "deep-cache/lib/Driver/InMemoryDriver.js", + "importStyle": "{InMemoryDriver}", + "description": "In memory driver implementation", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Driver/AbstractDriver~AbstractDriver" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Driver/InMemoryDriver.js~InMemoryDriver", + "longname": "lib/Driver/InMemoryDriver.js~InMemoryDriver#constructor", + "access": null, + "description": null, + "lineNumber": 13, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_storage", + "memberof": "lib/Driver/InMemoryDriver.js~InMemoryDriver", + "longname": "lib/Driver/InMemoryDriver.js~InMemoryDriver#_storage", + "access": null, + "description": null, + "lineNumber": 16, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "storage", + "memberof": "lib/Driver/InMemoryDriver.js~InMemoryDriver", + "longname": "lib/Driver/InMemoryDriver.js~InMemoryDriver#storage", + "access": null, + "description": null, + "lineNumber": 22, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_has", + "memberof": "lib/Driver/InMemoryDriver.js~InMemoryDriver", + "longname": "lib/Driver/InMemoryDriver.js~InMemoryDriver#_has", + "access": null, + "description": null, + "lineNumber": 30, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_get", + "memberof": "lib/Driver/InMemoryDriver.js~InMemoryDriver", + "longname": "lib/Driver/InMemoryDriver.js~InMemoryDriver#_get", + "access": null, + "description": null, + "lineNumber": 49, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_set", + "memberof": "lib/Driver/InMemoryDriver.js~InMemoryDriver", + "longname": "lib/Driver/InMemoryDriver.js~InMemoryDriver#_set", + "access": null, + "description": null, + "lineNumber": 60, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "value", + "description": "" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "ttl", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_invalidate", + "memberof": "lib/Driver/InMemoryDriver.js~InMemoryDriver", + "longname": "lib/Driver/InMemoryDriver.js~InMemoryDriver#_invalidate", + "access": null, + "description": null, + "lineNumber": 71, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "timeout", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_flush", + "memberof": "lib/Driver/InMemoryDriver.js~InMemoryDriver", + "longname": "lib/Driver/InMemoryDriver.js~InMemoryDriver#_flush", + "access": null, + "description": null, + "lineNumber": 88, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{AbstractDriver}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_storage", + "memberof": "lib/Driver/InMemoryDriver.js~InMemoryDriver", + "longname": "lib/Driver/InMemoryDriver.js~InMemoryDriver#_storage", + "access": null, + "description": null, + "lineNumber": 89, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "_now", + "memberof": "lib/Driver/InMemoryDriver.js~InMemoryDriver", + "longname": "lib/Driver/InMemoryDriver.js~InMemoryDriver._now", + "access": "private", + "description": null, + "lineNumber": 98, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Driver/LocalStorageDriver.js", + "memberof": null, + "longname": "lib/Driver/LocalStorageDriver.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/16/15.\n */\n\n'use strict';\n\nimport {AbstractDriver} from './AbstractDriver';\nimport LocalStorage from 'store';\n\n/**\n * In memory driver implementation\n */\nexport class LocalStorageDriver extends AbstractDriver {\n constructor() {\n super();\n }\n\n /**\n * @param {String} key\n * @param {Function} callback\n */\n _has(key, callback = null) {\n callback = callback || function() {\n };\n\n callback(LocalStorageDriver._isAlive(LocalStorage.get(key), key));\n }\n\n /**\n * @param {String} key\n * @param {Function} callback\n */\n _get(key, callback = null) {\n callback = callback || function() {\n };\n\n let record = LocalStorage.get(key);\n\n callback(LocalStorageDriver._isAlive(record, key) ? record.value : null);\n }\n\n /**\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n * @returns {Boolean}\n */\n _set(key, value, ttl = 0, callback = null) {\n callback = callback || function() {\n };\n\n if (ttl <= 0) {\n LocalStorage.set(key, {value: value, exd: null});\n } else {\n LocalStorage.set(key, {value: value, exd: (LocalStorageDriver._now + ttl)});\n }\n\n callback(true);\n }\n\n /**\n * @param {String} key\n * @param {Number} timeout\n * @param {Function} callback\n */\n _invalidate(key, timeout = 0, callback = null) {\n callback = callback || function() {\n };\n\n if (timeout <= 0) {\n LocalStorage.remove(key);\n\n callback(true);\n return;\n }\n\n try {\n let record = LocalStorage.get(key);\n\n record.exd = LocalStorageDriver._now + timeout;\n\n LocalStorage.set(key, record);\n } catch (e) {\n // do nothing...\n }\n\n callback(true);\n }\n\n /**\n * @param {Function} callback\n * @returns {AbstractDriver}\n */\n _flush(callback = null) {\n callback = callback || function() {\n };\n\n LocalStorage.clear();\n\n callback(true);\n }\n\n /**\n * @returns {Number}\n * @private\n */\n static get _now() {\n return new Date().getTime();\n }\n\n /**\n *\n * @param {Object} response\n * @param {String} key\n * @returns {*}\n * @private\n */\n static _isAlive(response, key) {\n if (!response) {\n return false;\n }\n\n if (response.exd && response.exd !== null && response.exd <= LocalStorageDriver._now) {\n LocalStorage.remove(key);\n return false;\n }\n\n return true;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "LocalStorageDriver", + "memberof": "lib/Driver/LocalStorageDriver.js", + "longname": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver", + "access": null, + "export": true, + "importPath": "deep-cache/lib/Driver/LocalStorageDriver.js", + "importStyle": "{LocalStorageDriver}", + "description": "In memory driver implementation", + "lineNumber": 13, + "interface": false, + "extends": [ + "lib/Driver/AbstractDriver~AbstractDriver" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver", + "longname": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver#constructor", + "access": null, + "description": null, + "lineNumber": 14, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_has", + "memberof": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver", + "longname": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver#_has", + "access": null, + "description": null, + "lineNumber": 22, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_get", + "memberof": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver", + "longname": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver#_get", + "access": null, + "description": null, + "lineNumber": 33, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_set", + "memberof": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver", + "longname": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver#_set", + "access": null, + "description": null, + "lineNumber": 49, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "value", + "description": "" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "ttl", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_invalidate", + "memberof": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver", + "longname": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver#_invalidate", + "access": null, + "description": null, + "lineNumber": 67, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "timeout", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_flush", + "memberof": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver", + "longname": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver#_flush", + "access": null, + "description": null, + "lineNumber": 95, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{AbstractDriver}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "_now", + "memberof": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver", + "longname": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver._now", + "access": "private", + "description": null, + "lineNumber": 108, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "_isAlive", + "memberof": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver", + "longname": "lib/Driver/LocalStorageDriver.js~LocalStorageDriver._isAlive", + "access": "private", + "description": "", + "lineNumber": 119, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Driver/RedisDriver.js", + "memberof": null, + "longname": "lib/Driver/RedisDriver.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/16/15.\n */\n\n'use strict';\n\nimport {AbstractDriver} from './AbstractDriver';\nimport Redis from 'ioredis';\nimport {RedisClusterException} from './Exception/RedisClusterException';\n\n/**\n * Redis/Elasticache driver implementation\n */\nexport class RedisDriver extends AbstractDriver {\n /**\n * @param {String} dsn\n */\n constructor(dsn) {\n super();\n\n this._client = dsn ? new Redis(dsn) : new Redis();\n }\n\n /**\n * @returns {Redis}\n */\n get client() {\n return this._client;\n }\n\n /**\n * @param {String} key\n * @param {Function} callback\n */\n _has(key, callback = () => '') {\n this._client.exists(key, function(error, results) {\n if (error && error !== null) {\n throw new RedisClusterException(error);\n }\n\n callback(results);\n }.bind(this));\n }\n\n /**\n * @param {String} key\n * @param {Function} callback\n */\n _get(key, callback = () => '') {\n this._client.get(key, function(error, results) {\n if (error && error !== null) {\n throw new RedisClusterException(error);\n }\n\n callback(results);\n }.bind(this));\n }\n\n /**\n * @param {String} key\n * @param {*} value\n * @param {Number} ttl\n * @param {Function} callback\n * @returns {Boolean}\n */\n _set(key, value, ttl = 0,callback = () => '') {\n this._client.set(key, value, ttl, function(error) {\n if (error && error !== null) {\n throw new RedisClusterException(error);\n }\n\n callback(true);\n }.bind(this));\n }\n\n /**\n * @param {String} key\n * @param {Number} timeout\n * @param {Function} callback\n */\n _invalidate(key, timeout = 0, callback = () => '') {\n this._client.del(key, timeout, function(error) {\n if (error && error !== null) {\n throw new RedisClusterException(error);\n }\n\n callback(true);\n }.bind(this));\n }\n\n /**\n * @param {Function} callback\n * @returns {AbstractDriver}\n */\n _flush(callback = () => '') {\n this._client.flushall(function(error) {\n if (error && error !== null) {\n throw new RedisClusterException(error);\n }\n\n callback(true);\n }.bind(this));\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "RedisDriver", + "memberof": "lib/Driver/RedisDriver.js", + "longname": "lib/Driver/RedisDriver.js~RedisDriver", + "access": null, + "export": true, + "importPath": "deep-cache/lib/Driver/RedisDriver.js", + "importStyle": "{RedisDriver}", + "description": "Redis/Elasticache driver implementation", + "lineNumber": 14, + "interface": false, + "extends": [ + "lib/Driver/AbstractDriver~AbstractDriver" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Driver/RedisDriver.js~RedisDriver", + "longname": "lib/Driver/RedisDriver.js~RedisDriver#constructor", + "access": null, + "description": null, + "lineNumber": 18, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "dsn", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_client", + "memberof": "lib/Driver/RedisDriver.js~RedisDriver", + "longname": "lib/Driver/RedisDriver.js~RedisDriver#_client", + "access": null, + "description": null, + "lineNumber": 21, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "client", + "memberof": "lib/Driver/RedisDriver.js~RedisDriver", + "longname": "lib/Driver/RedisDriver.js~RedisDriver#client", + "access": null, + "description": null, + "lineNumber": 27, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Redis}" + } + ], + "return": { + "nullable": null, + "types": [ + "Redis" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_has", + "memberof": "lib/Driver/RedisDriver.js~RedisDriver", + "longname": "lib/Driver/RedisDriver.js~RedisDriver#_has", + "access": null, + "description": null, + "lineNumber": 35, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_get", + "memberof": "lib/Driver/RedisDriver.js~RedisDriver", + "longname": "lib/Driver/RedisDriver.js~RedisDriver#_get", + "access": null, + "description": null, + "lineNumber": 49, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_set", + "memberof": "lib/Driver/RedisDriver.js~RedisDriver", + "longname": "lib/Driver/RedisDriver.js~RedisDriver#_set", + "access": null, + "description": null, + "lineNumber": 66, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "value", + "description": "" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "ttl", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_invalidate", + "memberof": "lib/Driver/RedisDriver.js~RedisDriver", + "longname": "lib/Driver/RedisDriver.js~RedisDriver#_invalidate", + "access": null, + "description": null, + "lineNumber": 81, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "timeout", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_flush", + "memberof": "lib/Driver/RedisDriver.js~RedisDriver", + "longname": "lib/Driver/RedisDriver.js~RedisDriver#_flush", + "access": null, + "description": null, + "lineNumber": 95, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{AbstractDriver}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/Exception.js", + "memberof": null, + "longname": "lib/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\n\n/**\n * Thrown when any exception occurs\n */\nexport class Exception extends Core.Exception.Exception {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Exception/Exception.js", + "longname": "lib/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-cache/lib/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Thrown when any exception occurs", + "lineNumber": 12, + "interface": false, + "extends": [ + "deep-core~Core.Exception.Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/Exception.js~Exception", + "longname": "lib/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/bootstrap.js", + "memberof": null, + "longname": "lib/bootstrap.js", + "access": null, + "description": null, + "lineNumber": 7, + "content": "/**\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n */\n\n'use strict';\n\nimport {Cache} from './Cache';\n\nlet exports = module.exports = Cache;\n" + }, + { + "kind": "variable", + "static": true, + "variation": null, + "name": "exports", + "memberof": "lib/bootstrap.js", + "longname": "lib/bootstrap.js~exports", + "access": null, + "export": false, + "importPath": "deep-cache/lib/bootstrap.js", + "importStyle": null, + "description": null, + "lineNumber": 11, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~null", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Error", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Date", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~String", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~string", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Map", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Set", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "CanvasRenderingContext2D", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DocumentFragment", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Element", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Element", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Event", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Event", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Node", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Node", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NodeList", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~NodeList", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "XMLHttpRequest", + "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "access": null, + "description": null, + "builtinExternal": true + } +] \ No newline at end of file diff --git a/docs-api/deep-cache/file/lib/Cache.js.html b/docs-api/deep-cache/file/lib/Cache.js.html new file mode 100644 index 00000000..69fc31f5 --- /dev/null +++ b/docs-api/deep-cache/file/lib/Cache.js.html @@ -0,0 +1,161 @@ + + + + + + lib/Cache.js | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Cache.js

    +
    /**
    + * Created by AlexanderC on 6/16/15.
    + */
    +
    +'use strict';
    +
    +import Kernel from 'deep-kernel';
    +import {InMemoryDriver} from './Driver/InMemoryDriver';
    +import {RedisDriver} from './Driver/RedisDriver';
    +import {Exception} from './Exception/Exception';
    +
    +/**
    + * Cache manager
    + */
    +export class Cache extends Kernel.ContainerAware {
    +  /**
    +   * @param {AbstractDriver} driver
    +   */
    +  constructor(driver = null) {
    +    super();
    +
    +    this._driver = driver;
    +  }
    +
    +  /**
    +   * @param {String} name
    +   * @param {Array} args
    +   * @returns {AbstractDriver}
    +   */
    +  static createDriver(name, ...args) {
    +    var DriverPrototype;
    +
    +    switch (name) {
    +      case 'memory':
    +        DriverPrototype = InMemoryDriver;
    +        break;
    +      case 'redis':
    +        DriverPrototype = RedisDriver;
    +        break;
    +      case 'local-storage':
    +
    +        // @todo: figure out a smarter way to avoid conflicts in nodejs env
    +        DriverPrototype = require('./Driver/LocalStorageDriver').LocalStorageDriver;
    +        break;
    +      default:
    +        throw new Exception(`Missing driver ${name}`);
    +    }
    +
    +    return new DriverPrototype(...args);
    +  }
    +
    +  /**
    +   * Booting a certain service
    +   *
    +   * @param {Kernel} kernel
    +   * @param {Function} callback
    +   */
    +  boot(kernel, callback) {
    +    // @todo: switch to redis when issue with Elasticache is fixed
    +    let driverName = kernel.isFrontend ? 'local-storage' : 'memory'/*'redis'*/;
    +
    +    this._driver = Cache.createDriver(driverName/*, kernel.config.cacheDsn*/);
    +    this._driver.buildId = kernel.buildId;
    +
    +    kernel.container.addService(
    +      `${this.name}.prototype`,
    +      this
    +    );
    +
    +    callback();
    +  }
    +
    +  /**
    +   * DO NOT REMOVE THIS!
    +   * It's used while kernel boot
    +   *
    +   * @returns {Object}
    +   */
    +  get service() {
    +    return this._driver;
    +  }
    +
    +  /**
    +   * @param {AbstractDriver} driver
    +   */
    +  set driver(driver) {
    +    this._driver = driver;
    +  }
    +
    +  /**
    +   * @returns {AbstractDriver}
    +   */
    +  get driver() {
    +    return this._driver;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/file/lib/Driver/AbstractDriver.js.html b/docs-api/deep-cache/file/lib/Driver/AbstractDriver.js.html new file mode 100644 index 00000000..ba2d199c --- /dev/null +++ b/docs-api/deep-cache/file/lib/Driver/AbstractDriver.js.html @@ -0,0 +1,265 @@ + + + + + + lib/Driver/AbstractDriver.js | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Driver/AbstractDriver.js

    +
    /**
    + * Created by AlexanderC on 6/16/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +import {MissingCacheException} from './Exception/MissingCacheException';
    +import {NoFlushException} from './Exception/NoFlushException';
    +import {DriverException} from './Exception/DriverException';
    +
    +/**
    + * Abstract driver implementation
    + */
    +export class AbstractDriver extends Core.OOP.Interface {
    +  constructor() {
    +    super([
    +      '_get', '_has',
    +      '_set', '_invalidate',
    +    ]);
    +
    +    this._buildId = '';
    +    this._namespace = '';
    +    this._silent = false;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get buildId() {
    +    return this._buildId;
    +  }
    +
    +  /**
    +   * @param {String} id
    +   */
    +  set buildId(id) {
    +    this._buildId = id;
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {Function|null} callback
    +   * @returns {AbstractDriver}
    +   */
    +  has(key, callback = null) {
    +    callback = callback || function() {
    +      };
    +
    +    try {
    +      this._has(this._buildKey(key), function(result) {
    +        callback(undefined, result);
    +      }.bind(this));
    +    } catch (e) {
    +      callback(new DriverException(e), undefined);
    +    }
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {Function|null} callback
    +   * @returns {AbstractDriver}
    +   */
    +  get(key, callback = null) {
    +    callback = callback || function() {
    +      };
    +
    +    try {
    +      this.has(key, function(exception, result) {
    +        if (exception) {
    +          throw exception;
    +        }
    +
    +        if (!result && !this._silent) {
    +          throw new MissingCacheException(key);
    +        }
    +
    +        this._get(this._buildKey(key), function(result) {
    +          callback(undefined, result);
    +        }.bind(this));
    +      }.bind(this));
    +    } catch (e) {
    +      callback(new DriverException(e), undefined);
    +    }
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {*} value
    +   * @param {Number} ttl
    +   * @param {Function} callback
    +   */
    +  set(key, value, ttl = 0, callback = null) {
    +    callback = callback || function() {
    +      };
    +
    +    try {
    +      this._set(this._buildKey(key), value, ttl, function(result) {
    +        callback(undefined, result);
    +      }.bind(this));
    +    } catch (e) {
    +      callback(new DriverException(e), undefined);
    +    }
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {Number} timeout
    +   * @param {Function|null} callback
    +   * @returns {AbstractDriver}
    +   */
    +  invalidate(key, timeout = 0, callback = null) {
    +    callback = callback || function() {
    +      };
    +
    +    try {
    +      this.has(key, function(exception, result) {
    +        if (exception) {
    +          throw exception;
    +        }
    +
    +        if (!result) {
    +          throw new MissingCacheException(key);
    +        }
    +
    +        this._invalidate(this._buildKey(key), timeout, function(result) {
    +          callback(undefined, result);
    +        }.bind(this));
    +      }.bind(this));
    +    } catch (e) {
    +      callback(new DriverException(e), undefined);
    +    }
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {Function|null} callback
    +   * @returns {AbstractDriver}
    +   */
    +  flush(callback = null) {
    +    callback = callback || function() {
    +      };
    +
    +    try {
    +      if (typeof this._flush === 'undefined') {
    +        throw new NoFlushException();
    +      }
    +
    +      this._flush(function(result) {
    +        callback(undefined, result);
    +      }.bind(this));
    +    } catch (e) {
    +      callback(new DriverException(e), undefined);
    +    }
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get namespace() {
    +    return this._namespace;
    +  }
    +
    +  /**
    +   * @param {String} ns
    +   */
    +  set namespace(ns) {
    +    this._namespace = ns;
    +  }
    +
    +  /**
    +   * @param {Boolean} value
    +   */
    +  set silent(value) {
    +    this._silent = value;
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get silent() {
    +    return this._silent;
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @returns {String}
    +   * @private
    +   */
    +  _buildKey(key) {
    +    return `${this._buildId}:${this._namespace}#${key}`;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/file/lib/Driver/Exception/DriverException.js.html b/docs-api/deep-cache/file/lib/Driver/Exception/DriverException.js.html new file mode 100644 index 00000000..4481cc81 --- /dev/null +++ b/docs-api/deep-cache/file/lib/Driver/Exception/DriverException.js.html @@ -0,0 +1,93 @@ + + + + + + lib/Driver/Exception/DriverException.js | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Driver/Exception/DriverException.js

    +
    /**
    + * Created by AlexanderC on 6/16/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Base exception
    + */
    +export class DriverException extends Exception {
    +  /**
    +   * @param {Error} originalException
    +   */
    +  constructor(originalException) {
    +    super(originalException);
    +
    +    this._originalException = originalException instanceof Error ? originalException : new Error(originalException);
    +  }
    +
    +  /**
    +   * @returns {Error}
    +   */
    +  get originalException() {
    +    return this._originalException;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/file/lib/Driver/Exception/Exception.js.html b/docs-api/deep-cache/file/lib/Driver/Exception/Exception.js.html new file mode 100644 index 00000000..cf3e621a --- /dev/null +++ b/docs-api/deep-cache/file/lib/Driver/Exception/Exception.js.html @@ -0,0 +1,84 @@ + + + + + + lib/Driver/Exception/Exception.js | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Driver/Exception/Exception.js

    +
    /**
    + * Created by AlexanderC on 6/16/15.
    + */
    +
    +'use strict';
    +
    +import {Exception as BaseException} from '../../Exception/Exception';
    +
    +/**
    + * Base exception
    + */
    +export class Exception extends BaseException {
    +  /**
    +   * @param {Array} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/file/lib/Driver/Exception/MissingCacheException.js.html b/docs-api/deep-cache/file/lib/Driver/Exception/MissingCacheException.js.html new file mode 100644 index 00000000..7e407f8a --- /dev/null +++ b/docs-api/deep-cache/file/lib/Driver/Exception/MissingCacheException.js.html @@ -0,0 +1,84 @@ + + + + + + lib/Driver/Exception/MissingCacheException.js | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Driver/Exception/MissingCacheException.js

    +
    /**
    + * Created by AlexanderC on 6/16/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when missing an item from cache
    + */
    +export class MissingCacheException extends Exception {
    +  /**
    +   * @param {String} cacheKey
    +   */
    +  constructor(cacheKey) {
    +    super(`Missing key ${cacheKey} from cache`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/file/lib/Driver/Exception/NoFlushException.js.html b/docs-api/deep-cache/file/lib/Driver/Exception/NoFlushException.js.html new file mode 100644 index 00000000..1df31ecd --- /dev/null +++ b/docs-api/deep-cache/file/lib/Driver/Exception/NoFlushException.js.html @@ -0,0 +1,81 @@ + + + + + + lib/Driver/Exception/NoFlushException.js | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Driver/Exception/NoFlushException.js

    +
    /**
    + * Created by AlexanderC on 6/16/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown if flush() is not implemented
    + */
    +export class NoFlushException extends Exception {
    +  constructor() {
    +    super('Flush is not implemented for this driver');
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/file/lib/Driver/Exception/RedisClusterException.js.html b/docs-api/deep-cache/file/lib/Driver/Exception/RedisClusterException.js.html new file mode 100644 index 00000000..9b80e57d --- /dev/null +++ b/docs-api/deep-cache/file/lib/Driver/Exception/RedisClusterException.js.html @@ -0,0 +1,96 @@ + + + + + + lib/Driver/Exception/RedisClusterException.js | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Driver/Exception/RedisClusterException.js

    +
    /**
    + * Created by AlexanderC on 6/16/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when redis cluster returned an error
    + */
    +export class RedisClusterException extends Exception {
    +  /**
    +   * @param {String} error
    +   */
    +  constructor(error) {
    +    let originalException = error instanceof Error ? error : null;
    +    let errorPlain = originalException !== null ? originalException.message : error.toString();
    +
    +    super(`Redis cluster operation failed: ${errorPlain}`);
    +
    +    this._originalException = originalException;
    +  }
    +
    +  /**
    +   * @returns {Error}
    +   */
    +  get originalException() {
    +    return this._originalException;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/file/lib/Driver/InMemoryDriver.js.html b/docs-api/deep-cache/file/lib/Driver/InMemoryDriver.js.html new file mode 100644 index 00000000..d80da040 --- /dev/null +++ b/docs-api/deep-cache/file/lib/Driver/InMemoryDriver.js.html @@ -0,0 +1,166 @@ + + + + + + lib/Driver/InMemoryDriver.js | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Driver/InMemoryDriver.js

    +
    /**
    + * Created by AlexanderC on 6/16/15.
    + */
    +
    +'use strict';
    +
    +import {AbstractDriver} from './AbstractDriver';
    +
    +/**
    + * In memory driver implementation
    + */
    +export class InMemoryDriver extends AbstractDriver {
    +  constructor() {
    +    super();
    +
    +    this._storage = {};
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get storage() {
    +    return this._storage;
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {Function} callback
    +   */
    +  _has(key, callback = () => '') {
    +    if (typeof this._storage[key] === 'undefined' || this._storage[key][1] === false) {
    +      callback(false);
    +      return;
    +    }
    +
    +    let result = this._storage[key][1] < InMemoryDriver._now;
    +
    +    if (!result) {
    +      this._invalidate(key);
    +    }
    +
    +    callback(result);
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {Function} callback
    +   */
    +  _get(key, callback = () => undefined) {
    +    callback(this._storage[key]);
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {*} value
    +   * @param {Number} ttl
    +   * @param {Function} callback
    +   * @returns {Boolean}
    +   */
    +  _set(key, value, ttl = 0, callback = () => undefined) {
    +    this._storage[key] = [value, ttl <= 0 ? false : (InMemoryDriver._now + ttl)];
    +
    +    callback(true);
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {Number} timeout
    +   * @param {Function} callback
    +   */
    +  _invalidate(key, timeout = 0, callback = () => undefined) {
    +    if (timeout <= 0) {
    +      delete this._storage[key];
    +
    +      callback(true);
    +      return;
    +    }
    +
    +    this._storage[key][1] = InMemoryDriver._now + timeout;
    +
    +    callback(true);
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   * @returns {AbstractDriver}
    +   */
    +  _flush(callback = () => undefined) {
    +    this._storage = {};
    +
    +    callback(true);
    +  }
    +
    +  /**
    +   * @returns {Number}
    +   * @private
    +   */
    +  static get _now() {
    +    return new Date().getTime();
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/file/lib/Driver/LocalStorageDriver.js.html b/docs-api/deep-cache/file/lib/Driver/LocalStorageDriver.js.html new file mode 100644 index 00000000..11d3f656 --- /dev/null +++ b/docs-api/deep-cache/file/lib/Driver/LocalStorageDriver.js.html @@ -0,0 +1,196 @@ + + + + + + lib/Driver/LocalStorageDriver.js | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Driver/LocalStorageDriver.js

    +
    /**
    + * Created by AlexanderC on 6/16/15.
    + */
    +
    +'use strict';
    +
    +import {AbstractDriver} from './AbstractDriver';
    +import LocalStorage from 'store';
    +
    +/**
    + * In memory driver implementation
    + */
    +export class LocalStorageDriver extends AbstractDriver {
    +  constructor() {
    +    super();
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {Function} callback
    +   */
    +  _has(key, callback = null) {
    +    callback = callback || function() {
    +      };
    +
    +    callback(LocalStorageDriver._isAlive(LocalStorage.get(key), key));
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {Function} callback
    +   */
    +  _get(key, callback = null) {
    +    callback = callback || function() {
    +      };
    +
    +    let record = LocalStorage.get(key);
    +
    +    callback(LocalStorageDriver._isAlive(record, key) ? record.value : null);
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {*} value
    +   * @param {Number} ttl
    +   * @param {Function} callback
    +   * @returns {Boolean}
    +   */
    +  _set(key, value, ttl = 0, callback = null) {
    +    callback = callback || function() {
    +      };
    +
    +    if (ttl <= 0) {
    +      LocalStorage.set(key, {value: value, exd: null});
    +    } else {
    +      LocalStorage.set(key, {value: value, exd: (LocalStorageDriver._now + ttl)});
    +    }
    +
    +    callback(true);
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {Number} timeout
    +   * @param {Function} callback
    +   */
    +  _invalidate(key, timeout = 0, callback = null) {
    +    callback = callback || function() {
    +      };
    +
    +    if (timeout <= 0) {
    +      LocalStorage.remove(key);
    +
    +      callback(true);
    +      return;
    +    }
    +
    +    try {
    +      let record = LocalStorage.get(key);
    +
    +      record.exd = LocalStorageDriver._now + timeout;
    +
    +      LocalStorage.set(key, record);
    +    } catch (e) {
    +      // do nothing...
    +    }
    +
    +    callback(true);
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   * @returns {AbstractDriver}
    +   */
    +  _flush(callback = null) {
    +    callback = callback || function() {
    +      };
    +
    +    LocalStorage.clear();
    +
    +    callback(true);
    +  }
    +
    +  /**
    +   * @returns {Number}
    +   * @private
    +   */
    +  static get _now() {
    +    return new Date().getTime();
    +  }
    +
    +  /**
    +   *
    +   * @param {Object} response
    +   * @param {String} key
    +   * @returns {*}
    +   * @private
    +   */
    +  static _isAlive(response, key) {
    +    if (!response) {
    +      return false;
    +    }
    +
    +    if (response.exd && response.exd !== null && response.exd <= LocalStorageDriver._now) {
    +      LocalStorage.remove(key);
    +      return false;
    +    }
    +
    +    return true;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/file/lib/Driver/RedisDriver.js.html b/docs-api/deep-cache/file/lib/Driver/RedisDriver.js.html new file mode 100644 index 00000000..db6d3dbb --- /dev/null +++ b/docs-api/deep-cache/file/lib/Driver/RedisDriver.js.html @@ -0,0 +1,169 @@ + + + + + + lib/Driver/RedisDriver.js | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Driver/RedisDriver.js

    +
    /**
    + * Created by AlexanderC on 6/16/15.
    + */
    +
    +'use strict';
    +
    +import {AbstractDriver} from './AbstractDriver';
    +import Redis from 'ioredis';
    +import {RedisClusterException} from './Exception/RedisClusterException';
    +
    +/**
    + * Redis/Elasticache driver implementation
    + */
    +export class RedisDriver extends AbstractDriver {
    +  /**
    +   * @param {String} dsn
    +   */
    +  constructor(dsn) {
    +    super();
    +
    +    this._client = dsn ? new Redis(dsn) : new Redis();
    +  }
    +
    +  /**
    +   * @returns {Redis}
    +   */
    +  get client() {
    +    return this._client;
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {Function} callback
    +   */
    +  _has(key, callback = () => '') {
    +    this._client.exists(key, function(error, results) {
    +      if (error && error !== null) {
    +        throw new RedisClusterException(error);
    +      }
    +
    +      callback(results);
    +    }.bind(this));
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {Function} callback
    +   */
    +  _get(key, callback = () => '') {
    +    this._client.get(key, function(error, results) {
    +      if (error && error !== null) {
    +        throw new RedisClusterException(error);
    +      }
    +
    +      callback(results);
    +    }.bind(this));
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {*} value
    +   * @param {Number} ttl
    +   * @param {Function} callback
    +   * @returns {Boolean}
    +   */
    +  _set(key, value, ttl = 0,callback = () => '') {
    +    this._client.set(key, value, ttl, function(error) {
    +      if (error && error !== null) {
    +        throw new RedisClusterException(error);
    +      }
    +
    +      callback(true);
    +    }.bind(this));
    +  }
    +
    +  /**
    +   * @param {String} key
    +   * @param {Number} timeout
    +   * @param {Function} callback
    +   */
    +  _invalidate(key, timeout = 0, callback = () => '') {
    +    this._client.del(key, timeout, function(error) {
    +      if (error && error !== null) {
    +        throw new RedisClusterException(error);
    +      }
    +
    +      callback(true);
    +    }.bind(this));
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   * @returns {AbstractDriver}
    +   */
    +  _flush(callback = () => '') {
    +    this._client.flushall(function(error) {
    +      if (error && error !== null) {
    +        throw new RedisClusterException(error);
    +      }
    +
    +      callback(true);
    +    }.bind(this));
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/file/lib/Exception/Exception.js.html b/docs-api/deep-cache/file/lib/Exception/Exception.js.html new file mode 100644 index 00000000..e5221c9e --- /dev/null +++ b/docs-api/deep-cache/file/lib/Exception/Exception.js.html @@ -0,0 +1,84 @@ + + + + + + lib/Exception/Exception.js | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/Exception.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +
    +/**
    + * Thrown when any exception occurs
    + */
    +export class Exception extends Core.Exception.Exception {
    +  /**
    +   * @param {Array} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/file/lib/bootstrap.js.html b/docs-api/deep-cache/file/lib/bootstrap.js.html new file mode 100644 index 00000000..f2dc18ed --- /dev/null +++ b/docs-api/deep-cache/file/lib/bootstrap.js.html @@ -0,0 +1,76 @@ + + + + + + lib/bootstrap.js | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/bootstrap.js

    +
    /**
    + * Created by AlexanderC on 5/22/15.
    + *
    + * Bootstrap file loaded by npm as main
    + */
    +
    +'use strict';
    +
    +import {Cache} from './Cache';
    +
    +let exports = module.exports = Cache;
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/identifiers.html b/docs-api/deep-cache/identifiers.html new file mode 100644 index 00000000..ccdb1ef9 --- /dev/null +++ b/docs-api/deep-cache/identifiers.html @@ -0,0 +1,349 @@ + + + + + + Index | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Identifier

    +

    Class Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Class Summary
    + public + + + + + +
    +

    + AbstractDriver +

    +
    +
    + + +
    Abstract driver implementation
    +
    +
    + + +
    + public + + + + + +
    +

    + Cache +

    +
    +
    + + +
    Cache manager
    +
    +
    + + +
    + public + + + + + +
    +

    + DriverException +

    +
    +
    + + +
    Base exception
    +
    +
    + + +
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Base exception
    +
    +
    + + +
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Thrown when any exception occurs
    +
    +
    + + +
    + public + + + + + +
    +

    + InMemoryDriver +

    +
    +
    + + +
    In memory driver implementation
    +
    +
    + + +
    + public + + + + + + +
    + + +
    In memory driver implementation
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when missing an item from cache
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown if flush() is not implemented
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when redis cluster returned an error
    +
    +
    + + +
    + public + + + + + +
    +

    + RedisDriver +

    +
    +
    + + +
    Redis/Elasticache driver implementation
    +
    +
    + + +
    +
    + + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/image/badge.svg b/docs-api/deep-cache/image/badge.svg new file mode 100644 index 00000000..324db4c5 --- /dev/null +++ b/docs-api/deep-cache/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/docs-api/deep-cache/image/github.png b/docs-api/deep-cache/image/github.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/docs-api/deep-cache/image/github.png differ diff --git a/docs-api/deep-cache/image/search.png b/docs-api/deep-cache/image/search.png new file mode 100644 index 00000000..f5d84b69 Binary files /dev/null and b/docs-api/deep-cache/image/search.png differ diff --git a/docs-api/deep-cache/index.html b/docs-api/deep-cache/index.html new file mode 100644 index 00000000..6236253e --- /dev/null +++ b/docs-api/deep-cache/index.html @@ -0,0 +1,197 @@ + + + + + + DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    deep-cache

    +

    NPM Version +Build Status +Coverage Status +Codacy Badge +API Docs

    +

    deep-cache is a node.js library, part of DEEP Framework.

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less.

    +

    DEEP for Businesses Join char on gitter.im

    +

    User Guide Documentation (to be updated later)

    +

    DEEP is enabling small and medium businesses, as well as enterprises to:

    +
      +
    • Rent applications on a monthly basis by needed functionality from DEEP Marketplace
    • +
    • Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS
    • +
    • Pay only for subscribed applications and stop paying when unsubscribing and not using anymore
    • +
    • Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences
    • +
    • Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability
    • +
    +
    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP for Developers Join char on gitter.im

    +

    API Guide Documentation

    +

    Developer Guide Documentation

    +

    DEEP is enabling developers and architects to:

    +
      +
    • Design microservices architecture on top of serverless environments from cloud providers like AWS
    • +
    • Build distributed software that combines and manages hardware and software in the same microservice
    • +
    • Use the framework's abstracted approach to build applications that could be cloud agnostic
    • +
    • Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same DEEP Microservice
    • +
    • Run in the cloud the software that was built by distributed teams and served self-service in large organizations
    • +
    • Monetize their work of art by uploading microservices to DEEP Marketplace
    • +
    +
    +

    DEEP Microservice is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with DEEP Microservices HelloWorld or DEEP Microservices ToDo App, as well as DEEP CLI (aka deepify).

    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP Architecture on AWS Join char on gitter.im

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    DEEP is using microservices architecture on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DEEP Abstracted LibraryDescriptionAWS Abstracted Service(s)
    deep-assetAssets Management LibraryAmazon S3
    deep-cacheCache Management LibraryAmazon ElastiCache
    deep-coreCore Management Library-
    deep-dbDatabase Management LibraryAmazon DynamoDB, Amazon SQS
    deep-diDependency Injection Management Library-
    deep-eventEvents Management LibraryAmazon Kinesis
    deep-fsFile System Management LibraryAmazon S3
    deep-kernelKernel Management Library-
    deep-logLogs Management LibraryAmazon CloudWatch Logs
    deep-notificationNotifications Management LibraryAmazon SNS
    deep-resourceResouces Management LibraryAWS Lambda, Amazon API Gateway
    deep-securitySecurity Management LibraryAWS IAM, Amazon Cognito
    deep-validationValidation Management Library-
    +

    Feedback

    +

    We are eager to get your feedback, so please use whatever communication channel you prefer:

    + +

    License

    +

    This repository can be used under the MIT license.

    +
    +

    See LICENSE for more details.

    +
    +

    Sponsors

    +

    This repository is being sponsored by:

    +
    +

    Mitoc Group

    +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-cache/package.json b/docs-api/deep-cache/package.json new file mode 100644 index 00000000..fafff742 --- /dev/null +++ b/docs-api/deep-cache/package.json @@ -0,0 +1,77 @@ +{ + "name": "deep-cache", + "version": "0.0.64", + "description": "DEEP Cache Library", + "keywords": [ + "Digital Enterprise End-To-End Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Cache" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Max Ponomariov", + "email": "mponomariov@mitocgroup.com" + }, + { + "name": "Alexandru Scripnic", + "email": "ascripnic@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "*", + "deep-core": "*", + "ioredis": "1.5.*", + "store": "1.3.*" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true, + "browser": { + "ioredis": false + } +} diff --git a/docs-api/deep-cache/script/inherited-summary.js b/docs-api/deep-cache/script/inherited-summary.js new file mode 100644 index 00000000..0a35b6df --- /dev/null +++ b/docs-api/deep-cache/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/docs-api/deep-cache/script/inner-link.js b/docs-api/deep-cache/script/inner-link.js new file mode 100644 index 00000000..99d76273 --- /dev/null +++ b/docs-api/deep-cache/script/inner-link.js @@ -0,0 +1,29 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + var el = document.querySelector(location.hash); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = location.href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/docs-api/deep-cache/script/patch-for-local.js b/docs-api/deep-cache/script/patch-for-local.js new file mode 100644 index 00000000..5756d135 --- /dev/null +++ b/docs-api/deep-cache/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/docs-api/deep-cache/script/prettify/Apache-License-2.0.txt b/docs-api/deep-cache/script/prettify/Apache-License-2.0.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/docs-api/deep-cache/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs-api/deep-cache/script/prettify/prettify.js b/docs-api/deep-cache/script/prettify/prettify.js new file mode 100644 index 00000000..eef5ad7e --- /dev/null +++ b/docs-api/deep-cache/script/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/docs-api/deep-cache/script/search_index.js b/docs-api/deep-cache/script/search_index.js new file mode 100644 index 00000000..2571aa45 --- /dev/null +++ b/docs-api/deep-cache/script/search_index.js @@ -0,0 +1,650 @@ +window.esdocSearchIndex = [ + [ + "deep-cache/lib/driver/abstractdriver.js~abstractdriver", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html", + "AbstractDriver deep-cache/lib/Driver/AbstractDriver.js", + "class" + ], + [ + "deep-cache/lib/cache.js~cache", + "class/lib/Cache.js~Cache.html", + "Cache deep-cache/lib/Cache.js", + "class" + ], + [ + "deep-cache/lib/driver/exception/driverexception.js~driverexception", + "class/lib/Driver/Exception/DriverException.js~DriverException.html", + "DriverException deep-cache/lib/Driver/Exception/DriverException.js", + "class" + ], + [ + "deep-cache/lib/driver/exception/exception.js~exception", + "class/lib/Driver/Exception/Exception.js~Exception.html", + "Exception deep-cache/lib/Driver/Exception/Exception.js", + "class" + ], + [ + "deep-cache/lib/exception/exception.js~exception", + "class/lib/Exception/Exception.js~Exception.html", + "Exception deep-cache/lib/Exception/Exception.js", + "class" + ], + [ + "deep-cache/lib/driver/inmemorydriver.js~inmemorydriver", + "class/lib/Driver/InMemoryDriver.js~InMemoryDriver.html", + "InMemoryDriver deep-cache/lib/Driver/InMemoryDriver.js", + "class" + ], + [ + "deep-cache/lib/driver/localstoragedriver.js~localstoragedriver", + "class/lib/Driver/LocalStorageDriver.js~LocalStorageDriver.html", + "LocalStorageDriver deep-cache/lib/Driver/LocalStorageDriver.js", + "class" + ], + [ + "deep-cache/lib/driver/exception/missingcacheexception.js~missingcacheexception", + "class/lib/Driver/Exception/MissingCacheException.js~MissingCacheException.html", + "MissingCacheException deep-cache/lib/Driver/Exception/MissingCacheException.js", + "class" + ], + [ + "deep-cache/lib/driver/exception/noflushexception.js~noflushexception", + "class/lib/Driver/Exception/NoFlushException.js~NoFlushException.html", + "NoFlushException deep-cache/lib/Driver/Exception/NoFlushException.js", + "class" + ], + [ + "deep-cache/lib/driver/exception/redisclusterexception.js~redisclusterexception", + "class/lib/Driver/Exception/RedisClusterException.js~RedisClusterException.html", + "RedisClusterException deep-cache/lib/Driver/Exception/RedisClusterException.js", + "class" + ], + [ + "deep-cache/lib/driver/redisdriver.js~redisdriver", + "class/lib/Driver/RedisDriver.js~RedisDriver.html", + "RedisDriver deep-cache/lib/Driver/RedisDriver.js", + "class" + ], + [ + "builtinexternal/ecmascriptexternal.js~array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~arraybuffer", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~dataview", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~DataView", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~date", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Date", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~error", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Error", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~evalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float64array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generator", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Generator", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generatorfunction", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~infinity", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~internalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~json", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~JSON", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~map", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Map", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~nan", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~NaN", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~promise", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Promise", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~proxy", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~rangeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~referenceerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~reflect", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~regexp", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~set", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Set", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~String", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~symbol", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~syntaxerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~typeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~urierror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~URIError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8clampedarray", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakmap", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakset", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~null", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~null", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~string", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~undefined", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~undefined", + "external" + ], + [ + "builtinexternal/webapiexternal.js~canvasrenderingcontext2d", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "external" + ], + [ + "builtinexternal/webapiexternal.js~documentfragment", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "external" + ], + [ + "builtinexternal/webapiexternal.js~element", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Element", + "external" + ], + [ + "builtinexternal/webapiexternal.js~event", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Event", + "external" + ], + [ + "builtinexternal/webapiexternal.js~node", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Node", + "external" + ], + [ + "builtinexternal/webapiexternal.js~nodelist", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~NodeList", + "external" + ], + [ + "builtinexternal/webapiexternal.js~xmlhttprequest", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "external" + ], + [ + "lib/cache.js", + "file/lib/Cache.js.html", + "lib/Cache.js", + "file" + ], + [ + "lib/cache.js~cache#boot", + "class/lib/Cache.js~Cache.html#instance-method-boot", + "lib/Cache.js~Cache#boot", + "method" + ], + [ + "lib/cache.js~cache#constructor", + "class/lib/Cache.js~Cache.html#instance-constructor-constructor", + "lib/Cache.js~Cache#constructor", + "method" + ], + [ + "lib/cache.js~cache#driver", + "class/lib/Cache.js~Cache.html#instance-set-driver", + "lib/Cache.js~Cache#driver", + "member" + ], + [ + "lib/cache.js~cache#driver", + "class/lib/Cache.js~Cache.html#instance-get-driver", + "lib/Cache.js~Cache#driver", + "member" + ], + [ + "lib/cache.js~cache#service", + "class/lib/Cache.js~Cache.html#instance-get-service", + "lib/Cache.js~Cache#service", + "member" + ], + [ + "lib/cache.js~cache.createdriver", + "class/lib/Cache.js~Cache.html#static-method-createDriver", + "lib/Cache.js~Cache.createDriver", + "method" + ], + [ + "lib/driver/abstractdriver.js", + "file/lib/Driver/AbstractDriver.js.html", + "lib/Driver/AbstractDriver.js", + "file" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver#buildid", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#instance-get-buildId", + "lib/Driver/AbstractDriver.js~AbstractDriver#buildId", + "member" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver#buildid", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#instance-set-buildId", + "lib/Driver/AbstractDriver.js~AbstractDriver#buildId", + "member" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver#constructor", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#instance-constructor-constructor", + "lib/Driver/AbstractDriver.js~AbstractDriver#constructor", + "method" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver#flush", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#instance-method-flush", + "lib/Driver/AbstractDriver.js~AbstractDriver#flush", + "method" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver#get", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#instance-method-get", + "lib/Driver/AbstractDriver.js~AbstractDriver#get", + "method" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver#has", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#instance-method-has", + "lib/Driver/AbstractDriver.js~AbstractDriver#has", + "method" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver#invalidate", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#instance-method-invalidate", + "lib/Driver/AbstractDriver.js~AbstractDriver#invalidate", + "method" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver#namespace", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#instance-set-namespace", + "lib/Driver/AbstractDriver.js~AbstractDriver#namespace", + "member" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver#namespace", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#instance-get-namespace", + "lib/Driver/AbstractDriver.js~AbstractDriver#namespace", + "member" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver#set", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#instance-method-set", + "lib/Driver/AbstractDriver.js~AbstractDriver#set", + "method" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver#silent", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#instance-get-silent", + "lib/Driver/AbstractDriver.js~AbstractDriver#silent", + "member" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver#silent", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#instance-set-silent", + "lib/Driver/AbstractDriver.js~AbstractDriver#silent", + "member" + ], + [ + "lib/driver/exception/driverexception.js", + "file/lib/Driver/Exception/DriverException.js.html", + "lib/Driver/Exception/DriverException.js", + "file" + ], + [ + "lib/driver/exception/driverexception.js~driverexception#constructor", + "class/lib/Driver/Exception/DriverException.js~DriverException.html#instance-constructor-constructor", + "lib/Driver/Exception/DriverException.js~DriverException#constructor", + "method" + ], + [ + "lib/driver/exception/driverexception.js~driverexception#originalexception", + "class/lib/Driver/Exception/DriverException.js~DriverException.html#instance-get-originalException", + "lib/Driver/Exception/DriverException.js~DriverException#originalException", + "member" + ], + [ + "lib/driver/exception/exception.js", + "file/lib/Driver/Exception/Exception.js.html", + "lib/Driver/Exception/Exception.js", + "file" + ], + [ + "lib/driver/exception/exception.js~exception#constructor", + "class/lib/Driver/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Driver/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/driver/exception/missingcacheexception.js", + "file/lib/Driver/Exception/MissingCacheException.js.html", + "lib/Driver/Exception/MissingCacheException.js", + "file" + ], + [ + "lib/driver/exception/missingcacheexception.js~missingcacheexception#constructor", + "class/lib/Driver/Exception/MissingCacheException.js~MissingCacheException.html#instance-constructor-constructor", + "lib/Driver/Exception/MissingCacheException.js~MissingCacheException#constructor", + "method" + ], + [ + "lib/driver/exception/noflushexception.js", + "file/lib/Driver/Exception/NoFlushException.js.html", + "lib/Driver/Exception/NoFlushException.js", + "file" + ], + [ + "lib/driver/exception/noflushexception.js~noflushexception#constructor", + "class/lib/Driver/Exception/NoFlushException.js~NoFlushException.html#instance-constructor-constructor", + "lib/Driver/Exception/NoFlushException.js~NoFlushException#constructor", + "method" + ], + [ + "lib/driver/exception/redisclusterexception.js", + "file/lib/Driver/Exception/RedisClusterException.js.html", + "lib/Driver/Exception/RedisClusterException.js", + "file" + ], + [ + "lib/driver/exception/redisclusterexception.js~redisclusterexception#constructor", + "class/lib/Driver/Exception/RedisClusterException.js~RedisClusterException.html#instance-constructor-constructor", + "lib/Driver/Exception/RedisClusterException.js~RedisClusterException#constructor", + "method" + ], + [ + "lib/driver/exception/redisclusterexception.js~redisclusterexception#originalexception", + "class/lib/Driver/Exception/RedisClusterException.js~RedisClusterException.html#instance-get-originalException", + "lib/Driver/Exception/RedisClusterException.js~RedisClusterException#originalException", + "member" + ], + [ + "lib/driver/inmemorydriver.js", + "file/lib/Driver/InMemoryDriver.js.html", + "lib/Driver/InMemoryDriver.js", + "file" + ], + [ + "lib/driver/inmemorydriver.js~inmemorydriver#constructor", + "class/lib/Driver/InMemoryDriver.js~InMemoryDriver.html#instance-constructor-constructor", + "lib/Driver/InMemoryDriver.js~InMemoryDriver#constructor", + "method" + ], + [ + "lib/driver/inmemorydriver.js~inmemorydriver#storage", + "class/lib/Driver/InMemoryDriver.js~InMemoryDriver.html#instance-get-storage", + "lib/Driver/InMemoryDriver.js~InMemoryDriver#storage", + "member" + ], + [ + "lib/driver/localstoragedriver.js", + "file/lib/Driver/LocalStorageDriver.js.html", + "lib/Driver/LocalStorageDriver.js", + "file" + ], + [ + "lib/driver/localstoragedriver.js~localstoragedriver#constructor", + "class/lib/Driver/LocalStorageDriver.js~LocalStorageDriver.html#instance-constructor-constructor", + "lib/Driver/LocalStorageDriver.js~LocalStorageDriver#constructor", + "method" + ], + [ + "lib/driver/redisdriver.js", + "file/lib/Driver/RedisDriver.js.html", + "lib/Driver/RedisDriver.js", + "file" + ], + [ + "lib/driver/redisdriver.js~redisdriver#client", + "class/lib/Driver/RedisDriver.js~RedisDriver.html#instance-get-client", + "lib/Driver/RedisDriver.js~RedisDriver#client", + "member" + ], + [ + "lib/driver/redisdriver.js~redisdriver#constructor", + "class/lib/Driver/RedisDriver.js~RedisDriver.html#instance-constructor-constructor", + "lib/Driver/RedisDriver.js~RedisDriver#constructor", + "method" + ], + [ + "lib/exception/exception.js", + "file/lib/Exception/Exception.js.html", + "lib/Exception/Exception.js", + "file" + ], + [ + "lib/exception/exception.js~exception#constructor", + "class/lib/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/bootstrap.js", + "file/lib/bootstrap.js.html", + "lib/bootstrap.js", + "file" + ] +] \ No newline at end of file diff --git a/docs-api/deep-cache/script/test-summary.js b/docs-api/deep-cache/script/test-summary.js new file mode 100644 index 00000000..2f32cb00 --- /dev/null +++ b/docs-api/deep-cache/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-describe')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-describe .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/docs-api/deep-cache/source.html b/docs-api/deep-cache/source.html new file mode 100644 index 00000000..1fdf9524 --- /dev/null +++ b/docs-api/deep-cache/source.html @@ -0,0 +1,175 @@ + + + + + + Source | DEEP Cache Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Source 38/42

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    lib/Cache.jsCache100 %7/71962 byte962015-10-07 19:56:07 (UTC)
    lib/Driver/AbstractDriver.jsAbstractDriver92 %12/133867 byte2002015-10-07 19:56:07 (UTC)
    lib/Driver/Exception/DriverException.jsDriverException100 %3/3518 byte282015-08-03 11:39:55 (UTC)
    lib/Driver/Exception/Exception.jsException100 %2/2293 byte192015-09-04 12:52:16 (UTC)
    lib/Driver/Exception/MissingCacheException.jsMissingCacheException100 %2/2329 byte192015-09-04 12:52:16 (UTC)
    lib/Driver/Exception/NoFlushException.jsNoFlushException50 %1/2278 byte162015-09-04 12:52:16 (UTC)
    lib/Driver/Exception/RedisClusterException.jsRedisClusterException100 %3/3656 byte312015-09-04 12:52:16 (UTC)
    lib/Driver/InMemoryDriver.jsInMemoryDriver66 %2/31809 byte1012015-10-07 04:23:59 (UTC)
    lib/Driver/LocalStorageDriver.jsLocalStorageDriver50 %1/22414 byte1312015-09-04 12:52:16 (UTC)
    lib/Driver/RedisDriver.jsRedisDriver100 %3/32154 byte1042015-09-04 12:52:16 (UTC)
    lib/Exception/Exception.jsException100 %2/2282 byte192015-10-07 19:56:07 (UTC)
    lib/bootstrap.js--174 byte112015-09-04 12:52:16 (UTC)
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/ast/source/AWS/IAM/Action.js.json b/docs-api/deep-core/ast/source/AWS/IAM/Action.js.json new file mode 100644 index 00000000..f77ac53c --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/IAM/Action.js.json @@ -0,0 +1,2707 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + }, + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Extractable", + "raw": "'./Extractable'", + "range": [ + 87, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 26 + }, + "end": { + "line": 7, + "column": 41 + } + } + }, + "range": [ + 61, + 103 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 42 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Service", + "range": [ + 112, + 119 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Service", + "range": [ + 112, + 119 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + } + } + }, + "range": [ + 112, + 119 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../Service", + "raw": "'../Service'", + "range": [ + 126, + 138 + ], + "loc": { + "start": { + "line": 8, + "column": 22 + }, + "end": { + "line": 8, + "column": 34 + } + } + }, + "range": [ + 104, + 139 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 35 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 148, + 172 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 32 + } + } + }, + "imported": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 148, + 172 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 32 + } + } + }, + "range": [ + 148, + 172 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 32 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../Exception/InvalidArgumentException", + "raw": "'../../Exception/InvalidArgumentException'", + "range": [ + 179, + 221 + ], + "loc": { + "start": { + "line": 9, + "column": 39 + }, + "end": { + "line": 9, + "column": 81 + } + } + }, + "range": [ + 140, + 222 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 82 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Policy", + "range": [ + 231, + 237 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 14 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Policy", + "range": [ + 231, + 237 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 14 + } + } + }, + "range": [ + 231, + 237 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 14 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Policy", + "raw": "'./Policy'", + "range": [ + 244, + 254 + ], + "loc": { + "start": { + "line": 10, + "column": 21 + }, + "end": { + "line": 10, + "column": 31 + } + } + }, + "range": [ + 223, + 255 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 32 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Iam statement action\n ", + "range": [ + 257, + 288 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Action", + "range": [ + 302, + 308 + ], + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 19 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 317, + 328 + ], + "loc": { + "start": { + "line": 15, + "column": 28 + }, + "end": { + "line": 15, + "column": 39 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 333, + 344 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 353, + 358 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 353, + 360 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 11 + } + } + }, + "range": [ + 353, + 361 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 367, + 371 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_service", + "range": [ + 372, + 380 + ], + "loc": { + "start": { + "line": 19, + "column": 9 + }, + "end": { + "line": 19, + "column": 17 + } + } + }, + "range": [ + 367, + 380 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 17 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Policy", + "range": [ + 383, + 389 + ], + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "ANY", + "range": [ + 390, + 393 + ], + "loc": { + "start": { + "line": 19, + "column": 27 + }, + "end": { + "line": 19, + "column": 30 + } + } + }, + "range": [ + 383, + 393 + ], + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 30 + } + } + }, + "range": [ + 367, + 393 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 30 + } + } + }, + "range": [ + 367, + 394 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 399, + 403 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 404, + 411 + ], + "loc": { + "start": { + "line": 20, + "column": 9 + }, + "end": { + "line": 20, + "column": 16 + } + } + }, + "range": [ + 399, + 411 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 16 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Policy", + "range": [ + 414, + 420 + ], + "loc": { + "start": { + "line": 20, + "column": 19 + }, + "end": { + "line": 20, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "ANY", + "range": [ + 421, + 424 + ], + "loc": { + "start": { + "line": 20, + "column": 26 + }, + "end": { + "line": 20, + "column": 29 + } + } + }, + "range": [ + 414, + 424 + ], + "loc": { + "start": { + "line": 20, + "column": 19 + }, + "end": { + "line": 20, + "column": 29 + } + } + }, + "range": [ + 399, + 424 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 29 + } + } + }, + "range": [ + 399, + 425 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 30 + } + } + } + ], + "range": [ + 347, + 429 + ], + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 21, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 344, + 429 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 21, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 333, + 429 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 21, + "column": 3 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} action\n ", + "range": [ + 433, + 470 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "action", + "range": [ + 477, + 483 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "action", + "range": [ + 484, + 490 + ], + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 19 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 498, + 502 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 503, + 510 + ], + "loc": { + "start": { + "line": 27, + "column": 9 + }, + "end": { + "line": 27, + "column": 16 + } + } + }, + "range": [ + 498, + 510 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "action", + "range": [ + 513, + 519 + ], + "loc": { + "start": { + "line": 27, + "column": 19 + }, + "end": { + "line": 27, + "column": 25 + } + } + }, + "range": [ + 498, + 519 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 25 + } + } + }, + "range": [ + 498, + 520 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 26 + } + } + } + ], + "range": [ + 492, + 524 + ], + "loc": { + "start": { + "line": 26, + "column": 21 + }, + "end": { + "line": 28, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 483, + 524 + ], + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 28, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 473, + 524 + ], + "loc": { + "start": { + "line": 26, + "column": 2 + }, + "end": { + "line": 28, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} action\n ", + "range": [ + 433, + 470 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 528, + 560 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "action", + "range": [ + 567, + 573 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 589, + 593 + ], + "loc": { + "start": { + "line": 34, + "column": 11 + }, + "end": { + "line": 34, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 594, + 601 + ], + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 23 + } + } + }, + "range": [ + 589, + 601 + ], + "loc": { + "start": { + "line": 34, + "column": 11 + }, + "end": { + "line": 34, + "column": 23 + } + } + }, + "range": [ + 582, + 602 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 24 + } + } + } + ], + "range": [ + 576, + 606 + ], + "loc": { + "start": { + "line": 33, + "column": 15 + }, + "end": { + "line": 35, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 573, + 606 + ], + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 35, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 563, + 606 + ], + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 35, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 528, + 560 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n ", + "range": [ + 610, + 645 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "service", + "range": [ + 652, + 659 + ], + "loc": { + "start": { + "line": 40, + "column": 6 + }, + "end": { + "line": 40, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 660, + 664 + ], + "loc": { + "start": { + "line": 40, + "column": 14 + }, + "end": { + "line": 40, + "column": 18 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 677, + 684 + ], + "loc": { + "start": { + "line": 41, + "column": 9 + }, + "end": { + "line": 41, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "exists", + "range": [ + 685, + 691 + ], + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 41, + "column": 23 + } + } + }, + "range": [ + 677, + 691 + ], + "loc": { + "start": { + "line": 41, + "column": 9 + }, + "end": { + "line": 41, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 692, + 696 + ], + "loc": { + "start": { + "line": 41, + "column": 24 + }, + "end": { + "line": 41, + "column": 28 + } + } + } + ], + "range": [ + 677, + 697 + ], + "loc": { + "start": { + "line": 41, + "column": 9 + }, + "end": { + "line": 41, + "column": 29 + } + } + }, + "prefix": true, + "range": [ + 676, + 697 + ], + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 29 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 717, + 741 + ], + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 742, + 746 + ], + "loc": { + "start": { + "line": 42, + "column": 41 + }, + "end": { + "line": 42, + "column": 45 + } + } + }, + { + "type": "Identifier", + "name": "Service", + "range": [ + 748, + 755 + ], + "loc": { + "start": { + "line": 42, + "column": 47 + }, + "end": { + "line": 42, + "column": 54 + } + } + } + ], + "range": [ + 713, + 756 + ], + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 55 + } + } + }, + "range": [ + 707, + 757 + ], + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 56 + } + } + } + ], + "range": [ + 699, + 763 + ], + "loc": { + "start": { + "line": 41, + "column": 31 + }, + "end": { + "line": 43, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 672, + 763 + ], + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 43, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 769, + 773 + ], + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_service", + "range": [ + 774, + 782 + ], + "loc": { + "start": { + "line": 45, + "column": 9 + }, + "end": { + "line": 45, + "column": 17 + } + } + }, + "range": [ + 769, + 782 + ], + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 17 + } + } + }, + "right": { + "type": "Identifier", + "name": "name", + "range": [ + 785, + 789 + ], + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 45, + "column": 24 + } + } + }, + "range": [ + 769, + 789 + ], + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 24 + } + } + }, + "range": [ + 769, + 790 + ], + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 25 + } + } + } + ], + "range": [ + 666, + 794 + ], + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 659, + 794 + ], + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 648, + 794 + ], + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 46, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n ", + "range": [ + 610, + 645 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 798, + 830 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "service", + "range": [ + 837, + 844 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 860, + 864 + ], + "loc": { + "start": { + "line": 52, + "column": 11 + }, + "end": { + "line": 52, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_service", + "range": [ + 865, + 873 + ], + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 24 + } + } + }, + "range": [ + 860, + 873 + ], + "loc": { + "start": { + "line": 52, + "column": 11 + }, + "end": { + "line": 52, + "column": 24 + } + } + }, + "range": [ + 853, + 874 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 25 + } + } + } + ], + "range": [ + 847, + 878 + ], + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 53, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 844, + 878 + ], + "loc": { + "start": { + "line": 51, + "column": 13 + }, + "end": { + "line": 53, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 833, + 878 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 798, + 830 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 882, + 914 + ], + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 57, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "extract", + "range": [ + 917, + 924 + ], + "loc": { + "start": { + "line": 58, + "column": 2 + }, + "end": { + "line": 58, + "column": 9 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "service", + "range": [ + 937, + 944 + ], + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 15 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 947, + 951 + ], + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "_service", + "range": [ + 952, + 960 + ], + "loc": { + "start": { + "line": 59, + "column": 23 + }, + "end": { + "line": 59, + "column": 31 + } + } + }, + "range": [ + 947, + 960 + ], + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 31 + } + } + }, + "range": [ + 937, + 960 + ], + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 31 + } + } + } + ], + "kind": "let", + "range": [ + 933, + 961 + ], + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 32 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "action", + "range": [ + 970, + 976 + ], + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 60, + "column": 14 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 979, + 983 + ], + "loc": { + "start": { + "line": 60, + "column": 17 + }, + "end": { + "line": 60, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 984, + 991 + ], + "loc": { + "start": { + "line": 60, + "column": 22 + }, + "end": { + "line": 60, + "column": 29 + } + } + }, + "range": [ + 979, + 991 + ], + "loc": { + "start": { + "line": 60, + "column": 17 + }, + "end": { + "line": 60, + "column": 29 + } + } + }, + "range": [ + 970, + 991 + ], + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 60, + "column": 29 + } + } + } + ], + "kind": "let", + "range": [ + 966, + 992 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 30 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": false, + "range": [ + 1005, + 1008 + ], + "loc": { + "start": { + "line": 62, + "column": 11 + }, + "end": { + "line": 62, + "column": 14 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ":", + "cooked": ":" + }, + "tail": false, + "range": [ + 1015, + 1019 + ], + "loc": { + "start": { + "line": 62, + "column": 21 + }, + "end": { + "line": 62, + "column": 25 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 1025, + 1027 + ], + "loc": { + "start": { + "line": 62, + "column": 31 + }, + "end": { + "line": 62, + "column": 33 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "service", + "range": [ + 1008, + 1015 + ], + "loc": { + "start": { + "line": 62, + "column": 14 + }, + "end": { + "line": 62, + "column": 21 + } + } + }, + { + "type": "Identifier", + "name": "action", + "range": [ + 1019, + 1025 + ], + "loc": { + "start": { + "line": 62, + "column": 25 + }, + "end": { + "line": 62, + "column": 31 + } + } + } + ], + "range": [ + 1005, + 1027 + ], + "loc": { + "start": { + "line": 62, + "column": 11 + }, + "end": { + "line": 62, + "column": 33 + } + } + }, + "range": [ + 998, + 1028 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 34 + } + } + } + ], + "range": [ + 927, + 1032 + ], + "loc": { + "start": { + "line": 58, + "column": 12 + }, + "end": { + "line": 63, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 924, + 1032 + ], + "loc": { + "start": { + "line": 58, + "column": 9 + }, + "end": { + "line": 63, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 917, + 1032 + ], + "loc": { + "start": { + "line": 58, + "column": 2 + }, + "end": { + "line": 63, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 882, + 914 + ], + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 57, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 329, + 1034 + ], + "loc": { + "start": { + "line": 15, + "column": 40 + }, + "end": { + "line": 64, + "column": 1 + } + } + }, + "range": [ + 296, + 1034 + ], + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 64, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Iam statement action\n ", + "range": [ + 257, + 288 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 289, + 1034 + ], + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 64, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Iam statement action\n ", + "range": [ + 257, + 288 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 1034 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 64, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Iam statement action\n ", + "range": [ + 257, + 288 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} action\n ", + "range": [ + 433, + 470 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 528, + 560 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} name\n ", + "range": [ + 610, + 645 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 798, + 830 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 882, + 914 + ], + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 57, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/AWS/IAM/Collection.js.json b/docs-api/deep-core/ast/source/AWS/IAM/Collection.js.json new file mode 100644 index 00000000..53a09c54 --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/IAM/Collection.js.json @@ -0,0 +1,3729 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + }, + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Extractable", + "raw": "'./Extractable'", + "range": [ + 87, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 26 + }, + "end": { + "line": 7, + "column": 41 + } + } + }, + "range": [ + 61, + 103 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 42 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 112, + 136 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 32 + } + } + }, + "imported": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 112, + 136 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 32 + } + } + }, + "range": [ + 112, + 136 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 32 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../Exception/InvalidArgumentException", + "raw": "'../../Exception/InvalidArgumentException'", + "range": [ + 143, + 185 + ], + "loc": { + "start": { + "line": 8, + "column": 39 + }, + "end": { + "line": 8, + "column": 81 + } + } + }, + "range": [ + 104, + 186 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 82 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Collection of something\n ", + "range": [ + 188, + 222 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Collection", + "range": [ + 236, + 246 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 23 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 255, + 266 + ], + "loc": { + "start": { + "line": 13, + "column": 32 + }, + "end": { + "line": 13, + "column": 43 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 314, + 325 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "prototype", + "range": [ + 326, + 335 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 343, + 348 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 343, + 350 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 11 + } + } + }, + "range": [ + 343, + 351 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 12 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "prototype", + "range": [ + 361, + 370 + ], + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "__proto__", + "range": [ + 371, + 380 + ], + "loc": { + "start": { + "line": 20, + "column": 18 + }, + "end": { + "line": 20, + "column": 27 + } + } + }, + "range": [ + 361, + 380 + ], + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 27 + } + } + }, + "right": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 385, + 396 + ], + "loc": { + "start": { + "line": 20, + "column": 32 + }, + "end": { + "line": 20, + "column": 43 + } + } + }, + "range": [ + 361, + 396 + ], + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 43 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 416, + 440 + ], + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "prototype", + "range": [ + 441, + 450 + ], + "loc": { + "start": { + "line": 21, + "column": 41 + }, + "end": { + "line": 21, + "column": 50 + } + } + }, + { + "type": "Identifier", + "name": "Extractable", + "range": [ + 452, + 463 + ], + "loc": { + "start": { + "line": 21, + "column": 52 + }, + "end": { + "line": 21, + "column": 63 + } + } + } + ], + "range": [ + 412, + 464 + ], + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 64 + } + } + }, + "range": [ + 406, + 465 + ], + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 65 + } + } + } + ], + "range": [ + 398, + 471 + ], + "loc": { + "start": { + "line": 20, + "column": 45 + }, + "end": { + "line": 22, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 357, + 471 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 22, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 477, + 481 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_prototype", + "range": [ + 482, + 492 + ], + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 19 + } + } + }, + "range": [ + 477, + 492 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 19 + } + } + }, + "right": { + "type": "Identifier", + "name": "prototype", + "range": [ + 495, + 504 + ], + "loc": { + "start": { + "line": 24, + "column": 22 + }, + "end": { + "line": 24, + "column": 31 + } + } + }, + "range": [ + 477, + 504 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 31 + } + } + }, + "range": [ + 477, + 505 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 32 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 510, + 514 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 515, + 522 + ], + "loc": { + "start": { + "line": 25, + "column": 9 + }, + "end": { + "line": 25, + "column": 16 + } + } + }, + "range": [ + 510, + 522 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 16 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 525, + 527 + ], + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 21 + } + } + }, + "range": [ + 510, + 527 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 21 + } + } + }, + "range": [ + 510, + 528 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 22 + } + } + } + ], + "range": [ + 337, + 532 + ], + "loc": { + "start": { + "line": 17, + "column": 25 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 325, + 532 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 314, + 532 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 26, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} prototype\n ", + "range": [ + 271, + 311 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 536, + 568 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "prototype", + "range": [ + 575, + 584 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 600, + 604 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_prototype", + "range": [ + 605, + 615 + ], + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 26 + } + } + }, + "range": [ + 600, + 615 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 26 + } + } + }, + "range": [ + 593, + 616 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 27 + } + } + } + ], + "range": [ + 587, + 620 + ], + "loc": { + "start": { + "line": 31, + "column": 18 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 584, + 620 + ], + "loc": { + "start": { + "line": 31, + "column": 15 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 571, + 620 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 33, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 536, + 568 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n * @returns {Object}\n ", + "range": [ + 624, + 681 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 38, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "create", + "range": [ + 684, + 690 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 39, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 694, + 698 + ], + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 39, + "column": 16 + } + } + }, + "range": [ + 691, + 698 + ], + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 16 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 717, + 721 + ], + "loc": { + "start": { + "line": 40, + "column": 15 + }, + "end": { + "line": 40, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "_prototype", + "range": [ + 722, + 732 + ], + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 30 + } + } + }, + "range": [ + 717, + 732 + ], + "loc": { + "start": { + "line": 40, + "column": 15 + }, + "end": { + "line": 40, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 736, + 740 + ], + "loc": { + "start": { + "line": 40, + "column": 34 + }, + "end": { + "line": 40, + "column": 38 + } + } + }, + "range": [ + 733, + 740 + ], + "loc": { + "start": { + "line": 40, + "column": 31 + }, + "end": { + "line": 40, + "column": 38 + } + } + } + ], + "range": [ + 713, + 741 + ], + "loc": { + "start": { + "line": 40, + "column": 11 + }, + "end": { + "line": 40, + "column": 39 + } + } + }, + "range": [ + 706, + 742 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 40 + } + } + } + ], + "range": [ + 700, + 746 + ], + "loc": { + "start": { + "line": 39, + "column": 18 + }, + "end": { + "line": 41, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 690, + 746 + ], + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 41, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 684, + 746 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n * @returns {Object}\n ", + "range": [ + 624, + 681 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 38, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n * @returns {Object}\n ", + "range": [ + 750, + 807 + ], + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 46, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "add", + "range": [ + 810, + 813 + ], + "loc": { + "start": { + "line": 47, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 817, + 821 + ], + "loc": { + "start": { + "line": 47, + "column": 9 + }, + "end": { + "line": 47, + "column": 13 + } + } + }, + "range": [ + 814, + 821 + ], + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 13 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "instance", + "range": [ + 833, + 841 + ], + "loc": { + "start": { + "line": 48, + "column": 8 + }, + "end": { + "line": 48, + "column": 16 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "args", + "range": [ + 844, + 848 + ], + "loc": { + "start": { + "line": 48, + "column": 19 + }, + "end": { + "line": 48, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 849, + 855 + ], + "loc": { + "start": { + "line": 48, + "column": 24 + }, + "end": { + "line": 48, + "column": 30 + } + } + }, + "range": [ + 844, + 855 + ], + "loc": { + "start": { + "line": 48, + "column": 19 + }, + "end": { + "line": 48, + "column": 30 + } + } + }, + "right": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 860, + 861 + ], + "loc": { + "start": { + "line": 48, + "column": 35 + }, + "end": { + "line": 48, + "column": 36 + } + } + }, + "range": [ + 844, + 861 + ], + "loc": { + "start": { + "line": 48, + "column": 19 + }, + "end": { + "line": 48, + "column": 36 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "args", + "range": [ + 865, + 869 + ], + "loc": { + "start": { + "line": 48, + "column": 40 + }, + "end": { + "line": 48, + "column": 44 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 870, + 871 + ], + "loc": { + "start": { + "line": 48, + "column": 45 + }, + "end": { + "line": 48, + "column": 46 + } + } + }, + "range": [ + 865, + 872 + ], + "loc": { + "start": { + "line": 48, + "column": 40 + }, + "end": { + "line": 48, + "column": 47 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 884, + 888 + ], + "loc": { + "start": { + "line": 48, + "column": 59 + }, + "end": { + "line": 48, + "column": 63 + } + } + }, + "property": { + "type": "Identifier", + "name": "_prototype", + "range": [ + 889, + 899 + ], + "loc": { + "start": { + "line": 48, + "column": 64 + }, + "end": { + "line": 48, + "column": 74 + } + } + }, + "range": [ + 884, + 899 + ], + "loc": { + "start": { + "line": 48, + "column": 59 + }, + "end": { + "line": 48, + "column": 74 + } + } + }, + "range": [ + 865, + 899 + ], + "loc": { + "start": { + "line": 48, + "column": 40 + }, + "end": { + "line": 48, + "column": 74 + } + } + }, + "range": [ + 844, + 899 + ], + "loc": { + "start": { + "line": 48, + "column": 19 + }, + "end": { + "line": 48, + "column": 74 + } + } + }, + "consequent": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "args", + "range": [ + 908, + 912 + ], + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 49, + "column": 12 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 913, + 914 + ], + "loc": { + "start": { + "line": 49, + "column": 13 + }, + "end": { + "line": 49, + "column": 14 + } + } + }, + "range": [ + 908, + 915 + ], + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 49, + "column": 15 + } + } + }, + "alternate": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 924, + 928 + ], + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "create", + "range": [ + 929, + 935 + ], + "loc": { + "start": { + "line": 50, + "column": 13 + }, + "end": { + "line": 50, + "column": 19 + } + } + }, + "range": [ + 924, + 935 + ], + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 19 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 939, + 943 + ], + "loc": { + "start": { + "line": 50, + "column": 23 + }, + "end": { + "line": 50, + "column": 27 + } + } + }, + "range": [ + 936, + 943 + ], + "loc": { + "start": { + "line": 50, + "column": 20 + }, + "end": { + "line": 50, + "column": 27 + } + } + } + ], + "range": [ + 924, + 944 + ], + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 28 + } + } + }, + "range": [ + 844, + 944 + ], + "loc": { + "start": { + "line": 48, + "column": 19 + }, + "end": { + "line": 50, + "column": 28 + } + } + }, + "range": [ + 833, + 944 + ], + "loc": { + "start": { + "line": 48, + "column": 8 + }, + "end": { + "line": 50, + "column": 28 + } + } + } + ], + "kind": "let", + "range": [ + 829, + 945 + ], + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 50, + "column": 29 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 951, + 955 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 956, + 963 + ], + "loc": { + "start": { + "line": 52, + "column": 9 + }, + "end": { + "line": 52, + "column": 16 + } + } + }, + "range": [ + 951, + 963 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "push", + "range": [ + 964, + 968 + ], + "loc": { + "start": { + "line": 52, + "column": 17 + }, + "end": { + "line": 52, + "column": 21 + } + } + }, + "range": [ + 951, + 968 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "instance", + "range": [ + 969, + 977 + ], + "loc": { + "start": { + "line": 52, + "column": 22 + }, + "end": { + "line": 52, + "column": 30 + } + } + } + ], + "range": [ + 951, + 978 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 31 + } + } + }, + "range": [ + 951, + 979 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 32 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "instance", + "range": [ + 992, + 1000 + ], + "loc": { + "start": { + "line": 54, + "column": 11 + }, + "end": { + "line": 54, + "column": 19 + } + } + }, + "range": [ + 985, + 1001 + ], + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 54, + "column": 20 + } + } + } + ], + "range": [ + 823, + 1005 + ], + "loc": { + "start": { + "line": 47, + "column": 15 + }, + "end": { + "line": 55, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 813, + 1005 + ], + "loc": { + "start": { + "line": 47, + "column": 5 + }, + "end": { + "line": 55, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 810, + 1005 + ], + "loc": { + "start": { + "line": 47, + "column": 2 + }, + "end": { + "line": 55, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n * @returns {Object}\n ", + "range": [ + 750, + 807 + ], + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 46, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 1009, + 1041 + ], + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 59, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "count", + "range": [ + 1044, + 1049 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 60, + "column": 7 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1065, + 1069 + ], + "loc": { + "start": { + "line": 61, + "column": 11 + }, + "end": { + "line": 61, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 1070, + 1077 + ], + "loc": { + "start": { + "line": 61, + "column": 16 + }, + "end": { + "line": 61, + "column": 23 + } + } + }, + "range": [ + 1065, + 1077 + ], + "loc": { + "start": { + "line": 61, + "column": 11 + }, + "end": { + "line": 61, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 1078, + 1084 + ], + "loc": { + "start": { + "line": 61, + "column": 24 + }, + "end": { + "line": 61, + "column": 30 + } + } + }, + "range": [ + 1065, + 1084 + ], + "loc": { + "start": { + "line": 61, + "column": 11 + }, + "end": { + "line": 61, + "column": 30 + } + } + }, + "range": [ + 1058, + 1085 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 31 + } + } + } + ], + "range": [ + 1052, + 1089 + ], + "loc": { + "start": { + "line": 60, + "column": 10 + }, + "end": { + "line": 62, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1049, + 1089 + ], + "loc": { + "start": { + "line": 60, + "column": 7 + }, + "end": { + "line": 62, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1044, + 1089 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 1009, + 1041 + ], + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 59, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1093, + 1124 + ], + "loc": { + "start": { + "line": 64, + "column": 2 + }, + "end": { + "line": 66, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "list", + "range": [ + 1127, + 1131 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 67, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1147, + 1151 + ], + "loc": { + "start": { + "line": 68, + "column": 11 + }, + "end": { + "line": 68, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 1152, + 1159 + ], + "loc": { + "start": { + "line": 68, + "column": 16 + }, + "end": { + "line": 68, + "column": 23 + } + } + }, + "range": [ + 1147, + 1159 + ], + "loc": { + "start": { + "line": 68, + "column": 11 + }, + "end": { + "line": 68, + "column": 23 + } + } + }, + "range": [ + 1140, + 1160 + ], + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 68, + "column": 24 + } + } + } + ], + "range": [ + 1134, + 1164 + ], + "loc": { + "start": { + "line": 67, + "column": 9 + }, + "end": { + "line": 69, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1131, + 1164 + ], + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 69, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1127, + 1164 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1093, + 1124 + ], + "loc": { + "start": { + "line": 64, + "column": 2 + }, + "end": { + "line": 66, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1168, + 1199 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 73, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "extract", + "range": [ + 1202, + 1209 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 74, + "column": 9 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "vector", + "range": [ + 1222, + 1228 + ], + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 14 + } + } + }, + "init": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 1231, + 1233 + ], + "loc": { + "start": { + "line": 75, + "column": 17 + }, + "end": { + "line": 75, + "column": 19 + } + } + }, + "range": [ + 1222, + 1233 + ], + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 19 + } + } + } + ], + "kind": "let", + "range": [ + 1218, + 1234 + ], + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 20 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "itemKey", + "range": [ + 1249, + 1256 + ], + "loc": { + "start": { + "line": 77, + "column": 13 + }, + "end": { + "line": 77, + "column": 20 + } + } + }, + "init": null, + "range": [ + 1249, + 1256 + ], + "loc": { + "start": { + "line": 77, + "column": 13 + }, + "end": { + "line": 77, + "column": 20 + } + } + } + ], + "kind": "let", + "range": [ + 1245, + 1256 + ], + "loc": { + "start": { + "line": 77, + "column": 9 + }, + "end": { + "line": 77, + "column": 20 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1260, + 1264 + ], + "loc": { + "start": { + "line": 77, + "column": 24 + }, + "end": { + "line": 77, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 1265, + 1272 + ], + "loc": { + "start": { + "line": 77, + "column": 29 + }, + "end": { + "line": 77, + "column": 36 + } + } + }, + "range": [ + 1260, + 1272 + ], + "loc": { + "start": { + "line": 77, + "column": 24 + }, + "end": { + "line": 77, + "column": 36 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1287, + 1291 + ], + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 1292, + 1299 + ], + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 23 + } + } + }, + "range": [ + 1287, + 1299 + ], + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 1300, + 1314 + ], + "loc": { + "start": { + "line": 78, + "column": 24 + }, + "end": { + "line": 78, + "column": 38 + } + } + }, + "range": [ + 1287, + 1314 + ], + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "itemKey", + "range": [ + 1315, + 1322 + ], + "loc": { + "start": { + "line": 78, + "column": 39 + }, + "end": { + "line": 78, + "column": 46 + } + } + } + ], + "range": [ + 1287, + 1323 + ], + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 47 + } + } + }, + "prefix": true, + "range": [ + 1286, + 1323 + ], + "loc": { + "start": { + "line": 78, + "column": 10 + }, + "end": { + "line": 78, + "column": 47 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 1335, + 1344 + ], + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 17 + } + } + } + ], + "range": [ + 1325, + 1352 + ], + "loc": { + "start": { + "line": 78, + "column": 49 + }, + "end": { + "line": 80, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1282, + 1352 + ], + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 80, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "item", + "range": [ + 1364, + 1368 + ], + "loc": { + "start": { + "line": 82, + "column": 10 + }, + "end": { + "line": 82, + "column": 14 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1371, + 1375 + ], + "loc": { + "start": { + "line": 82, + "column": 17 + }, + "end": { + "line": 82, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 1376, + 1383 + ], + "loc": { + "start": { + "line": 82, + "column": 22 + }, + "end": { + "line": 82, + "column": 29 + } + } + }, + "range": [ + 1371, + 1383 + ], + "loc": { + "start": { + "line": 82, + "column": 17 + }, + "end": { + "line": 82, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "itemKey", + "range": [ + 1384, + 1391 + ], + "loc": { + "start": { + "line": 82, + "column": 30 + }, + "end": { + "line": 82, + "column": 37 + } + } + }, + "range": [ + 1371, + 1392 + ], + "loc": { + "start": { + "line": 82, + "column": 17 + }, + "end": { + "line": 82, + "column": 38 + } + } + }, + "range": [ + 1364, + 1392 + ], + "loc": { + "start": { + "line": 82, + "column": 10 + }, + "end": { + "line": 82, + "column": 38 + } + } + } + ], + "kind": "let", + "range": [ + 1360, + 1393 + ], + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 39 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "vector", + "range": [ + 1401, + 1407 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "push", + "range": [ + 1408, + 1412 + ], + "loc": { + "start": { + "line": 84, + "column": 13 + }, + "end": { + "line": 84, + "column": 17 + } + } + }, + "range": [ + 1401, + 1412 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "item", + "range": [ + 1413, + 1417 + ], + "loc": { + "start": { + "line": 84, + "column": 18 + }, + "end": { + "line": 84, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "extract", + "range": [ + 1418, + 1425 + ], + "loc": { + "start": { + "line": 84, + "column": 23 + }, + "end": { + "line": 84, + "column": 30 + } + } + }, + "range": [ + 1413, + 1425 + ], + "loc": { + "start": { + "line": 84, + "column": 18 + }, + "end": { + "line": 84, + "column": 30 + } + } + }, + "arguments": [], + "range": [ + 1413, + 1427 + ], + "loc": { + "start": { + "line": 84, + "column": 18 + }, + "end": { + "line": 84, + "column": 32 + } + } + } + ], + "range": [ + 1401, + 1428 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 33 + } + } + }, + "range": [ + 1401, + 1429 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 34 + } + } + } + ], + "range": [ + 1274, + 1435 + ], + "loc": { + "start": { + "line": 77, + "column": 38 + }, + "end": { + "line": 85, + "column": 5 + } + } + }, + "each": false, + "range": [ + 1240, + 1435 + ], + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 85, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "vector", + "range": [ + 1448, + 1454 + ], + "loc": { + "start": { + "line": 87, + "column": 11 + }, + "end": { + "line": 87, + "column": 17 + } + } + }, + "range": [ + 1441, + 1455 + ], + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 87, + "column": 18 + } + } + } + ], + "range": [ + 1212, + 1459 + ], + "loc": { + "start": { + "line": 74, + "column": 12 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1209, + 1459 + ], + "loc": { + "start": { + "line": 74, + "column": 9 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1202, + 1459 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 88, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1168, + 1199 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 73, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 267, + 1461 + ], + "loc": { + "start": { + "line": 13, + "column": 44 + }, + "end": { + "line": 89, + "column": 1 + } + } + }, + "range": [ + 230, + 1461 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 89, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Collection of something\n ", + "range": [ + 188, + 222 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 223, + 1461 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 89, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Collection of something\n ", + "range": [ + 188, + 222 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 1461 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 89, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Collection of something\n ", + "range": [ + 188, + 222 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} prototype\n ", + "range": [ + 271, + 311 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 536, + 568 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n * @returns {Object}\n ", + "range": [ + 624, + 681 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 38, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n * @returns {Object}\n ", + "range": [ + 750, + 807 + ], + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 46, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 1009, + 1041 + ], + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 59, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1093, + 1124 + ], + "loc": { + "start": { + "line": 64, + "column": 2 + }, + "end": { + "line": 66, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1168, + 1199 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 73, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/AWS/IAM/Exception/InvalidArnException.js.json b/docs-api/deep-core/ast/source/AWS/IAM/Exception/InvalidArnException.js.json new file mode 100644 index 00000000..e64586f3 --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/IAM/Exception/InvalidArnException.js.json @@ -0,0 +1,628 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/12/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../../Exception/Exception", + "raw": "'../../../Exception/Exception'", + "range": [ + 85, + 115 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 54 + } + } + }, + "range": [ + 61, + 116 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 55 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when ARN is invalid\n ", + "range": [ + 118, + 155 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "InvalidArnException", + "range": [ + 169, + 188 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 32 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 197, + 206 + ], + "loc": { + "start": { + "line": 12, + "column": 41 + }, + "end": { + "line": 12, + "column": 50 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 248, + 259 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "arn", + "range": [ + 260, + 263 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 17 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 271, + 276 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Invalid arn string \"", + "cooked": "Invalid arn string \"" + }, + "tail": false, + "range": [ + 277, + 300 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 33 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "\".", + "cooked": "\"." + }, + "tail": true, + "range": [ + 303, + 307 + ], + "loc": { + "start": { + "line": 17, + "column": 36 + }, + "end": { + "line": 17, + "column": 40 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "arn", + "range": [ + 300, + 303 + ], + "loc": { + "start": { + "line": 17, + "column": 33 + }, + "end": { + "line": 17, + "column": 36 + } + } + } + ], + "range": [ + 277, + 307 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 40 + } + } + } + ], + "range": [ + 271, + 308 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 41 + } + } + }, + "range": [ + 271, + 309 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 42 + } + } + } + ], + "range": [ + 265, + 313 + ], + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 259, + 313 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 248, + 313 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} arn\n ", + "range": [ + 211, + 245 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 207, + 315 + ], + "loc": { + "start": { + "line": 12, + "column": 51 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 163, + 315 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when ARN is invalid\n ", + "range": [ + 118, + 155 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 156, + 315 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when ARN is invalid\n ", + "range": [ + 118, + 155 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 315 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/12/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when ARN is invalid\n ", + "range": [ + 118, + 155 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} arn\n ", + "range": [ + 211, + 245 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/AWS/IAM/Extractable.js.json b/docs-api/deep-core/ast/source/AWS/IAM/Extractable.js.json new file mode 100644 index 00000000..2d615a41 --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/IAM/Extractable.js.json @@ -0,0 +1,526 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Interface", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Interface", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../OOP/Interface", + "raw": "'../../OOP/Interface'", + "range": [ + 85, + 106 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 45 + } + } + }, + "range": [ + 61, + 107 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 46 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Extractable helper\n ", + "range": [ + 109, + 138 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 152, + 163 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 24 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Interface", + "range": [ + 172, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 33 + }, + "end": { + "line": 12, + "column": 42 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 186, + 197 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 206, + 211 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "extract", + "raw": "'extract'", + "range": [ + 213, + 222 + ], + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 20 + } + } + } + ], + "range": [ + 212, + 223 + ], + "loc": { + "start": { + "line": 14, + "column": 10 + }, + "end": { + "line": 14, + "column": 21 + } + } + } + ], + "range": [ + 206, + 224 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 22 + } + } + }, + "range": [ + 206, + 225 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 23 + } + } + } + ], + "range": [ + 200, + 229 + ], + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 197, + 229 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 186, + 229 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "static": false + } + ], + "range": [ + 182, + 231 + ], + "loc": { + "start": { + "line": 12, + "column": 43 + }, + "end": { + "line": 16, + "column": 1 + } + } + }, + "range": [ + 146, + 231 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Extractable helper\n ", + "range": [ + 109, + 138 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 139, + 231 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Extractable helper\n ", + "range": [ + 109, + 138 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 231 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Extractable helper\n ", + "range": [ + 109, + 138 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/AWS/IAM/Factory.js.json b/docs-api/deep-core/ast/source/AWS/IAM/Factory.js.json new file mode 100644 index 00000000..a96403fb --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/IAM/Factory.js.json @@ -0,0 +1,2624 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 45, + 57 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 45, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/2/15.\n ", + "range": [ + 0, + 43 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Resource", + "range": [ + 68, + 76 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Resource", + "range": [ + 68, + 76 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "range": [ + 68, + 76 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Resource", + "raw": "'./Resource'", + "range": [ + 83, + 95 + ], + "loc": { + "start": { + "line": 7, + "column": 23 + }, + "end": { + "line": 7, + "column": 35 + } + } + }, + "range": [ + 60, + 96 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 36 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Collection", + "range": [ + 105, + 115 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 18 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Collection", + "range": [ + 105, + 115 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 18 + } + } + }, + "range": [ + 105, + 115 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 18 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Collection", + "raw": "'./Collection'", + "range": [ + 122, + 136 + ], + "loc": { + "start": { + "line": 8, + "column": 25 + }, + "end": { + "line": 8, + "column": 39 + } + } + }, + "range": [ + 97, + 137 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 40 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Action", + "range": [ + 146, + 152 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 14 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Action", + "range": [ + 146, + 152 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 14 + } + } + }, + "range": [ + 146, + 152 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 14 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Action", + "raw": "'./Action'", + "range": [ + 159, + 169 + ], + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 31 + } + } + }, + "range": [ + 138, + 170 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 32 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Policy", + "range": [ + 179, + 185 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 14 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Policy", + "range": [ + 179, + 185 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 14 + } + } + }, + "range": [ + 179, + 185 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 14 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Policy", + "raw": "'./Policy'", + "range": [ + 192, + 202 + ], + "loc": { + "start": { + "line": 10, + "column": 21 + }, + "end": { + "line": 10, + "column": 31 + } + } + }, + "range": [ + 171, + 203 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 32 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Statement", + "range": [ + 212, + 221 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Statement", + "range": [ + 212, + 221 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 17 + } + } + }, + "range": [ + 212, + 221 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Statement", + "raw": "'./Statement'", + "range": [ + 228, + 241 + ], + "loc": { + "start": { + "line": 11, + "column": 24 + }, + "end": { + "line": 11, + "column": 37 + } + } + }, + "range": [ + 204, + 242 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * AWS IAM factory\n ", + "range": [ + 244, + 271 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Factory", + "range": [ + 285, + 292 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 20 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "create", + "range": [ + 399, + 405 + ], + "loc": { + "start": { + "line": 22, + "column": 9 + }, + "end": { + "line": 22, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "Prototype", + "range": [ + 406, + 415 + ], + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 25 + } + } + }, + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 420, + 424 + ], + "loc": { + "start": { + "line": 22, + "column": 30 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + "range": [ + 417, + 424 + ], + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 34 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "Prototype", + "range": [ + 432, + 441 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 13 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Factory", + "range": [ + 444, + 451 + ], + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 23, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "_assurePrototype", + "range": [ + 452, + 468 + ], + "loc": { + "start": { + "line": 23, + "column": 24 + }, + "end": { + "line": 23, + "column": 40 + } + } + }, + "range": [ + 444, + 468 + ], + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 23, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "Prototype", + "range": [ + 469, + 478 + ], + "loc": { + "start": { + "line": 23, + "column": 41 + }, + "end": { + "line": 23, + "column": 50 + } + } + } + ], + "range": [ + 444, + 479 + ], + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 23, + "column": 51 + } + } + }, + "range": [ + 432, + 479 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 51 + } + } + }, + "range": [ + 432, + 480 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 52 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Prototype", + "range": [ + 497, + 506 + ], + "loc": { + "start": { + "line": 25, + "column": 15 + }, + "end": { + "line": 25, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 510, + 514 + ], + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 32 + } + } + }, + "range": [ + 507, + 514 + ], + "loc": { + "start": { + "line": 25, + "column": 25 + }, + "end": { + "line": 25, + "column": 32 + } + } + } + ], + "range": [ + 493, + 515 + ], + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 33 + } + } + }, + "range": [ + 486, + 516 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 34 + } + } + } + ], + "range": [ + 426, + 520 + ], + "loc": { + "start": { + "line": 22, + "column": 36 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 405, + 520 + ], + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 392, + 520 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 26, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function|*} Prototype\n * @param {Array} args\n * @returns {Object}\n ", + "range": [ + 297, + 389 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 21, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function|*} Prototype\n * @returns {Collection}\n ", + "range": [ + 524, + 595 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 31, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "createCollection", + "range": [ + 605, + 621 + ], + "loc": { + "start": { + "line": 32, + "column": 9 + }, + "end": { + "line": 32, + "column": 25 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "Prototype", + "range": [ + 622, + 631 + ], + "loc": { + "start": { + "line": 32, + "column": 26 + }, + "end": { + "line": 32, + "column": 35 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "Prototype", + "range": [ + 639, + 648 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 13 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Factory", + "range": [ + 651, + 658 + ], + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "_assurePrototype", + "range": [ + 659, + 675 + ], + "loc": { + "start": { + "line": 33, + "column": 24 + }, + "end": { + "line": 33, + "column": 40 + } + } + }, + "range": [ + 651, + 675 + ], + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "Prototype", + "range": [ + 676, + 685 + ], + "loc": { + "start": { + "line": 33, + "column": 41 + }, + "end": { + "line": 33, + "column": 50 + } + } + } + ], + "range": [ + 651, + 686 + ], + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 51 + } + } + }, + "range": [ + 639, + 686 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 51 + } + } + }, + "range": [ + 639, + 687 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 52 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Collection", + "range": [ + 704, + 714 + ], + "loc": { + "start": { + "line": 35, + "column": 15 + }, + "end": { + "line": 35, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "Prototype", + "range": [ + 715, + 724 + ], + "loc": { + "start": { + "line": 35, + "column": 26 + }, + "end": { + "line": 35, + "column": 35 + } + } + } + ], + "range": [ + 700, + 725 + ], + "loc": { + "start": { + "line": 35, + "column": 11 + }, + "end": { + "line": 35, + "column": 36 + } + } + }, + "range": [ + 693, + 726 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 37 + } + } + } + ], + "range": [ + 633, + 730 + ], + "loc": { + "start": { + "line": 32, + "column": 37 + }, + "end": { + "line": 36, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 621, + 730 + ], + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 36, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 598, + 730 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 36, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function|*} Prototype\n * @returns {Collection}\n ", + "range": [ + 524, + 595 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 31, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function|*} Prototype\n * @returns {Function}\n * @private\n ", + "range": [ + 734, + 817 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 42, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_assurePrototype", + "range": [ + 827, + 843 + ], + "loc": { + "start": { + "line": 43, + "column": 9 + }, + "end": { + "line": 43, + "column": 25 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "Prototype", + "range": [ + 844, + 853 + ], + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 35 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "Identifier", + "name": "Prototype", + "range": [ + 872, + 881 + ], + "loc": { + "start": { + "line": 44, + "column": 15 + }, + "end": { + "line": 44, + "column": 24 + } + } + }, + "prefix": true, + "range": [ + 865, + 881 + ], + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 24 + } + } + }, + "right": { + "type": "Literal", + "value": "string", + "raw": "'string'", + "range": [ + 886, + 894 + ], + "loc": { + "start": { + "line": 44, + "column": 29 + }, + "end": { + "line": 44, + "column": 37 + } + } + }, + "range": [ + 865, + 894 + ], + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 37 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "Prototype", + "range": [ + 904, + 913 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 15 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "Factory", + "range": [ + 916, + 923 + ], + "loc": { + "start": { + "line": 45, + "column": 18 + }, + "end": { + "line": 45, + "column": 25 + } + } + }, + "property": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Prototype", + "range": [ + 924, + 933 + ], + "loc": { + "start": { + "line": 45, + "column": 26 + }, + "end": { + "line": 45, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "toUpperCase", + "range": [ + 934, + 945 + ], + "loc": { + "start": { + "line": 45, + "column": 36 + }, + "end": { + "line": 45, + "column": 47 + } + } + }, + "range": [ + 924, + 945 + ], + "loc": { + "start": { + "line": 45, + "column": 26 + }, + "end": { + "line": 45, + "column": 47 + } + } + }, + "arguments": [], + "range": [ + 924, + 947 + ], + "loc": { + "start": { + "line": 45, + "column": 26 + }, + "end": { + "line": 45, + "column": 49 + } + } + }, + "range": [ + 916, + 948 + ], + "loc": { + "start": { + "line": 45, + "column": 18 + }, + "end": { + "line": 45, + "column": 50 + } + } + }, + "range": [ + 904, + 948 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 50 + } + } + }, + "range": [ + 904, + 949 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 51 + } + } + } + ], + "range": [ + 896, + 955 + ], + "loc": { + "start": { + "line": 44, + "column": 39 + }, + "end": { + "line": 46, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 861, + 955 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 46, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "Prototype", + "range": [ + 968, + 977 + ], + "loc": { + "start": { + "line": 48, + "column": 11 + }, + "end": { + "line": 48, + "column": 20 + } + } + }, + "range": [ + 961, + 978 + ], + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 21 + } + } + } + ], + "range": [ + 855, + 982 + ], + "loc": { + "start": { + "line": 43, + "column": 37 + }, + "end": { + "line": 49, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 843, + 982 + ], + "loc": { + "start": { + "line": 43, + "column": 25 + }, + "end": { + "line": 49, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 820, + 982 + ], + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 49, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function|*} Prototype\n * @returns {Function}\n * @private\n ", + "range": [ + 734, + 817 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 42, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Policy}\n * @constructor\n ", + "range": [ + 986, + 1036 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 54, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "POLICY", + "range": [ + 1050, + 1056 + ], + "loc": { + "start": { + "line": 55, + "column": 13 + }, + "end": { + "line": 55, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "Policy", + "range": [ + 1072, + 1078 + ], + "loc": { + "start": { + "line": 56, + "column": 11 + }, + "end": { + "line": 56, + "column": 17 + } + } + }, + "range": [ + 1065, + 1079 + ], + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 56, + "column": 18 + } + } + } + ], + "range": [ + 1059, + 1083 + ], + "loc": { + "start": { + "line": 55, + "column": 22 + }, + "end": { + "line": 57, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1056, + 1083 + ], + "loc": { + "start": { + "line": 55, + "column": 19 + }, + "end": { + "line": 57, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1039, + 1083 + ], + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 57, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Policy}\n * @constructor\n ", + "range": [ + 986, + 1036 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 54, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Action}\n * @constructor\n ", + "range": [ + 1087, + 1137 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "RESOURCE", + "range": [ + 1151, + 1159 + ], + "loc": { + "start": { + "line": 63, + "column": 13 + }, + "end": { + "line": 63, + "column": 21 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "Resource", + "range": [ + 1175, + 1183 + ], + "loc": { + "start": { + "line": 64, + "column": 11 + }, + "end": { + "line": 64, + "column": 19 + } + } + }, + "range": [ + 1168, + 1184 + ], + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 20 + } + } + } + ], + "range": [ + 1162, + 1188 + ], + "loc": { + "start": { + "line": 63, + "column": 24 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1159, + 1188 + ], + "loc": { + "start": { + "line": 63, + "column": 21 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1140, + 1188 + ], + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 65, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Action}\n * @constructor\n ", + "range": [ + 1087, + 1137 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Resource}\n * @constructor\n ", + "range": [ + 1192, + 1244 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "ACTION", + "range": [ + 1258, + 1264 + ], + "loc": { + "start": { + "line": 71, + "column": 13 + }, + "end": { + "line": 71, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "Action", + "range": [ + 1280, + 1286 + ], + "loc": { + "start": { + "line": 72, + "column": 11 + }, + "end": { + "line": 72, + "column": 17 + } + } + }, + "range": [ + 1273, + 1287 + ], + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 72, + "column": 18 + } + } + } + ], + "range": [ + 1267, + 1291 + ], + "loc": { + "start": { + "line": 71, + "column": 22 + }, + "end": { + "line": 73, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1264, + 1291 + ], + "loc": { + "start": { + "line": 71, + "column": 19 + }, + "end": { + "line": 73, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1247, + 1291 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 73, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Resource}\n * @constructor\n ", + "range": [ + 1192, + 1244 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Statement}\n * @constructor\n ", + "range": [ + 1295, + 1348 + ], + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 78, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "STATEMENT", + "range": [ + 1362, + 1371 + ], + "loc": { + "start": { + "line": 79, + "column": 13 + }, + "end": { + "line": 79, + "column": 22 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "Statement", + "range": [ + 1387, + 1396 + ], + "loc": { + "start": { + "line": 80, + "column": 11 + }, + "end": { + "line": 80, + "column": 20 + } + } + }, + "range": [ + 1380, + 1397 + ], + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 21 + } + } + } + ], + "range": [ + 1374, + 1401 + ], + "loc": { + "start": { + "line": 79, + "column": 25 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1371, + 1401 + ], + "loc": { + "start": { + "line": 79, + "column": 22 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1351, + 1401 + ], + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 81, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Statement}\n * @constructor\n ", + "range": [ + 1295, + 1348 + ], + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 78, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 293, + 1403 + ], + "loc": { + "start": { + "line": 16, + "column": 21 + }, + "end": { + "line": 82, + "column": 1 + } + } + }, + "range": [ + 279, + 1403 + ], + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 82, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * AWS IAM factory\n ", + "range": [ + 244, + 271 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 272, + 1403 + ], + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 82, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * AWS IAM factory\n ", + "range": [ + 244, + 271 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 45, + 1403 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 82, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/2/15.\n ", + "range": [ + 0, + 43 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * AWS IAM factory\n ", + "range": [ + 244, + 271 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function|*} Prototype\n * @param {Array} args\n * @returns {Object}\n ", + "range": [ + 297, + 389 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 21, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function|*} Prototype\n * @returns {Collection}\n ", + "range": [ + 524, + 595 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 31, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function|*} Prototype\n * @returns {Function}\n * @private\n ", + "range": [ + 734, + 817 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 42, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Policy}\n * @constructor\n ", + "range": [ + 986, + 1036 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 54, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Action}\n * @constructor\n ", + "range": [ + 1087, + 1137 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Resource}\n * @constructor\n ", + "range": [ + 1192, + 1244 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Statement}\n * @constructor\n ", + "range": [ + 1295, + 1348 + ], + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 78, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/AWS/IAM/Policy.js.json b/docs-api/deep-core/ast/source/AWS/IAM/Policy.js.json new file mode 100644 index 00000000..d99e71a1 --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/IAM/Policy.js.json @@ -0,0 +1,2678 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + }, + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Extractable", + "raw": "'./Extractable'", + "range": [ + 87, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 26 + }, + "end": { + "line": 7, + "column": 41 + } + } + }, + "range": [ + 61, + 103 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 42 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Collection", + "range": [ + 112, + 122 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 18 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Collection", + "range": [ + 112, + 122 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 18 + } + } + }, + "range": [ + 112, + 122 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 18 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Collection", + "raw": "'./Collection'", + "range": [ + 129, + 143 + ], + "loc": { + "start": { + "line": 8, + "column": 25 + }, + "end": { + "line": 8, + "column": 39 + } + } + }, + "range": [ + 104, + 144 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 40 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Statement", + "range": [ + 153, + 162 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Statement", + "range": [ + 153, + 162 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 17 + } + } + }, + "range": [ + 153, + 162 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Statement", + "raw": "'./Statement'", + "range": [ + 169, + 182 + ], + "loc": { + "start": { + "line": 9, + "column": 24 + }, + "end": { + "line": 9, + "column": 37 + } + } + }, + "range": [ + 145, + 183 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * IAM policy\n ", + "range": [ + 185, + 206 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Policy", + "range": [ + 220, + 226 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 19 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 235, + 246 + ], + "loc": { + "start": { + "line": 14, + "column": 28 + }, + "end": { + "line": 14, + "column": 39 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 251, + 262 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 15, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 271, + 276 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 271, + 278 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 11 + } + } + }, + "range": [ + 271, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 285, + 289 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_version", + "range": [ + 290, + 298 + ], + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + "range": [ + 285, + 298 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Policy", + "range": [ + 301, + 307 + ], + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_VERSION", + "range": [ + 308, + 323 + ], + "loc": { + "start": { + "line": 18, + "column": 27 + }, + "end": { + "line": 18, + "column": 42 + } + } + }, + "range": [ + 301, + 323 + ], + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 42 + } + } + }, + "range": [ + 285, + 323 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 42 + } + } + }, + "range": [ + 285, + 324 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 43 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 329, + 333 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_statement", + "range": [ + 334, + 344 + ], + "loc": { + "start": { + "line": 19, + "column": 9 + }, + "end": { + "line": 19, + "column": 19 + } + } + }, + "range": [ + 329, + 344 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 19 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Collection", + "range": [ + 351, + 361 + ], + "loc": { + "start": { + "line": 19, + "column": 26 + }, + "end": { + "line": 19, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "Statement", + "range": [ + 362, + 371 + ], + "loc": { + "start": { + "line": 19, + "column": 37 + }, + "end": { + "line": 19, + "column": 46 + } + } + } + ], + "range": [ + 347, + 372 + ], + "loc": { + "start": { + "line": 19, + "column": 22 + }, + "end": { + "line": 19, + "column": 47 + } + } + }, + "range": [ + 329, + 372 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 47 + } + } + }, + "range": [ + 329, + 373 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 48 + } + } + } + ], + "range": [ + 265, + 377 + ], + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 262, + 377 + ], + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 251, + 377 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 381, + 413 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 24, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "ANY", + "range": [ + 427, + 430 + ], + "loc": { + "start": { + "line": 25, + "column": 13 + }, + "end": { + "line": 25, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "*", + "raw": "'*'", + "range": [ + 446, + 449 + ], + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 14 + } + } + }, + "range": [ + 439, + 450 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 15 + } + } + } + ], + "range": [ + 433, + 454 + ], + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 27, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 430, + 454 + ], + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 27, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 416, + 454 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 27, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 381, + 413 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 24, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 458, + 490 + ], + "loc": { + "start": { + "line": 29, + "column": 2 + }, + "end": { + "line": 31, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "DEFAULT_VERSION", + "range": [ + 504, + 519 + ], + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 28 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "2012-10-17", + "raw": "'2012-10-17'", + "range": [ + 535, + 547 + ], + "loc": { + "start": { + "line": 33, + "column": 11 + }, + "end": { + "line": 33, + "column": 23 + } + } + }, + "range": [ + 528, + 548 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 24 + } + } + } + ], + "range": [ + 522, + 552 + ], + "loc": { + "start": { + "line": 32, + "column": 31 + }, + "end": { + "line": 34, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 519, + 552 + ], + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 34, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 493, + 552 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 458, + 490 + ], + "loc": { + "start": { + "line": 29, + "column": 2 + }, + "end": { + "line": 31, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} version\n ", + "range": [ + 556, + 594 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 38, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "version", + "range": [ + 601, + 608 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "version", + "range": [ + 609, + 616 + ], + "loc": { + "start": { + "line": 39, + "column": 14 + }, + "end": { + "line": 39, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 624, + 628 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_version", + "range": [ + 629, + 637 + ], + "loc": { + "start": { + "line": 40, + "column": 9 + }, + "end": { + "line": 40, + "column": 17 + } + } + }, + "range": [ + 624, + 637 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 17 + } + } + }, + "right": { + "type": "Identifier", + "name": "version", + "range": [ + 640, + 647 + ], + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 27 + } + } + }, + "range": [ + 624, + 647 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 27 + } + } + }, + "range": [ + 624, + 648 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 28 + } + } + } + ], + "range": [ + 618, + 652 + ], + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 41, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 608, + 652 + ], + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 41, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 597, + 652 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} version\n ", + "range": [ + 556, + 594 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 38, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 656, + 688 + ], + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 45, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "version", + "range": [ + 695, + 702 + ], + "loc": { + "start": { + "line": 46, + "column": 6 + }, + "end": { + "line": 46, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 718, + 722 + ], + "loc": { + "start": { + "line": 47, + "column": 11 + }, + "end": { + "line": 47, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_version", + "range": [ + 723, + 731 + ], + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 24 + } + } + }, + "range": [ + 718, + 731 + ], + "loc": { + "start": { + "line": 47, + "column": 11 + }, + "end": { + "line": 47, + "column": 24 + } + } + }, + "range": [ + 711, + 732 + ], + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 47, + "column": 25 + } + } + } + ], + "range": [ + 705, + 736 + ], + "loc": { + "start": { + "line": 46, + "column": 16 + }, + "end": { + "line": 48, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 702, + 736 + ], + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 48, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 691, + 736 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 656, + 688 + ], + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 45, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 740, + 776 + ], + "loc": { + "start": { + "line": 50, + "column": 2 + }, + "end": { + "line": 52, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "statement", + "range": [ + 783, + 792 + ], + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 808, + 812 + ], + "loc": { + "start": { + "line": 54, + "column": 11 + }, + "end": { + "line": 54, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_statement", + "range": [ + 813, + 823 + ], + "loc": { + "start": { + "line": 54, + "column": 16 + }, + "end": { + "line": 54, + "column": 26 + } + } + }, + "range": [ + 808, + 823 + ], + "loc": { + "start": { + "line": 54, + "column": 11 + }, + "end": { + "line": 54, + "column": 26 + } + } + }, + "range": [ + 801, + 824 + ], + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 54, + "column": 27 + } + } + } + ], + "range": [ + 795, + 828 + ], + "loc": { + "start": { + "line": 53, + "column": 18 + }, + "end": { + "line": 55, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 792, + 828 + ], + "loc": { + "start": { + "line": 53, + "column": 15 + }, + "end": { + "line": 55, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 779, + 828 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 740, + 776 + ], + "loc": { + "start": { + "line": 50, + "column": 2 + }, + "end": { + "line": 52, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @return {Object}\n ", + "range": [ + 832, + 863 + ], + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 59, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "extract", + "range": [ + 866, + 873 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 60, + "column": 9 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Version", + "range": [ + 897, + 904 + ], + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 13 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 906, + 910 + ], + "loc": { + "start": { + "line": 62, + "column": 15 + }, + "end": { + "line": 62, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "_version", + "range": [ + 911, + 919 + ], + "loc": { + "start": { + "line": 62, + "column": 20 + }, + "end": { + "line": 62, + "column": 28 + } + } + }, + "range": [ + 906, + 919 + ], + "loc": { + "start": { + "line": 62, + "column": 15 + }, + "end": { + "line": 62, + "column": 28 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 897, + 919 + ], + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 28 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Statement", + "range": [ + 927, + 936 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 15 + } + } + }, + "value": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 938, + 942 + ], + "loc": { + "start": { + "line": 63, + "column": 17 + }, + "end": { + "line": 63, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "_statement", + "range": [ + 943, + 953 + ], + "loc": { + "start": { + "line": 63, + "column": 22 + }, + "end": { + "line": 63, + "column": 32 + } + } + }, + "range": [ + 938, + 953 + ], + "loc": { + "start": { + "line": 63, + "column": 17 + }, + "end": { + "line": 63, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "extract", + "range": [ + 954, + 961 + ], + "loc": { + "start": { + "line": 63, + "column": 33 + }, + "end": { + "line": 63, + "column": 40 + } + } + }, + "range": [ + 938, + 961 + ], + "loc": { + "start": { + "line": 63, + "column": 17 + }, + "end": { + "line": 63, + "column": 40 + } + } + }, + "arguments": [], + "range": [ + 938, + 963 + ], + "loc": { + "start": { + "line": 63, + "column": 17 + }, + "end": { + "line": 63, + "column": 42 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 927, + 963 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 42 + } + } + } + ], + "range": [ + 889, + 970 + ], + "loc": { + "start": { + "line": 61, + "column": 11 + }, + "end": { + "line": 64, + "column": 5 + } + } + }, + "range": [ + 882, + 971 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 64, + "column": 6 + } + } + } + ], + "range": [ + 876, + 975 + ], + "loc": { + "start": { + "line": 60, + "column": 12 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 873, + 975 + ], + "loc": { + "start": { + "line": 60, + "column": 9 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 866, + 975 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 65, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @return {Object}\n ", + "range": [ + 832, + 863 + ], + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 59, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @return {String}\n ", + "range": [ + 979, + 1010 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "toString", + "range": [ + 1013, + 1021 + ], + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 70, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 1037, + 1041 + ], + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "stringify", + "range": [ + 1042, + 1051 + ], + "loc": { + "start": { + "line": 71, + "column": 16 + }, + "end": { + "line": 71, + "column": 25 + } + } + }, + "range": [ + 1037, + 1051 + ], + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1052, + 1056 + ], + "loc": { + "start": { + "line": 71, + "column": 26 + }, + "end": { + "line": 71, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "extract", + "range": [ + 1057, + 1064 + ], + "loc": { + "start": { + "line": 71, + "column": 31 + }, + "end": { + "line": 71, + "column": 38 + } + } + }, + "range": [ + 1052, + 1064 + ], + "loc": { + "start": { + "line": 71, + "column": 26 + }, + "end": { + "line": 71, + "column": 38 + } + } + }, + "arguments": [], + "range": [ + 1052, + 1066 + ], + "loc": { + "start": { + "line": 71, + "column": 26 + }, + "end": { + "line": 71, + "column": 40 + } + } + } + ], + "range": [ + 1037, + 1067 + ], + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 41 + } + } + }, + "range": [ + 1030, + 1068 + ], + "loc": { + "start": { + "line": 71, + "column": 4 + }, + "end": { + "line": 71, + "column": 42 + } + } + } + ], + "range": [ + 1024, + 1072 + ], + "loc": { + "start": { + "line": 70, + "column": 13 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1021, + 1072 + ], + "loc": { + "start": { + "line": 70, + "column": 10 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1013, + 1072 + ], + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 72, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @return {String}\n ", + "range": [ + 979, + 1010 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 247, + 1074 + ], + "loc": { + "start": { + "line": 14, + "column": 40 + }, + "end": { + "line": 73, + "column": 1 + } + } + }, + "range": [ + 214, + 1074 + ], + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 73, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * IAM policy\n ", + "range": [ + 185, + 206 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 207, + 1074 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 73, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * IAM policy\n ", + "range": [ + 185, + 206 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 1074 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 73, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * IAM policy\n ", + "range": [ + 185, + 206 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 381, + 413 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 24, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 458, + 490 + ], + "loc": { + "start": { + "line": 29, + "column": 2 + }, + "end": { + "line": 31, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} version\n ", + "range": [ + 556, + 594 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 38, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 656, + 688 + ], + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 45, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 740, + 776 + ], + "loc": { + "start": { + "line": 50, + "column": 2 + }, + "end": { + "line": 52, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @return {Object}\n ", + "range": [ + 832, + 863 + ], + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 59, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @return {String}\n ", + "range": [ + 979, + 1010 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/AWS/IAM/Resource.js.json b/docs-api/deep-core/ast/source/AWS/IAM/Resource.js.json new file mode 100644 index 00000000..fb972631 --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/IAM/Resource.js.json @@ -0,0 +1,5628 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + }, + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Extractable", + "raw": "'./Extractable'", + "range": [ + 87, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 26 + }, + "end": { + "line": 7, + "column": 41 + } + } + }, + "range": [ + 61, + 103 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 42 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Region", + "range": [ + 112, + 118 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 14 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Region", + "range": [ + 112, + 118 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 14 + } + } + }, + "range": [ + 112, + 118 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 14 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../Region", + "raw": "'../Region'", + "range": [ + 125, + 136 + ], + "loc": { + "start": { + "line": 8, + "column": 21 + }, + "end": { + "line": 8, + "column": 32 + } + } + }, + "range": [ + 104, + 137 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 33 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Service", + "range": [ + 146, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 15 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Service", + "range": [ + 146, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 15 + } + } + }, + "range": [ + 146, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 15 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../Service", + "raw": "'../Service'", + "range": [ + 160, + 172 + ], + "loc": { + "start": { + "line": 9, + "column": 22 + }, + "end": { + "line": 9, + "column": 34 + } + } + }, + "range": [ + 138, + 173 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 35 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 182, + 206 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 32 + } + } + }, + "imported": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 182, + 206 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 32 + } + } + }, + "range": [ + 182, + 206 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 32 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../Exception/InvalidArgumentException", + "raw": "'../../Exception/InvalidArgumentException'", + "range": [ + 213, + 255 + ], + "loc": { + "start": { + "line": 10, + "column": 39 + }, + "end": { + "line": 10, + "column": 81 + } + } + }, + "range": [ + 174, + 256 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 82 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "InvalidArnException", + "range": [ + 265, + 284 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 27 + } + } + }, + "imported": { + "type": "Identifier", + "name": "InvalidArnException", + "range": [ + 265, + 284 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 27 + } + } + }, + "range": [ + 265, + 284 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 27 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/InvalidArnException", + "raw": "'./Exception/InvalidArnException'", + "range": [ + 291, + 324 + ], + "loc": { + "start": { + "line": 11, + "column": 34 + }, + "end": { + "line": 11, + "column": 67 + } + } + }, + "range": [ + 257, + 325 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 68 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * IAM statement resource\n ", + "range": [ + 327, + 360 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Resource", + "range": [ + 374, + 382 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 391, + 402 + ], + "loc": { + "start": { + "line": 16, + "column": 30 + }, + "end": { + "line": 16, + "column": 41 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 407, + 418 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 427, + 432 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 427, + 434 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 11 + } + } + }, + "range": [ + 427, + 435 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 441, + 445 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_service", + "range": [ + 446, + 454 + ], + "loc": { + "start": { + "line": 20, + "column": 9 + }, + "end": { + "line": 20, + "column": 17 + } + } + }, + "range": [ + 441, + 454 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 17 + } + } + }, + "right": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 457, + 459 + ], + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + "range": [ + 441, + 459 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + "range": [ + 441, + 460 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 23 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 465, + 469 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_region", + "range": [ + 470, + 477 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 16 + } + } + }, + "range": [ + 465, + 477 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 480, + 482 + ], + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 21 + } + } + }, + "range": [ + 465, + 482 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 21 + } + } + }, + "range": [ + 465, + 483 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 22 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 488, + 492 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_accountId", + "range": [ + 493, + 503 + ], + "loc": { + "start": { + "line": 22, + "column": 9 + }, + "end": { + "line": 22, + "column": 19 + } + } + }, + "range": [ + 488, + 503 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 506, + 508 + ], + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 24 + } + } + }, + "range": [ + 488, + 508 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 24 + } + } + }, + "range": [ + 488, + 509 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 25 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 514, + 518 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_descriptor", + "range": [ + 519, + 530 + ], + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 20 + } + } + }, + "range": [ + 514, + 530 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 20 + } + } + }, + "right": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 533, + 535 + ], + "loc": { + "start": { + "line": 23, + "column": 23 + }, + "end": { + "line": 23, + "column": 25 + } + } + }, + "range": [ + 514, + 535 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 25 + } + } + }, + "range": [ + 514, + 536 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 26 + } + } + } + ], + "range": [ + 421, + 540 + ], + "loc": { + "start": { + "line": 17, + "column": 16 + }, + "end": { + "line": 24, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 418, + 540 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 24, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 407, + 540 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 24, + "column": 3 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} identifier\n ", + "range": [ + 544, + 585 + ], + "loc": { + "start": { + "line": 26, + "column": 2 + }, + "end": { + "line": 28, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "accountId", + "range": [ + 592, + 601 + ], + "loc": { + "start": { + "line": 29, + "column": 6 + }, + "end": { + "line": 29, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "identifier", + "range": [ + 602, + 612 + ], + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 26 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 620, + 624 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_accountId", + "range": [ + 625, + 635 + ], + "loc": { + "start": { + "line": 30, + "column": 9 + }, + "end": { + "line": 30, + "column": 19 + } + } + }, + "range": [ + 620, + 635 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 19 + } + } + }, + "right": { + "type": "Identifier", + "name": "identifier", + "range": [ + 638, + 648 + ], + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 32 + } + } + }, + "range": [ + 620, + 648 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 32 + } + } + }, + "range": [ + 620, + 649 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 33 + } + } + } + ], + "range": [ + 614, + 653 + ], + "loc": { + "start": { + "line": 29, + "column": 28 + }, + "end": { + "line": 31, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 601, + 653 + ], + "loc": { + "start": { + "line": 29, + "column": 15 + }, + "end": { + "line": 31, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 588, + 653 + ], + "loc": { + "start": { + "line": 29, + "column": 2 + }, + "end": { + "line": 31, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} identifier\n ", + "range": [ + 544, + 585 + ], + "loc": { + "start": { + "line": 26, + "column": 2 + }, + "end": { + "line": 28, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 657, + 689 + ], + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 35, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "accountId", + "range": [ + 696, + 705 + ], + "loc": { + "start": { + "line": 36, + "column": 6 + }, + "end": { + "line": 36, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 721, + 725 + ], + "loc": { + "start": { + "line": 37, + "column": 11 + }, + "end": { + "line": 37, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_accountId", + "range": [ + 726, + 736 + ], + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 26 + } + } + }, + "range": [ + 721, + 736 + ], + "loc": { + "start": { + "line": 37, + "column": 11 + }, + "end": { + "line": 37, + "column": 26 + } + } + }, + "range": [ + 714, + 737 + ], + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 27 + } + } + } + ], + "range": [ + 708, + 741 + ], + "loc": { + "start": { + "line": 36, + "column": 18 + }, + "end": { + "line": 38, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 705, + 741 + ], + "loc": { + "start": { + "line": 36, + "column": 15 + }, + "end": { + "line": 38, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 692, + 741 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 38, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 657, + 689 + ], + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 35, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} descriptor\n ", + "range": [ + 745, + 786 + ], + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 42, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "descriptor", + "range": [ + 793, + 803 + ], + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "descriptor", + "range": [ + 804, + 814 + ], + "loc": { + "start": { + "line": 43, + "column": 17 + }, + "end": { + "line": 43, + "column": 27 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 822, + 826 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_descriptor", + "range": [ + 827, + 838 + ], + "loc": { + "start": { + "line": 44, + "column": 9 + }, + "end": { + "line": 44, + "column": 20 + } + } + }, + "range": [ + 822, + 838 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 20 + } + } + }, + "right": { + "type": "Identifier", + "name": "descriptor", + "range": [ + 841, + 851 + ], + "loc": { + "start": { + "line": 44, + "column": 23 + }, + "end": { + "line": 44, + "column": 33 + } + } + }, + "range": [ + 822, + 851 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 33 + } + } + }, + "range": [ + 822, + 852 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 34 + } + } + } + ], + "range": [ + 816, + 856 + ], + "loc": { + "start": { + "line": 43, + "column": 29 + }, + "end": { + "line": 45, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 803, + 856 + ], + "loc": { + "start": { + "line": 43, + "column": 16 + }, + "end": { + "line": 45, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 789, + 856 + ], + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 45, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} descriptor\n ", + "range": [ + 745, + 786 + ], + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 42, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 860, + 892 + ], + "loc": { + "start": { + "line": 47, + "column": 2 + }, + "end": { + "line": 49, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "descriptor", + "range": [ + 899, + 909 + ], + "loc": { + "start": { + "line": 50, + "column": 6 + }, + "end": { + "line": 50, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 925, + 929 + ], + "loc": { + "start": { + "line": 51, + "column": 11 + }, + "end": { + "line": 51, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_descriptor", + "range": [ + 930, + 941 + ], + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 27 + } + } + }, + "range": [ + 925, + 941 + ], + "loc": { + "start": { + "line": 51, + "column": 11 + }, + "end": { + "line": 51, + "column": 27 + } + } + }, + "range": [ + 918, + 942 + ], + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 28 + } + } + } + ], + "range": [ + 912, + 946 + ], + "loc": { + "start": { + "line": 50, + "column": 19 + }, + "end": { + "line": 52, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 909, + 946 + ], + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 52, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 895, + 946 + ], + "loc": { + "start": { + "line": 50, + "column": 2 + }, + "end": { + "line": 52, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 860, + 892 + ], + "loc": { + "start": { + "line": 47, + "column": 2 + }, + "end": { + "line": 49, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n ", + "range": [ + 950, + 985 + ], + "loc": { + "start": { + "line": 54, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "region", + "range": [ + 992, + 998 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 999, + 1003 + ], + "loc": { + "start": { + "line": 57, + "column": 13 + }, + "end": { + "line": 57, + "column": 17 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Region", + "range": [ + 1016, + 1022 + ], + "loc": { + "start": { + "line": 58, + "column": 9 + }, + "end": { + "line": 58, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "exists", + "range": [ + 1023, + 1029 + ], + "loc": { + "start": { + "line": 58, + "column": 16 + }, + "end": { + "line": 58, + "column": 22 + } + } + }, + "range": [ + 1016, + 1029 + ], + "loc": { + "start": { + "line": 58, + "column": 9 + }, + "end": { + "line": 58, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1030, + 1034 + ], + "loc": { + "start": { + "line": 58, + "column": 23 + }, + "end": { + "line": 58, + "column": 27 + } + } + } + ], + "range": [ + 1016, + 1035 + ], + "loc": { + "start": { + "line": 58, + "column": 9 + }, + "end": { + "line": 58, + "column": 28 + } + } + }, + "prefix": true, + "range": [ + 1015, + 1035 + ], + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 28 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 1055, + 1079 + ], + "loc": { + "start": { + "line": 59, + "column": 16 + }, + "end": { + "line": 59, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1080, + 1084 + ], + "loc": { + "start": { + "line": 59, + "column": 41 + }, + "end": { + "line": 59, + "column": 45 + } + } + }, + { + "type": "Identifier", + "name": "Region", + "range": [ + 1086, + 1092 + ], + "loc": { + "start": { + "line": 59, + "column": 47 + }, + "end": { + "line": 59, + "column": 53 + } + } + } + ], + "range": [ + 1051, + 1093 + ], + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 54 + } + } + }, + "range": [ + 1045, + 1094 + ], + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 55 + } + } + } + ], + "range": [ + 1037, + 1100 + ], + "loc": { + "start": { + "line": 58, + "column": 30 + }, + "end": { + "line": 60, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1011, + 1100 + ], + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 60, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1106, + 1110 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_region", + "range": [ + 1111, + 1118 + ], + "loc": { + "start": { + "line": 62, + "column": 9 + }, + "end": { + "line": 62, + "column": 16 + } + } + }, + "range": [ + 1106, + 1118 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "name", + "range": [ + 1121, + 1125 + ], + "loc": { + "start": { + "line": 62, + "column": 19 + }, + "end": { + "line": 62, + "column": 23 + } + } + }, + "range": [ + 1106, + 1125 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 23 + } + } + }, + "range": [ + 1106, + 1126 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 24 + } + } + } + ], + "range": [ + 1005, + 1130 + ], + "loc": { + "start": { + "line": 57, + "column": 19 + }, + "end": { + "line": 63, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 998, + 1130 + ], + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 63, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 988, + 1130 + ], + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 63, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n ", + "range": [ + 950, + 985 + ], + "loc": { + "start": { + "line": 54, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1134, + 1166 + ], + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 67, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "region", + "range": [ + 1173, + 1179 + ], + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1195, + 1199 + ], + "loc": { + "start": { + "line": 69, + "column": 11 + }, + "end": { + "line": 69, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_region", + "range": [ + 1200, + 1207 + ], + "loc": { + "start": { + "line": 69, + "column": 16 + }, + "end": { + "line": 69, + "column": 23 + } + } + }, + "range": [ + 1195, + 1207 + ], + "loc": { + "start": { + "line": 69, + "column": 11 + }, + "end": { + "line": 69, + "column": 23 + } + } + }, + "range": [ + 1188, + 1208 + ], + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 24 + } + } + } + ], + "range": [ + 1182, + 1212 + ], + "loc": { + "start": { + "line": 68, + "column": 15 + }, + "end": { + "line": 70, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1179, + 1212 + ], + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 70, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1169, + 1212 + ], + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 70, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1134, + 1166 + ], + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 67, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n ", + "range": [ + 1216, + 1251 + ], + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "service", + "range": [ + 1258, + 1265 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1266, + 1270 + ], + "loc": { + "start": { + "line": 75, + "column": 14 + }, + "end": { + "line": 75, + "column": 18 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 1283, + 1290 + ], + "loc": { + "start": { + "line": 76, + "column": 9 + }, + "end": { + "line": 76, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "exists", + "range": [ + 1291, + 1297 + ], + "loc": { + "start": { + "line": 76, + "column": 17 + }, + "end": { + "line": 76, + "column": 23 + } + } + }, + "range": [ + 1283, + 1297 + ], + "loc": { + "start": { + "line": 76, + "column": 9 + }, + "end": { + "line": 76, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1298, + 1302 + ], + "loc": { + "start": { + "line": 76, + "column": 24 + }, + "end": { + "line": 76, + "column": 28 + } + } + } + ], + "range": [ + 1283, + 1303 + ], + "loc": { + "start": { + "line": 76, + "column": 9 + }, + "end": { + "line": 76, + "column": 29 + } + } + }, + "prefix": true, + "range": [ + 1282, + 1303 + ], + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 29 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 1323, + 1347 + ], + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1348, + 1352 + ], + "loc": { + "start": { + "line": 77, + "column": 41 + }, + "end": { + "line": 77, + "column": 45 + } + } + }, + { + "type": "Identifier", + "name": "Service", + "range": [ + 1354, + 1361 + ], + "loc": { + "start": { + "line": 77, + "column": 47 + }, + "end": { + "line": 77, + "column": 54 + } + } + } + ], + "range": [ + 1319, + 1362 + ], + "loc": { + "start": { + "line": 77, + "column": 12 + }, + "end": { + "line": 77, + "column": 55 + } + } + }, + "range": [ + 1313, + 1363 + ], + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 77, + "column": 56 + } + } + } + ], + "range": [ + 1305, + 1369 + ], + "loc": { + "start": { + "line": 76, + "column": 31 + }, + "end": { + "line": 78, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1278, + 1369 + ], + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 78, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1375, + 1379 + ], + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_service", + "range": [ + 1380, + 1388 + ], + "loc": { + "start": { + "line": 80, + "column": 9 + }, + "end": { + "line": 80, + "column": 17 + } + } + }, + "range": [ + 1375, + 1388 + ], + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 17 + } + } + }, + "right": { + "type": "Identifier", + "name": "name", + "range": [ + 1391, + 1395 + ], + "loc": { + "start": { + "line": 80, + "column": 20 + }, + "end": { + "line": 80, + "column": 24 + } + } + }, + "range": [ + 1375, + 1395 + ], + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 24 + } + } + }, + "range": [ + 1375, + 1396 + ], + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 25 + } + } + } + ], + "range": [ + 1272, + 1400 + ], + "loc": { + "start": { + "line": 75, + "column": 20 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1265, + 1400 + ], + "loc": { + "start": { + "line": 75, + "column": 13 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 1254, + 1400 + ], + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 81, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n ", + "range": [ + 1216, + 1251 + ], + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1404, + 1436 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 85, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "service", + "range": [ + 1443, + 1450 + ], + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1466, + 1470 + ], + "loc": { + "start": { + "line": 87, + "column": 11 + }, + "end": { + "line": 87, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_service", + "range": [ + 1471, + 1479 + ], + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 87, + "column": 24 + } + } + }, + "range": [ + 1466, + 1479 + ], + "loc": { + "start": { + "line": 87, + "column": 11 + }, + "end": { + "line": 87, + "column": 24 + } + } + }, + "range": [ + 1459, + 1480 + ], + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 87, + "column": 25 + } + } + } + ], + "range": [ + 1453, + 1484 + ], + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1450, + 1484 + ], + "loc": { + "start": { + "line": 86, + "column": 13 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1439, + 1484 + ], + "loc": { + "start": { + "line": 86, + "column": 2 + }, + "end": { + "line": 88, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1404, + 1436 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 85, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @see - http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html\n *\n * @param {string} arn\n * @returns {Resource}\n ", + "range": [ + 1488, + 1638 + ], + "loc": { + "start": { + "line": 90, + "column": 2 + }, + "end": { + "line": 95, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "updateFromArn", + "range": [ + 1641, + 1654 + ], + "loc": { + "start": { + "line": 96, + "column": 2 + }, + "end": { + "line": 96, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "arn", + "range": [ + 1655, + 1658 + ], + "loc": { + "start": { + "line": 96, + "column": 16 + }, + "end": { + "line": 96, + "column": 19 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "arnParts", + "range": [ + 1670, + 1678 + ], + "loc": { + "start": { + "line": 97, + "column": 8 + }, + "end": { + "line": 97, + "column": 16 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "arn", + "range": [ + 1681, + 1684 + ], + "loc": { + "start": { + "line": 97, + "column": 19 + }, + "end": { + "line": 97, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "split", + "range": [ + 1685, + 1690 + ], + "loc": { + "start": { + "line": 97, + "column": 23 + }, + "end": { + "line": 97, + "column": 28 + } + } + }, + "range": [ + 1681, + 1690 + ], + "loc": { + "start": { + "line": 97, + "column": 19 + }, + "end": { + "line": 97, + "column": 28 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": ":", + "raw": "':'", + "range": [ + 1691, + 1694 + ], + "loc": { + "start": { + "line": 97, + "column": 29 + }, + "end": { + "line": 97, + "column": 32 + } + } + } + ], + "range": [ + 1681, + 1695 + ], + "loc": { + "start": { + "line": 97, + "column": 19 + }, + "end": { + "line": 97, + "column": 33 + } + } + }, + "range": [ + 1670, + 1695 + ], + "loc": { + "start": { + "line": 97, + "column": 8 + }, + "end": { + "line": 97, + "column": 33 + } + } + } + ], + "kind": "let", + "range": [ + 1666, + 1696 + ], + "loc": { + "start": { + "line": 97, + "column": 4 + }, + "end": { + "line": 97, + "column": 34 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "<", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "arnParts", + "range": [ + 1706, + 1714 + ], + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 1715, + 1721 + ], + "loc": { + "start": { + "line": 99, + "column": 17 + }, + "end": { + "line": 99, + "column": 23 + } + } + }, + "range": [ + 1706, + 1721 + ], + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 23 + } + } + }, + "right": { + "type": "Literal", + "value": 6, + "raw": "6", + "range": [ + 1724, + 1725 + ], + "loc": { + "start": { + "line": 99, + "column": 26 + }, + "end": { + "line": 99, + "column": 27 + } + } + }, + "range": [ + 1706, + 1725 + ], + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 27 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "InvalidArnException", + "range": [ + 1745, + 1764 + ], + "loc": { + "start": { + "line": 100, + "column": 16 + }, + "end": { + "line": 100, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "arn", + "range": [ + 1765, + 1768 + ], + "loc": { + "start": { + "line": 100, + "column": 36 + }, + "end": { + "line": 100, + "column": 39 + } + } + } + ], + "range": [ + 1741, + 1769 + ], + "loc": { + "start": { + "line": 100, + "column": 12 + }, + "end": { + "line": 100, + "column": 40 + } + } + }, + "range": [ + 1735, + 1770 + ], + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 41 + } + } + } + ], + "range": [ + 1727, + 1776 + ], + "loc": { + "start": { + "line": 99, + "column": 29 + }, + "end": { + "line": 101, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1702, + 1776 + ], + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 101, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1782, + 1786 + ], + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 103, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "service", + "range": [ + 1787, + 1794 + ], + "loc": { + "start": { + "line": 103, + "column": 9 + }, + "end": { + "line": 103, + "column": 16 + } + } + }, + "range": [ + 1782, + 1794 + ], + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 103, + "column": 16 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "arnParts", + "range": [ + 1797, + 1805 + ], + "loc": { + "start": { + "line": 103, + "column": 19 + }, + "end": { + "line": 103, + "column": 27 + } + } + }, + "property": { + "type": "Literal", + "value": 2, + "raw": "2", + "range": [ + 1806, + 1807 + ], + "loc": { + "start": { + "line": 103, + "column": 28 + }, + "end": { + "line": 103, + "column": 29 + } + } + }, + "range": [ + 1797, + 1808 + ], + "loc": { + "start": { + "line": 103, + "column": 19 + }, + "end": { + "line": 103, + "column": 30 + } + } + }, + "range": [ + 1782, + 1808 + ], + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 103, + "column": 30 + } + } + }, + "range": [ + 1782, + 1809 + ], + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 103, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1814, + 1818 + ], + "loc": { + "start": { + "line": 104, + "column": 4 + }, + "end": { + "line": 104, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "region", + "range": [ + 1819, + 1825 + ], + "loc": { + "start": { + "line": 104, + "column": 9 + }, + "end": { + "line": 104, + "column": 15 + } + } + }, + "range": [ + 1814, + 1825 + ], + "loc": { + "start": { + "line": 104, + "column": 4 + }, + "end": { + "line": 104, + "column": 15 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "arnParts", + "range": [ + 1828, + 1836 + ], + "loc": { + "start": { + "line": 104, + "column": 18 + }, + "end": { + "line": 104, + "column": 26 + } + } + }, + "property": { + "type": "Literal", + "value": 3, + "raw": "3", + "range": [ + 1837, + 1838 + ], + "loc": { + "start": { + "line": 104, + "column": 27 + }, + "end": { + "line": 104, + "column": 28 + } + } + }, + "range": [ + 1828, + 1839 + ], + "loc": { + "start": { + "line": 104, + "column": 18 + }, + "end": { + "line": 104, + "column": 29 + } + } + }, + "range": [ + 1814, + 1839 + ], + "loc": { + "start": { + "line": 104, + "column": 4 + }, + "end": { + "line": 104, + "column": 29 + } + } + }, + "range": [ + 1814, + 1840 + ], + "loc": { + "start": { + "line": 104, + "column": 4 + }, + "end": { + "line": 104, + "column": 30 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1845, + 1849 + ], + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "accountId", + "range": [ + 1850, + 1859 + ], + "loc": { + "start": { + "line": 105, + "column": 9 + }, + "end": { + "line": 105, + "column": 18 + } + } + }, + "range": [ + 1845, + 1859 + ], + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 18 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "arnParts", + "range": [ + 1862, + 1870 + ], + "loc": { + "start": { + "line": 105, + "column": 21 + }, + "end": { + "line": 105, + "column": 29 + } + } + }, + "property": { + "type": "Literal", + "value": 4, + "raw": "4", + "range": [ + 1871, + 1872 + ], + "loc": { + "start": { + "line": 105, + "column": 30 + }, + "end": { + "line": 105, + "column": 31 + } + } + }, + "range": [ + 1862, + 1873 + ], + "loc": { + "start": { + "line": 105, + "column": 21 + }, + "end": { + "line": 105, + "column": 32 + } + } + }, + "range": [ + 1845, + 1873 + ], + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 32 + } + } + }, + "range": [ + 1845, + 1874 + ], + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 33 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1879, + 1883 + ], + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 106, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "descriptor", + "range": [ + 1884, + 1894 + ], + "loc": { + "start": { + "line": 106, + "column": 9 + }, + "end": { + "line": 106, + "column": 19 + } + } + }, + "range": [ + 1879, + 1894 + ], + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 106, + "column": 19 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "arnParts", + "range": [ + 1897, + 1905 + ], + "loc": { + "start": { + "line": 106, + "column": 22 + }, + "end": { + "line": 106, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "slice", + "range": [ + 1906, + 1911 + ], + "loc": { + "start": { + "line": 106, + "column": 31 + }, + "end": { + "line": 106, + "column": 36 + } + } + }, + "range": [ + 1897, + 1911 + ], + "loc": { + "start": { + "line": 106, + "column": 22 + }, + "end": { + "line": 106, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": 5, + "raw": "5", + "range": [ + 1912, + 1913 + ], + "loc": { + "start": { + "line": 106, + "column": 37 + }, + "end": { + "line": 106, + "column": 38 + } + } + } + ], + "range": [ + 1897, + 1914 + ], + "loc": { + "start": { + "line": 106, + "column": 22 + }, + "end": { + "line": 106, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "join", + "range": [ + 1915, + 1919 + ], + "loc": { + "start": { + "line": 106, + "column": 40 + }, + "end": { + "line": 106, + "column": 44 + } + } + }, + "range": [ + 1897, + 1919 + ], + "loc": { + "start": { + "line": 106, + "column": 22 + }, + "end": { + "line": 106, + "column": 44 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": ":", + "raw": "':'", + "range": [ + 1920, + 1923 + ], + "loc": { + "start": { + "line": 106, + "column": 45 + }, + "end": { + "line": 106, + "column": 48 + } + } + } + ], + "range": [ + 1897, + 1924 + ], + "loc": { + "start": { + "line": 106, + "column": 22 + }, + "end": { + "line": 106, + "column": 49 + } + } + }, + "range": [ + 1879, + 1924 + ], + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 106, + "column": 49 + } + } + }, + "range": [ + 1879, + 1925 + ], + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 106, + "column": 50 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 1938, + 1942 + ], + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 108, + "column": 15 + } + } + }, + "range": [ + 1931, + 1943 + ], + "loc": { + "start": { + "line": 108, + "column": 4 + }, + "end": { + "line": 108, + "column": 16 + } + } + } + ], + "range": [ + 1660, + 1947 + ], + "loc": { + "start": { + "line": 96, + "column": 21 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1654, + 1947 + ], + "loc": { + "start": { + "line": 96, + "column": 15 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1641, + 1947 + ], + "loc": { + "start": { + "line": 96, + "column": 2 + }, + "end": { + "line": 109, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @see - http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html\n *\n * @param {string} arn\n * @returns {Resource}\n ", + "range": [ + 1488, + 1638 + ], + "loc": { + "start": { + "line": 90, + "column": 2 + }, + "end": { + "line": 95, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1951, + 1983 + ], + "loc": { + "start": { + "line": 111, + "column": 2 + }, + "end": { + "line": 113, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "extract", + "range": [ + 1986, + 1993 + ], + "loc": { + "start": { + "line": 114, + "column": 2 + }, + "end": { + "line": 114, + "column": 9 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "service", + "range": [ + 2006, + 2013 + ], + "loc": { + "start": { + "line": 115, + "column": 8 + }, + "end": { + "line": 115, + "column": 15 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2016, + 2020 + ], + "loc": { + "start": { + "line": 115, + "column": 18 + }, + "end": { + "line": 115, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "_service", + "range": [ + 2021, + 2029 + ], + "loc": { + "start": { + "line": 115, + "column": 23 + }, + "end": { + "line": 115, + "column": 31 + } + } + }, + "range": [ + 2016, + 2029 + ], + "loc": { + "start": { + "line": 115, + "column": 18 + }, + "end": { + "line": 115, + "column": 31 + } + } + }, + "range": [ + 2006, + 2029 + ], + "loc": { + "start": { + "line": 115, + "column": 8 + }, + "end": { + "line": 115, + "column": 31 + } + } + } + ], + "kind": "let", + "range": [ + 2002, + 2030 + ], + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 32 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "region", + "range": [ + 2039, + 2045 + ], + "loc": { + "start": { + "line": 116, + "column": 8 + }, + "end": { + "line": 116, + "column": 14 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2048, + 2052 + ], + "loc": { + "start": { + "line": 116, + "column": 17 + }, + "end": { + "line": 116, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "_region", + "range": [ + 2053, + 2060 + ], + "loc": { + "start": { + "line": 116, + "column": 22 + }, + "end": { + "line": 116, + "column": 29 + } + } + }, + "range": [ + 2048, + 2060 + ], + "loc": { + "start": { + "line": 116, + "column": 17 + }, + "end": { + "line": 116, + "column": 29 + } + } + }, + "range": [ + 2039, + 2060 + ], + "loc": { + "start": { + "line": 116, + "column": 8 + }, + "end": { + "line": 116, + "column": 29 + } + } + } + ], + "kind": "let", + "range": [ + 2035, + 2061 + ], + "loc": { + "start": { + "line": 116, + "column": 4 + }, + "end": { + "line": 116, + "column": 30 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "accountId", + "range": [ + 2070, + 2079 + ], + "loc": { + "start": { + "line": 117, + "column": 8 + }, + "end": { + "line": 117, + "column": 17 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2082, + 2086 + ], + "loc": { + "start": { + "line": 117, + "column": 20 + }, + "end": { + "line": 117, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "_accountId", + "range": [ + 2087, + 2097 + ], + "loc": { + "start": { + "line": 117, + "column": 25 + }, + "end": { + "line": 117, + "column": 35 + } + } + }, + "range": [ + 2082, + 2097 + ], + "loc": { + "start": { + "line": 117, + "column": 20 + }, + "end": { + "line": 117, + "column": 35 + } + } + }, + "range": [ + 2070, + 2097 + ], + "loc": { + "start": { + "line": 117, + "column": 8 + }, + "end": { + "line": 117, + "column": 35 + } + } + } + ], + "kind": "let", + "range": [ + 2066, + 2098 + ], + "loc": { + "start": { + "line": 117, + "column": 4 + }, + "end": { + "line": 117, + "column": 36 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "descriptor", + "range": [ + 2107, + 2117 + ], + "loc": { + "start": { + "line": 118, + "column": 8 + }, + "end": { + "line": 118, + "column": 18 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2120, + 2124 + ], + "loc": { + "start": { + "line": 118, + "column": 21 + }, + "end": { + "line": 118, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "_descriptor", + "range": [ + 2125, + 2136 + ], + "loc": { + "start": { + "line": 118, + "column": 26 + }, + "end": { + "line": 118, + "column": 37 + } + } + }, + "range": [ + 2120, + 2136 + ], + "loc": { + "start": { + "line": 118, + "column": 21 + }, + "end": { + "line": 118, + "column": 37 + } + } + }, + "range": [ + 2107, + 2136 + ], + "loc": { + "start": { + "line": 118, + "column": 8 + }, + "end": { + "line": 118, + "column": 37 + } + } + } + ], + "kind": "let", + "range": [ + 2103, + 2137 + ], + "loc": { + "start": { + "line": 118, + "column": 4 + }, + "end": { + "line": 118, + "column": 38 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "arn:aws:", + "cooked": "arn:aws:" + }, + "tail": false, + "range": [ + 2150, + 2161 + ], + "loc": { + "start": { + "line": 120, + "column": 11 + }, + "end": { + "line": 120, + "column": 22 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ":", + "cooked": ":" + }, + "tail": false, + "range": [ + 2168, + 2172 + ], + "loc": { + "start": { + "line": 120, + "column": 29 + }, + "end": { + "line": 120, + "column": 33 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ":", + "cooked": ":" + }, + "tail": false, + "range": [ + 2178, + 2182 + ], + "loc": { + "start": { + "line": 120, + "column": 39 + }, + "end": { + "line": 120, + "column": 43 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ":", + "cooked": ":" + }, + "tail": false, + "range": [ + 2191, + 2195 + ], + "loc": { + "start": { + "line": 120, + "column": 52 + }, + "end": { + "line": 120, + "column": 56 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 2205, + 2207 + ], + "loc": { + "start": { + "line": 120, + "column": 66 + }, + "end": { + "line": 120, + "column": 68 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "service", + "range": [ + 2161, + 2168 + ], + "loc": { + "start": { + "line": 120, + "column": 22 + }, + "end": { + "line": 120, + "column": 29 + } + } + }, + { + "type": "Identifier", + "name": "region", + "range": [ + 2172, + 2178 + ], + "loc": { + "start": { + "line": 120, + "column": 33 + }, + "end": { + "line": 120, + "column": 39 + } + } + }, + { + "type": "Identifier", + "name": "accountId", + "range": [ + 2182, + 2191 + ], + "loc": { + "start": { + "line": 120, + "column": 43 + }, + "end": { + "line": 120, + "column": 52 + } + } + }, + { + "type": "Identifier", + "name": "descriptor", + "range": [ + 2195, + 2205 + ], + "loc": { + "start": { + "line": 120, + "column": 56 + }, + "end": { + "line": 120, + "column": 66 + } + } + } + ], + "range": [ + 2150, + 2207 + ], + "loc": { + "start": { + "line": 120, + "column": 11 + }, + "end": { + "line": 120, + "column": 68 + } + } + }, + "range": [ + 2143, + 2208 + ], + "loc": { + "start": { + "line": 120, + "column": 4 + }, + "end": { + "line": 120, + "column": 69 + } + } + } + ], + "range": [ + 1996, + 2212 + ], + "loc": { + "start": { + "line": 114, + "column": 12 + }, + "end": { + "line": 121, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1993, + 2212 + ], + "loc": { + "start": { + "line": 114, + "column": 9 + }, + "end": { + "line": 121, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1986, + 2212 + ], + "loc": { + "start": { + "line": 114, + "column": 2 + }, + "end": { + "line": 121, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1951, + 1983 + ], + "loc": { + "start": { + "line": 111, + "column": 2 + }, + "end": { + "line": 113, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 403, + 2214 + ], + "loc": { + "start": { + "line": 16, + "column": 42 + }, + "end": { + "line": 122, + "column": 1 + } + } + }, + "range": [ + 368, + 2214 + ], + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 122, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * IAM statement resource\n ", + "range": [ + 327, + 360 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 361, + 2214 + ], + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 122, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * IAM statement resource\n ", + "range": [ + 327, + 360 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 2214 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 122, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * IAM statement resource\n ", + "range": [ + 327, + 360 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} identifier\n ", + "range": [ + 544, + 585 + ], + "loc": { + "start": { + "line": 26, + "column": 2 + }, + "end": { + "line": 28, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 657, + 689 + ], + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 35, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} descriptor\n ", + "range": [ + 745, + 786 + ], + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 42, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 860, + 892 + ], + "loc": { + "start": { + "line": 47, + "column": 2 + }, + "end": { + "line": 49, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} name\n ", + "range": [ + 950, + 985 + ], + "loc": { + "start": { + "line": 54, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1134, + 1166 + ], + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 67, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} name\n ", + "range": [ + 1216, + 1251 + ], + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1404, + 1436 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 85, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @see - http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html\n *\n * @param {string} arn\n * @returns {Resource}\n ", + "range": [ + 1488, + 1638 + ], + "loc": { + "start": { + "line": 90, + "column": 2 + }, + "end": { + "line": 95, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1951, + 1983 + ], + "loc": { + "start": { + "line": 111, + "column": 2 + }, + "end": { + "line": 113, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/AWS/IAM/Statement.js.json b/docs-api/deep-core/ast/source/AWS/IAM/Statement.js.json new file mode 100644 index 00000000..5a90aead --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/IAM/Statement.js.json @@ -0,0 +1,7592 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Resource", + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Resource", + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Resource", + "raw": "'./Resource'", + "range": [ + 84, + 96 + ], + "loc": { + "start": { + "line": 7, + "column": 23 + }, + "end": { + "line": 7, + "column": 35 + } + } + }, + "range": [ + 61, + 97 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 36 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Collection", + "range": [ + 106, + 116 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 18 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Collection", + "range": [ + 106, + 116 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 18 + } + } + }, + "range": [ + 106, + 116 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 18 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Collection", + "raw": "'./Collection'", + "range": [ + 123, + 137 + ], + "loc": { + "start": { + "line": 8, + "column": 25 + }, + "end": { + "line": 8, + "column": 39 + } + } + }, + "range": [ + 98, + 138 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 40 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Action", + "range": [ + 147, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 14 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Action", + "range": [ + 147, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 14 + } + } + }, + "range": [ + 147, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 14 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Action", + "raw": "'./Action'", + "range": [ + 160, + 170 + ], + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 31 + } + } + }, + "range": [ + 139, + 171 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 32 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Policy", + "range": [ + 180, + 186 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 14 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Policy", + "range": [ + 180, + 186 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 14 + } + } + }, + "range": [ + 180, + 186 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 14 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Policy", + "raw": "'./Policy'", + "range": [ + 193, + 203 + ], + "loc": { + "start": { + "line": 10, + "column": 21 + }, + "end": { + "line": 10, + "column": 31 + } + } + }, + "range": [ + 172, + 204 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 32 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 213, + 224 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 19 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 213, + 224 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 19 + } + } + }, + "range": [ + 213, + 224 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 19 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Extractable", + "raw": "'./Extractable'", + "range": [ + 231, + 246 + ], + "loc": { + "start": { + "line": 11, + "column": 26 + }, + "end": { + "line": 11, + "column": 41 + } + } + }, + "range": [ + 205, + 247 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 42 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 256, + 280 + ], + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 32 + } + } + }, + "imported": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 256, + 280 + ], + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 32 + } + } + }, + "range": [ + 256, + 280 + ], + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 32 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../Exception/InvalidArgumentException", + "raw": "'../../Exception/InvalidArgumentException'", + "range": [ + 287, + 329 + ], + "loc": { + "start": { + "line": 12, + "column": 39 + }, + "end": { + "line": 12, + "column": 81 + } + } + }, + "range": [ + 248, + 330 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 82 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * IAM policy statement\n ", + "range": [ + 332, + 363 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Statement", + "range": [ + 377, + 386 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 22 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Extractable", + "range": [ + 395, + 406 + ], + "loc": { + "start": { + "line": 17, + "column": 31 + }, + "end": { + "line": 17, + "column": 42 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 411, + 422 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 431, + 436 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 431, + 438 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 11 + } + } + }, + "range": [ + 431, + 439 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 445, + 449 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_effect", + "range": [ + 450, + 457 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 16 + } + } + }, + "range": [ + 445, + 457 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 16 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Statement", + "range": [ + 460, + 469 + ], + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "ALLOW", + "range": [ + 470, + 475 + ], + "loc": { + "start": { + "line": 21, + "column": 29 + }, + "end": { + "line": 21, + "column": 34 + } + } + }, + "range": [ + 460, + 475 + ], + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 34 + } + } + }, + "range": [ + 445, + 475 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 34 + } + } + }, + "range": [ + 445, + 476 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 35 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 481, + 485 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 486, + 493 + ], + "loc": { + "start": { + "line": 22, + "column": 9 + }, + "end": { + "line": 22, + "column": 16 + } + } + }, + "range": [ + 481, + 493 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 16 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Collection", + "range": [ + 500, + 510 + ], + "loc": { + "start": { + "line": 22, + "column": 23 + }, + "end": { + "line": 22, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "Action", + "range": [ + 511, + 517 + ], + "loc": { + "start": { + "line": 22, + "column": 34 + }, + "end": { + "line": 22, + "column": 40 + } + } + } + ], + "range": [ + 496, + 518 + ], + "loc": { + "start": { + "line": 22, + "column": 19 + }, + "end": { + "line": 22, + "column": 41 + } + } + }, + "range": [ + 481, + 518 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 41 + } + } + }, + "range": [ + 481, + 519 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 42 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 524, + 528 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_notAction", + "range": [ + 529, + 539 + ], + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 19 + } + } + }, + "range": [ + 524, + 539 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 19 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Collection", + "range": [ + 546, + 556 + ], + "loc": { + "start": { + "line": 23, + "column": 26 + }, + "end": { + "line": 23, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "Action", + "range": [ + 557, + 563 + ], + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 43 + } + } + } + ], + "range": [ + 542, + 564 + ], + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 23, + "column": 44 + } + } + }, + "range": [ + 524, + 564 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 44 + } + } + }, + "range": [ + 524, + 565 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 45 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 570, + 574 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resource", + "range": [ + 575, + 584 + ], + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 18 + } + } + }, + "range": [ + 570, + 584 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 18 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Collection", + "range": [ + 591, + 601 + ], + "loc": { + "start": { + "line": 24, + "column": 25 + }, + "end": { + "line": 24, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "Resource", + "range": [ + 602, + 610 + ], + "loc": { + "start": { + "line": 24, + "column": 36 + }, + "end": { + "line": 24, + "column": 44 + } + } + } + ], + "range": [ + 587, + 611 + ], + "loc": { + "start": { + "line": 24, + "column": 21 + }, + "end": { + "line": 24, + "column": 45 + } + } + }, + "range": [ + 570, + 611 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 45 + } + } + }, + "range": [ + 570, + 612 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 46 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 617, + 621 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_notResource", + "range": [ + 622, + 634 + ], + "loc": { + "start": { + "line": 25, + "column": 9 + }, + "end": { + "line": 25, + "column": 21 + } + } + }, + "range": [ + 617, + 634 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 21 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Collection", + "range": [ + 641, + 651 + ], + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "Resource", + "range": [ + 652, + 660 + ], + "loc": { + "start": { + "line": 25, + "column": 39 + }, + "end": { + "line": 25, + "column": 47 + } + } + } + ], + "range": [ + 637, + 661 + ], + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 48 + } + } + }, + "range": [ + 617, + 661 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 48 + } + } + }, + "range": [ + 617, + 662 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 49 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 667, + 671 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_condition", + "range": [ + 672, + 682 + ], + "loc": { + "start": { + "line": 26, + "column": 9 + }, + "end": { + "line": 26, + "column": 19 + } + } + }, + "range": [ + 667, + 682 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 685, + 689 + ], + "loc": { + "start": { + "line": 26, + "column": 22 + }, + "end": { + "line": 26, + "column": 26 + } + } + }, + "range": [ + 667, + 689 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 26 + } + } + }, + "range": [ + 667, + 690 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 27 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 695, + 699 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_principal", + "range": [ + 700, + 710 + ], + "loc": { + "start": { + "line": 27, + "column": 9 + }, + "end": { + "line": 27, + "column": 19 + } + } + }, + "range": [ + 695, + 710 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 713, + 717 + ], + "loc": { + "start": { + "line": 27, + "column": 22 + }, + "end": { + "line": 27, + "column": 26 + } + } + }, + "range": [ + 695, + 717 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 26 + } + } + }, + "range": [ + 695, + 718 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 27 + } + } + } + ], + "range": [ + 425, + 722 + ], + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 28, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 422, + 722 + ], + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 28, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 411, + 722 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 28, + "column": 3 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} effect\n ", + "range": [ + 726, + 763 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "effect", + "range": [ + 770, + 776 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "effect", + "range": [ + 777, + 783 + ], + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 19 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ArrayExpression", + "elements": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Statement", + "range": [ + 796, + 805 + ], + "loc": { + "start": { + "line": 34, + "column": 9 + }, + "end": { + "line": 34, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "ALLOW", + "range": [ + 806, + 811 + ], + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 24 + } + } + }, + "range": [ + 796, + 811 + ], + "loc": { + "start": { + "line": 34, + "column": 9 + }, + "end": { + "line": 34, + "column": 24 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Statement", + "range": [ + 813, + 822 + ], + "loc": { + "start": { + "line": 34, + "column": 26 + }, + "end": { + "line": 34, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "DENY", + "range": [ + 823, + 827 + ], + "loc": { + "start": { + "line": 34, + "column": 36 + }, + "end": { + "line": 34, + "column": 40 + } + } + }, + "range": [ + 813, + 827 + ], + "loc": { + "start": { + "line": 34, + "column": 26 + }, + "end": { + "line": 34, + "column": 40 + } + } + } + ], + "range": [ + 795, + 828 + ], + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "name": "indexOf", + "range": [ + 829, + 836 + ], + "loc": { + "start": { + "line": 34, + "column": 42 + }, + "end": { + "line": 34, + "column": 49 + } + } + }, + "range": [ + 795, + 836 + ], + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 49 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "effect", + "range": [ + 837, + 843 + ], + "loc": { + "start": { + "line": 34, + "column": 50 + }, + "end": { + "line": 34, + "column": 56 + } + } + } + ], + "range": [ + 795, + 844 + ], + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 57 + } + } + }, + "right": { + "type": "UnaryExpression", + "operator": "-", + "argument": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 850, + 851 + ], + "loc": { + "start": { + "line": 34, + "column": 63 + }, + "end": { + "line": 34, + "column": 64 + } + } + }, + "prefix": true, + "range": [ + 849, + 851 + ], + "loc": { + "start": { + "line": 34, + "column": 62 + }, + "end": { + "line": 34, + "column": 64 + } + } + }, + "range": [ + 795, + 851 + ], + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 64 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 871, + 895 + ], + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "effect", + "range": [ + 896, + 902 + ], + "loc": { + "start": { + "line": 35, + "column": 41 + }, + "end": { + "line": 35, + "column": 47 + } + } + }, + { + "type": "Literal", + "value": "[Statement.ALLOW, Statement.DENY]", + "raw": "'[Statement.ALLOW, Statement.DENY]'", + "range": [ + 904, + 939 + ], + "loc": { + "start": { + "line": 35, + "column": 49 + }, + "end": { + "line": 35, + "column": 84 + } + } + } + ], + "range": [ + 867, + 940 + ], + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 85 + } + } + }, + "range": [ + 861, + 941 + ], + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 35, + "column": 86 + } + } + } + ], + "range": [ + 853, + 947 + ], + "loc": { + "start": { + "line": 34, + "column": 66 + }, + "end": { + "line": 36, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 791, + 947 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 36, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 953, + 957 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_effect", + "range": [ + 958, + 965 + ], + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 16 + } + } + }, + "range": [ + 953, + 965 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "effect", + "range": [ + 968, + 974 + ], + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 38, + "column": 25 + } + } + }, + "range": [ + 953, + 974 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 25 + } + } + }, + "range": [ + 953, + 975 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 26 + } + } + } + ], + "range": [ + 785, + 979 + ], + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 39, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 776, + 979 + ], + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 39, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 766, + 979 + ], + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 39, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} effect\n ", + "range": [ + 726, + 763 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 983, + 1015 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "effect", + "range": [ + 1022, + 1028 + ], + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1044, + 1048 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_effect", + "range": [ + 1049, + 1056 + ], + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 23 + } + } + }, + "range": [ + 1044, + 1056 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 23 + } + } + }, + "range": [ + 1037, + 1057 + ], + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 24 + } + } + } + ], + "range": [ + 1031, + 1061 + ], + "loc": { + "start": { + "line": 44, + "column": 15 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1028, + 1061 + ], + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1018, + 1061 + ], + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 46, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 983, + 1015 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} condition\n ", + "range": [ + 1065, + 1105 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "condition", + "range": [ + 1112, + 1121 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "condition", + "range": [ + 1122, + 1131 + ], + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1139, + 1143 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_condition", + "range": [ + 1144, + 1154 + ], + "loc": { + "start": { + "line": 52, + "column": 9 + }, + "end": { + "line": 52, + "column": 19 + } + } + }, + "range": [ + 1139, + 1154 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 19 + } + } + }, + "right": { + "type": "Identifier", + "name": "condition", + "range": [ + 1157, + 1166 + ], + "loc": { + "start": { + "line": 52, + "column": 22 + }, + "end": { + "line": 52, + "column": 31 + } + } + }, + "range": [ + 1139, + 1166 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 31 + } + } + }, + "range": [ + 1139, + 1167 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 32 + } + } + } + ], + "range": [ + 1133, + 1171 + ], + "loc": { + "start": { + "line": 51, + "column": 27 + }, + "end": { + "line": 53, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1121, + 1171 + ], + "loc": { + "start": { + "line": 51, + "column": 15 + }, + "end": { + "line": 53, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 1108, + 1171 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} condition\n ", + "range": [ + 1065, + 1105 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1175, + 1207 + ], + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 57, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "condition", + "range": [ + 1214, + 1223 + ], + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1239, + 1243 + ], + "loc": { + "start": { + "line": 59, + "column": 11 + }, + "end": { + "line": 59, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_condition", + "range": [ + 1244, + 1254 + ], + "loc": { + "start": { + "line": 59, + "column": 16 + }, + "end": { + "line": 59, + "column": 26 + } + } + }, + "range": [ + 1239, + 1254 + ], + "loc": { + "start": { + "line": 59, + "column": 11 + }, + "end": { + "line": 59, + "column": 26 + } + } + }, + "range": [ + 1232, + 1255 + ], + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 27 + } + } + } + ], + "range": [ + 1226, + 1259 + ], + "loc": { + "start": { + "line": 58, + "column": 18 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1223, + 1259 + ], + "loc": { + "start": { + "line": 58, + "column": 15 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1210, + 1259 + ], + "loc": { + "start": { + "line": 58, + "column": 2 + }, + "end": { + "line": 60, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1175, + 1207 + ], + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 57, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} principal\n ", + "range": [ + 1263, + 1298 + ], + "loc": { + "start": { + "line": 62, + "column": 2 + }, + "end": { + "line": 64, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "principal", + "range": [ + 1305, + 1314 + ], + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "principal", + "range": [ + 1315, + 1324 + ], + "loc": { + "start": { + "line": 65, + "column": 16 + }, + "end": { + "line": 65, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1332, + 1336 + ], + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 66, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_principal", + "range": [ + 1337, + 1347 + ], + "loc": { + "start": { + "line": 66, + "column": 9 + }, + "end": { + "line": 66, + "column": 19 + } + } + }, + "range": [ + 1332, + 1347 + ], + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 66, + "column": 19 + } + } + }, + "right": { + "type": "Identifier", + "name": "principal", + "range": [ + 1350, + 1359 + ], + "loc": { + "start": { + "line": 66, + "column": 22 + }, + "end": { + "line": 66, + "column": 31 + } + } + }, + "range": [ + 1332, + 1359 + ], + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 66, + "column": 31 + } + } + }, + "range": [ + 1332, + 1360 + ], + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 66, + "column": 32 + } + } + } + ], + "range": [ + 1326, + 1364 + ], + "loc": { + "start": { + "line": 65, + "column": 27 + }, + "end": { + "line": 67, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1314, + 1364 + ], + "loc": { + "start": { + "line": 65, + "column": 15 + }, + "end": { + "line": 67, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 1301, + 1364 + ], + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 67, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} principal\n ", + "range": [ + 1263, + 1298 + ], + "loc": { + "start": { + "line": 62, + "column": 2 + }, + "end": { + "line": 64, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 1368, + 1395 + ], + "loc": { + "start": { + "line": 69, + "column": 2 + }, + "end": { + "line": 71, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "principal", + "range": [ + 1402, + 1411 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1427, + 1431 + ], + "loc": { + "start": { + "line": 73, + "column": 11 + }, + "end": { + "line": 73, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_principal", + "range": [ + 1432, + 1442 + ], + "loc": { + "start": { + "line": 73, + "column": 16 + }, + "end": { + "line": 73, + "column": 26 + } + } + }, + "range": [ + 1427, + 1442 + ], + "loc": { + "start": { + "line": 73, + "column": 11 + }, + "end": { + "line": 73, + "column": 26 + } + } + }, + "range": [ + 1420, + 1443 + ], + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 73, + "column": 27 + } + } + } + ], + "range": [ + 1414, + 1447 + ], + "loc": { + "start": { + "line": 72, + "column": 18 + }, + "end": { + "line": 74, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1411, + 1447 + ], + "loc": { + "start": { + "line": 72, + "column": 15 + }, + "end": { + "line": 74, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1398, + 1447 + ], + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 74, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 1368, + 1395 + ], + "loc": { + "start": { + "line": 69, + "column": 2 + }, + "end": { + "line": 71, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 1451, + 1487 + ], + "loc": { + "start": { + "line": 76, + "column": 2 + }, + "end": { + "line": 78, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "notResource", + "range": [ + 1494, + 1505 + ], + "loc": { + "start": { + "line": 79, + "column": 6 + }, + "end": { + "line": 79, + "column": 17 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1521, + 1525 + ], + "loc": { + "start": { + "line": 80, + "column": 11 + }, + "end": { + "line": 80, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_notResource", + "range": [ + 1526, + 1538 + ], + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 80, + "column": 28 + } + } + }, + "range": [ + 1521, + 1538 + ], + "loc": { + "start": { + "line": 80, + "column": 11 + }, + "end": { + "line": 80, + "column": 28 + } + } + }, + "range": [ + 1514, + 1539 + ], + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 29 + } + } + } + ], + "range": [ + 1508, + 1543 + ], + "loc": { + "start": { + "line": 79, + "column": 20 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1505, + 1543 + ], + "loc": { + "start": { + "line": 79, + "column": 17 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1490, + 1543 + ], + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 81, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 1451, + 1487 + ], + "loc": { + "start": { + "line": 76, + "column": 2 + }, + "end": { + "line": 78, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 1547, + 1583 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 85, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "resource", + "range": [ + 1590, + 1598 + ], + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1614, + 1618 + ], + "loc": { + "start": { + "line": 87, + "column": 11 + }, + "end": { + "line": 87, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resource", + "range": [ + 1619, + 1628 + ], + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 87, + "column": 25 + } + } + }, + "range": [ + 1614, + 1628 + ], + "loc": { + "start": { + "line": 87, + "column": 11 + }, + "end": { + "line": 87, + "column": 25 + } + } + }, + "range": [ + 1607, + 1629 + ], + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 87, + "column": 26 + } + } + } + ], + "range": [ + 1601, + 1633 + ], + "loc": { + "start": { + "line": 86, + "column": 17 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1598, + 1633 + ], + "loc": { + "start": { + "line": 86, + "column": 14 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1586, + 1633 + ], + "loc": { + "start": { + "line": 86, + "column": 2 + }, + "end": { + "line": 88, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 1547, + 1583 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 85, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 1637, + 1673 + ], + "loc": { + "start": { + "line": 90, + "column": 2 + }, + "end": { + "line": 92, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "notAction", + "range": [ + 1680, + 1689 + ], + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1705, + 1709 + ], + "loc": { + "start": { + "line": 94, + "column": 11 + }, + "end": { + "line": 94, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_notAction", + "range": [ + 1710, + 1720 + ], + "loc": { + "start": { + "line": 94, + "column": 16 + }, + "end": { + "line": 94, + "column": 26 + } + } + }, + "range": [ + 1705, + 1720 + ], + "loc": { + "start": { + "line": 94, + "column": 11 + }, + "end": { + "line": 94, + "column": 26 + } + } + }, + "range": [ + 1698, + 1721 + ], + "loc": { + "start": { + "line": 94, + "column": 4 + }, + "end": { + "line": 94, + "column": 27 + } + } + } + ], + "range": [ + 1692, + 1725 + ], + "loc": { + "start": { + "line": 93, + "column": 18 + }, + "end": { + "line": 95, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1689, + 1725 + ], + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 95, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1676, + 1725 + ], + "loc": { + "start": { + "line": 93, + "column": 2 + }, + "end": { + "line": 95, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 1637, + 1673 + ], + "loc": { + "start": { + "line": 90, + "column": 2 + }, + "end": { + "line": 92, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 1729, + 1765 + ], + "loc": { + "start": { + "line": 97, + "column": 2 + }, + "end": { + "line": 99, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "action", + "range": [ + 1772, + 1778 + ], + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1794, + 1798 + ], + "loc": { + "start": { + "line": 101, + "column": 11 + }, + "end": { + "line": 101, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 1799, + 1806 + ], + "loc": { + "start": { + "line": 101, + "column": 16 + }, + "end": { + "line": 101, + "column": 23 + } + } + }, + "range": [ + 1794, + 1806 + ], + "loc": { + "start": { + "line": 101, + "column": 11 + }, + "end": { + "line": 101, + "column": 23 + } + } + }, + "range": [ + 1787, + 1807 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 24 + } + } + } + ], + "range": [ + 1781, + 1811 + ], + "loc": { + "start": { + "line": 100, + "column": 15 + }, + "end": { + "line": 102, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1778, + 1811 + ], + "loc": { + "start": { + "line": 100, + "column": 12 + }, + "end": { + "line": 102, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1768, + 1811 + ], + "loc": { + "start": { + "line": 100, + "column": 2 + }, + "end": { + "line": 102, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 1729, + 1765 + ], + "loc": { + "start": { + "line": 97, + "column": 2 + }, + "end": { + "line": 99, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1815, + 1847 + ], + "loc": { + "start": { + "line": 104, + "column": 2 + }, + "end": { + "line": 106, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "ALLOW", + "range": [ + 1861, + 1866 + ], + "loc": { + "start": { + "line": 107, + "column": 13 + }, + "end": { + "line": 107, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "Allow", + "raw": "'Allow'", + "range": [ + 1882, + 1889 + ], + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 108, + "column": 18 + } + } + }, + "range": [ + 1875, + 1890 + ], + "loc": { + "start": { + "line": 108, + "column": 4 + }, + "end": { + "line": 108, + "column": 19 + } + } + } + ], + "range": [ + 1869, + 1894 + ], + "loc": { + "start": { + "line": 107, + "column": 21 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1866, + 1894 + ], + "loc": { + "start": { + "line": 107, + "column": 18 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1850, + 1894 + ], + "loc": { + "start": { + "line": 107, + "column": 2 + }, + "end": { + "line": 109, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1815, + 1847 + ], + "loc": { + "start": { + "line": 104, + "column": 2 + }, + "end": { + "line": 106, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1898, + 1930 + ], + "loc": { + "start": { + "line": 111, + "column": 2 + }, + "end": { + "line": 113, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "DENY", + "range": [ + 1944, + 1948 + ], + "loc": { + "start": { + "line": 114, + "column": 13 + }, + "end": { + "line": 114, + "column": 17 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "Deny", + "raw": "'Deny'", + "range": [ + 1964, + 1970 + ], + "loc": { + "start": { + "line": 115, + "column": 11 + }, + "end": { + "line": 115, + "column": 17 + } + } + }, + "range": [ + 1957, + 1971 + ], + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 18 + } + } + } + ], + "range": [ + 1951, + 1975 + ], + "loc": { + "start": { + "line": 114, + "column": 20 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1948, + 1975 + ], + "loc": { + "start": { + "line": 114, + "column": 17 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1933, + 1975 + ], + "loc": { + "start": { + "line": 114, + "column": 2 + }, + "end": { + "line": 116, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1898, + 1930 + ], + "loc": { + "start": { + "line": 111, + "column": 2 + }, + "end": { + "line": 113, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1979, + 2011 + ], + "loc": { + "start": { + "line": 118, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "extract", + "range": [ + 2014, + 2021 + ], + "loc": { + "start": { + "line": 121, + "column": 2 + }, + "end": { + "line": 121, + "column": 9 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "actions", + "range": [ + 2034, + 2041 + ], + "loc": { + "start": { + "line": 122, + "column": 8 + }, + "end": { + "line": 122, + "column": 15 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "BinaryExpression", + "operator": ">", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2044, + 2048 + ], + "loc": { + "start": { + "line": 122, + "column": 18 + }, + "end": { + "line": 122, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 2049, + 2056 + ], + "loc": { + "start": { + "line": 122, + "column": 23 + }, + "end": { + "line": 122, + "column": 30 + } + } + }, + "range": [ + 2044, + 2056 + ], + "loc": { + "start": { + "line": 122, + "column": 18 + }, + "end": { + "line": 122, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "count", + "range": [ + 2057, + 2062 + ], + "loc": { + "start": { + "line": 122, + "column": 31 + }, + "end": { + "line": 122, + "column": 36 + } + } + }, + "range": [ + 2044, + 2062 + ], + "loc": { + "start": { + "line": 122, + "column": 18 + }, + "end": { + "line": 122, + "column": 36 + } + } + }, + "arguments": [], + "range": [ + 2044, + 2064 + ], + "loc": { + "start": { + "line": 122, + "column": 18 + }, + "end": { + "line": 122, + "column": 38 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 2067, + 2068 + ], + "loc": { + "start": { + "line": 122, + "column": 41 + }, + "end": { + "line": 122, + "column": 42 + } + } + }, + "range": [ + 2044, + 2068 + ], + "loc": { + "start": { + "line": 122, + "column": 18 + }, + "end": { + "line": 122, + "column": 42 + } + } + }, + "consequent": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2071, + 2075 + ], + "loc": { + "start": { + "line": 122, + "column": 45 + }, + "end": { + "line": 122, + "column": 49 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 2076, + 2083 + ], + "loc": { + "start": { + "line": 122, + "column": 50 + }, + "end": { + "line": 122, + "column": 57 + } + } + }, + "range": [ + 2071, + 2083 + ], + "loc": { + "start": { + "line": 122, + "column": 45 + }, + "end": { + "line": 122, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "name": "extract", + "range": [ + 2084, + 2091 + ], + "loc": { + "start": { + "line": 122, + "column": 58 + }, + "end": { + "line": 122, + "column": 65 + } + } + }, + "range": [ + 2071, + 2091 + ], + "loc": { + "start": { + "line": 122, + "column": 45 + }, + "end": { + "line": 122, + "column": 65 + } + } + }, + "arguments": [], + "range": [ + 2071, + 2093 + ], + "loc": { + "start": { + "line": 122, + "column": 45 + }, + "end": { + "line": 122, + "column": 67 + } + } + }, + "alternate": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Policy", + "range": [ + 2096, + 2102 + ], + "loc": { + "start": { + "line": 122, + "column": 70 + }, + "end": { + "line": 122, + "column": 76 + } + } + }, + "property": { + "type": "Identifier", + "name": "ANY", + "range": [ + 2103, + 2106 + ], + "loc": { + "start": { + "line": 122, + "column": 77 + }, + "end": { + "line": 122, + "column": 80 + } + } + }, + "range": [ + 2096, + 2106 + ], + "loc": { + "start": { + "line": 122, + "column": 70 + }, + "end": { + "line": 122, + "column": 80 + } + } + }, + "range": [ + 2044, + 2106 + ], + "loc": { + "start": { + "line": 122, + "column": 18 + }, + "end": { + "line": 122, + "column": 80 + } + } + }, + "range": [ + 2034, + 2106 + ], + "loc": { + "start": { + "line": 122, + "column": 8 + }, + "end": { + "line": 122, + "column": 80 + } + } + } + ], + "kind": "let", + "range": [ + 2030, + 2107 + ], + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 122, + "column": 81 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "resources", + "range": [ + 2116, + 2125 + ], + "loc": { + "start": { + "line": 123, + "column": 8 + }, + "end": { + "line": 123, + "column": 17 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "BinaryExpression", + "operator": ">", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2128, + 2132 + ], + "loc": { + "start": { + "line": 123, + "column": 20 + }, + "end": { + "line": 123, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resource", + "range": [ + 2133, + 2142 + ], + "loc": { + "start": { + "line": 123, + "column": 25 + }, + "end": { + "line": 123, + "column": 34 + } + } + }, + "range": [ + 2128, + 2142 + ], + "loc": { + "start": { + "line": 123, + "column": 20 + }, + "end": { + "line": 123, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "count", + "range": [ + 2143, + 2148 + ], + "loc": { + "start": { + "line": 123, + "column": 35 + }, + "end": { + "line": 123, + "column": 40 + } + } + }, + "range": [ + 2128, + 2148 + ], + "loc": { + "start": { + "line": 123, + "column": 20 + }, + "end": { + "line": 123, + "column": 40 + } + } + }, + "arguments": [], + "range": [ + 2128, + 2150 + ], + "loc": { + "start": { + "line": 123, + "column": 20 + }, + "end": { + "line": 123, + "column": 42 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 2153, + 2154 + ], + "loc": { + "start": { + "line": 123, + "column": 45 + }, + "end": { + "line": 123, + "column": 46 + } + } + }, + "range": [ + 2128, + 2154 + ], + "loc": { + "start": { + "line": 123, + "column": 20 + }, + "end": { + "line": 123, + "column": 46 + } + } + }, + "consequent": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2157, + 2161 + ], + "loc": { + "start": { + "line": 123, + "column": 49 + }, + "end": { + "line": 123, + "column": 53 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resource", + "range": [ + 2162, + 2171 + ], + "loc": { + "start": { + "line": 123, + "column": 54 + }, + "end": { + "line": 123, + "column": 63 + } + } + }, + "range": [ + 2157, + 2171 + ], + "loc": { + "start": { + "line": 123, + "column": 49 + }, + "end": { + "line": 123, + "column": 63 + } + } + }, + "property": { + "type": "Identifier", + "name": "extract", + "range": [ + 2172, + 2179 + ], + "loc": { + "start": { + "line": 123, + "column": 64 + }, + "end": { + "line": 123, + "column": 71 + } + } + }, + "range": [ + 2157, + 2179 + ], + "loc": { + "start": { + "line": 123, + "column": 49 + }, + "end": { + "line": 123, + "column": 71 + } + } + }, + "arguments": [], + "range": [ + 2157, + 2181 + ], + "loc": { + "start": { + "line": 123, + "column": 49 + }, + "end": { + "line": 123, + "column": 73 + } + } + }, + "alternate": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 2184, + 2188 + ], + "loc": { + "start": { + "line": 123, + "column": 76 + }, + "end": { + "line": 123, + "column": 80 + } + } + }, + "range": [ + 2128, + 2188 + ], + "loc": { + "start": { + "line": 123, + "column": 20 + }, + "end": { + "line": 123, + "column": 80 + } + } + }, + "range": [ + 2116, + 2188 + ], + "loc": { + "start": { + "line": 123, + "column": 8 + }, + "end": { + "line": 123, + "column": 80 + } + } + } + ], + "kind": "let", + "range": [ + 2112, + 2189 + ], + "loc": { + "start": { + "line": 123, + "column": 4 + }, + "end": { + "line": 123, + "column": 81 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "statement", + "range": [ + 2199, + 2208 + ], + "loc": { + "start": { + "line": 125, + "column": 8 + }, + "end": { + "line": 125, + "column": 17 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Effect", + "range": [ + 2219, + 2225 + ], + "loc": { + "start": { + "line": 126, + "column": 6 + }, + "end": { + "line": 126, + "column": 12 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2227, + 2231 + ], + "loc": { + "start": { + "line": 126, + "column": 14 + }, + "end": { + "line": 126, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "_effect", + "range": [ + 2232, + 2239 + ], + "loc": { + "start": { + "line": 126, + "column": 19 + }, + "end": { + "line": 126, + "column": 26 + } + } + }, + "range": [ + 2227, + 2239 + ], + "loc": { + "start": { + "line": 126, + "column": 14 + }, + "end": { + "line": 126, + "column": 26 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 2219, + 2239 + ], + "loc": { + "start": { + "line": 126, + "column": 6 + }, + "end": { + "line": 126, + "column": 26 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Action", + "range": [ + 2247, + 2253 + ], + "loc": { + "start": { + "line": 127, + "column": 6 + }, + "end": { + "line": 127, + "column": 12 + } + } + }, + "value": { + "type": "Identifier", + "name": "actions", + "range": [ + 2255, + 2262 + ], + "loc": { + "start": { + "line": 127, + "column": 14 + }, + "end": { + "line": 127, + "column": 21 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 2247, + 2262 + ], + "loc": { + "start": { + "line": 127, + "column": 6 + }, + "end": { + "line": 127, + "column": 21 + } + } + } + ], + "range": [ + 2211, + 2269 + ], + "loc": { + "start": { + "line": 125, + "column": 20 + }, + "end": { + "line": 128, + "column": 5 + } + } + }, + "range": [ + 2199, + 2269 + ], + "loc": { + "start": { + "line": 125, + "column": 8 + }, + "end": { + "line": 128, + "column": 5 + } + } + } + ], + "kind": "let", + "range": [ + 2195, + 2270 + ], + "loc": { + "start": { + "line": 125, + "column": 4 + }, + "end": { + "line": 128, + "column": 6 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "Identifier", + "name": "resources", + "range": [ + 2280, + 2289 + ], + "loc": { + "start": { + "line": 130, + "column": 8 + }, + "end": { + "line": 130, + "column": 17 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 2294, + 2298 + ], + "loc": { + "start": { + "line": 130, + "column": 22 + }, + "end": { + "line": 130, + "column": 26 + } + } + }, + "range": [ + 2280, + 2298 + ], + "loc": { + "start": { + "line": 130, + "column": 8 + }, + "end": { + "line": 130, + "column": 26 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "statement", + "range": [ + 2308, + 2317 + ], + "loc": { + "start": { + "line": 131, + "column": 6 + }, + "end": { + "line": 131, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "Resource", + "range": [ + 2318, + 2326 + ], + "loc": { + "start": { + "line": 131, + "column": 16 + }, + "end": { + "line": 131, + "column": 24 + } + } + }, + "range": [ + 2308, + 2326 + ], + "loc": { + "start": { + "line": 131, + "column": 6 + }, + "end": { + "line": 131, + "column": 24 + } + } + }, + "right": { + "type": "Identifier", + "name": "resources", + "range": [ + 2329, + 2338 + ], + "loc": { + "start": { + "line": 131, + "column": 27 + }, + "end": { + "line": 131, + "column": 36 + } + } + }, + "range": [ + 2308, + 2338 + ], + "loc": { + "start": { + "line": 131, + "column": 6 + }, + "end": { + "line": 131, + "column": 36 + } + } + }, + "range": [ + 2308, + 2339 + ], + "loc": { + "start": { + "line": 131, + "column": 6 + }, + "end": { + "line": 131, + "column": 37 + } + } + } + ], + "range": [ + 2300, + 2345 + ], + "loc": { + "start": { + "line": 130, + "column": 28 + }, + "end": { + "line": 132, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 2276, + 2345 + ], + "loc": { + "start": { + "line": 130, + "column": 4 + }, + "end": { + "line": 132, + "column": 5 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2355, + 2359 + ], + "loc": { + "start": { + "line": 134, + "column": 8 + }, + "end": { + "line": 134, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_condition", + "range": [ + 2360, + 2370 + ], + "loc": { + "start": { + "line": 134, + "column": 13 + }, + "end": { + "line": 134, + "column": 23 + } + } + }, + "range": [ + 2355, + 2370 + ], + "loc": { + "start": { + "line": 134, + "column": 8 + }, + "end": { + "line": 134, + "column": 23 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 2375, + 2379 + ], + "loc": { + "start": { + "line": 134, + "column": 28 + }, + "end": { + "line": 134, + "column": 32 + } + } + }, + "range": [ + 2355, + 2379 + ], + "loc": { + "start": { + "line": 134, + "column": 8 + }, + "end": { + "line": 134, + "column": 32 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2383, + 2387 + ], + "loc": { + "start": { + "line": 134, + "column": 36 + }, + "end": { + "line": 134, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "_condition", + "range": [ + 2388, + 2398 + ], + "loc": { + "start": { + "line": 134, + "column": 41 + }, + "end": { + "line": 134, + "column": 51 + } + } + }, + "range": [ + 2383, + 2398 + ], + "loc": { + "start": { + "line": 134, + "column": 36 + }, + "end": { + "line": 134, + "column": 51 + } + } + }, + "right": { + "type": "Identifier", + "name": "Object", + "range": [ + 2410, + 2416 + ], + "loc": { + "start": { + "line": 134, + "column": 63 + }, + "end": { + "line": 134, + "column": 69 + } + } + }, + "range": [ + 2383, + 2416 + ], + "loc": { + "start": { + "line": 134, + "column": 36 + }, + "end": { + "line": 134, + "column": 69 + } + } + }, + "range": [ + 2355, + 2416 + ], + "loc": { + "start": { + "line": 134, + "column": 8 + }, + "end": { + "line": 134, + "column": 69 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "statement", + "range": [ + 2426, + 2435 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "Condition", + "range": [ + 2436, + 2445 + ], + "loc": { + "start": { + "line": 135, + "column": 16 + }, + "end": { + "line": 135, + "column": 25 + } + } + }, + "range": [ + 2426, + 2445 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 25 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2448, + 2452 + ], + "loc": { + "start": { + "line": 135, + "column": 28 + }, + "end": { + "line": 135, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "_condition", + "range": [ + 2453, + 2463 + ], + "loc": { + "start": { + "line": 135, + "column": 33 + }, + "end": { + "line": 135, + "column": 43 + } + } + }, + "range": [ + 2448, + 2463 + ], + "loc": { + "start": { + "line": 135, + "column": 28 + }, + "end": { + "line": 135, + "column": 43 + } + } + }, + "range": [ + 2426, + 2463 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 43 + } + } + }, + "range": [ + 2426, + 2464 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 44 + } + } + } + ], + "range": [ + 2418, + 2470 + ], + "loc": { + "start": { + "line": 134, + "column": 71 + }, + "end": { + "line": 136, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 2351, + 2470 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 136, + "column": 5 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " @todo - create separate class for Principal", + "range": [ + 2476, + 2522 + ], + "loc": { + "start": { + "line": 138, + "column": 4 + }, + "end": { + "line": 138, + "column": 50 + } + } + } + ] + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "!=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2531, + 2535 + ], + "loc": { + "start": { + "line": 139, + "column": 8 + }, + "end": { + "line": 139, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_principal", + "range": [ + 2536, + 2546 + ], + "loc": { + "start": { + "line": 139, + "column": 13 + }, + "end": { + "line": 139, + "column": 23 + } + } + }, + "range": [ + 2531, + 2546 + ], + "loc": { + "start": { + "line": 139, + "column": 8 + }, + "end": { + "line": 139, + "column": 23 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 2550, + 2554 + ], + "loc": { + "start": { + "line": 139, + "column": 27 + }, + "end": { + "line": 139, + "column": 31 + } + } + }, + "range": [ + 2531, + 2554 + ], + "loc": { + "start": { + "line": 139, + "column": 8 + }, + "end": { + "line": 139, + "column": 31 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "statement", + "range": [ + 2564, + 2573 + ], + "loc": { + "start": { + "line": 140, + "column": 6 + }, + "end": { + "line": 140, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "Principal", + "range": [ + 2574, + 2583 + ], + "loc": { + "start": { + "line": 140, + "column": 16 + }, + "end": { + "line": 140, + "column": 25 + } + } + }, + "range": [ + 2564, + 2583 + ], + "loc": { + "start": { + "line": 140, + "column": 6 + }, + "end": { + "line": 140, + "column": 25 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2586, + 2590 + ], + "loc": { + "start": { + "line": 140, + "column": 28 + }, + "end": { + "line": 140, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "_principal", + "range": [ + 2591, + 2601 + ], + "loc": { + "start": { + "line": 140, + "column": 33 + }, + "end": { + "line": 140, + "column": 43 + } + } + }, + "range": [ + 2586, + 2601 + ], + "loc": { + "start": { + "line": 140, + "column": 28 + }, + "end": { + "line": 140, + "column": 43 + } + } + }, + "range": [ + 2564, + 2601 + ], + "loc": { + "start": { + "line": 140, + "column": 6 + }, + "end": { + "line": 140, + "column": 43 + } + } + }, + "range": [ + 2564, + 2602 + ], + "loc": { + "start": { + "line": 140, + "column": 6 + }, + "end": { + "line": 140, + "column": 44 + } + } + } + ], + "range": [ + 2556, + 2608 + ], + "loc": { + "start": { + "line": 139, + "column": 33 + }, + "end": { + "line": 141, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 2527, + 2608 + ], + "loc": { + "start": { + "line": 139, + "column": 4 + }, + "end": { + "line": 141, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo - create separate class for Principal", + "range": [ + 2476, + 2522 + ], + "loc": { + "start": { + "line": 138, + "column": 4 + }, + "end": { + "line": 138, + "column": 50 + } + } + } + ] + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": ">", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2618, + 2622 + ], + "loc": { + "start": { + "line": 143, + "column": 8 + }, + "end": { + "line": 143, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_notAction", + "range": [ + 2623, + 2633 + ], + "loc": { + "start": { + "line": 143, + "column": 13 + }, + "end": { + "line": 143, + "column": 23 + } + } + }, + "range": [ + 2618, + 2633 + ], + "loc": { + "start": { + "line": 143, + "column": 8 + }, + "end": { + "line": 143, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "count", + "range": [ + 2634, + 2639 + ], + "loc": { + "start": { + "line": 143, + "column": 24 + }, + "end": { + "line": 143, + "column": 29 + } + } + }, + "range": [ + 2618, + 2639 + ], + "loc": { + "start": { + "line": 143, + "column": 8 + }, + "end": { + "line": 143, + "column": 29 + } + } + }, + "arguments": [], + "range": [ + 2618, + 2641 + ], + "loc": { + "start": { + "line": 143, + "column": 8 + }, + "end": { + "line": 143, + "column": 31 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 2644, + 2645 + ], + "loc": { + "start": { + "line": 143, + "column": 34 + }, + "end": { + "line": 143, + "column": 35 + } + } + }, + "range": [ + 2618, + 2645 + ], + "loc": { + "start": { + "line": 143, + "column": 8 + }, + "end": { + "line": 143, + "column": 35 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "statement", + "range": [ + 2655, + 2664 + ], + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "NotAction", + "range": [ + 2665, + 2674 + ], + "loc": { + "start": { + "line": 144, + "column": 16 + }, + "end": { + "line": 144, + "column": 25 + } + } + }, + "range": [ + 2655, + 2674 + ], + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 25 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2677, + 2681 + ], + "loc": { + "start": { + "line": 144, + "column": 28 + }, + "end": { + "line": 144, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "_notAction", + "range": [ + 2682, + 2692 + ], + "loc": { + "start": { + "line": 144, + "column": 33 + }, + "end": { + "line": 144, + "column": 43 + } + } + }, + "range": [ + 2677, + 2692 + ], + "loc": { + "start": { + "line": 144, + "column": 28 + }, + "end": { + "line": 144, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "name": "extract", + "range": [ + 2693, + 2700 + ], + "loc": { + "start": { + "line": 144, + "column": 44 + }, + "end": { + "line": 144, + "column": 51 + } + } + }, + "range": [ + 2677, + 2700 + ], + "loc": { + "start": { + "line": 144, + "column": 28 + }, + "end": { + "line": 144, + "column": 51 + } + } + }, + "arguments": [], + "range": [ + 2677, + 2702 + ], + "loc": { + "start": { + "line": 144, + "column": 28 + }, + "end": { + "line": 144, + "column": 53 + } + } + }, + "range": [ + 2655, + 2702 + ], + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 53 + } + } + }, + "range": [ + 2655, + 2703 + ], + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 54 + } + } + } + ], + "range": [ + 2647, + 2709 + ], + "loc": { + "start": { + "line": 143, + "column": 37 + }, + "end": { + "line": 145, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 2614, + 2709 + ], + "loc": { + "start": { + "line": 143, + "column": 4 + }, + "end": { + "line": 145, + "column": 5 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": ">", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2719, + 2723 + ], + "loc": { + "start": { + "line": 147, + "column": 8 + }, + "end": { + "line": 147, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_notResource", + "range": [ + 2724, + 2736 + ], + "loc": { + "start": { + "line": 147, + "column": 13 + }, + "end": { + "line": 147, + "column": 25 + } + } + }, + "range": [ + 2719, + 2736 + ], + "loc": { + "start": { + "line": 147, + "column": 8 + }, + "end": { + "line": 147, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "count", + "range": [ + 2737, + 2742 + ], + "loc": { + "start": { + "line": 147, + "column": 26 + }, + "end": { + "line": 147, + "column": 31 + } + } + }, + "range": [ + 2719, + 2742 + ], + "loc": { + "start": { + "line": 147, + "column": 8 + }, + "end": { + "line": 147, + "column": 31 + } + } + }, + "arguments": [], + "range": [ + 2719, + 2744 + ], + "loc": { + "start": { + "line": 147, + "column": 8 + }, + "end": { + "line": 147, + "column": 33 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 2747, + 2748 + ], + "loc": { + "start": { + "line": 147, + "column": 36 + }, + "end": { + "line": 147, + "column": 37 + } + } + }, + "range": [ + 2719, + 2748 + ], + "loc": { + "start": { + "line": 147, + "column": 8 + }, + "end": { + "line": 147, + "column": 37 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "statement", + "range": [ + 2758, + 2767 + ], + "loc": { + "start": { + "line": 148, + "column": 6 + }, + "end": { + "line": 148, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "NotResource", + "range": [ + 2768, + 2779 + ], + "loc": { + "start": { + "line": 148, + "column": 16 + }, + "end": { + "line": 148, + "column": 27 + } + } + }, + "range": [ + 2758, + 2779 + ], + "loc": { + "start": { + "line": 148, + "column": 6 + }, + "end": { + "line": 148, + "column": 27 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2782, + 2786 + ], + "loc": { + "start": { + "line": 148, + "column": 30 + }, + "end": { + "line": 148, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "_notResource", + "range": [ + 2787, + 2799 + ], + "loc": { + "start": { + "line": 148, + "column": 35 + }, + "end": { + "line": 148, + "column": 47 + } + } + }, + "range": [ + 2782, + 2799 + ], + "loc": { + "start": { + "line": 148, + "column": 30 + }, + "end": { + "line": 148, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "extract", + "range": [ + 2800, + 2807 + ], + "loc": { + "start": { + "line": 148, + "column": 48 + }, + "end": { + "line": 148, + "column": 55 + } + } + }, + "range": [ + 2782, + 2807 + ], + "loc": { + "start": { + "line": 148, + "column": 30 + }, + "end": { + "line": 148, + "column": 55 + } + } + }, + "arguments": [], + "range": [ + 2782, + 2809 + ], + "loc": { + "start": { + "line": 148, + "column": 30 + }, + "end": { + "line": 148, + "column": 57 + } + } + }, + "range": [ + 2758, + 2809 + ], + "loc": { + "start": { + "line": 148, + "column": 6 + }, + "end": { + "line": 148, + "column": 57 + } + } + }, + "range": [ + 2758, + 2810 + ], + "loc": { + "start": { + "line": 148, + "column": 6 + }, + "end": { + "line": 148, + "column": 58 + } + } + } + ], + "range": [ + 2750, + 2816 + ], + "loc": { + "start": { + "line": 147, + "column": 39 + }, + "end": { + "line": 149, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 2715, + 2816 + ], + "loc": { + "start": { + "line": 147, + "column": 4 + }, + "end": { + "line": 149, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "statement", + "range": [ + 2829, + 2838 + ], + "loc": { + "start": { + "line": 151, + "column": 11 + }, + "end": { + "line": 151, + "column": 20 + } + } + }, + "range": [ + 2822, + 2839 + ], + "loc": { + "start": { + "line": 151, + "column": 4 + }, + "end": { + "line": 151, + "column": 21 + } + } + } + ], + "range": [ + 2024, + 2843 + ], + "loc": { + "start": { + "line": 121, + "column": 12 + }, + "end": { + "line": 152, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2021, + 2843 + ], + "loc": { + "start": { + "line": 121, + "column": 9 + }, + "end": { + "line": 152, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2014, + 2843 + ], + "loc": { + "start": { + "line": 121, + "column": 2 + }, + "end": { + "line": 152, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1979, + 2011 + ], + "loc": { + "start": { + "line": 118, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 407, + 2845 + ], + "loc": { + "start": { + "line": 17, + "column": 43 + }, + "end": { + "line": 153, + "column": 1 + } + } + }, + "range": [ + 371, + 2845 + ], + "loc": { + "start": { + "line": 17, + "column": 7 + }, + "end": { + "line": 153, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * IAM policy statement\n ", + "range": [ + 332, + 363 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 364, + 2845 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 153, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * IAM policy statement\n ", + "range": [ + 332, + 363 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 2845 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 153, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * IAM policy statement\n ", + "range": [ + 332, + 363 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} effect\n ", + "range": [ + 726, + 763 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 983, + 1015 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} condition\n ", + "range": [ + 1065, + 1105 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1175, + 1207 + ], + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 57, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {*} principal\n ", + "range": [ + 1263, + 1298 + ], + "loc": { + "start": { + "line": 62, + "column": 2 + }, + "end": { + "line": 64, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 1368, + 1395 + ], + "loc": { + "start": { + "line": 69, + "column": 2 + }, + "end": { + "line": 71, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 1451, + 1487 + ], + "loc": { + "start": { + "line": 76, + "column": 2 + }, + "end": { + "line": 78, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 1547, + 1583 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 85, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 1637, + 1673 + ], + "loc": { + "start": { + "line": 90, + "column": 2 + }, + "end": { + "line": 92, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Collection}\n ", + "range": [ + 1729, + 1765 + ], + "loc": { + "start": { + "line": 97, + "column": 2 + }, + "end": { + "line": 99, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1815, + 1847 + ], + "loc": { + "start": { + "line": 104, + "column": 2 + }, + "end": { + "line": 106, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1898, + 1930 + ], + "loc": { + "start": { + "line": 111, + "column": 2 + }, + "end": { + "line": 113, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1979, + 2011 + ], + "loc": { + "start": { + "line": 118, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo - create separate class for Principal", + "range": [ + 2476, + 2522 + ], + "loc": { + "start": { + "line": 138, + "column": 4 + }, + "end": { + "line": 138, + "column": 50 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/AWS/Lambda/ErrorResponse.js.json b/docs-api/deep-core/ast/source/AWS/Lambda/ErrorResponse.js.json new file mode 100644 index 00000000..b469159e --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/Lambda/ErrorResponse.js.json @@ -0,0 +1,769 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Response", + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Response", + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Response", + "raw": "'./Response'", + "range": [ + 84, + 96 + ], + "loc": { + "start": { + "line": 7, + "column": 23 + }, + "end": { + "line": 7, + "column": 35 + } + } + }, + "range": [ + 61, + 97 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 36 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Error response sent to the lambda context\n ", + "range": [ + 99, + 151 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "ErrorResponse", + "range": [ + 165, + 178 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 26 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Response", + "range": [ + 187, + 195 + ], + "loc": { + "start": { + "line": 12, + "column": 35 + }, + "end": { + "line": 12, + "column": 43 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 233, + 244 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 248, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 245, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 260, + 265 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 269, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 266, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 260, + 274 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 260, + 275 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 254, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 244, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 233, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} args\n ", + "range": [ + 200, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 283, + 315 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "contextMethod", + "range": [ + 322, + 335 + ], + "loc": { + "start": { + "line": 23, + "column": 6 + }, + "end": { + "line": 23, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "fail", + "raw": "'fail'", + "range": [ + 351, + 357 + ], + "loc": { + "start": { + "line": 24, + "column": 11 + }, + "end": { + "line": 24, + "column": 17 + } + } + }, + "range": [ + 344, + 358 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 18 + } + } + } + ], + "range": [ + 338, + 362 + ], + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 25, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 335, + 362 + ], + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 25, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 318, + 362 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 283, + 315 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 196, + 364 + ], + "loc": { + "start": { + "line": 12, + "column": 44 + }, + "end": { + "line": 26, + "column": 1 + } + } + }, + "range": [ + 159, + 364 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Error response sent to the lambda context\n ", + "range": [ + 99, + 151 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 152, + 364 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Error response sent to the lambda context\n ", + "range": [ + 99, + 151 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 364 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Error response sent to the lambda context\n ", + "range": [ + 99, + 151 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {*} args\n ", + "range": [ + 200, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 283, + 315 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/AWS/Lambda/Exception/MissingRuntimeContextException.js.json b/docs-api/deep-core/ast/source/AWS/Lambda/Exception/MissingRuntimeContextException.js.json new file mode 100644 index 00000000..0fd81f15 --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/Lambda/Exception/MissingRuntimeContextException.js.json @@ -0,0 +1,507 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/12/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../../Exception/Exception", + "raw": "'../../../Exception/Exception'", + "range": [ + 85, + 115 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 54 + } + } + }, + "range": [ + 61, + 116 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 55 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing runtime lambda context\n ", + "range": [ + 118, + 171 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "MissingRuntimeContextException", + "range": [ + 185, + 215 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 43 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 224, + 233 + ], + "loc": { + "start": { + "line": 12, + "column": 52 + }, + "end": { + "line": 12, + "column": 61 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 238, + 249 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 258, + 263 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "Missing Lambda runtime context", + "raw": "'Missing Lambda runtime context'", + "range": [ + 264, + 296 + ], + "loc": { + "start": { + "line": 14, + "column": 10 + }, + "end": { + "line": 14, + "column": 42 + } + } + } + ], + "range": [ + 258, + 297 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 43 + } + } + }, + "range": [ + 258, + 298 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 44 + } + } + } + ], + "range": [ + 252, + 302 + ], + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 249, + 302 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 238, + 302 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "static": false + } + ], + "range": [ + 234, + 304 + ], + "loc": { + "start": { + "line": 12, + "column": 62 + }, + "end": { + "line": 16, + "column": 1 + } + } + }, + "range": [ + 179, + 304 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing runtime lambda context\n ", + "range": [ + 118, + 171 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 172, + 304 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing runtime lambda context\n ", + "range": [ + 118, + 171 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 304 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/12/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when missing runtime lambda context\n ", + "range": [ + 118, + 171 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/AWS/Lambda/Request.js.json b/docs-api/deep-core/ast/source/AWS/Lambda/Request.js.json new file mode 100644 index 00000000..61350ef0 --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/Lambda/Request.js.json @@ -0,0 +1,1208 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Request received by the lambda context\n ", + "range": [ + 61, + 110 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Request", + "range": [ + 124, + 131 + ], + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 20 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 169, + 180 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 14, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "data", + "range": [ + 181, + 185 + ], + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 18 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 193, + 197 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 198, + 203 + ], + "loc": { + "start": { + "line": 15, + "column": 9 + }, + "end": { + "line": 15, + "column": 14 + } + } + }, + "range": [ + 193, + 203 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 14 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "Identifier", + "name": "data", + "range": [ + 206, + 210 + ], + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 21 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 214, + 216 + ], + "loc": { + "start": { + "line": 15, + "column": 25 + }, + "end": { + "line": 15, + "column": 27 + } + } + }, + "range": [ + 206, + 216 + ], + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 27 + } + } + }, + "range": [ + 193, + 216 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 27 + } + } + }, + "range": [ + 193, + 217 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 28 + } + } + } + ], + "range": [ + 187, + 221 + ], + "loc": { + "start": { + "line": 14, + "column": 20 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 180, + 221 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 169, + 221 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} data\n ", + "range": [ + 136, + 166 + ], + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 225, + 252 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "data", + "range": [ + 259, + 263 + ], + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 279, + 283 + ], + "loc": { + "start": { + "line": 22, + "column": 11 + }, + "end": { + "line": 22, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 284, + 289 + ], + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 21 + } + } + }, + "range": [ + 279, + 289 + ], + "loc": { + "start": { + "line": 22, + "column": 11 + }, + "end": { + "line": 22, + "column": 21 + } + } + }, + "range": [ + 272, + 290 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 22 + } + } + } + ], + "range": [ + 266, + 294 + ], + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 263, + 294 + ], + "loc": { + "start": { + "line": 21, + "column": 10 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 255, + 294 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 225, + 252 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @param {String|Object|null} defaultValue\n *\n * @returns {String|Object|null}\n ", + "range": [ + 298, + 419 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "getParam", + "range": [ + 422, + 430 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 31, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 431, + 435 + ], + "loc": { + "start": { + "line": 31, + "column": 11 + }, + "end": { + "line": 31, + "column": 15 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "defaultValue", + "range": [ + 437, + 449 + ], + "loc": { + "start": { + "line": 31, + "column": 17 + }, + "end": { + "line": 31, + "column": 29 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 452, + 456 + ], + "loc": { + "start": { + "line": 31, + "column": 32 + }, + "end": { + "line": 31, + "column": 36 + } + } + }, + "range": [ + 437, + 456 + ], + "loc": { + "start": { + "line": 31, + "column": 17 + }, + "end": { + "line": 31, + "column": 36 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ConditionalExpression", + "test": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 471, + 475 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "data", + "range": [ + 476, + 480 + ], + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 20 + } + } + }, + "range": [ + 471, + 480 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 481, + 495 + ], + "loc": { + "start": { + "line": 32, + "column": 21 + }, + "end": { + "line": 32, + "column": 35 + } + } + }, + "range": [ + 471, + 495 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 496, + 500 + ], + "loc": { + "start": { + "line": 32, + "column": 36 + }, + "end": { + "line": 32, + "column": 40 + } + } + } + ], + "range": [ + 471, + 501 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 41 + } + } + }, + "consequent": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 504, + 508 + ], + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "name": "data", + "range": [ + 509, + 513 + ], + "loc": { + "start": { + "line": 32, + "column": 49 + }, + "end": { + "line": 32, + "column": 53 + } + } + }, + "range": [ + 504, + 513 + ], + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 53 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 514, + 518 + ], + "loc": { + "start": { + "line": 32, + "column": 54 + }, + "end": { + "line": 32, + "column": 58 + } + } + }, + "range": [ + 504, + 519 + ], + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 59 + } + } + }, + "alternate": { + "type": "Identifier", + "name": "defaultValue", + "range": [ + 522, + 534 + ], + "loc": { + "start": { + "line": 32, + "column": 62 + }, + "end": { + "line": 32, + "column": 74 + } + } + }, + "range": [ + 471, + 534 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 74 + } + } + }, + "range": [ + 464, + 535 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 75 + } + } + } + ], + "range": [ + 458, + 539 + ], + "loc": { + "start": { + "line": 31, + "column": 38 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 430, + 539 + ], + "loc": { + "start": { + "line": 31, + "column": 10 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 422, + 539 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 33, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @param {String|Object|null} defaultValue\n *\n * @returns {String|Object|null}\n ", + "range": [ + 298, + 419 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 132, + 541 + ], + "loc": { + "start": { + "line": 10, + "column": 21 + }, + "end": { + "line": 34, + "column": 1 + } + } + }, + "range": [ + 118, + 541 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Request received by the lambda context\n ", + "range": [ + 61, + 110 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 111, + 541 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Request received by the lambda context\n ", + "range": [ + 61, + 110 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 541 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Request received by the lambda context\n ", + "range": [ + 61, + 110 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {*} data\n ", + "range": [ + 136, + 166 + ], + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 225, + 252 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} name\n * @param {String|Object|null} defaultValue\n *\n * @returns {String|Object|null}\n ", + "range": [ + 298, + 419 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/AWS/Lambda/Response.js.json b/docs-api/deep-core/ast/source/AWS/Lambda/Response.js.json new file mode 100644 index 00000000..2d4439eb --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/Lambda/Response.js.json @@ -0,0 +1,2078 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "MissingRuntimeContextException", + "range": [ + 69, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 38 + } + } + }, + "imported": { + "type": "Identifier", + "name": "MissingRuntimeContextException", + "range": [ + 69, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 38 + } + } + }, + "range": [ + 69, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 38 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/MissingRuntimeContextException", + "raw": "'./Exception/MissingRuntimeContextException'", + "range": [ + 106, + 150 + ], + "loc": { + "start": { + "line": 7, + "column": 45 + }, + "end": { + "line": 7, + "column": 89 + } + } + }, + "range": [ + 61, + 151 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 90 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Response sent to the lambda context\n ", + "range": [ + 153, + 199 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Response", + "range": [ + 213, + 221 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 21 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 259, + 270 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "data", + "range": [ + 271, + 275 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 18 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 283, + 287 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 288, + 293 + ], + "loc": { + "start": { + "line": 17, + "column": 9 + }, + "end": { + "line": 17, + "column": 14 + } + } + }, + "range": [ + 283, + 293 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 14 + } + } + }, + "right": { + "type": "Identifier", + "name": "data", + "range": [ + 296, + 300 + ], + "loc": { + "start": { + "line": 17, + "column": 17 + }, + "end": { + "line": 17, + "column": 21 + } + } + }, + "range": [ + 283, + 300 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 21 + } + } + }, + "range": [ + 283, + 301 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 22 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 306, + 310 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_runtimeContext", + "range": [ + 311, + 326 + ], + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 24 + } + } + }, + "range": [ + 306, + 326 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 24 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 329, + 333 + ], + "loc": { + "start": { + "line": 18, + "column": 27 + }, + "end": { + "line": 18, + "column": 31 + } + } + }, + "range": [ + 306, + 333 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 31 + } + } + }, + "range": [ + 306, + 334 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 32 + } + } + } + ], + "range": [ + 277, + 338 + ], + "loc": { + "start": { + "line": 16, + "column": 20 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 270, + 338 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 259, + 338 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} data\n ", + "range": [ + 226, + 256 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} context\n ", + "range": [ + 342, + 380 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "runtimeContext", + "range": [ + 387, + 401 + ], + "loc": { + "start": { + "line": 24, + "column": 6 + }, + "end": { + "line": 24, + "column": 20 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "context", + "range": [ + 402, + 409 + ], + "loc": { + "start": { + "line": 24, + "column": 21 + }, + "end": { + "line": 24, + "column": 28 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 417, + 421 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_runtimeContext", + "range": [ + 422, + 437 + ], + "loc": { + "start": { + "line": 25, + "column": 9 + }, + "end": { + "line": 25, + "column": 24 + } + } + }, + "range": [ + 417, + 437 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 24 + } + } + }, + "right": { + "type": "Identifier", + "name": "context", + "range": [ + 440, + 447 + ], + "loc": { + "start": { + "line": 25, + "column": 27 + }, + "end": { + "line": 25, + "column": 34 + } + } + }, + "range": [ + 417, + 447 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 34 + } + } + }, + "range": [ + 417, + 448 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 35 + } + } + } + ], + "range": [ + 411, + 452 + ], + "loc": { + "start": { + "line": 24, + "column": 30 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 401, + 452 + ], + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 383, + 452 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} context\n ", + "range": [ + 342, + 380 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 456, + 488 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "runtimeContext", + "range": [ + 495, + 509 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 20 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 525, + 529 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_runtimeContext", + "range": [ + 530, + 545 + ], + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 31 + } + } + }, + "range": [ + 525, + 545 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 31 + } + } + }, + "range": [ + 518, + 546 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 32 + } + } + } + ], + "range": [ + 512, + 550 + ], + "loc": { + "start": { + "line": 31, + "column": 23 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 509, + 550 + ], + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 491, + 550 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 33, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 456, + 488 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Response}\n ", + "range": [ + 554, + 588 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "send", + "range": [ + 591, + 595 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 38, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 609, + 613 + ], + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "_runtimeContext", + "range": [ + 614, + 629 + ], + "loc": { + "start": { + "line": 39, + "column": 14 + }, + "end": { + "line": 39, + "column": 29 + } + } + }, + "range": [ + 609, + 629 + ], + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 29 + } + } + }, + "prefix": true, + "range": [ + 608, + 629 + ], + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 29 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "MissingRuntimeContextException", + "range": [ + 649, + 679 + ], + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 40, + "column": 46 + } + } + }, + "arguments": [], + "range": [ + 645, + 681 + ], + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 48 + } + } + }, + "range": [ + 639, + 682 + ], + "loc": { + "start": { + "line": 40, + "column": 6 + }, + "end": { + "line": 40, + "column": 49 + } + } + } + ], + "range": [ + 631, + 688 + ], + "loc": { + "start": { + "line": 39, + "column": 31 + }, + "end": { + "line": 41, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 604, + 688 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 41, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 694, + 698 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_runtimeContext", + "range": [ + 699, + 714 + ], + "loc": { + "start": { + "line": 43, + "column": 9 + }, + "end": { + "line": 43, + "column": 24 + } + } + }, + "range": [ + 694, + 714 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 24 + } + } + }, + "property": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 715, + 719 + ], + "loc": { + "start": { + "line": 43, + "column": 25 + }, + "end": { + "line": 43, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "contextMethod", + "range": [ + 720, + 733 + ], + "loc": { + "start": { + "line": 43, + "column": 30 + }, + "end": { + "line": 43, + "column": 43 + } + } + }, + "range": [ + 715, + 733 + ], + "loc": { + "start": { + "line": 43, + "column": 25 + }, + "end": { + "line": 43, + "column": 43 + } + } + }, + "range": [ + 694, + 734 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 44 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 735, + 739 + ], + "loc": { + "start": { + "line": 43, + "column": 45 + }, + "end": { + "line": 43, + "column": 49 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 740, + 745 + ], + "loc": { + "start": { + "line": 43, + "column": 50 + }, + "end": { + "line": 43, + "column": 55 + } + } + }, + "range": [ + 735, + 745 + ], + "loc": { + "start": { + "line": 43, + "column": 45 + }, + "end": { + "line": 43, + "column": 55 + } + } + } + ], + "range": [ + 694, + 746 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 56 + } + } + }, + "range": [ + 694, + 747 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 57 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 760, + 764 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 15 + } + } + }, + "range": [ + 753, + 765 + ], + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 16 + } + } + } + ], + "range": [ + 598, + 769 + ], + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 595, + 769 + ], + "loc": { + "start": { + "line": 38, + "column": 6 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 591, + 769 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 46, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Response}\n ", + "range": [ + 554, + 588 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 773, + 800 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "data", + "range": [ + 807, + 811 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 827, + 831 + ], + "loc": { + "start": { + "line": 52, + "column": 11 + }, + "end": { + "line": 52, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 832, + 837 + ], + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 21 + } + } + }, + "range": [ + 827, + 837 + ], + "loc": { + "start": { + "line": 52, + "column": 11 + }, + "end": { + "line": 52, + "column": 21 + } + } + }, + "range": [ + 820, + 838 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 22 + } + } + } + ], + "range": [ + 814, + 842 + ], + "loc": { + "start": { + "line": 51, + "column": 13 + }, + "end": { + "line": 53, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 811, + 842 + ], + "loc": { + "start": { + "line": 51, + "column": 10 + }, + "end": { + "line": 53, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 803, + 842 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 53, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 773, + 800 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 846, + 878 + ], + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 57, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "contextMethod", + "range": [ + 885, + 898 + ], + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "succeed", + "raw": "'succeed'", + "range": [ + 914, + 923 + ], + "loc": { + "start": { + "line": 59, + "column": 11 + }, + "end": { + "line": 59, + "column": 20 + } + } + }, + "range": [ + 907, + 924 + ], + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 21 + } + } + } + ], + "range": [ + 901, + 928 + ], + "loc": { + "start": { + "line": 58, + "column": 22 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 898, + 928 + ], + "loc": { + "start": { + "line": 58, + "column": 19 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 881, + 928 + ], + "loc": { + "start": { + "line": 58, + "column": 2 + }, + "end": { + "line": 60, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 846, + 878 + ], + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 57, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 222, + 930 + ], + "loc": { + "start": { + "line": 12, + "column": 22 + }, + "end": { + "line": 61, + "column": 1 + } + } + }, + "range": [ + 207, + 930 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 61, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Response sent to the lambda context\n ", + "range": [ + 153, + 199 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 200, + 930 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 61, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Response sent to the lambda context\n ", + "range": [ + 153, + 199 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 930 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 61, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Response sent to the lambda context\n ", + "range": [ + 153, + 199 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {*} data\n ", + "range": [ + 226, + 256 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} context\n ", + "range": [ + 342, + 380 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 456, + 488 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Response}\n ", + "range": [ + 554, + 588 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 773, + 800 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 846, + 878 + ], + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 57, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/AWS/Lambda/Runtime.js.json b/docs-api/deep-core/ast/source/AWS/Lambda/Runtime.js.json new file mode 100644 index 00000000..a4ecd56a --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/Lambda/Runtime.js.json @@ -0,0 +1,5011 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 45, + 57 + ], + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 12 + } + } + }, + "range": [ + 45, + 58 + ], + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Interface", + "range": [ + 68, + 77 + ], + "loc": { + "start": { + "line": 6, + "column": 8 + }, + "end": { + "line": 6, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Interface", + "range": [ + 68, + 77 + ], + "loc": { + "start": { + "line": 6, + "column": 8 + }, + "end": { + "line": 6, + "column": 17 + } + } + }, + "range": [ + 68, + 77 + ], + "loc": { + "start": { + "line": 6, + "column": 8 + }, + "end": { + "line": 6, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../OOP/Interface", + "raw": "'../../OOP/Interface'", + "range": [ + 84, + 105 + ], + "loc": { + "start": { + "line": 6, + "column": 24 + }, + "end": { + "line": 6, + "column": 45 + } + } + }, + "range": [ + 60, + 106 + ], + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 46 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Response", + "range": [ + 115, + 123 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Response", + "range": [ + 115, + 123 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "range": [ + 115, + 123 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Response", + "raw": "'./Response'", + "range": [ + 130, + 142 + ], + "loc": { + "start": { + "line": 7, + "column": 23 + }, + "end": { + "line": 7, + "column": 35 + } + } + }, + "range": [ + 107, + 143 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 36 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Request", + "range": [ + 152, + 159 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Request", + "range": [ + 152, + 159 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + } + } + }, + "range": [ + 152, + 159 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Request", + "raw": "'./Request'", + "range": [ + 166, + 177 + ], + "loc": { + "start": { + "line": 8, + "column": 22 + }, + "end": { + "line": 8, + "column": 33 + } + } + }, + "range": [ + 144, + 178 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Lambda runtime context\n ", + "range": [ + 180, + 213 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Runtime", + "range": [ + 227, + 234 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 20 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Interface", + "range": [ + 243, + 252 + ], + "loc": { + "start": { + "line": 13, + "column": 29 + }, + "end": { + "line": 13, + "column": 38 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 297, + 308 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "kernel", + "range": [ + 309, + 315 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 20 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 323, + 328 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "handle", + "raw": "'handle'", + "range": [ + 330, + 338 + ], + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 19 + } + } + } + ], + "range": [ + 329, + 339 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 20 + } + } + } + ], + "range": [ + 323, + 340 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 21 + } + } + }, + "range": [ + 323, + 341 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 22 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 347, + 351 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_kernel", + "range": [ + 352, + 359 + ], + "loc": { + "start": { + "line": 20, + "column": 9 + }, + "end": { + "line": 20, + "column": 16 + } + } + }, + "range": [ + 347, + 359 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "kernel", + "range": [ + 362, + 368 + ], + "loc": { + "start": { + "line": 20, + "column": 19 + }, + "end": { + "line": 20, + "column": 25 + } + } + }, + "range": [ + 347, + 368 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 25 + } + } + }, + "range": [ + 347, + 369 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 26 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 374, + 378 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_request", + "range": [ + 379, + 387 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 17 + } + } + }, + "range": [ + 374, + 387 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 17 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 390, + 394 + ], + "loc": { + "start": { + "line": 21, + "column": 20 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + "range": [ + 374, + 394 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + "range": [ + 374, + 395 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 25 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 400, + 404 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_context", + "range": [ + 405, + 413 + ], + "loc": { + "start": { + "line": 22, + "column": 9 + }, + "end": { + "line": 22, + "column": 17 + } + } + }, + "range": [ + 400, + 413 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 17 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 416, + 420 + ], + "loc": { + "start": { + "line": 22, + "column": 20 + }, + "end": { + "line": 22, + "column": 24 + } + } + }, + "range": [ + 400, + 420 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 24 + } + } + }, + "range": [ + 400, + 421 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 25 + } + } + } + ], + "range": [ + 317, + 425 + ], + "loc": { + "start": { + "line": 17, + "column": 22 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 308, + 425 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 297, + 425 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} kernel\n ", + "range": [ + 257, + 294 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 429, + 461 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "kernel", + "range": [ + 468, + 474 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 28, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 490, + 494 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_kernel", + "range": [ + 495, + 502 + ], + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 23 + } + } + }, + "range": [ + 490, + 502 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 23 + } + } + }, + "range": [ + 483, + 503 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 24 + } + } + } + ], + "range": [ + 477, + 507 + ], + "loc": { + "start": { + "line": 28, + "column": 15 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 474, + 507 + ], + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 464, + 507 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 429, + 461 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Function}\n ", + "range": [ + 511, + 545 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "lambda", + "range": [ + 552, + 558 + ], + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 35, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "_this", + "range": [ + 571, + 576 + ], + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 13 + } + } + }, + "init": { + "type": "ThisExpression", + "range": [ + 579, + 583 + ], + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 36, + "column": 20 + } + } + }, + "range": [ + 571, + 583 + ], + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 20 + } + } + } + ], + "kind": "let", + "range": [ + 567, + 584 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 21 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "event", + "range": [ + 606, + 611 + ], + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 38, + "column": 25 + } + } + }, + { + "type": "Identifier", + "name": "context", + "range": [ + 613, + 620 + ], + "loc": { + "start": { + "line": 38, + "column": 27 + }, + "end": { + "line": 38, + "column": 34 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 630, + 635 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "name": "run", + "range": [ + 636, + 639 + ], + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 39, + "column": 15 + } + } + }, + "range": [ + 630, + 639 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "event", + "range": [ + 640, + 645 + ], + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 21 + } + } + }, + { + "type": "Identifier", + "name": "context", + "range": [ + 647, + 654 + ], + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 30 + } + } + } + ], + "range": [ + 630, + 655 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 31 + } + } + }, + "range": [ + 630, + 656 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 32 + } + } + } + ], + "range": [ + 622, + 662 + ], + "loc": { + "start": { + "line": 38, + "column": 36 + }, + "end": { + "line": 40, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 597, + 662 + ], + "loc": { + "start": { + "line": 38, + "column": 11 + }, + "end": { + "line": 40, + "column": 5 + } + } + }, + "range": [ + 590, + 663 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 40, + "column": 6 + } + } + } + ], + "range": [ + 561, + 667 + ], + "loc": { + "start": { + "line": 35, + "column": 15 + }, + "end": { + "line": 41, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 558, + 667 + ], + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 41, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 548, + 667 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 41, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Function}\n ", + "range": [ + 511, + 545 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} event\n * @param {*} context\n * @returns {Runtime}\n ", + "range": [ + 671, + 750 + ], + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "run", + "range": [ + 753, + 756 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "event", + "range": [ + 757, + 762 + ], + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 11 + } + } + }, + { + "type": "Identifier", + "name": "context", + "range": [ + 764, + 771 + ], + "loc": { + "start": { + "line": 48, + "column": 13 + }, + "end": { + "line": 48, + "column": 20 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 779, + 783 + ], + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_addExceptionListener", + "range": [ + 784, + 805 + ], + "loc": { + "start": { + "line": 49, + "column": 9 + }, + "end": { + "line": 49, + "column": 30 + } + } + }, + "range": [ + 779, + 805 + ], + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 30 + } + } + }, + "arguments": [], + "range": [ + 779, + 807 + ], + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 32 + } + } + }, + "range": [ + 779, + 808 + ], + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 33 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 814, + 818 + ], + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_context", + "range": [ + 819, + 827 + ], + "loc": { + "start": { + "line": 51, + "column": 9 + }, + "end": { + "line": 51, + "column": 17 + } + } + }, + "range": [ + 814, + 827 + ], + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 17 + } + } + }, + "right": { + "type": "Identifier", + "name": "context", + "range": [ + 830, + 837 + ], + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 27 + } + } + }, + "range": [ + 814, + 837 + ], + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 27 + } + } + }, + "range": [ + 814, + 838 + ], + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 843, + 847 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_request", + "range": [ + 848, + 856 + ], + "loc": { + "start": { + "line": 52, + "column": 9 + }, + "end": { + "line": 52, + "column": 17 + } + } + }, + "range": [ + 843, + 856 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 17 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Request", + "range": [ + 863, + 870 + ], + "loc": { + "start": { + "line": 52, + "column": 24 + }, + "end": { + "line": 52, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "event", + "range": [ + 871, + 876 + ], + "loc": { + "start": { + "line": 52, + "column": 32 + }, + "end": { + "line": 52, + "column": 37 + } + } + } + ], + "range": [ + 859, + 877 + ], + "loc": { + "start": { + "line": 52, + "column": 20 + }, + "end": { + "line": 52, + "column": 38 + } + } + }, + "range": [ + 843, + 877 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 38 + } + } + }, + "range": [ + 843, + 878 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 39 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 883, + 887 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "handle", + "range": [ + 888, + 894 + ], + "loc": { + "start": { + "line": 53, + "column": 9 + }, + "end": { + "line": 53, + "column": 15 + } + } + }, + "range": [ + 883, + 894 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 895, + 899 + ], + "loc": { + "start": { + "line": 53, + "column": 16 + }, + "end": { + "line": 53, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "_request", + "range": [ + 900, + 908 + ], + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 29 + } + } + }, + "range": [ + 895, + 908 + ], + "loc": { + "start": { + "line": 53, + "column": 16 + }, + "end": { + "line": 53, + "column": 29 + } + } + } + ], + "range": [ + 883, + 909 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 30 + } + } + }, + "range": [ + 883, + 910 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 31 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 923, + 927 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 15 + } + } + }, + "range": [ + 916, + 928 + ], + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 55, + "column": 16 + } + } + } + ], + "range": [ + 773, + 932 + ], + "loc": { + "start": { + "line": 48, + "column": 22 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 756, + 932 + ], + "loc": { + "start": { + "line": 48, + "column": 5 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 753, + 932 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 56, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} event\n * @param {*} context\n * @returns {Runtime}\n ", + "range": [ + 671, + 750 + ], + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @private\n ", + "range": [ + 936, + 959 + ], + "loc": { + "start": { + "line": 58, + "column": 2 + }, + "end": { + "line": 60, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_addExceptionListener", + "range": [ + 962, + 983 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 61, + "column": 23 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "process", + "range": [ + 992, + 999 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "name": "removeAllListeners", + "range": [ + 1000, + 1018 + ], + "loc": { + "start": { + "line": 62, + "column": 12 + }, + "end": { + "line": 62, + "column": 30 + } + } + }, + "range": [ + 992, + 1018 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "uncaughtException", + "raw": "'uncaughtException'", + "range": [ + 1019, + 1038 + ], + "loc": { + "start": { + "line": 62, + "column": 31 + }, + "end": { + "line": 62, + "column": 50 + } + } + } + ], + "range": [ + 992, + 1039 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 51 + } + } + }, + "range": [ + 992, + 1040 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 52 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "process", + "range": [ + 1045, + 1052 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "name": "on", + "range": [ + 1053, + 1055 + ], + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 14 + } + } + }, + "range": [ + 1045, + 1055 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "uncaughtException", + "raw": "'uncaughtException'", + "range": [ + 1056, + 1075 + ], + "loc": { + "start": { + "line": 63, + "column": 15 + }, + "end": { + "line": 63, + "column": 34 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 1086, + 1091 + ], + "loc": { + "start": { + "line": 63, + "column": 45 + }, + "end": { + "line": 63, + "column": 50 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1108, + 1112 + ], + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 64, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "createError", + "range": [ + 1113, + 1124 + ], + "loc": { + "start": { + "line": 64, + "column": 18 + }, + "end": { + "line": 64, + "column": 29 + } + } + }, + "range": [ + 1108, + 1124 + ], + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 64, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 1125, + 1130 + ], + "loc": { + "start": { + "line": 64, + "column": 30 + }, + "end": { + "line": 64, + "column": 35 + } + } + } + ], + "range": [ + 1108, + 1131 + ], + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 64, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "send", + "range": [ + 1132, + 1136 + ], + "loc": { + "start": { + "line": 64, + "column": 37 + }, + "end": { + "line": 64, + "column": 41 + } + } + }, + "range": [ + 1108, + 1136 + ], + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 64, + "column": 41 + } + } + }, + "arguments": [], + "range": [ + 1108, + 1138 + ], + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 64, + "column": 43 + } + } + }, + "range": [ + 1101, + 1139 + ], + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 44 + } + } + } + ], + "range": [ + 1093, + 1145 + ], + "loc": { + "start": { + "line": 63, + "column": 52 + }, + "end": { + "line": 65, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1077, + 1145 + ], + "loc": { + "start": { + "line": 63, + "column": 36 + }, + "end": { + "line": 65, + "column": 5 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 1146, + 1150 + ], + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 10 + } + } + }, + "range": [ + 1077, + 1150 + ], + "loc": { + "start": { + "line": 63, + "column": 36 + }, + "end": { + "line": 65, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 1151, + 1155 + ], + "loc": { + "start": { + "line": 65, + "column": 11 + }, + "end": { + "line": 65, + "column": 15 + } + } + } + ], + "range": [ + 1077, + 1156 + ], + "loc": { + "start": { + "line": 63, + "column": 36 + }, + "end": { + "line": 65, + "column": 16 + } + } + } + ], + "range": [ + 1045, + 1157 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 65, + "column": 17 + } + } + }, + "range": [ + 1045, + 1158 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 65, + "column": 18 + } + } + } + ], + "range": [ + 986, + 1162 + ], + "loc": { + "start": { + "line": 61, + "column": 26 + }, + "end": { + "line": 66, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 983, + 1162 + ], + "loc": { + "start": { + "line": 61, + "column": 23 + }, + "end": { + "line": 66, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 962, + 1162 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 66, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @private\n ", + "range": [ + 936, + 959 + ], + "loc": { + "start": { + "line": 58, + "column": 2 + }, + "end": { + "line": 60, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} iError\n ", + "range": [ + 1166, + 1203 + ], + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "createError", + "range": [ + 1206, + 1217 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 71, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "iError", + "range": [ + 1218, + 1224 + ], + "loc": { + "start": { + "line": 71, + "column": 14 + }, + "end": { + "line": 71, + "column": 20 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "oError", + "range": [ + 1236, + 1242 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 14 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 1245, + 1247 + ], + "loc": { + "start": { + "line": 72, + "column": 17 + }, + "end": { + "line": 72, + "column": 19 + } + } + }, + "range": [ + 1236, + 1247 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 19 + } + } + } + ], + "kind": "let", + "range": [ + 1232, + 1248 + ], + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 72, + "column": 20 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "Identifier", + "name": "iError", + "range": [ + 1265, + 1271 + ], + "loc": { + "start": { + "line": 74, + "column": 15 + }, + "end": { + "line": 74, + "column": 21 + } + } + }, + "prefix": true, + "range": [ + 1258, + 1271 + ], + "loc": { + "start": { + "line": 74, + "column": 8 + }, + "end": { + "line": 74, + "column": 21 + } + } + }, + "right": { + "type": "Literal", + "value": "string", + "raw": "'string'", + "range": [ + 1276, + 1284 + ], + "loc": { + "start": { + "line": 74, + "column": 26 + }, + "end": { + "line": 74, + "column": 34 + } + } + }, + "range": [ + 1258, + 1284 + ], + "loc": { + "start": { + "line": 74, + "column": 8 + }, + "end": { + "line": 74, + "column": 34 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "oError", + "range": [ + 1294, + 1300 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 12 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "errorType", + "range": [ + 1313, + 1322 + ], + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 17 + } + } + }, + "value": { + "type": "Literal", + "value": "Error", + "raw": "'Error'", + "range": [ + 1324, + 1331 + ], + "loc": { + "start": { + "line": 76, + "column": 19 + }, + "end": { + "line": 76, + "column": 26 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1313, + 1331 + ], + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 26 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "errorMessage", + "range": [ + 1341, + 1353 + ], + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 20 + } + } + }, + "value": { + "type": "Identifier", + "name": "iError", + "range": [ + 1355, + 1361 + ], + "loc": { + "start": { + "line": 77, + "column": 22 + }, + "end": { + "line": 77, + "column": 28 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1341, + 1361 + ], + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 28 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "errorStack", + "range": [ + 1371, + 1381 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 18 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Error", + "range": [ + 1388, + 1393 + ], + "loc": { + "start": { + "line": 78, + "column": 25 + }, + "end": { + "line": 78, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "iError", + "range": [ + 1394, + 1400 + ], + "loc": { + "start": { + "line": 78, + "column": 31 + }, + "end": { + "line": 78, + "column": 37 + } + } + } + ], + "range": [ + 1384, + 1401 + ], + "loc": { + "start": { + "line": 78, + "column": 21 + }, + "end": { + "line": 78, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "stack", + "range": [ + 1403, + 1408 + ], + "loc": { + "start": { + "line": 78, + "column": 40 + }, + "end": { + "line": 78, + "column": 45 + } + } + }, + "range": [ + 1383, + 1408 + ], + "loc": { + "start": { + "line": 78, + "column": 20 + }, + "end": { + "line": 78, + "column": 45 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1371, + 1408 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 45 + } + } + } + ], + "range": [ + 1303, + 1417 + ], + "loc": { + "start": { + "line": 75, + "column": 15 + }, + "end": { + "line": 79, + "column": 7 + } + } + }, + "range": [ + 1294, + 1417 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 79, + "column": 7 + } + } + }, + "range": [ + 1294, + 1418 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 79, + "column": 8 + } + } + } + ], + "range": [ + 1286, + 1424 + ], + "loc": { + "start": { + "line": 74, + "column": 36 + }, + "end": { + "line": 80, + "column": 5 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "oError", + "range": [ + 1438, + 1444 + ], + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 12 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "errorType", + "range": [ + 1457, + 1466 + ], + "loc": { + "start": { + "line": 82, + "column": 8 + }, + "end": { + "line": 82, + "column": 17 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "iError", + "range": [ + 1468, + 1474 + ], + "loc": { + "start": { + "line": 82, + "column": 19 + }, + "end": { + "line": 82, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 1475, + 1479 + ], + "loc": { + "start": { + "line": 82, + "column": 26 + }, + "end": { + "line": 82, + "column": 30 + } + } + }, + "range": [ + 1468, + 1479 + ], + "loc": { + "start": { + "line": 82, + "column": 19 + }, + "end": { + "line": 82, + "column": 30 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1457, + 1479 + ], + "loc": { + "start": { + "line": 82, + "column": 8 + }, + "end": { + "line": 82, + "column": 30 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "errorMessage", + "range": [ + 1489, + 1501 + ], + "loc": { + "start": { + "line": 83, + "column": 8 + }, + "end": { + "line": 83, + "column": 20 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "iError", + "range": [ + 1503, + 1509 + ], + "loc": { + "start": { + "line": 83, + "column": 22 + }, + "end": { + "line": 83, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "message", + "range": [ + 1510, + 1517 + ], + "loc": { + "start": { + "line": 83, + "column": 29 + }, + "end": { + "line": 83, + "column": 36 + } + } + }, + "range": [ + 1503, + 1517 + ], + "loc": { + "start": { + "line": 83, + "column": 22 + }, + "end": { + "line": 83, + "column": 36 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1489, + 1517 + ], + "loc": { + "start": { + "line": 83, + "column": 8 + }, + "end": { + "line": 83, + "column": 36 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "errorStack", + "range": [ + 1527, + 1537 + ], + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 18 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "iError", + "range": [ + 1539, + 1545 + ], + "loc": { + "start": { + "line": 84, + "column": 20 + }, + "end": { + "line": 84, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "stack", + "range": [ + 1546, + 1551 + ], + "loc": { + "start": { + "line": 84, + "column": 27 + }, + "end": { + "line": 84, + "column": 32 + } + } + }, + "range": [ + 1539, + 1551 + ], + "loc": { + "start": { + "line": 84, + "column": 20 + }, + "end": { + "line": 84, + "column": 32 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1527, + 1551 + ], + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 32 + } + } + } + ], + "range": [ + 1447, + 1560 + ], + "loc": { + "start": { + "line": 81, + "column": 15 + }, + "end": { + "line": 85, + "column": 7 + } + } + }, + "range": [ + 1438, + 1560 + ], + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 85, + "column": 7 + } + } + }, + "range": [ + 1438, + 1561 + ], + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 85, + "column": 8 + } + } + } + ], + "range": [ + 1430, + 1567 + ], + "loc": { + "start": { + "line": 80, + "column": 11 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + "range": [ + 1254, + 1567 + ], + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "response", + "range": [ + 1577, + 1585 + ], + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 88, + "column": 16 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Response", + "range": [ + 1592, + 1600 + ], + "loc": { + "start": { + "line": 88, + "column": 23 + }, + "end": { + "line": 88, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "oError", + "range": [ + 1601, + 1607 + ], + "loc": { + "start": { + "line": 88, + "column": 32 + }, + "end": { + "line": 88, + "column": 38 + } + } + } + ], + "range": [ + 1588, + 1608 + ], + "loc": { + "start": { + "line": 88, + "column": 19 + }, + "end": { + "line": 88, + "column": 39 + } + } + }, + "range": [ + 1577, + 1608 + ], + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 88, + "column": 39 + } + } + } + ], + "kind": "let", + "range": [ + 1573, + 1609 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 40 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 1614, + 1622 + ], + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 89, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "runtimeContext", + "range": [ + 1623, + 1637 + ], + "loc": { + "start": { + "line": 89, + "column": 13 + }, + "end": { + "line": 89, + "column": 27 + } + } + }, + "range": [ + 1614, + 1637 + ], + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 89, + "column": 27 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1640, + 1644 + ], + "loc": { + "start": { + "line": 89, + "column": 30 + }, + "end": { + "line": 89, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "_context", + "range": [ + 1645, + 1653 + ], + "loc": { + "start": { + "line": 89, + "column": 35 + }, + "end": { + "line": 89, + "column": 43 + } + } + }, + "range": [ + 1640, + 1653 + ], + "loc": { + "start": { + "line": 89, + "column": 30 + }, + "end": { + "line": 89, + "column": 43 + } + } + }, + "range": [ + 1614, + 1653 + ], + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 89, + "column": 43 + } + } + }, + "range": [ + 1614, + 1654 + ], + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 89, + "column": 44 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "response", + "range": [ + 1667, + 1675 + ], + "loc": { + "start": { + "line": 91, + "column": 11 + }, + "end": { + "line": 91, + "column": 19 + } + } + }, + "range": [ + 1660, + 1676 + ], + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 20 + } + } + } + ], + "range": [ + 1226, + 1680 + ], + "loc": { + "start": { + "line": 71, + "column": 22 + }, + "end": { + "line": 92, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1217, + 1680 + ], + "loc": { + "start": { + "line": 71, + "column": 13 + }, + "end": { + "line": 92, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1206, + 1680 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 92, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} iError\n ", + "range": [ + 1166, + 1203 + ], + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} data\n ", + "range": [ + 1684, + 1719 + ], + "loc": { + "start": { + "line": 94, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "createResponse", + "range": [ + 1722, + 1736 + ], + "loc": { + "start": { + "line": 97, + "column": 2 + }, + "end": { + "line": 97, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "data", + "range": [ + 1737, + 1741 + ], + "loc": { + "start": { + "line": 97, + "column": 17 + }, + "end": { + "line": 97, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "response", + "range": [ + 1753, + 1761 + ], + "loc": { + "start": { + "line": 98, + "column": 8 + }, + "end": { + "line": 98, + "column": 16 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Response", + "range": [ + 1768, + 1776 + ], + "loc": { + "start": { + "line": 98, + "column": 23 + }, + "end": { + "line": 98, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "data", + "range": [ + 1777, + 1781 + ], + "loc": { + "start": { + "line": 98, + "column": 32 + }, + "end": { + "line": 98, + "column": 36 + } + } + } + ], + "range": [ + 1764, + 1782 + ], + "loc": { + "start": { + "line": 98, + "column": 19 + }, + "end": { + "line": 98, + "column": 37 + } + } + }, + "range": [ + 1753, + 1782 + ], + "loc": { + "start": { + "line": 98, + "column": 8 + }, + "end": { + "line": 98, + "column": 37 + } + } + } + ], + "kind": "let", + "range": [ + 1749, + 1783 + ], + "loc": { + "start": { + "line": 98, + "column": 4 + }, + "end": { + "line": 98, + "column": 38 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 1788, + 1796 + ], + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "runtimeContext", + "range": [ + 1797, + 1811 + ], + "loc": { + "start": { + "line": 99, + "column": 13 + }, + "end": { + "line": 99, + "column": 27 + } + } + }, + "range": [ + 1788, + 1811 + ], + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 27 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1814, + 1818 + ], + "loc": { + "start": { + "line": 99, + "column": 30 + }, + "end": { + "line": 99, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "_context", + "range": [ + 1819, + 1827 + ], + "loc": { + "start": { + "line": 99, + "column": 35 + }, + "end": { + "line": 99, + "column": 43 + } + } + }, + "range": [ + 1814, + 1827 + ], + "loc": { + "start": { + "line": 99, + "column": 30 + }, + "end": { + "line": 99, + "column": 43 + } + } + }, + "range": [ + 1788, + 1827 + ], + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 43 + } + } + }, + "range": [ + 1788, + 1828 + ], + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 44 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "response", + "range": [ + 1841, + 1849 + ], + "loc": { + "start": { + "line": 101, + "column": 11 + }, + "end": { + "line": 101, + "column": 19 + } + } + }, + "range": [ + 1834, + 1850 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 20 + } + } + } + ], + "range": [ + 1743, + 1854 + ], + "loc": { + "start": { + "line": 97, + "column": 23 + }, + "end": { + "line": 102, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1736, + 1854 + ], + "loc": { + "start": { + "line": 97, + "column": 16 + }, + "end": { + "line": 102, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1722, + 1854 + ], + "loc": { + "start": { + "line": 97, + "column": 2 + }, + "end": { + "line": 102, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} data\n ", + "range": [ + 1684, + 1719 + ], + "loc": { + "start": { + "line": 94, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 1858, + 1891 + ], + "loc": { + "start": { + "line": 104, + "column": 2 + }, + "end": { + "line": 106, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "request", + "range": [ + 1898, + 1905 + ], + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1921, + 1925 + ], + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 108, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_request", + "range": [ + 1926, + 1934 + ], + "loc": { + "start": { + "line": 108, + "column": 16 + }, + "end": { + "line": 108, + "column": 24 + } + } + }, + "range": [ + 1921, + 1934 + ], + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 108, + "column": 24 + } + } + }, + "range": [ + 1914, + 1935 + ], + "loc": { + "start": { + "line": 108, + "column": 4 + }, + "end": { + "line": 108, + "column": 25 + } + } + } + ], + "range": [ + 1908, + 1939 + ], + "loc": { + "start": { + "line": 107, + "column": 16 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1905, + 1939 + ], + "loc": { + "start": { + "line": 107, + "column": 13 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1894, + 1939 + ], + "loc": { + "start": { + "line": 107, + "column": 2 + }, + "end": { + "line": 109, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 1858, + 1891 + ], + "loc": { + "start": { + "line": 104, + "column": 2 + }, + "end": { + "line": 106, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 253, + 1941 + ], + "loc": { + "start": { + "line": 13, + "column": 39 + }, + "end": { + "line": 110, + "column": 1 + } + } + }, + "range": [ + 221, + 1941 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 110, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Lambda runtime context\n ", + "range": [ + 180, + 213 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 214, + 1941 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 110, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Lambda runtime context\n ", + "range": [ + 180, + 213 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 45, + 1941 + ], + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 110, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Lambda runtime context\n ", + "range": [ + 180, + 213 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} kernel\n ", + "range": [ + 257, + 294 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 429, + 461 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Function}\n ", + "range": [ + 511, + 545 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {*} event\n * @param {*} context\n * @returns {Runtime}\n ", + "range": [ + 671, + 750 + ], + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @private\n ", + "range": [ + 936, + 959 + ], + "loc": { + "start": { + "line": 58, + "column": 2 + }, + "end": { + "line": 60, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} iError\n ", + "range": [ + 1166, + 1203 + ], + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} data\n ", + "range": [ + 1684, + 1719 + ], + "loc": { + "start": { + "line": 94, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 1858, + 1891 + ], + "loc": { + "start": { + "line": 104, + "column": 2 + }, + "end": { + "line": 106, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/AWS/Region.js.json b/docs-api/deep-core/ast/source/AWS/Region.js.json new file mode 100644 index 00000000..0eca2b78 --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/Region.js.json @@ -0,0 +1,4729 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Available AWS regions\n ", + "range": [ + 61, + 93 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Region", + "range": [ + 107, + 113 + ], + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 19 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "ANY", + "range": [ + 164, + 167 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "*", + "raw": "'*'", + "range": [ + 183, + 186 + ], + "loc": { + "start": { + "line": 15, + "column": 11 + }, + "end": { + "line": 15, + "column": 14 + } + } + }, + "range": [ + 176, + 187 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 15 + } + } + } + ], + "range": [ + 170, + 191 + ], + "loc": { + "start": { + "line": 14, + "column": 19 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 167, + 191 + ], + "loc": { + "start": { + "line": 14, + "column": 16 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 153, + 191 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 118, + 150 + ], + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 195, + 227 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "ASIA_PACIFIC_TOKYO", + "range": [ + 241, + 259 + ], + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 31 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "ap-northeast-1", + "raw": "'ap-northeast-1'", + "range": [ + 275, + 291 + ], + "loc": { + "start": { + "line": 22, + "column": 11 + }, + "end": { + "line": 22, + "column": 27 + } + } + }, + "range": [ + 268, + 292 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 28 + } + } + } + ], + "range": [ + 262, + 296 + ], + "loc": { + "start": { + "line": 21, + "column": 34 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 259, + 296 + ], + "loc": { + "start": { + "line": 21, + "column": 31 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 230, + 296 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 195, + 227 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 300, + 332 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "ASIA_PACIFIC_SINGAPORE", + "range": [ + 346, + 368 + ], + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 35 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "ap-southeast-1", + "raw": "'ap-southeast-1'", + "range": [ + 384, + 400 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 27 + } + } + }, + "range": [ + 377, + 401 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 28 + } + } + } + ], + "range": [ + 371, + 405 + ], + "loc": { + "start": { + "line": 28, + "column": 38 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 368, + 405 + ], + "loc": { + "start": { + "line": 28, + "column": 35 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 335, + 405 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 300, + 332 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 409, + 441 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "ASIA_PACIFIC_SYDNEY", + "range": [ + 455, + 474 + ], + "loc": { + "start": { + "line": 35, + "column": 13 + }, + "end": { + "line": 35, + "column": 32 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "ap-southeast-2", + "raw": "'ap-southeast-2'", + "range": [ + 490, + 506 + ], + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 36, + "column": 27 + } + } + }, + "range": [ + 483, + 507 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 28 + } + } + } + ], + "range": [ + 477, + 511 + ], + "loc": { + "start": { + "line": 35, + "column": 35 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 474, + 511 + ], + "loc": { + "start": { + "line": 35, + "column": 32 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 444, + 511 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 409, + 441 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 515, + 547 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "EU_FRANKFURT", + "range": [ + 561, + 573 + ], + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 25 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "eu-central-1", + "raw": "'eu-central-1'", + "range": [ + 589, + 603 + ], + "loc": { + "start": { + "line": 43, + "column": 11 + }, + "end": { + "line": 43, + "column": 25 + } + } + }, + "range": [ + 582, + 604 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 26 + } + } + } + ], + "range": [ + 576, + 608 + ], + "loc": { + "start": { + "line": 42, + "column": 28 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 573, + 608 + ], + "loc": { + "start": { + "line": 42, + "column": 25 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 550, + 608 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 515, + 547 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 612, + 644 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "EU_IRELAND", + "range": [ + 658, + 668 + ], + "loc": { + "start": { + "line": 49, + "column": 13 + }, + "end": { + "line": 49, + "column": 23 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "eu-west-1", + "raw": "'eu-west-1'", + "range": [ + 684, + 695 + ], + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 50, + "column": 22 + } + } + }, + "range": [ + 677, + 696 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 23 + } + } + } + ], + "range": [ + 671, + 700 + ], + "loc": { + "start": { + "line": 49, + "column": 26 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 668, + 700 + ], + "loc": { + "start": { + "line": 49, + "column": 23 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 647, + 700 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 612, + 644 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 704, + 736 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "SOUTH_AMERICA_SAO_PAULO", + "range": [ + 750, + 773 + ], + "loc": { + "start": { + "line": 56, + "column": 13 + }, + "end": { + "line": 56, + "column": 36 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "sa-east-1", + "raw": "'sa-east-1'", + "range": [ + 789, + 800 + ], + "loc": { + "start": { + "line": 57, + "column": 11 + }, + "end": { + "line": 57, + "column": 22 + } + } + }, + "range": [ + 782, + 801 + ], + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 23 + } + } + } + ], + "range": [ + 776, + 805 + ], + "loc": { + "start": { + "line": 56, + "column": 39 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 773, + 805 + ], + "loc": { + "start": { + "line": 56, + "column": 36 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 739, + 805 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 58, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 704, + 736 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 809, + 841 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "US_EAST_N_VIRGINIA", + "range": [ + 855, + 873 + ], + "loc": { + "start": { + "line": 63, + "column": 13 + }, + "end": { + "line": 63, + "column": 31 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "us-east-1", + "raw": "'us-east-1'", + "range": [ + 889, + 900 + ], + "loc": { + "start": { + "line": 64, + "column": 11 + }, + "end": { + "line": 64, + "column": 22 + } + } + }, + "range": [ + 882, + 901 + ], + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 23 + } + } + } + ], + "range": [ + 876, + 905 + ], + "loc": { + "start": { + "line": 63, + "column": 34 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 873, + 905 + ], + "loc": { + "start": { + "line": 63, + "column": 31 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 844, + 905 + ], + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 65, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 809, + 841 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 909, + 941 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "US_WEST_N_CALIFORNIA", + "range": [ + 955, + 975 + ], + "loc": { + "start": { + "line": 70, + "column": 13 + }, + "end": { + "line": 70, + "column": 33 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "us-west-1", + "raw": "'us-west-1'", + "range": [ + 991, + 1002 + ], + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 22 + } + } + }, + "range": [ + 984, + 1003 + ], + "loc": { + "start": { + "line": 71, + "column": 4 + }, + "end": { + "line": 71, + "column": 23 + } + } + } + ], + "range": [ + 978, + 1007 + ], + "loc": { + "start": { + "line": 70, + "column": 36 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 975, + 1007 + ], + "loc": { + "start": { + "line": 70, + "column": 33 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 944, + 1007 + ], + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 72, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 909, + 941 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1011, + 1043 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 76, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "US_WEST_OREGON", + "range": [ + 1057, + 1071 + ], + "loc": { + "start": { + "line": 77, + "column": 13 + }, + "end": { + "line": 77, + "column": 27 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "us-west-2", + "raw": "'us-west-2'", + "range": [ + 1087, + 1098 + ], + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 22 + } + } + }, + "range": [ + 1080, + 1099 + ], + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 23 + } + } + } + ], + "range": [ + 1074, + 1103 + ], + "loc": { + "start": { + "line": 77, + "column": 30 + }, + "end": { + "line": 79, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1071, + 1103 + ], + "loc": { + "start": { + "line": 77, + "column": 27 + }, + "end": { + "line": 79, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1046, + 1103 + ], + "loc": { + "start": { + "line": 77, + "column": 2 + }, + "end": { + "line": 79, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1011, + 1043 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 76, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Boolean}\n ", + "range": [ + 1107, + 1166 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 84, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "exists", + "range": [ + 1176, + 1182 + ], + "loc": { + "start": { + "line": 85, + "column": 9 + }, + "end": { + "line": 85, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1183, + 1187 + ], + "loc": { + "start": { + "line": 85, + "column": 16 + }, + "end": { + "line": 85, + "column": 20 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "UnaryExpression", + "operator": "-", + "argument": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 1203, + 1204 + ], + "loc": { + "start": { + "line": 86, + "column": 12 + }, + "end": { + "line": 86, + "column": 13 + } + } + }, + "prefix": true, + "range": [ + 1202, + 1204 + ], + "loc": { + "start": { + "line": 86, + "column": 11 + }, + "end": { + "line": 86, + "column": 13 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Region", + "range": [ + 1209, + 1215 + ], + "loc": { + "start": { + "line": 86, + "column": 18 + }, + "end": { + "line": 86, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "list", + "range": [ + 1216, + 1220 + ], + "loc": { + "start": { + "line": 86, + "column": 25 + }, + "end": { + "line": 86, + "column": 29 + } + } + }, + "range": [ + 1209, + 1220 + ], + "loc": { + "start": { + "line": 86, + "column": 18 + }, + "end": { + "line": 86, + "column": 29 + } + } + }, + "arguments": [], + "range": [ + 1209, + 1222 + ], + "loc": { + "start": { + "line": 86, + "column": 18 + }, + "end": { + "line": 86, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "indexOf", + "range": [ + 1223, + 1230 + ], + "loc": { + "start": { + "line": 86, + "column": 32 + }, + "end": { + "line": 86, + "column": 39 + } + } + }, + "range": [ + 1209, + 1230 + ], + "loc": { + "start": { + "line": 86, + "column": 18 + }, + "end": { + "line": 86, + "column": 39 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1231, + 1235 + ], + "loc": { + "start": { + "line": 86, + "column": 40 + }, + "end": { + "line": 86, + "column": 44 + } + } + } + ], + "range": [ + 1209, + 1236 + ], + "loc": { + "start": { + "line": 86, + "column": 18 + }, + "end": { + "line": 86, + "column": 45 + } + } + }, + "range": [ + 1202, + 1236 + ], + "loc": { + "start": { + "line": 86, + "column": 11 + }, + "end": { + "line": 86, + "column": 45 + } + } + }, + "range": [ + 1195, + 1237 + ], + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 46 + } + } + } + ], + "range": [ + 1189, + 1241 + ], + "loc": { + "start": { + "line": 85, + "column": 22 + }, + "end": { + "line": 87, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1182, + 1241 + ], + "loc": { + "start": { + "line": 85, + "column": 15 + }, + "end": { + "line": 87, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1169, + 1241 + ], + "loc": { + "start": { + "line": 85, + "column": 2 + }, + "end": { + "line": 87, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Boolean}\n ", + "range": [ + 1107, + 1166 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 84, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String[]}\n ", + "range": [ + 1245, + 1279 + ], + "loc": { + "start": { + "line": 89, + "column": 2 + }, + "end": { + "line": 91, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "list", + "range": [ + 1289, + 1293 + ], + "loc": { + "start": { + "line": 92, + "column": 9 + }, + "end": { + "line": 92, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ArrayExpression", + "elements": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Region", + "range": [ + 1317, + 1323 + ], + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "ANY", + "range": [ + 1324, + 1327 + ], + "loc": { + "start": { + "line": 94, + "column": 13 + }, + "end": { + "line": 94, + "column": 16 + } + } + }, + "range": [ + 1317, + 1327 + ], + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 16 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Region", + "range": [ + 1335, + 1341 + ], + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 95, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "ASIA_PACIFIC_TOKYO", + "range": [ + 1342, + 1360 + ], + "loc": { + "start": { + "line": 95, + "column": 13 + }, + "end": { + "line": 95, + "column": 31 + } + } + }, + "range": [ + 1335, + 1360 + ], + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 95, + "column": 31 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Region", + "range": [ + 1368, + 1374 + ], + "loc": { + "start": { + "line": 96, + "column": 6 + }, + "end": { + "line": 96, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "ASIA_PACIFIC_SYDNEY", + "range": [ + 1375, + 1394 + ], + "loc": { + "start": { + "line": 96, + "column": 13 + }, + "end": { + "line": 96, + "column": 32 + } + } + }, + "range": [ + 1368, + 1394 + ], + "loc": { + "start": { + "line": 96, + "column": 6 + }, + "end": { + "line": 96, + "column": 32 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Region", + "range": [ + 1402, + 1408 + ], + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "ASIA_PACIFIC_SINGAPORE", + "range": [ + 1409, + 1431 + ], + "loc": { + "start": { + "line": 97, + "column": 13 + }, + "end": { + "line": 97, + "column": 35 + } + } + }, + "range": [ + 1402, + 1431 + ], + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 35 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Region", + "range": [ + 1439, + 1445 + ], + "loc": { + "start": { + "line": 98, + "column": 6 + }, + "end": { + "line": 98, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "EU_FRANKFURT", + "range": [ + 1446, + 1458 + ], + "loc": { + "start": { + "line": 98, + "column": 13 + }, + "end": { + "line": 98, + "column": 25 + } + } + }, + "range": [ + 1439, + 1458 + ], + "loc": { + "start": { + "line": 98, + "column": 6 + }, + "end": { + "line": 98, + "column": 25 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Region", + "range": [ + 1466, + 1472 + ], + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "EU_IRELAND", + "range": [ + 1473, + 1483 + ], + "loc": { + "start": { + "line": 99, + "column": 13 + }, + "end": { + "line": 99, + "column": 23 + } + } + }, + "range": [ + 1466, + 1483 + ], + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 23 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Region", + "range": [ + 1491, + 1497 + ], + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "SOUTH_AMERICA_SAO_PAULO", + "range": [ + 1498, + 1521 + ], + "loc": { + "start": { + "line": 100, + "column": 13 + }, + "end": { + "line": 100, + "column": 36 + } + } + }, + "range": [ + 1491, + 1521 + ], + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 36 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Region", + "range": [ + 1529, + 1535 + ], + "loc": { + "start": { + "line": 101, + "column": 6 + }, + "end": { + "line": 101, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "US_EAST_N_VIRGINIA", + "range": [ + 1536, + 1554 + ], + "loc": { + "start": { + "line": 101, + "column": 13 + }, + "end": { + "line": 101, + "column": 31 + } + } + }, + "range": [ + 1529, + 1554 + ], + "loc": { + "start": { + "line": 101, + "column": 6 + }, + "end": { + "line": 101, + "column": 31 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Region", + "range": [ + 1562, + 1568 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "US_WEST_N_CALIFORNIA", + "range": [ + 1569, + 1589 + ], + "loc": { + "start": { + "line": 102, + "column": 13 + }, + "end": { + "line": 102, + "column": 33 + } + } + }, + "range": [ + 1562, + 1589 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 33 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Region", + "range": [ + 1597, + 1603 + ], + "loc": { + "start": { + "line": 103, + "column": 6 + }, + "end": { + "line": 103, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "US_WEST_OREGON", + "range": [ + 1604, + 1618 + ], + "loc": { + "start": { + "line": 103, + "column": 13 + }, + "end": { + "line": 103, + "column": 27 + } + } + }, + "range": [ + 1597, + 1618 + ], + "loc": { + "start": { + "line": 103, + "column": 6 + }, + "end": { + "line": 103, + "column": 27 + } + } + } + ], + "range": [ + 1309, + 1625 + ], + "loc": { + "start": { + "line": 93, + "column": 11 + }, + "end": { + "line": 104, + "column": 5 + } + } + }, + "range": [ + 1302, + 1626 + ], + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 104, + "column": 6 + } + } + } + ], + "range": [ + 1296, + 1630 + ], + "loc": { + "start": { + "line": 92, + "column": 16 + }, + "end": { + "line": 105, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1293, + 1630 + ], + "loc": { + "start": { + "line": 92, + "column": 13 + }, + "end": { + "line": 105, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1282, + 1630 + ], + "loc": { + "start": { + "line": 92, + "column": 2 + }, + "end": { + "line": 105, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String[]}\n ", + "range": [ + 1245, + 1279 + ], + "loc": { + "start": { + "line": 89, + "column": 2 + }, + "end": { + "line": 91, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * List method alias\n *\n * @returns {String[]}\n ", + "range": [ + 1634, + 1696 + ], + "loc": { + "start": { + "line": 107, + "column": 2 + }, + "end": { + "line": 111, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "all", + "range": [ + 1706, + 1709 + ], + "loc": { + "start": { + "line": 112, + "column": 9 + }, + "end": { + "line": 112, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Region", + "range": [ + 1725, + 1731 + ], + "loc": { + "start": { + "line": 113, + "column": 11 + }, + "end": { + "line": 113, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "list", + "range": [ + 1732, + 1736 + ], + "loc": { + "start": { + "line": 113, + "column": 18 + }, + "end": { + "line": 113, + "column": 22 + } + } + }, + "range": [ + 1725, + 1736 + ], + "loc": { + "start": { + "line": 113, + "column": 11 + }, + "end": { + "line": 113, + "column": 22 + } + } + }, + "arguments": [], + "range": [ + 1725, + 1738 + ], + "loc": { + "start": { + "line": 113, + "column": 11 + }, + "end": { + "line": 113, + "column": 24 + } + } + }, + "range": [ + 1718, + 1739 + ], + "loc": { + "start": { + "line": 113, + "column": 4 + }, + "end": { + "line": 113, + "column": 25 + } + } + } + ], + "range": [ + 1712, + 1743 + ], + "loc": { + "start": { + "line": 112, + "column": 15 + }, + "end": { + "line": 114, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1709, + 1743 + ], + "loc": { + "start": { + "line": 112, + "column": 12 + }, + "end": { + "line": 114, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1699, + 1743 + ], + "loc": { + "start": { + "line": 112, + "column": 2 + }, + "end": { + "line": 114, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * List method alias\n *\n * @returns {String[]}\n ", + "range": [ + 1634, + 1696 + ], + "loc": { + "start": { + "line": 107, + "column": 2 + }, + "end": { + "line": 111, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {string} defaultRegion\n * @param {array} availableRegions\n * @returns {string}\n ", + "range": [ + 1747, + 1851 + ], + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "getAppropriateAwsRegion", + "range": [ + 1861, + 1884 + ], + "loc": { + "start": { + "line": 121, + "column": 9 + }, + "end": { + "line": 121, + "column": 32 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "defaultRegion", + "range": [ + 1885, + 1898 + ], + "loc": { + "start": { + "line": 121, + "column": 33 + }, + "end": { + "line": 121, + "column": 46 + } + } + }, + { + "type": "Identifier", + "name": "availableRegions", + "range": [ + 1900, + 1916 + ], + "loc": { + "start": { + "line": 121, + "column": 48 + }, + "end": { + "line": 121, + "column": 64 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "availableRegions", + "range": [ + 1928, + 1944 + ], + "loc": { + "start": { + "line": 122, + "column": 8 + }, + "end": { + "line": 122, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "indexOf", + "range": [ + 1945, + 1952 + ], + "loc": { + "start": { + "line": 122, + "column": 25 + }, + "end": { + "line": 122, + "column": 32 + } + } + }, + "range": [ + 1928, + 1952 + ], + "loc": { + "start": { + "line": 122, + "column": 8 + }, + "end": { + "line": 122, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "defaultRegion", + "range": [ + 1953, + 1966 + ], + "loc": { + "start": { + "line": 122, + "column": 33 + }, + "end": { + "line": 122, + "column": 46 + } + } + } + ], + "range": [ + 1928, + 1967 + ], + "loc": { + "start": { + "line": 122, + "column": 8 + }, + "end": { + "line": 122, + "column": 47 + } + } + }, + "right": { + "type": "UnaryExpression", + "operator": "-", + "argument": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 1973, + 1974 + ], + "loc": { + "start": { + "line": 122, + "column": 53 + }, + "end": { + "line": 122, + "column": 54 + } + } + }, + "prefix": true, + "range": [ + 1972, + 1974 + ], + "loc": { + "start": { + "line": 122, + "column": 52 + }, + "end": { + "line": 122, + "column": 54 + } + } + }, + "range": [ + 1928, + 1974 + ], + "loc": { + "start": { + "line": 122, + "column": 8 + }, + "end": { + "line": 122, + "column": 54 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "defaultRegion", + "range": [ + 1991, + 2004 + ], + "loc": { + "start": { + "line": 123, + "column": 13 + }, + "end": { + "line": 123, + "column": 26 + } + } + }, + "range": [ + 1984, + 2005 + ], + "loc": { + "start": { + "line": 123, + "column": 6 + }, + "end": { + "line": 123, + "column": 27 + } + } + } + ], + "range": [ + 1976, + 2011 + ], + "loc": { + "start": { + "line": 122, + "column": 56 + }, + "end": { + "line": 124, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1924, + 2011 + ], + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 124, + "column": 5 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "regionContinent", + "range": [ + 2021, + 2036 + ], + "loc": { + "start": { + "line": 126, + "column": 8 + }, + "end": { + "line": 126, + "column": 23 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "defaultRegion", + "range": [ + 2039, + 2052 + ], + "loc": { + "start": { + "line": 126, + "column": 26 + }, + "end": { + "line": 126, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "split", + "range": [ + 2053, + 2058 + ], + "loc": { + "start": { + "line": 126, + "column": 40 + }, + "end": { + "line": 126, + "column": 45 + } + } + }, + "range": [ + 2039, + 2058 + ], + "loc": { + "start": { + "line": 126, + "column": 26 + }, + "end": { + "line": 126, + "column": 45 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "-", + "raw": "'-'", + "range": [ + 2059, + 2062 + ], + "loc": { + "start": { + "line": 126, + "column": 46 + }, + "end": { + "line": 126, + "column": 49 + } + } + } + ], + "range": [ + 2039, + 2063 + ], + "loc": { + "start": { + "line": 126, + "column": 26 + }, + "end": { + "line": 126, + "column": 50 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 2064, + 2065 + ], + "loc": { + "start": { + "line": 126, + "column": 51 + }, + "end": { + "line": 126, + "column": 52 + } + } + }, + "range": [ + 2039, + 2066 + ], + "loc": { + "start": { + "line": 126, + "column": 26 + }, + "end": { + "line": 126, + "column": 53 + } + } + }, + "range": [ + 2021, + 2066 + ], + "loc": { + "start": { + "line": 126, + "column": 8 + }, + "end": { + "line": 126, + "column": 53 + } + } + } + ], + "kind": "let", + "range": [ + 2017, + 2067 + ], + "loc": { + "start": { + "line": 126, + "column": 4 + }, + "end": { + "line": 126, + "column": 54 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "regionKey", + "range": [ + 2082, + 2091 + ], + "loc": { + "start": { + "line": 128, + "column": 13 + }, + "end": { + "line": 128, + "column": 22 + } + } + }, + "init": null, + "range": [ + 2082, + 2091 + ], + "loc": { + "start": { + "line": 128, + "column": 13 + }, + "end": { + "line": 128, + "column": 22 + } + } + } + ], + "kind": "let", + "range": [ + 2078, + 2091 + ], + "loc": { + "start": { + "line": 128, + "column": 9 + }, + "end": { + "line": 128, + "column": 22 + } + } + }, + "right": { + "type": "Identifier", + "name": "availableRegions", + "range": [ + 2095, + 2111 + ], + "loc": { + "start": { + "line": 128, + "column": 26 + }, + "end": { + "line": 128, + "column": 42 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "availableRegions", + "range": [ + 2126, + 2142 + ], + "loc": { + "start": { + "line": 129, + "column": 11 + }, + "end": { + "line": 129, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 2143, + 2157 + ], + "loc": { + "start": { + "line": 129, + "column": 28 + }, + "end": { + "line": 129, + "column": 42 + } + } + }, + "range": [ + 2126, + 2157 + ], + "loc": { + "start": { + "line": 129, + "column": 11 + }, + "end": { + "line": 129, + "column": 42 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "regionKey", + "range": [ + 2158, + 2167 + ], + "loc": { + "start": { + "line": 129, + "column": 43 + }, + "end": { + "line": 129, + "column": 52 + } + } + } + ], + "range": [ + 2126, + 2168 + ], + "loc": { + "start": { + "line": 129, + "column": 11 + }, + "end": { + "line": 129, + "column": 53 + } + } + }, + "prefix": true, + "range": [ + 2125, + 2168 + ], + "loc": { + "start": { + "line": 129, + "column": 10 + }, + "end": { + "line": 129, + "column": 53 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 2180, + 2189 + ], + "loc": { + "start": { + "line": 130, + "column": 8 + }, + "end": { + "line": 130, + "column": 17 + } + } + } + ], + "range": [ + 2170, + 2197 + ], + "loc": { + "start": { + "line": 129, + "column": 55 + }, + "end": { + "line": 131, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 2121, + 2197 + ], + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 131, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "region", + "range": [ + 2209, + 2215 + ], + "loc": { + "start": { + "line": 133, + "column": 10 + }, + "end": { + "line": 133, + "column": 16 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "availableRegions", + "range": [ + 2218, + 2234 + ], + "loc": { + "start": { + "line": 133, + "column": 19 + }, + "end": { + "line": 133, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "regionKey", + "range": [ + 2235, + 2244 + ], + "loc": { + "start": { + "line": 133, + "column": 36 + }, + "end": { + "line": 133, + "column": 45 + } + } + }, + "range": [ + 2218, + 2245 + ], + "loc": { + "start": { + "line": 133, + "column": 19 + }, + "end": { + "line": 133, + "column": 46 + } + } + }, + "range": [ + 2209, + 2245 + ], + "loc": { + "start": { + "line": 133, + "column": 10 + }, + "end": { + "line": 133, + "column": 46 + } + } + } + ], + "kind": "let", + "range": [ + 2205, + 2246 + ], + "loc": { + "start": { + "line": 133, + "column": 6 + }, + "end": { + "line": 133, + "column": 47 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "Identifier", + "name": "region", + "range": [ + 2258, + 2264 + ], + "loc": { + "start": { + "line": 135, + "column": 10 + }, + "end": { + "line": 135, + "column": 16 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Region", + "range": [ + 2269, + 2275 + ], + "loc": { + "start": { + "line": 135, + "column": 21 + }, + "end": { + "line": 135, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "ANY", + "range": [ + 2276, + 2279 + ], + "loc": { + "start": { + "line": 135, + "column": 28 + }, + "end": { + "line": 135, + "column": 31 + } + } + }, + "range": [ + 2269, + 2279 + ], + "loc": { + "start": { + "line": 135, + "column": 21 + }, + "end": { + "line": 135, + "column": 31 + } + } + }, + "range": [ + 2258, + 2279 + ], + "loc": { + "start": { + "line": 135, + "column": 10 + }, + "end": { + "line": 135, + "column": 31 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "defaultRegion", + "range": [ + 2298, + 2311 + ], + "loc": { + "start": { + "line": 136, + "column": 15 + }, + "end": { + "line": 136, + "column": 28 + } + } + }, + "range": [ + 2291, + 2312 + ], + "loc": { + "start": { + "line": 136, + "column": 8 + }, + "end": { + "line": 136, + "column": 29 + } + } + } + ], + "range": [ + 2281, + 2320 + ], + "loc": { + "start": { + "line": 135, + "column": 33 + }, + "end": { + "line": 137, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 2254, + 2320 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 137, + "column": 7 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "region", + "range": [ + 2332, + 2338 + ], + "loc": { + "start": { + "line": 139, + "column": 10 + }, + "end": { + "line": 139, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "split", + "range": [ + 2339, + 2344 + ], + "loc": { + "start": { + "line": 139, + "column": 17 + }, + "end": { + "line": 139, + "column": 22 + } + } + }, + "range": [ + 2332, + 2344 + ], + "loc": { + "start": { + "line": 139, + "column": 10 + }, + "end": { + "line": 139, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "-", + "raw": "'-'", + "range": [ + 2345, + 2348 + ], + "loc": { + "start": { + "line": 139, + "column": 23 + }, + "end": { + "line": 139, + "column": 26 + } + } + } + ], + "range": [ + 2332, + 2349 + ], + "loc": { + "start": { + "line": 139, + "column": 10 + }, + "end": { + "line": 139, + "column": 27 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 2350, + 2351 + ], + "loc": { + "start": { + "line": 139, + "column": 28 + }, + "end": { + "line": 139, + "column": 29 + } + } + }, + "range": [ + 2332, + 2352 + ], + "loc": { + "start": { + "line": 139, + "column": 10 + }, + "end": { + "line": 139, + "column": 30 + } + } + }, + "right": { + "type": "Identifier", + "name": "regionContinent", + "range": [ + 2357, + 2372 + ], + "loc": { + "start": { + "line": 139, + "column": 35 + }, + "end": { + "line": 139, + "column": 50 + } + } + }, + "range": [ + 2332, + 2372 + ], + "loc": { + "start": { + "line": 139, + "column": 10 + }, + "end": { + "line": 139, + "column": 50 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "region", + "range": [ + 2391, + 2397 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 140, + "column": 21 + } + } + }, + "range": [ + 2384, + 2398 + ], + "loc": { + "start": { + "line": 140, + "column": 8 + }, + "end": { + "line": 140, + "column": 22 + } + } + } + ], + "range": [ + 2374, + 2406 + ], + "loc": { + "start": { + "line": 139, + "column": 52 + }, + "end": { + "line": 141, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 2328, + 2406 + ], + "loc": { + "start": { + "line": 139, + "column": 6 + }, + "end": { + "line": 141, + "column": 7 + } + } + } + ], + "range": [ + 2113, + 2412 + ], + "loc": { + "start": { + "line": 128, + "column": 44 + }, + "end": { + "line": 142, + "column": 5 + } + } + }, + "each": false, + "range": [ + 2073, + 2412 + ], + "loc": { + "start": { + "line": 128, + "column": 4 + }, + "end": { + "line": 142, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "availableRegions", + "range": [ + 2425, + 2441 + ], + "loc": { + "start": { + "line": 144, + "column": 11 + }, + "end": { + "line": 144, + "column": 27 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 2442, + 2443 + ], + "loc": { + "start": { + "line": 144, + "column": 28 + }, + "end": { + "line": 144, + "column": 29 + } + } + }, + "range": [ + 2425, + 2444 + ], + "loc": { + "start": { + "line": 144, + "column": 11 + }, + "end": { + "line": 144, + "column": 30 + } + } + }, + "range": [ + 2418, + 2445 + ], + "loc": { + "start": { + "line": 144, + "column": 4 + }, + "end": { + "line": 144, + "column": 31 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " fallback to first available region", + "range": [ + 2446, + 2483 + ], + "loc": { + "start": { + "line": 144, + "column": 32 + }, + "end": { + "line": 144, + "column": 69 + } + } + } + ] + } + ], + "range": [ + 1918, + 2487 + ], + "loc": { + "start": { + "line": 121, + "column": 66 + }, + "end": { + "line": 145, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1884, + 2487 + ], + "loc": { + "start": { + "line": 121, + "column": 32 + }, + "end": { + "line": 145, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1854, + 2487 + ], + "loc": { + "start": { + "line": 121, + "column": 2 + }, + "end": { + "line": 145, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {string} defaultRegion\n * @param {array} availableRegions\n * @returns {string}\n ", + "range": [ + 1747, + 1851 + ], + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 114, + 2489 + ], + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 146, + "column": 1 + } + } + }, + "range": [ + 101, + 2489 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 146, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Available AWS regions\n ", + "range": [ + 61, + 93 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 94, + 2489 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 146, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Available AWS regions\n ", + "range": [ + 61, + 93 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 2489 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 146, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Available AWS regions\n ", + "range": [ + 61, + 93 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 118, + 150 + ], + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 195, + 227 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 300, + 332 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 409, + 441 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 515, + 547 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 612, + 644 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 704, + 736 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 809, + 841 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 909, + 941 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1011, + 1043 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 76, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Boolean}\n ", + "range": [ + 1107, + 1166 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 84, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String[]}\n ", + "range": [ + 1245, + 1279 + ], + "loc": { + "start": { + "line": 89, + "column": 2 + }, + "end": { + "line": 91, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * List method alias\n *\n * @returns {String[]}\n ", + "range": [ + 1634, + 1696 + ], + "loc": { + "start": { + "line": 107, + "column": 2 + }, + "end": { + "line": 111, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {string} defaultRegion\n * @param {array} availableRegions\n * @returns {string}\n ", + "range": [ + 1747, + 1851 + ], + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " fallback to first available region", + "range": [ + 2446, + 2483 + ], + "loc": { + "start": { + "line": 144, + "column": 32 + }, + "end": { + "line": 144, + "column": 69 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/AWS/Service.js.json b/docs-api/deep-core/ast/source/AWS/Service.js.json new file mode 100644 index 00000000..1fbef069 --- /dev/null +++ b/docs-api/deep-core/ast/source/AWS/Service.js.json @@ -0,0 +1,3967 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Available AWS services\n ", + "range": [ + 61, + 94 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Service", + "range": [ + 108, + 115 + ], + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 20 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "LAMBDA", + "range": [ + 166, + 172 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "lambda", + "raw": "'lambda'", + "range": [ + 188, + 196 + ], + "loc": { + "start": { + "line": 15, + "column": 11 + }, + "end": { + "line": 15, + "column": 19 + } + } + }, + "range": [ + 181, + 197 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 20 + } + } + } + ], + "range": [ + 175, + 201 + ], + "loc": { + "start": { + "line": 14, + "column": 22 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 172, + 201 + ], + "loc": { + "start": { + "line": 14, + "column": 19 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 155, + 201 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 120, + 152 + ], + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 205, + 237 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "SIMPLE_STORAGE_SERVICE", + "range": [ + 251, + 273 + ], + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 35 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "s3", + "raw": "'s3'", + "range": [ + 289, + 293 + ], + "loc": { + "start": { + "line": 22, + "column": 11 + }, + "end": { + "line": 22, + "column": 15 + } + } + }, + "range": [ + 282, + 294 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 16 + } + } + } + ], + "range": [ + 276, + 298 + ], + "loc": { + "start": { + "line": 21, + "column": 38 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 273, + 298 + ], + "loc": { + "start": { + "line": 21, + "column": 35 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 240, + 298 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 205, + 237 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 302, + 334 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "DYNAMO_DB", + "range": [ + 348, + 357 + ], + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 22 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "dynamodb", + "raw": "'dynamodb'", + "range": [ + 373, + 383 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 21 + } + } + }, + "range": [ + 366, + 384 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 22 + } + } + } + ], + "range": [ + 360, + 388 + ], + "loc": { + "start": { + "line": 28, + "column": 25 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 357, + 388 + ], + "loc": { + "start": { + "line": 28, + "column": 22 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 337, + 388 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 302, + 334 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 392, + 424 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "SIMPLE_NOTIFICATION_SERVICE", + "range": [ + 438, + 465 + ], + "loc": { + "start": { + "line": 35, + "column": 13 + }, + "end": { + "line": 35, + "column": 40 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "sns", + "raw": "'sns'", + "range": [ + 481, + 486 + ], + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 36, + "column": 16 + } + } + }, + "range": [ + 474, + 487 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 17 + } + } + } + ], + "range": [ + 468, + 491 + ], + "loc": { + "start": { + "line": 35, + "column": 43 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 465, + 491 + ], + "loc": { + "start": { + "line": 35, + "column": 40 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 427, + 491 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 392, + 424 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 495, + 527 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "COGNITO_IDENTITY", + "range": [ + 541, + 557 + ], + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 29 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "cognito-identity", + "raw": "'cognito-identity'", + "range": [ + 573, + 591 + ], + "loc": { + "start": { + "line": 43, + "column": 11 + }, + "end": { + "line": 43, + "column": 29 + } + } + }, + "range": [ + 566, + 592 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 30 + } + } + } + ], + "range": [ + 560, + 596 + ], + "loc": { + "start": { + "line": 42, + "column": 32 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 557, + 596 + ], + "loc": { + "start": { + "line": 42, + "column": 29 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 530, + 596 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 495, + 527 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 600, + 632 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "COGNITO_SYNC", + "range": [ + 646, + 658 + ], + "loc": { + "start": { + "line": 49, + "column": 13 + }, + "end": { + "line": 49, + "column": 25 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "cognito-sync", + "raw": "'cognito-sync'", + "range": [ + 674, + 688 + ], + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 50, + "column": 25 + } + } + }, + "range": [ + 667, + 689 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 26 + } + } + } + ], + "range": [ + 661, + 693 + ], + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 658, + 693 + ], + "loc": { + "start": { + "line": 49, + "column": 25 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 635, + 693 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 600, + 632 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 697, + 729 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "ELASTIC_CACHE", + "range": [ + 743, + 756 + ], + "loc": { + "start": { + "line": 56, + "column": 13 + }, + "end": { + "line": 56, + "column": 26 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "elasticache", + "raw": "'elasticache'", + "range": [ + 772, + 785 + ], + "loc": { + "start": { + "line": 57, + "column": 11 + }, + "end": { + "line": 57, + "column": 24 + } + } + }, + "range": [ + 765, + 786 + ], + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 25 + } + } + } + ], + "range": [ + 759, + 790 + ], + "loc": { + "start": { + "line": 56, + "column": 29 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 756, + 790 + ], + "loc": { + "start": { + "line": 56, + "column": 26 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 732, + 790 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 58, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 697, + 729 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 794, + 826 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "IDENTITY_AND_ACCESS_MANAGEMENT", + "range": [ + 840, + 870 + ], + "loc": { + "start": { + "line": 63, + "column": 13 + }, + "end": { + "line": 63, + "column": 43 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "iam", + "raw": "'iam'", + "range": [ + 886, + 891 + ], + "loc": { + "start": { + "line": 64, + "column": 11 + }, + "end": { + "line": 64, + "column": 16 + } + } + }, + "range": [ + 879, + 892 + ], + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 17 + } + } + } + ], + "range": [ + 873, + 896 + ], + "loc": { + "start": { + "line": 63, + "column": 46 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 870, + 896 + ], + "loc": { + "start": { + "line": 63, + "column": 43 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 829, + 896 + ], + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 65, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 794, + 826 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 900, + 932 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "KINESIS", + "range": [ + 946, + 953 + ], + "loc": { + "start": { + "line": 70, + "column": 13 + }, + "end": { + "line": 70, + "column": 20 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "kinesis", + "raw": "'kinesis'", + "range": [ + 969, + 978 + ], + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 20 + } + } + }, + "range": [ + 962, + 979 + ], + "loc": { + "start": { + "line": 71, + "column": 4 + }, + "end": { + "line": 71, + "column": 21 + } + } + } + ], + "range": [ + 956, + 983 + ], + "loc": { + "start": { + "line": 70, + "column": 23 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 953, + 983 + ], + "loc": { + "start": { + "line": 70, + "column": 20 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 935, + 983 + ], + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 72, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 900, + 932 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 987, + 1019 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 76, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "CLOUD_FRONT", + "range": [ + 1033, + 1044 + ], + "loc": { + "start": { + "line": 77, + "column": 13 + }, + "end": { + "line": 77, + "column": 24 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "cloudfront", + "raw": "'cloudfront'", + "range": [ + 1060, + 1072 + ], + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 23 + } + } + }, + "range": [ + 1053, + 1073 + ], + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 24 + } + } + } + ], + "range": [ + 1047, + 1077 + ], + "loc": { + "start": { + "line": 77, + "column": 27 + }, + "end": { + "line": 79, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1044, + 1077 + ], + "loc": { + "start": { + "line": 77, + "column": 24 + }, + "end": { + "line": 79, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1022, + 1077 + ], + "loc": { + "start": { + "line": 77, + "column": 2 + }, + "end": { + "line": 79, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 987, + 1019 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 76, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1081, + 1113 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "SECURITY_TOKEN_SERVICE", + "range": [ + 1127, + 1149 + ], + "loc": { + "start": { + "line": 84, + "column": 13 + }, + "end": { + "line": 84, + "column": 35 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "sts", + "raw": "'sts'", + "range": [ + 1165, + 1170 + ], + "loc": { + "start": { + "line": 85, + "column": 11 + }, + "end": { + "line": 85, + "column": 16 + } + } + }, + "range": [ + 1158, + 1171 + ], + "loc": { + "start": { + "line": 85, + "column": 4 + }, + "end": { + "line": 85, + "column": 17 + } + } + } + ], + "range": [ + 1152, + 1175 + ], + "loc": { + "start": { + "line": 84, + "column": 38 + }, + "end": { + "line": 86, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1149, + 1175 + ], + "loc": { + "start": { + "line": 84, + "column": 35 + }, + "end": { + "line": 86, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1116, + 1175 + ], + "loc": { + "start": { + "line": 84, + "column": 2 + }, + "end": { + "line": 86, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1081, + 1113 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1179, + 1211 + ], + "loc": { + "start": { + "line": 88, + "column": 2 + }, + "end": { + "line": 90, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "CLOUD_WATCH_LOGS", + "range": [ + 1225, + 1241 + ], + "loc": { + "start": { + "line": 91, + "column": 13 + }, + "end": { + "line": 91, + "column": 29 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "logs", + "raw": "'logs'", + "range": [ + 1257, + 1263 + ], + "loc": { + "start": { + "line": 92, + "column": 11 + }, + "end": { + "line": 92, + "column": 17 + } + } + }, + "range": [ + 1250, + 1264 + ], + "loc": { + "start": { + "line": 92, + "column": 4 + }, + "end": { + "line": 92, + "column": 18 + } + } + } + ], + "range": [ + 1244, + 1268 + ], + "loc": { + "start": { + "line": 91, + "column": 32 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1241, + 1268 + ], + "loc": { + "start": { + "line": 91, + "column": 29 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1214, + 1268 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 93, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1179, + 1211 + ], + "loc": { + "start": { + "line": 88, + "column": 2 + }, + "end": { + "line": 90, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1272, + 1304 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "API_GATEWAY", + "range": [ + 1318, + 1329 + ], + "loc": { + "start": { + "line": 98, + "column": 13 + }, + "end": { + "line": 98, + "column": 24 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "apigateway", + "raw": "'apigateway'", + "range": [ + 1345, + 1357 + ], + "loc": { + "start": { + "line": 99, + "column": 11 + }, + "end": { + "line": 99, + "column": 23 + } + } + }, + "range": [ + 1338, + 1358 + ], + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 24 + } + } + } + ], + "range": [ + 1332, + 1362 + ], + "loc": { + "start": { + "line": 98, + "column": 27 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1329, + 1362 + ], + "loc": { + "start": { + "line": 98, + "column": 24 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1307, + 1362 + ], + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 100, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1272, + 1304 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} service\n * @returns {String}\n ", + "range": [ + 1366, + 1427 + ], + "loc": { + "start": { + "line": 102, + "column": 2 + }, + "end": { + "line": 105, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "identifier", + "range": [ + 1437, + 1447 + ], + "loc": { + "start": { + "line": 106, + "column": 9 + }, + "end": { + "line": 106, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "service", + "range": [ + 1448, + 1455 + ], + "loc": { + "start": { + "line": 106, + "column": 20 + }, + "end": { + "line": 106, + "column": 27 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": false, + "range": [ + 1470, + 1473 + ], + "loc": { + "start": { + "line": 107, + "column": 11 + }, + "end": { + "line": 107, + "column": 14 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ".amazonaws.com", + "cooked": ".amazonaws.com" + }, + "tail": true, + "range": [ + 1480, + 1496 + ], + "loc": { + "start": { + "line": 107, + "column": 21 + }, + "end": { + "line": 107, + "column": 37 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "service", + "range": [ + 1473, + 1480 + ], + "loc": { + "start": { + "line": 107, + "column": 14 + }, + "end": { + "line": 107, + "column": 21 + } + } + } + ], + "range": [ + 1470, + 1496 + ], + "loc": { + "start": { + "line": 107, + "column": 11 + }, + "end": { + "line": 107, + "column": 37 + } + } + }, + "range": [ + 1463, + 1497 + ], + "loc": { + "start": { + "line": 107, + "column": 4 + }, + "end": { + "line": 107, + "column": 38 + } + } + } + ], + "range": [ + 1457, + 1501 + ], + "loc": { + "start": { + "line": 106, + "column": 29 + }, + "end": { + "line": 108, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1447, + 1501 + ], + "loc": { + "start": { + "line": 106, + "column": 19 + }, + "end": { + "line": 108, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1430, + 1501 + ], + "loc": { + "start": { + "line": 106, + "column": 2 + }, + "end": { + "line": 108, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} service\n * @returns {String}\n ", + "range": [ + 1366, + 1427 + ], + "loc": { + "start": { + "line": 102, + "column": 2 + }, + "end": { + "line": 105, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Boolean}\n ", + "range": [ + 1505, + 1564 + ], + "loc": { + "start": { + "line": 110, + "column": 2 + }, + "end": { + "line": 113, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "exists", + "range": [ + 1574, + 1580 + ], + "loc": { + "start": { + "line": 114, + "column": 9 + }, + "end": { + "line": 114, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1581, + 1585 + ], + "loc": { + "start": { + "line": 114, + "column": 16 + }, + "end": { + "line": 114, + "column": 20 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "UnaryExpression", + "operator": "-", + "argument": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 1601, + 1602 + ], + "loc": { + "start": { + "line": 115, + "column": 12 + }, + "end": { + "line": 115, + "column": 13 + } + } + }, + "prefix": true, + "range": [ + 1600, + 1602 + ], + "loc": { + "start": { + "line": 115, + "column": 11 + }, + "end": { + "line": 115, + "column": 13 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 1607, + 1614 + ], + "loc": { + "start": { + "line": 115, + "column": 18 + }, + "end": { + "line": 115, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "list", + "range": [ + 1615, + 1619 + ], + "loc": { + "start": { + "line": 115, + "column": 26 + }, + "end": { + "line": 115, + "column": 30 + } + } + }, + "range": [ + 1607, + 1619 + ], + "loc": { + "start": { + "line": 115, + "column": 18 + }, + "end": { + "line": 115, + "column": 30 + } + } + }, + "arguments": [], + "range": [ + 1607, + 1621 + ], + "loc": { + "start": { + "line": 115, + "column": 18 + }, + "end": { + "line": 115, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "indexOf", + "range": [ + 1622, + 1629 + ], + "loc": { + "start": { + "line": 115, + "column": 33 + }, + "end": { + "line": 115, + "column": 40 + } + } + }, + "range": [ + 1607, + 1629 + ], + "loc": { + "start": { + "line": 115, + "column": 18 + }, + "end": { + "line": 115, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1630, + 1634 + ], + "loc": { + "start": { + "line": 115, + "column": 41 + }, + "end": { + "line": 115, + "column": 45 + } + } + } + ], + "range": [ + 1607, + 1635 + ], + "loc": { + "start": { + "line": 115, + "column": 18 + }, + "end": { + "line": 115, + "column": 46 + } + } + }, + "range": [ + 1600, + 1635 + ], + "loc": { + "start": { + "line": 115, + "column": 11 + }, + "end": { + "line": 115, + "column": 46 + } + } + }, + "range": [ + 1593, + 1636 + ], + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 47 + } + } + } + ], + "range": [ + 1587, + 1640 + ], + "loc": { + "start": { + "line": 114, + "column": 22 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1580, + 1640 + ], + "loc": { + "start": { + "line": 114, + "column": 15 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1567, + 1640 + ], + "loc": { + "start": { + "line": 114, + "column": 2 + }, + "end": { + "line": 116, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Boolean}\n ", + "range": [ + 1505, + 1564 + ], + "loc": { + "start": { + "line": 110, + "column": 2 + }, + "end": { + "line": 113, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String[]}\n ", + "range": [ + 1644, + 1678 + ], + "loc": { + "start": { + "line": 118, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "list", + "range": [ + 1688, + 1692 + ], + "loc": { + "start": { + "line": 121, + "column": 9 + }, + "end": { + "line": 121, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ArrayExpression", + "elements": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 1716, + 1723 + ], + "loc": { + "start": { + "line": 123, + "column": 6 + }, + "end": { + "line": 123, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "LAMBDA", + "range": [ + 1724, + 1730 + ], + "loc": { + "start": { + "line": 123, + "column": 14 + }, + "end": { + "line": 123, + "column": 20 + } + } + }, + "range": [ + 1716, + 1730 + ], + "loc": { + "start": { + "line": 123, + "column": 6 + }, + "end": { + "line": 123, + "column": 20 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 1738, + 1745 + ], + "loc": { + "start": { + "line": 124, + "column": 6 + }, + "end": { + "line": 124, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "SIMPLE_STORAGE_SERVICE", + "range": [ + 1746, + 1768 + ], + "loc": { + "start": { + "line": 124, + "column": 14 + }, + "end": { + "line": 124, + "column": 36 + } + } + }, + "range": [ + 1738, + 1768 + ], + "loc": { + "start": { + "line": 124, + "column": 6 + }, + "end": { + "line": 124, + "column": 36 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 1776, + 1783 + ], + "loc": { + "start": { + "line": 125, + "column": 6 + }, + "end": { + "line": 125, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "DYNAMO_DB", + "range": [ + 1784, + 1793 + ], + "loc": { + "start": { + "line": 125, + "column": 14 + }, + "end": { + "line": 125, + "column": 23 + } + } + }, + "range": [ + 1776, + 1793 + ], + "loc": { + "start": { + "line": 125, + "column": 6 + }, + "end": { + "line": 125, + "column": 23 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 1801, + 1808 + ], + "loc": { + "start": { + "line": 126, + "column": 6 + }, + "end": { + "line": 126, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "SIMPLE_NOTIFICATION_SERVICE", + "range": [ + 1809, + 1836 + ], + "loc": { + "start": { + "line": 126, + "column": 14 + }, + "end": { + "line": 126, + "column": 41 + } + } + }, + "range": [ + 1801, + 1836 + ], + "loc": { + "start": { + "line": 126, + "column": 6 + }, + "end": { + "line": 126, + "column": 41 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 1844, + 1851 + ], + "loc": { + "start": { + "line": 127, + "column": 6 + }, + "end": { + "line": 127, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "COGNITO_IDENTITY", + "range": [ + 1852, + 1868 + ], + "loc": { + "start": { + "line": 127, + "column": 14 + }, + "end": { + "line": 127, + "column": 30 + } + } + }, + "range": [ + 1844, + 1868 + ], + "loc": { + "start": { + "line": 127, + "column": 6 + }, + "end": { + "line": 127, + "column": 30 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 1876, + 1883 + ], + "loc": { + "start": { + "line": 128, + "column": 6 + }, + "end": { + "line": 128, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "COGNITO_SYNC", + "range": [ + 1884, + 1896 + ], + "loc": { + "start": { + "line": 128, + "column": 14 + }, + "end": { + "line": 128, + "column": 26 + } + } + }, + "range": [ + 1876, + 1896 + ], + "loc": { + "start": { + "line": 128, + "column": 6 + }, + "end": { + "line": 128, + "column": 26 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 1904, + 1911 + ], + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "ELASTIC_CACHE", + "range": [ + 1912, + 1925 + ], + "loc": { + "start": { + "line": 129, + "column": 14 + }, + "end": { + "line": 129, + "column": 27 + } + } + }, + "range": [ + 1904, + 1925 + ], + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 27 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 1933, + 1940 + ], + "loc": { + "start": { + "line": 130, + "column": 6 + }, + "end": { + "line": 130, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "IDENTITY_AND_ACCESS_MANAGEMENT", + "range": [ + 1941, + 1971 + ], + "loc": { + "start": { + "line": 130, + "column": 14 + }, + "end": { + "line": 130, + "column": 44 + } + } + }, + "range": [ + 1933, + 1971 + ], + "loc": { + "start": { + "line": 130, + "column": 6 + }, + "end": { + "line": 130, + "column": 44 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 1979, + 1986 + ], + "loc": { + "start": { + "line": 131, + "column": 6 + }, + "end": { + "line": 131, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "KINESIS", + "range": [ + 1987, + 1994 + ], + "loc": { + "start": { + "line": 131, + "column": 14 + }, + "end": { + "line": 131, + "column": 21 + } + } + }, + "range": [ + 1979, + 1994 + ], + "loc": { + "start": { + "line": 131, + "column": 6 + }, + "end": { + "line": 131, + "column": 21 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 2002, + 2009 + ], + "loc": { + "start": { + "line": 132, + "column": 6 + }, + "end": { + "line": 132, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "CLOUD_FRONT", + "range": [ + 2010, + 2021 + ], + "loc": { + "start": { + "line": 132, + "column": 14 + }, + "end": { + "line": 132, + "column": 25 + } + } + }, + "range": [ + 2002, + 2021 + ], + "loc": { + "start": { + "line": 132, + "column": 6 + }, + "end": { + "line": 132, + "column": 25 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 2029, + 2036 + ], + "loc": { + "start": { + "line": 133, + "column": 6 + }, + "end": { + "line": 133, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "SECURITY_TOKEN_SERVICE", + "range": [ + 2037, + 2059 + ], + "loc": { + "start": { + "line": 133, + "column": 14 + }, + "end": { + "line": 133, + "column": 36 + } + } + }, + "range": [ + 2029, + 2059 + ], + "loc": { + "start": { + "line": 133, + "column": 6 + }, + "end": { + "line": 133, + "column": 36 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 2067, + 2074 + ], + "loc": { + "start": { + "line": 134, + "column": 6 + }, + "end": { + "line": 134, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "CLOUD_WATCH_LOGS", + "range": [ + 2075, + 2091 + ], + "loc": { + "start": { + "line": 134, + "column": 14 + }, + "end": { + "line": 134, + "column": 30 + } + } + }, + "range": [ + 2067, + 2091 + ], + "loc": { + "start": { + "line": 134, + "column": 6 + }, + "end": { + "line": 134, + "column": 30 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Service", + "range": [ + 2099, + 2106 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "API_GATEWAY", + "range": [ + 2107, + 2118 + ], + "loc": { + "start": { + "line": 135, + "column": 14 + }, + "end": { + "line": 135, + "column": 25 + } + } + }, + "range": [ + 2099, + 2118 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 25 + } + } + } + ], + "range": [ + 1708, + 2125 + ], + "loc": { + "start": { + "line": 122, + "column": 11 + }, + "end": { + "line": 136, + "column": 5 + } + } + }, + "range": [ + 1701, + 2126 + ], + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 136, + "column": 6 + } + } + } + ], + "range": [ + 1695, + 2130 + ], + "loc": { + "start": { + "line": 121, + "column": 16 + }, + "end": { + "line": 137, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1692, + 2130 + ], + "loc": { + "start": { + "line": 121, + "column": 13 + }, + "end": { + "line": 137, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1681, + 2130 + ], + "loc": { + "start": { + "line": 121, + "column": 2 + }, + "end": { + "line": 137, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String[]}\n ", + "range": [ + 1644, + 1678 + ], + "loc": { + "start": { + "line": 118, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 116, + 2132 + ], + "loc": { + "start": { + "line": 10, + "column": 21 + }, + "end": { + "line": 138, + "column": 1 + } + } + }, + "range": [ + 102, + 2132 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 138, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Available AWS services\n ", + "range": [ + 61, + 94 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 95, + 2132 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 138, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Available AWS services\n ", + "range": [ + 61, + 94 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 2132 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 138, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Available AWS services\n ", + "range": [ + 61, + 94 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 120, + 152 + ], + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 205, + 237 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 302, + 334 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 392, + 424 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 495, + 527 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 600, + 632 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 697, + 729 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 794, + 826 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 900, + 932 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 987, + 1019 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 76, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1081, + 1113 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1179, + 1211 + ], + "loc": { + "start": { + "line": 88, + "column": 2 + }, + "end": { + "line": 90, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1272, + 1304 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} service\n * @returns {String}\n ", + "range": [ + 1366, + 1427 + ], + "loc": { + "start": { + "line": 102, + "column": 2 + }, + "end": { + "line": 105, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Boolean}\n ", + "range": [ + 1505, + 1564 + ], + "loc": { + "start": { + "line": 110, + "column": 2 + }, + "end": { + "line": 113, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String[]}\n ", + "range": [ + 1644, + 1678 + ], + "loc": { + "start": { + "line": 118, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/Exception/DatabaseOperationException.js.json b/docs-api/deep-core/ast/source/Exception/DatabaseOperationException.js.json new file mode 100644 index 00000000..6db6cce4 --- /dev/null +++ b/docs-api/deep-core/ast/source/Exception/DatabaseOperationException.js.json @@ -0,0 +1,590 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 0, + 12 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 12 + } + } + }, + "range": [ + 0, + 13 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 23, + 32 + ], + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 23, + 32 + ], + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 17 + } + } + }, + "range": [ + 23, + 32 + ], + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 39, + 52 + ], + "loc": { + "start": { + "line": 3, + "column": 24 + }, + "end": { + "line": 3, + "column": 37 + } + } + }, + "range": [ + 15, + 53 + ], + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when operation on the database failed\n ", + "range": [ + 55, + 110 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "DatabaseOperationException", + "range": [ + 124, + 150 + ], + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 39 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 159, + 168 + ], + "loc": { + "start": { + "line": 8, + "column": 48 + }, + "end": { + "line": 8, + "column": 57 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 213, + 224 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 225, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 19 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 238, + 243 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Database operation failed. ", + "cooked": "Database operation failed. " + }, + "tail": false, + "range": [ + 244, + 274 + ], + "loc": { + "start": { + "line": 14, + "column": 10 + }, + "end": { + "line": 14, + "column": 40 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 279, + 281 + ], + "loc": { + "start": { + "line": 14, + "column": 45 + }, + "end": { + "line": 14, + "column": 47 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 274, + 279 + ], + "loc": { + "start": { + "line": 14, + "column": 40 + }, + "end": { + "line": 14, + "column": 45 + } + } + } + ], + "range": [ + 244, + 281 + ], + "loc": { + "start": { + "line": 14, + "column": 10 + }, + "end": { + "line": 14, + "column": 47 + } + } + } + ], + "range": [ + 238, + 282 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 48 + } + } + }, + "range": [ + 238, + 283 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 49 + } + } + } + ], + "range": [ + 232, + 287 + ], + "loc": { + "start": { + "line": 13, + "column": 21 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 224, + 287 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 213, + 287 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} error\n ", + "range": [ + 174, + 210 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 12, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 169, + 289 + ], + "loc": { + "start": { + "line": 8, + "column": 58 + }, + "end": { + "line": 16, + "column": 1 + } + } + }, + "range": [ + 118, + 289 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when operation on the database failed\n ", + "range": [ + 55, + 110 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 111, + 289 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when operation on the database failed\n ", + "range": [ + 55, + 110 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 0, + 289 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Thrown when operation on the database failed\n ", + "range": [ + 55, + 110 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} error\n ", + "range": [ + 174, + 210 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 12, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/Exception/Exception.js.json b/docs-api/deep-core/ast/source/Exception/Exception.js.json new file mode 100644 index 00000000..6c1d5577 --- /dev/null +++ b/docs-api/deep-core/ast/source/Exception/Exception.js.json @@ -0,0 +1,1460 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 61, + 86 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 100, + 109 + ], + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 22 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Error", + "range": [ + 118, + 123 + ], + "loc": { + "start": { + "line": 10, + "column": 31 + }, + "end": { + "line": 10, + "column": 36 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 169, + 180 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 14, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "message", + "range": [ + 181, + 188 + ], + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 196, + 201 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 196, + 203 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 11 + } + } + }, + "range": [ + 196, + 204 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 12 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Error", + "range": [ + 214, + 219 + ], + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 220, + 234 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 28 + } + } + }, + "range": [ + 214, + 234 + ], + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 28 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "captureStackTrace", + "raw": "'captureStackTrace'", + "range": [ + 235, + 254 + ], + "loc": { + "start": { + "line": 17, + "column": 29 + }, + "end": { + "line": 17, + "column": 48 + } + } + } + ], + "range": [ + 214, + 255 + ], + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 49 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Error", + "range": [ + 265, + 270 + ], + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "name": "captureStackTrace", + "range": [ + 271, + 288 + ], + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 18, + "column": 29 + } + } + }, + "range": [ + 265, + 288 + ], + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 289, + 293 + ], + "loc": { + "start": { + "line": 18, + "column": 30 + }, + "end": { + "line": 18, + "column": 34 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 295, + 299 + ], + "loc": { + "start": { + "line": 18, + "column": 36 + }, + "end": { + "line": 18, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "constructor", + "range": [ + 300, + 311 + ], + "loc": { + "start": { + "line": 18, + "column": 41 + }, + "end": { + "line": 18, + "column": 52 + } + } + }, + "range": [ + 295, + 311 + ], + "loc": { + "start": { + "line": 18, + "column": 36 + }, + "end": { + "line": 18, + "column": 52 + } + } + } + ], + "range": [ + 265, + 312 + ], + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 53 + } + } + }, + "range": [ + 265, + 313 + ], + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 54 + } + } + } + ], + "range": [ + 257, + 319 + ], + "loc": { + "start": { + "line": 17, + "column": 51 + }, + "end": { + "line": 19, + "column": 5 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Object", + "range": [ + 333, + 339 + ], + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "defineProperty", + "range": [ + 340, + 354 + ], + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 27 + } + } + }, + "range": [ + 333, + 354 + ], + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 27 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 355, + 359 + ], + "loc": { + "start": { + "line": 20, + "column": 28 + }, + "end": { + "line": 20, + "column": 32 + } + } + }, + { + "type": "Literal", + "value": "stack", + "raw": "'stack'", + "range": [ + 361, + 368 + ], + "loc": { + "start": { + "line": 20, + "column": 34 + }, + "end": { + "line": 20, + "column": 41 + } + } + }, + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "value", + "range": [ + 380, + 385 + ], + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 13 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Error", + "range": [ + 392, + 397 + ], + "loc": { + "start": { + "line": 21, + "column": 20 + }, + "end": { + "line": 21, + "column": 25 + } + } + }, + "arguments": [], + "range": [ + 388, + 399 + ], + "loc": { + "start": { + "line": 21, + "column": 16 + }, + "end": { + "line": 21, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "stack", + "range": [ + 401, + 406 + ], + "loc": { + "start": { + "line": 21, + "column": 29 + }, + "end": { + "line": 21, + "column": 34 + } + } + }, + "range": [ + 387, + 406 + ], + "loc": { + "start": { + "line": 21, + "column": 15 + }, + "end": { + "line": 21, + "column": 34 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 380, + 406 + ], + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 34 + } + } + } + ], + "range": [ + 370, + 415 + ], + "loc": { + "start": { + "line": 20, + "column": 43 + }, + "end": { + "line": 22, + "column": 7 + } + } + } + ], + "range": [ + 333, + 416 + ], + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 22, + "column": 8 + } + } + }, + "range": [ + 333, + 417 + ], + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 22, + "column": 9 + } + } + } + ], + "range": [ + 325, + 423 + ], + "loc": { + "start": { + "line": 19, + "column": 11 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + "range": [ + 210, + 423 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Object", + "range": [ + 429, + 435 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "defineProperty", + "range": [ + 436, + 450 + ], + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 25 + } + } + }, + "range": [ + 429, + 450 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 451, + 455 + ], + "loc": { + "start": { + "line": 25, + "column": 26 + }, + "end": { + "line": 25, + "column": 30 + } + } + }, + { + "type": "Literal", + "value": "message", + "raw": "'message'", + "range": [ + 457, + 466 + ], + "loc": { + "start": { + "line": 25, + "column": 32 + }, + "end": { + "line": 25, + "column": 41 + } + } + }, + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "value", + "range": [ + 476, + 481 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 11 + } + } + }, + "value": { + "type": "Identifier", + "name": "message", + "range": [ + 483, + 490 + ], + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 20 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 476, + 490 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 20 + } + } + } + ], + "range": [ + 468, + 497 + ], + "loc": { + "start": { + "line": 25, + "column": 43 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "range": [ + 429, + 498 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 27, + "column": 6 + } + } + }, + "range": [ + 429, + 499 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + } + ], + "range": [ + 190, + 503 + ], + "loc": { + "start": { + "line": 14, + "column": 23 + }, + "end": { + "line": 28, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 180, + 503 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 28, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 169, + 503 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 28, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} message\n ", + "range": [ + 128, + 166 + ], + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 507, + 539 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "name", + "range": [ + 546, + 550 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 566, + 570 + ], + "loc": { + "start": { + "line": 34, + "column": 11 + }, + "end": { + "line": 34, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "constructor", + "range": [ + 571, + 582 + ], + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 27 + } + } + }, + "range": [ + 566, + 582 + ], + "loc": { + "start": { + "line": 34, + "column": 11 + }, + "end": { + "line": 34, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 583, + 587 + ], + "loc": { + "start": { + "line": 34, + "column": 28 + }, + "end": { + "line": 34, + "column": 32 + } + } + }, + "range": [ + 566, + 587 + ], + "loc": { + "start": { + "line": 34, + "column": 11 + }, + "end": { + "line": 34, + "column": 32 + } + } + }, + "range": [ + 559, + 588 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 33 + } + } + } + ], + "range": [ + 553, + 592 + ], + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 35, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 550, + 592 + ], + "loc": { + "start": { + "line": 33, + "column": 10 + }, + "end": { + "line": 35, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 542, + 592 + ], + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 35, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 507, + 539 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 124, + 594 + ], + "loc": { + "start": { + "line": 10, + "column": 37 + }, + "end": { + "line": 36, + "column": 1 + } + } + }, + "range": [ + 94, + 594 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 36, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 61, + 86 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 87, + 594 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 36, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 61, + 86 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 594 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 36, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 61, + 86 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} message\n ", + "range": [ + 128, + 166 + ], + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 507, + 539 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/Exception/InvalidArgumentException.js.json b/docs-api/deep-core/ast/source/Exception/InvalidArgumentException.js.json new file mode 100644 index 00000000..163583c0 --- /dev/null +++ b/docs-api/deep-core/ast/source/Exception/InvalidArgumentException.js.json @@ -0,0 +1,818 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when invalid argument provided\n ", + "range": [ + 101, + 149 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 163, + 187 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 37 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 196, + 205 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 278, + 289 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "argument", + "range": [ + 290, + 298 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 22 + } + } + }, + { + "type": "Identifier", + "name": "meantType", + "range": [ + 300, + 309 + ], + "loc": { + "start": { + "line": 17, + "column": 24 + }, + "end": { + "line": 17, + "column": 33 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "argumentType", + "range": [ + 321, + 333 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 20 + } + } + }, + "init": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "Identifier", + "name": "argument", + "range": [ + 343, + 351 + ], + "loc": { + "start": { + "line": 18, + "column": 30 + }, + "end": { + "line": 18, + "column": 38 + } + } + }, + "prefix": true, + "range": [ + 336, + 351 + ], + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 38 + } + } + }, + "range": [ + 321, + 351 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 38 + } + } + } + ], + "kind": "let", + "range": [ + 317, + 352 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 39 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 358, + 363 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Invalid argument ", + "cooked": "Invalid argument " + }, + "tail": false, + "range": [ + 364, + 384 + ], + "loc": { + "start": { + "line": 20, + "column": 10 + }, + "end": { + "line": 20, + "column": 30 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " of type ", + "cooked": " of type " + }, + "tail": false, + "range": [ + 392, + 404 + ], + "loc": { + "start": { + "line": 20, + "column": 38 + }, + "end": { + "line": 20, + "column": 50 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " provided (meant ", + "cooked": " provided (meant " + }, + "tail": false, + "range": [ + 416, + 436 + ], + "loc": { + "start": { + "line": 20, + "column": 62 + }, + "end": { + "line": 20, + "column": 82 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ").", + "cooked": ")." + }, + "tail": true, + "range": [ + 445, + 449 + ], + "loc": { + "start": { + "line": 20, + "column": 91 + }, + "end": { + "line": 20, + "column": 95 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "argument", + "range": [ + 384, + 392 + ], + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "argumentType", + "range": [ + 404, + 416 + ], + "loc": { + "start": { + "line": 20, + "column": 50 + }, + "end": { + "line": 20, + "column": 62 + } + } + }, + { + "type": "Identifier", + "name": "meantType", + "range": [ + 436, + 445 + ], + "loc": { + "start": { + "line": 20, + "column": 82 + }, + "end": { + "line": 20, + "column": 91 + } + } + } + ], + "range": [ + 364, + 449 + ], + "loc": { + "start": { + "line": 20, + "column": 10 + }, + "end": { + "line": 20, + "column": 95 + } + } + } + ], + "range": [ + 358, + 450 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 96 + } + } + }, + "range": [ + 358, + 451 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 97 + } + } + } + ], + "range": [ + 311, + 455 + ], + "loc": { + "start": { + "line": 17, + "column": 35 + }, + "end": { + "line": 21, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 289, + 455 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 21, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 278, + 455 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 21, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} argument\n * @param {String} meantType\n ", + "range": [ + 210, + 275 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 206, + 457 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 22, + "column": 1 + } + } + }, + "range": [ + 157, + 457 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when invalid argument provided\n ", + "range": [ + 101, + 149 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 150, + 457 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when invalid argument provided\n ", + "range": [ + 101, + 149 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 457 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when invalid argument provided\n ", + "range": [ + 101, + 149 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {*} argument\n * @param {String} meantType\n ", + "range": [ + 210, + 275 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/Exception/MethodsNotImplementedException.js.json b/docs-api/deep-core/ast/source/Exception/MethodsNotImplementedException.js.json new file mode 100644 index 00000000..b58fdf6b --- /dev/null +++ b/docs-api/deep-core/ast/source/Exception/MethodsNotImplementedException.js.json @@ -0,0 +1,1104 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 108, + 132 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 32 + } + } + }, + "imported": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 108, + 132 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 32 + } + } + }, + "range": [ + 108, + 132 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 32 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./InvalidArgumentException", + "raw": "'./InvalidArgumentException'", + "range": [ + 139, + 167 + ], + "loc": { + "start": { + "line": 8, + "column": 39 + }, + "end": { + "line": 8, + "column": 67 + } + } + }, + "range": [ + 100, + 168 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 68 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when methods from interface or abstract class are not implemented\n ", + "range": [ + 170, + 253 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "MethodsNotImplementedException", + "range": [ + 267, + 297 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 43 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 306, + 315 + ], + "loc": { + "start": { + "line": 13, + "column": 52 + }, + "end": { + "line": 13, + "column": 61 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 360, + 371 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "methods", + "range": [ + 372, + 379 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Array", + "range": [ + 392, + 397 + ], + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "isArray", + "range": [ + 398, + 405 + ], + "loc": { + "start": { + "line": 18, + "column": 15 + }, + "end": { + "line": 18, + "column": 22 + } + } + }, + "range": [ + 392, + 405 + ], + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "methods", + "range": [ + 406, + 413 + ], + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 30 + } + } + } + ], + "range": [ + 392, + 414 + ], + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 31 + } + } + }, + "prefix": true, + "range": [ + 391, + 414 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 31 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 434, + 458 + ], + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 19, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "methods", + "range": [ + 459, + 466 + ], + "loc": { + "start": { + "line": 19, + "column": 41 + }, + "end": { + "line": 19, + "column": 48 + } + } + }, + { + "type": "Literal", + "value": "Array", + "raw": "'Array'", + "range": [ + 468, + 475 + ], + "loc": { + "start": { + "line": 19, + "column": 50 + }, + "end": { + "line": 19, + "column": 57 + } + } + } + ], + "range": [ + 430, + 476 + ], + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 19, + "column": 58 + } + } + }, + "range": [ + 424, + 477 + ], + "loc": { + "start": { + "line": 19, + "column": 6 + }, + "end": { + "line": 19, + "column": 59 + } + } + } + ], + "range": [ + 416, + 483 + ], + "loc": { + "start": { + "line": 18, + "column": 33 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 387, + 483 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "methodPlain", + "range": [ + 493, + 504 + ], + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 19 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "methods", + "range": [ + 507, + 514 + ], + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "join", + "range": [ + 515, + 519 + ], + "loc": { + "start": { + "line": 22, + "column": 30 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + "range": [ + 507, + 519 + ], + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": ", ", + "raw": "', '", + "range": [ + 520, + 524 + ], + "loc": { + "start": { + "line": 22, + "column": 35 + }, + "end": { + "line": 22, + "column": 39 + } + } + } + ], + "range": [ + 507, + 525 + ], + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 40 + } + } + }, + "range": [ + 493, + 525 + ], + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 40 + } + } + } + ], + "kind": "let", + "range": [ + 489, + 526 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 41 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 532, + 537 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "One or more method are not implemented (", + "cooked": "One or more method are not implemented (" + }, + "tail": false, + "range": [ + 538, + 581 + ], + "loc": { + "start": { + "line": 24, + "column": 10 + }, + "end": { + "line": 24, + "column": 53 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ").", + "cooked": ")." + }, + "tail": true, + "range": [ + 592, + 596 + ], + "loc": { + "start": { + "line": 24, + "column": 64 + }, + "end": { + "line": 24, + "column": 68 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "methodPlain", + "range": [ + 581, + 592 + ], + "loc": { + "start": { + "line": 24, + "column": 53 + }, + "end": { + "line": 24, + "column": 64 + } + } + } + ], + "range": [ + 538, + 596 + ], + "loc": { + "start": { + "line": 24, + "column": 10 + }, + "end": { + "line": 24, + "column": 68 + } + } + } + ], + "range": [ + 532, + 597 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 69 + } + } + }, + "range": [ + 532, + 598 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 70 + } + } + } + ], + "range": [ + 381, + 602 + ], + "loc": { + "start": { + "line": 17, + "column": 23 + }, + "end": { + "line": 25, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 371, + 602 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 25, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 360, + 602 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} methods\n ", + "range": [ + 320, + 357 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 316, + 604 + ], + "loc": { + "start": { + "line": 13, + "column": 62 + }, + "end": { + "line": 26, + "column": 1 + } + } + }, + "range": [ + 261, + 604 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when methods from interface or abstract class are not implemented\n ", + "range": [ + 170, + 253 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 254, + 604 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when methods from interface or abstract class are not implemented\n ", + "range": [ + 170, + 253 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 604 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when methods from interface or abstract class are not implemented\n ", + "range": [ + 170, + 253 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} methods\n ", + "range": [ + 320, + 357 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/Generic/ObjectStorage.js.json b/docs-api/deep-core/ast/source/Generic/ObjectStorage.js.json new file mode 100644 index 00000000..d0bb9166 --- /dev/null +++ b/docs-api/deep-core/ast/source/Generic/ObjectStorage.js.json @@ -0,0 +1,2378 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Simple object storage implementation\n ", + "range": [ + 61, + 108 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "ObjectStorage", + "range": [ + 122, + 135 + ], + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 26 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 180, + 191 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 14, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "objects", + "range": [ + 195, + 202 + ], + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 24 + } + } + }, + "range": [ + 192, + 202 + ], + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 24 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "objects", + "range": [ + 214, + 221 + ], + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 222, + 228 + ], + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 15, + "column": 22 + } + } + }, + "range": [ + 214, + 228 + ], + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 22 + } + } + }, + "right": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 233, + 234 + ], + "loc": { + "start": { + "line": 15, + "column": 27 + }, + "end": { + "line": 15, + "column": 28 + } + } + }, + "range": [ + 214, + 234 + ], + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 28 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "objects", + "range": [ + 238, + 245 + ], + "loc": { + "start": { + "line": 15, + "column": 32 + }, + "end": { + "line": 15, + "column": 39 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 246, + 247 + ], + "loc": { + "start": { + "line": 15, + "column": 40 + }, + "end": { + "line": 15, + "column": 41 + } + } + }, + "range": [ + 238, + 248 + ], + "loc": { + "start": { + "line": 15, + "column": 32 + }, + "end": { + "line": 15, + "column": 42 + } + } + }, + "right": { + "type": "Identifier", + "name": "Array", + "range": [ + 260, + 265 + ], + "loc": { + "start": { + "line": 15, + "column": 54 + }, + "end": { + "line": 15, + "column": 59 + } + } + }, + "range": [ + 238, + 265 + ], + "loc": { + "start": { + "line": 15, + "column": 32 + }, + "end": { + "line": 15, + "column": 59 + } + } + }, + "range": [ + 214, + 265 + ], + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 59 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "objects", + "range": [ + 275, + 282 + ], + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "objects", + "range": [ + 285, + 292 + ], + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 23 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 293, + 294 + ], + "loc": { + "start": { + "line": 16, + "column": 24 + }, + "end": { + "line": 16, + "column": 25 + } + } + }, + "range": [ + 285, + 295 + ], + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 26 + } + } + }, + "range": [ + 275, + 295 + ], + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 26 + } + } + }, + "range": [ + 275, + 296 + ], + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 27 + } + } + } + ], + "range": [ + 267, + 302 + ], + "loc": { + "start": { + "line": 15, + "column": 61 + }, + "end": { + "line": 17, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 210, + 302 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 17, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 308, + 312 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 313, + 320 + ], + "loc": { + "start": { + "line": 19, + "column": 9 + }, + "end": { + "line": 19, + "column": 16 + } + } + }, + "range": [ + 308, + 320 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "objects", + "range": [ + 323, + 330 + ], + "loc": { + "start": { + "line": 19, + "column": 19 + }, + "end": { + "line": 19, + "column": 26 + } + } + }, + "range": [ + 308, + 330 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 26 + } + } + }, + "range": [ + 308, + 331 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 27 + } + } + } + ], + "range": [ + 204, + 335 + ], + "loc": { + "start": { + "line": 14, + "column": 26 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 191, + 335 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 180, + 335 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} objects\n ", + "range": [ + 140, + 177 + ], + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} object\n * @returns {ObjectStorage}\n ", + "range": [ + 339, + 401 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "add", + "range": [ + 404, + 407 + ], + "loc": { + "start": { + "line": 26, + "column": 2 + }, + "end": { + "line": 26, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "object", + "range": [ + 408, + 414 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 12 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 422, + 426 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 427, + 434 + ], + "loc": { + "start": { + "line": 27, + "column": 9 + }, + "end": { + "line": 27, + "column": 16 + } + } + }, + "range": [ + 422, + 434 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "push", + "range": [ + 435, + 439 + ], + "loc": { + "start": { + "line": 27, + "column": 17 + }, + "end": { + "line": 27, + "column": 21 + } + } + }, + "range": [ + 422, + 439 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "object", + "range": [ + 440, + 446 + ], + "loc": { + "start": { + "line": 27, + "column": 22 + }, + "end": { + "line": 27, + "column": 28 + } + } + } + ], + "range": [ + 422, + 447 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 29 + } + } + }, + "range": [ + 422, + 448 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 30 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 461, + 465 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 15 + } + } + }, + "range": [ + 454, + 466 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 16 + } + } + } + ], + "range": [ + 416, + 470 + ], + "loc": { + "start": { + "line": 26, + "column": 14 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 407, + 470 + ], + "loc": { + "start": { + "line": 26, + "column": 5 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 404, + 470 + ], + "loc": { + "start": { + "line": 26, + "column": 2 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} object\n * @returns {ObjectStorage}\n ", + "range": [ + 339, + 401 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} thing\n * @param {Boolean} strict\n * @returns {*}\n ", + "range": [ + 474, + 552 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "find", + "range": [ + 555, + 559 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 37, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "thing", + "range": [ + 560, + 565 + ], + "loc": { + "start": { + "line": 37, + "column": 7 + }, + "end": { + "line": 37, + "column": 12 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "strict", + "range": [ + 567, + 573 + ], + "loc": { + "start": { + "line": 37, + "column": 14 + }, + "end": { + "line": 37, + "column": 20 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 576, + 581 + ], + "loc": { + "start": { + "line": 37, + "column": 23 + }, + "end": { + "line": 37, + "column": 28 + } + } + }, + "range": [ + 567, + 581 + ], + "loc": { + "start": { + "line": 37, + "column": 14 + }, + "end": { + "line": 37, + "column": 28 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "objectKey", + "range": [ + 598, + 607 + ], + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 22 + } + } + }, + "init": null, + "range": [ + 598, + 607 + ], + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 22 + } + } + } + ], + "kind": "let", + "range": [ + 594, + 607 + ], + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 22 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 611, + 615 + ], + "loc": { + "start": { + "line": 38, + "column": 26 + }, + "end": { + "line": 38, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 616, + 623 + ], + "loc": { + "start": { + "line": 38, + "column": 31 + }, + "end": { + "line": 38, + "column": 38 + } + } + }, + "range": [ + 611, + 623 + ], + "loc": { + "start": { + "line": 38, + "column": 26 + }, + "end": { + "line": 38, + "column": 38 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 638, + 642 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 643, + 650 + ], + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 23 + } + } + }, + "range": [ + 638, + 650 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 651, + 665 + ], + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 38 + } + } + }, + "range": [ + 638, + 665 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "objectKey", + "range": [ + 666, + 675 + ], + "loc": { + "start": { + "line": 39, + "column": 39 + }, + "end": { + "line": 39, + "column": 48 + } + } + } + ], + "range": [ + 638, + 676 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 49 + } + } + }, + "prefix": true, + "range": [ + 637, + 676 + ], + "loc": { + "start": { + "line": 39, + "column": 10 + }, + "end": { + "line": 39, + "column": 49 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 688, + 697 + ], + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 17 + } + } + } + ], + "range": [ + 678, + 705 + ], + "loc": { + "start": { + "line": 39, + "column": 51 + }, + "end": { + "line": 41, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 633, + 705 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 41, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "object", + "range": [ + 717, + 723 + ], + "loc": { + "start": { + "line": 43, + "column": 10 + }, + "end": { + "line": 43, + "column": 16 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 726, + 730 + ], + "loc": { + "start": { + "line": 43, + "column": 19 + }, + "end": { + "line": 43, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 731, + 738 + ], + "loc": { + "start": { + "line": 43, + "column": 24 + }, + "end": { + "line": 43, + "column": 31 + } + } + }, + "range": [ + 726, + 738 + ], + "loc": { + "start": { + "line": 43, + "column": 19 + }, + "end": { + "line": 43, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "objectKey", + "range": [ + 739, + 748 + ], + "loc": { + "start": { + "line": 43, + "column": 32 + }, + "end": { + "line": 43, + "column": 41 + } + } + }, + "range": [ + 726, + 749 + ], + "loc": { + "start": { + "line": 43, + "column": 19 + }, + "end": { + "line": 43, + "column": 42 + } + } + }, + "range": [ + 717, + 749 + ], + "loc": { + "start": { + "line": 43, + "column": 10 + }, + "end": { + "line": 43, + "column": 42 + } + } + } + ], + "kind": "let", + "range": [ + 713, + 750 + ], + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 43 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "strict", + "range": [ + 763, + 769 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 17 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "Identifier", + "name": "object", + "range": [ + 773, + 779 + ], + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 45, + "column": 27 + } + } + }, + "right": { + "type": "Identifier", + "name": "thing", + "range": [ + 784, + 789 + ], + "loc": { + "start": { + "line": 45, + "column": 32 + }, + "end": { + "line": 45, + "column": 37 + } + } + }, + "range": [ + 773, + 789 + ], + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 45, + "column": 37 + } + } + }, + "range": [ + 763, + 789 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 37 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "strict", + "range": [ + 796, + 802 + ], + "loc": { + "start": { + "line": 45, + "column": 44 + }, + "end": { + "line": 45, + "column": 50 + } + } + }, + "prefix": true, + "range": [ + 795, + 802 + ], + "loc": { + "start": { + "line": 45, + "column": 43 + }, + "end": { + "line": 45, + "column": 50 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "Identifier", + "name": "object", + "range": [ + 806, + 812 + ], + "loc": { + "start": { + "line": 45, + "column": 54 + }, + "end": { + "line": 45, + "column": 60 + } + } + }, + "right": { + "type": "Identifier", + "name": "thing", + "range": [ + 824, + 829 + ], + "loc": { + "start": { + "line": 45, + "column": 72 + }, + "end": { + "line": 45, + "column": 77 + } + } + }, + "range": [ + 806, + 829 + ], + "loc": { + "start": { + "line": 45, + "column": 54 + }, + "end": { + "line": 45, + "column": 77 + } + } + }, + "range": [ + 795, + 829 + ], + "loc": { + "start": { + "line": 45, + "column": 43 + }, + "end": { + "line": 45, + "column": 77 + } + } + }, + "range": [ + 762, + 830 + ], + "loc": { + "start": { + "line": 45, + "column": 10 + }, + "end": { + "line": 45, + "column": 78 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "object", + "range": [ + 849, + 855 + ], + "loc": { + "start": { + "line": 46, + "column": 15 + }, + "end": { + "line": 46, + "column": 21 + } + } + }, + "range": [ + 842, + 856 + ], + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 22 + } + } + } + ], + "range": [ + 832, + 864 + ], + "loc": { + "start": { + "line": 45, + "column": 80 + }, + "end": { + "line": 47, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 758, + 864 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 47, + "column": 7 + } + } + } + ], + "range": [ + 625, + 870 + ], + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + "each": false, + "range": [ + 589, + 870 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "range": [ + 583, + 874 + ], + "loc": { + "start": { + "line": 37, + "column": 30 + }, + "end": { + "line": 49, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 559, + 874 + ], + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 49, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 555, + 874 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 49, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} thing\n * @param {Boolean} strict\n * @returns {*}\n ", + "range": [ + 474, + 552 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 878, + 909 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 53, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "iterator", + "range": [ + 916, + 924 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 940, + 944 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 945, + 952 + ], + "loc": { + "start": { + "line": 55, + "column": 16 + }, + "end": { + "line": 55, + "column": 23 + } + } + }, + "range": [ + 940, + 952 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 23 + } + } + }, + "range": [ + 933, + 953 + ], + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 55, + "column": 24 + } + } + } + ], + "range": [ + 927, + 957 + ], + "loc": { + "start": { + "line": 54, + "column": 17 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 924, + 957 + ], + "loc": { + "start": { + "line": 54, + "column": 14 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 912, + 957 + ], + "loc": { + "start": { + "line": 54, + "column": 2 + }, + "end": { + "line": 56, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 878, + 909 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 53, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 136, + 959 + ], + "loc": { + "start": { + "line": 10, + "column": 27 + }, + "end": { + "line": 57, + "column": 1 + } + } + }, + "range": [ + 116, + 959 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 57, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Simple object storage implementation\n ", + "range": [ + 61, + 108 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 109, + 959 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 57, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Simple object storage implementation\n ", + "range": [ + 61, + 108 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 959 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 57, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/27/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Simple object storage implementation\n ", + "range": [ + 61, + 108 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} objects\n ", + "range": [ + 140, + 177 + ], + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {*} object\n * @returns {ObjectStorage}\n ", + "range": [ + 339, + 401 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {*} thing\n * @param {Boolean} strict\n * @returns {*}\n ", + "range": [ + 474, + 552 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 878, + 909 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 53, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/Generic/ObjectVector.js.json b/docs-api/deep-core/ast/source/Generic/ObjectVector.js.json new file mode 100644 index 00000000..8e8ae46c --- /dev/null +++ b/docs-api/deep-core/ast/source/Generic/ObjectVector.js.json @@ -0,0 +1,1770 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 0, + 12 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 12 + } + } + }, + "range": [ + 0, + 13 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "ObjectVector", + "range": [ + 28, + 40 + ], + "loc": { + "start": { + "line": 3, + "column": 13 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 122, + 133 + ], + "loc": { + "start": { + "line": 9, + "column": 2 + }, + "end": { + "line": 9, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "proto", + "range": [ + 134, + 139 + ], + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 19 + } + } + }, + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "instances", + "range": [ + 144, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 24 + }, + "end": { + "line": 9, + "column": 33 + } + } + }, + "range": [ + 141, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 33 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 161, + 165 + ], + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_proto", + "range": [ + 166, + 172 + ], + "loc": { + "start": { + "line": 10, + "column": 9 + }, + "end": { + "line": 10, + "column": 15 + } + } + }, + "range": [ + 161, + 172 + ], + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 15 + } + } + }, + "right": { + "type": "Identifier", + "name": "proto", + "range": [ + 175, + 180 + ], + "loc": { + "start": { + "line": 10, + "column": 18 + }, + "end": { + "line": 10, + "column": 23 + } + } + }, + "range": [ + 161, + 180 + ], + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 23 + } + } + }, + "range": [ + 161, + 181 + ], + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 24 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 186, + 190 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 191, + 198 + ], + "loc": { + "start": { + "line": 11, + "column": 9 + }, + "end": { + "line": 11, + "column": 16 + } + } + }, + "range": [ + 186, + 198 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 16 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 201, + 203 + ], + "loc": { + "start": { + "line": 11, + "column": 19 + }, + "end": { + "line": 11, + "column": 21 + } + } + }, + "range": [ + 186, + 203 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 21 + } + } + }, + "range": [ + 186, + 204 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 22 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 210, + 214 + ], + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "add", + "range": [ + 215, + 218 + ], + "loc": { + "start": { + "line": 13, + "column": 9 + }, + "end": { + "line": 13, + "column": 12 + } + } + }, + "range": [ + 210, + 218 + ], + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "instances", + "range": [ + 222, + 231 + ], + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 13, + "column": 25 + } + } + }, + "range": [ + 219, + 231 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 25 + } + } + } + ], + "range": [ + 210, + 232 + ], + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 26 + } + } + }, + "range": [ + 210, + 233 + ], + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 27 + } + } + } + ], + "range": [ + 155, + 237 + ], + "loc": { + "start": { + "line": 9, + "column": 35 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 133, + 237 + ], + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 122, + 237 + ], + "loc": { + "start": { + "line": 9, + "column": 2 + }, + "end": { + "line": 14, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} proto\n * @param {Object[]|*} instances\n ", + "range": [ + 46, + 119 + ], + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 8, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Add new instances to collection\n * @param {Object[]|*} instances\n ", + "range": [ + 241, + 322 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "add", + "range": [ + 325, + 328 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "instances", + "range": [ + 332, + 341 + ], + "loc": { + "start": { + "line": 20, + "column": 9 + }, + "end": { + "line": 20, + "column": 18 + } + } + }, + "range": [ + 329, + 341 + ], + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 18 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ForOfStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "instance", + "range": [ + 358, + 366 + ], + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 21 + } + } + }, + "init": null, + "range": [ + 358, + 366 + ], + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 21 + } + } + } + ], + "kind": "let", + "range": [ + 354, + 366 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 21 + } + } + }, + "right": { + "type": "Identifier", + "name": "instances", + "range": [ + 370, + 379 + ], + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 34 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "Identifier", + "name": "instance", + "range": [ + 395, + 403 + ], + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 20 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 415, + 419 + ], + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 22, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "_proto", + "range": [ + 420, + 426 + ], + "loc": { + "start": { + "line": 22, + "column": 37 + }, + "end": { + "line": 22, + "column": 43 + } + } + }, + "range": [ + 415, + 426 + ], + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 22, + "column": 43 + } + } + }, + "range": [ + 395, + 426 + ], + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 43 + } + } + }, + "prefix": true, + "range": [ + 393, + 427 + ], + "loc": { + "start": { + "line": 22, + "column": 10 + }, + "end": { + "line": 22, + "column": 44 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Error", + "range": [ + 449, + 454 + ], + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "The object ", + "cooked": "The object " + }, + "tail": false, + "range": [ + 466, + 480 + ], + "loc": { + "start": { + "line": 24, + "column": 10 + }, + "end": { + "line": 24, + "column": 24 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " is not an instance of ", + "cooked": " is not an instance of " + }, + "tail": false, + "range": [ + 505, + 531 + ], + "loc": { + "start": { + "line": 24, + "column": 49 + }, + "end": { + "line": 24, + "column": 75 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 547, + 549 + ], + "loc": { + "start": { + "line": 24, + "column": 91 + }, + "end": { + "line": 24, + "column": 93 + } + } + } + ], + "expressions": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "instance", + "range": [ + 480, + 488 + ], + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "constructor", + "range": [ + 489, + 500 + ], + "loc": { + "start": { + "line": 24, + "column": 33 + }, + "end": { + "line": 24, + "column": 44 + } + } + }, + "range": [ + 480, + 500 + ], + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 501, + 505 + ], + "loc": { + "start": { + "line": 24, + "column": 45 + }, + "end": { + "line": 24, + "column": 49 + } + } + }, + "range": [ + 480, + 505 + ], + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 49 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 531, + 535 + ], + "loc": { + "start": { + "line": 24, + "column": 75 + }, + "end": { + "line": 24, + "column": 79 + } + } + }, + "property": { + "type": "Identifier", + "name": "_proto", + "range": [ + 536, + 542 + ], + "loc": { + "start": { + "line": 24, + "column": 80 + }, + "end": { + "line": 24, + "column": 86 + } + } + }, + "range": [ + 531, + 542 + ], + "loc": { + "start": { + "line": 24, + "column": 75 + }, + "end": { + "line": 24, + "column": 86 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 543, + 547 + ], + "loc": { + "start": { + "line": 24, + "column": 87 + }, + "end": { + "line": 24, + "column": 91 + } + } + }, + "range": [ + 531, + 547 + ], + "loc": { + "start": { + "line": 24, + "column": 75 + }, + "end": { + "line": 24, + "column": 91 + } + } + } + ], + "range": [ + 466, + 549 + ], + "loc": { + "start": { + "line": 24, + "column": 10 + }, + "end": { + "line": 24, + "column": 93 + } + } + } + ], + "range": [ + 445, + 559 + ], + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 25, + "column": 9 + } + } + }, + "range": [ + 439, + 560 + ], + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 25, + "column": 10 + } + } + } + ], + "range": [ + 429, + 568 + ], + "loc": { + "start": { + "line": 22, + "column": 46 + }, + "end": { + "line": 26, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 389, + 568 + ], + "loc": { + "start": { + "line": 22, + "column": 6 + }, + "end": { + "line": 26, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 576, + 580 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 28, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 581, + 588 + ], + "loc": { + "start": { + "line": 28, + "column": 11 + }, + "end": { + "line": 28, + "column": 18 + } + } + }, + "range": [ + 576, + 588 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 28, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "push", + "range": [ + 589, + 593 + ], + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 23 + } + } + }, + "range": [ + 576, + 593 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 28, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "instance", + "range": [ + 594, + 602 + ], + "loc": { + "start": { + "line": 28, + "column": 24 + }, + "end": { + "line": 28, + "column": 32 + } + } + } + ], + "range": [ + 576, + 603 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 28, + "column": 33 + } + } + }, + "range": [ + 576, + 604 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 28, + "column": 34 + } + } + } + ], + "range": [ + 381, + 610 + ], + "loc": { + "start": { + "line": 21, + "column": 36 + }, + "end": { + "line": 29, + "column": 5 + } + } + }, + "range": [ + 349, + 610 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 29, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 623, + 627 + ], + "loc": { + "start": { + "line": 31, + "column": 11 + }, + "end": { + "line": 31, + "column": 15 + } + } + }, + "range": [ + 616, + 628 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 16 + } + } + } + ], + "range": [ + 343, + 632 + ], + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 32, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 328, + 632 + ], + "loc": { + "start": { + "line": 20, + "column": 5 + }, + "end": { + "line": 32, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 325, + 632 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Add new instances to collection\n * @param {Object[]|*} instances\n ", + "range": [ + 241, + 322 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Get collection of instances\n * @returns {Object[]}\n ", + "range": [ + 636, + 703 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "collection", + "range": [ + 710, + 720 + ], + "loc": { + "start": { + "line": 38, + "column": 6 + }, + "end": { + "line": 38, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 736, + 740 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_vector", + "range": [ + 741, + 748 + ], + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 23 + } + } + }, + "range": [ + 736, + 748 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 23 + } + } + }, + "range": [ + 729, + 749 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 24 + } + } + } + ], + "range": [ + 723, + 753 + ], + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 720, + 753 + ], + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 706, + 753 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 40, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Get collection of instances\n * @returns {Object[]}\n ", + "range": [ + 636, + 703 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 41, + 755 + ], + "loc": { + "start": { + "line": 3, + "column": 26 + }, + "end": { + "line": 41, + "column": 1 + } + } + }, + "range": [ + 22, + 755 + ], + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 41, + "column": 1 + } + }, + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 15, + 755 + ], + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 41, + "column": 1 + } + } + } + ], + "sourceType": "module", + "range": [ + 0, + 755 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 41, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * @param {Function} proto\n * @param {Object[]|*} instances\n ", + "range": [ + 46, + 119 + ], + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 8, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Add new instances to collection\n * @param {Object[]|*} instances\n ", + "range": [ + 241, + 322 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Get collection of instances\n * @returns {Object[]}\n ", + "range": [ + 636, + 703 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/OOP/Interface.js.json b/docs-api/deep-core/ast/source/OOP/Interface.js.json new file mode 100644 index 00000000..d81733bb --- /dev/null +++ b/docs-api/deep-core/ast/source/OOP/Interface.js.json @@ -0,0 +1,1839 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "MethodsNotImplementedException", + "range": [ + 69, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 38 + } + } + }, + "imported": { + "type": "Identifier", + "name": "MethodsNotImplementedException", + "range": [ + 69, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 38 + } + } + }, + "range": [ + 69, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 38 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../Exception/MethodsNotImplementedException", + "raw": "'../Exception/MethodsNotImplementedException'", + "range": [ + 106, + 151 + ], + "loc": { + "start": { + "line": 7, + "column": 45 + }, + "end": { + "line": 7, + "column": 90 + } + } + }, + "range": [ + 61, + 152 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 91 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 161, + 185 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 32 + } + } + }, + "imported": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 161, + 185 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 32 + } + } + }, + "range": [ + 161, + 185 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 32 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../Exception/InvalidArgumentException", + "raw": "'../Exception/InvalidArgumentException'", + "range": [ + 192, + 231 + ], + "loc": { + "start": { + "line": 8, + "column": 39 + }, + "end": { + "line": 8, + "column": 78 + } + } + }, + "range": [ + 153, + 232 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 79 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Interface implementation\n ", + "range": [ + 234, + 269 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Interface", + "range": [ + 283, + 292 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 22 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 355, + 366 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "abstractMethods", + "range": [ + 370, + 385 + ], + "loc": { + "start": { + "line": 17, + "column": 17 + }, + "end": { + "line": 17, + "column": 32 + } + } + }, + "range": [ + 367, + 385 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 32 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "methods", + "range": [ + 397, + 404 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 15 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "abstractMethods", + "range": [ + 407, + 422 + ], + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 423, + 429 + ], + "loc": { + "start": { + "line": 18, + "column": 34 + }, + "end": { + "line": 18, + "column": 40 + } + } + }, + "range": [ + 407, + 429 + ], + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 40 + } + } + }, + "right": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 434, + 435 + ], + "loc": { + "start": { + "line": 18, + "column": 45 + }, + "end": { + "line": 18, + "column": 46 + } + } + }, + "range": [ + 407, + 435 + ], + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 46 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "abstractMethods", + "range": [ + 439, + 454 + ], + "loc": { + "start": { + "line": 18, + "column": 50 + }, + "end": { + "line": 18, + "column": 65 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 455, + 456 + ], + "loc": { + "start": { + "line": 18, + "column": 66 + }, + "end": { + "line": 18, + "column": 67 + } + } + }, + "range": [ + 439, + 457 + ], + "loc": { + "start": { + "line": 18, + "column": 50 + }, + "end": { + "line": 18, + "column": 68 + } + } + }, + "right": { + "type": "Identifier", + "name": "Array", + "range": [ + 469, + 474 + ], + "loc": { + "start": { + "line": 18, + "column": 80 + }, + "end": { + "line": 18, + "column": 85 + } + } + }, + "range": [ + 439, + 474 + ], + "loc": { + "start": { + "line": 18, + "column": 50 + }, + "end": { + "line": 18, + "column": 85 + } + } + }, + "range": [ + 407, + 474 + ], + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 85 + } + } + }, + "consequent": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "abstractMethods", + "range": [ + 483, + 498 + ], + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 23 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 499, + 500 + ], + "loc": { + "start": { + "line": 19, + "column": 24 + }, + "end": { + "line": 19, + "column": 25 + } + } + }, + "range": [ + 483, + 501 + ], + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 26 + } + } + }, + "alternate": { + "type": "Identifier", + "name": "abstractMethods", + "range": [ + 510, + 525 + ], + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 23 + } + } + }, + "range": [ + 407, + 525 + ], + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 20, + "column": 23 + } + } + }, + "range": [ + 397, + 525 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 20, + "column": 23 + } + } + } + ], + "kind": "let", + "range": [ + 393, + 526 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 20, + "column": 24 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "notImplementedMethods", + "range": [ + 536, + 557 + ], + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 29 + } + } + }, + "init": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 560, + 562 + ], + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + "range": [ + 536, + 562 + ], + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 34 + } + } + } + ], + "kind": "let", + "range": [ + 532, + 563 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 35 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "abstractMethodKey", + "range": [ + 578, + 595 + ], + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 24, + "column": 30 + } + } + }, + "init": null, + "range": [ + 578, + 595 + ], + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 24, + "column": 30 + } + } + } + ], + "kind": "let", + "range": [ + 574, + 595 + ], + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 30 + } + } + }, + "right": { + "type": "Identifier", + "name": "methods", + "range": [ + 599, + 606 + ], + "loc": { + "start": { + "line": 24, + "column": 34 + }, + "end": { + "line": 24, + "column": 41 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "methods", + "range": [ + 621, + 628 + ], + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 629, + 643 + ], + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 33 + } + } + }, + "range": [ + 621, + 643 + ], + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "abstractMethodKey", + "range": [ + 644, + 661 + ], + "loc": { + "start": { + "line": 25, + "column": 34 + }, + "end": { + "line": 25, + "column": 51 + } + } + } + ], + "range": [ + 621, + 662 + ], + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 52 + } + } + }, + "prefix": true, + "range": [ + 620, + 662 + ], + "loc": { + "start": { + "line": 25, + "column": 10 + }, + "end": { + "line": 25, + "column": 52 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 674, + 683 + ], + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 17 + } + } + } + ], + "range": [ + 664, + 691 + ], + "loc": { + "start": { + "line": 25, + "column": 54 + }, + "end": { + "line": 27, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 616, + 691 + ], + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 27, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "abstractMethod", + "range": [ + 703, + 717 + ], + "loc": { + "start": { + "line": 29, + "column": 10 + }, + "end": { + "line": 29, + "column": 24 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "methods", + "range": [ + 720, + 727 + ], + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "abstractMethodKey", + "range": [ + 728, + 745 + ], + "loc": { + "start": { + "line": 29, + "column": 35 + }, + "end": { + "line": 29, + "column": 52 + } + } + }, + "range": [ + 720, + 746 + ], + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 53 + } + } + }, + "range": [ + 703, + 746 + ], + "loc": { + "start": { + "line": 29, + "column": 10 + }, + "end": { + "line": 29, + "column": 53 + } + } + } + ], + "kind": "let", + "range": [ + 699, + 747 + ], + "loc": { + "start": { + "line": 29, + "column": 6 + }, + "end": { + "line": 29, + "column": 54 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "ThisExpression", + "range": [ + 760, + 764 + ], + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "abstractMethod", + "range": [ + 765, + 779 + ], + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 31 + } + } + }, + "range": [ + 760, + 780 + ], + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 32 + } + } + }, + "right": { + "type": "Identifier", + "name": "Function", + "range": [ + 792, + 800 + ], + "loc": { + "start": { + "line": 30, + "column": 44 + }, + "end": { + "line": 30, + "column": 52 + } + } + }, + "range": [ + 760, + 800 + ], + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 52 + } + } + }, + "prefix": true, + "range": [ + 758, + 801 + ], + "loc": { + "start": { + "line": 30, + "column": 10 + }, + "end": { + "line": 30, + "column": 53 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "notImplementedMethods", + "range": [ + 813, + 834 + ], + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "push", + "range": [ + 835, + 839 + ], + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 34 + } + } + }, + "range": [ + 813, + 839 + ], + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "abstractMethod", + "range": [ + 840, + 854 + ], + "loc": { + "start": { + "line": 31, + "column": 35 + }, + "end": { + "line": 31, + "column": 49 + } + } + } + ], + "range": [ + 813, + 855 + ], + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 50 + } + } + }, + "range": [ + 813, + 856 + ], + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 51 + } + } + } + ], + "range": [ + 803, + 864 + ], + "loc": { + "start": { + "line": 30, + "column": 55 + }, + "end": { + "line": 32, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 754, + 864 + ], + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 32, + "column": 7 + } + } + } + ], + "range": [ + 608, + 870 + ], + "loc": { + "start": { + "line": 24, + "column": 43 + }, + "end": { + "line": 33, + "column": 5 + } + } + }, + "each": false, + "range": [ + 569, + 870 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": ">", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "notImplementedMethods", + "range": [ + 880, + 901 + ], + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 902, + 908 + ], + "loc": { + "start": { + "line": 35, + "column": 30 + }, + "end": { + "line": 35, + "column": 36 + } + } + }, + "range": [ + 880, + 908 + ], + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 36 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 911, + 912 + ], + "loc": { + "start": { + "line": 35, + "column": 39 + }, + "end": { + "line": 35, + "column": 40 + } + } + }, + "range": [ + 880, + 912 + ], + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 40 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "MethodsNotImplementedException", + "range": [ + 932, + 962 + ], + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 36, + "column": 46 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "notImplementedMethods", + "range": [ + 963, + 984 + ], + "loc": { + "start": { + "line": 36, + "column": 47 + }, + "end": { + "line": 36, + "column": 68 + } + } + } + ], + "range": [ + 928, + 985 + ], + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 69 + } + } + }, + "range": [ + 922, + 986 + ], + "loc": { + "start": { + "line": 36, + "column": 6 + }, + "end": { + "line": 36, + "column": 70 + } + } + } + ], + "range": [ + 914, + 992 + ], + "loc": { + "start": { + "line": 35, + "column": 42 + }, + "end": { + "line": 37, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 876, + 992 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 37, + "column": 5 + } + } + } + ], + "range": [ + 387, + 996 + ], + "loc": { + "start": { + "line": 17, + "column": 34 + }, + "end": { + "line": 38, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 366, + 996 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 38, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 355, + 996 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 38, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String[]|String} abstractMethods\n ", + "range": [ + 297, + 352 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 293, + 998 + ], + "loc": { + "start": { + "line": 13, + "column": 23 + }, + "end": { + "line": 39, + "column": 1 + } + } + }, + "range": [ + 277, + 998 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 39, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Interface implementation\n ", + "range": [ + 234, + 269 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 270, + 998 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 39, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Interface implementation\n ", + "range": [ + 234, + 269 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 998 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 39, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Interface implementation\n ", + "range": [ + 234, + 269 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String[]|String} abstractMethods\n ", + "range": [ + 297, + 352 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/ast/source/bootstrap.js.json b/docs-api/deep-core/ast/source/bootstrap.js.json new file mode 100644 index 00000000..fc1aea3b --- /dev/null +++ b/docs-api/deep-core/ast/source/bootstrap.js.json @@ -0,0 +1,2496 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 89, + 101 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + "range": [ + 89, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "OOPInterface", + "range": [ + 125, + 137 + ], + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 33 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Interface", + "range": [ + 112, + 121 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 17 + } + } + }, + "range": [ + 112, + 137 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 33 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./OOP/Interface", + "raw": "'./OOP/Interface'", + "range": [ + 144, + 161 + ], + "loc": { + "start": { + "line": 9, + "column": 40 + }, + "end": { + "line": 9, + "column": 57 + } + } + }, + "range": [ + 104, + 162 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 58 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AWSLambdaRuntime", + "range": [ + 182, + 198 + ], + "loc": { + "start": { + "line": 10, + "column": 19 + }, + "end": { + "line": 10, + "column": 35 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Runtime", + "range": [ + 171, + 178 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 15 + } + } + }, + "range": [ + 171, + 198 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 35 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./AWS/Lambda/Runtime", + "raw": "'./AWS/Lambda/Runtime'", + "range": [ + 205, + 227 + ], + "loc": { + "start": { + "line": 10, + "column": 42 + }, + "end": { + "line": 10, + "column": 64 + } + } + }, + "range": [ + 163, + 228 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 65 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AWSRegion", + "range": [ + 247, + 256 + ], + "loc": { + "start": { + "line": 11, + "column": 18 + }, + "end": { + "line": 11, + "column": 27 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Region", + "range": [ + 237, + 243 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 14 + } + } + }, + "range": [ + 237, + 256 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 27 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./AWS/Region", + "raw": "'./AWS/Region'", + "range": [ + 263, + 277 + ], + "loc": { + "start": { + "line": 11, + "column": 34 + }, + "end": { + "line": 11, + "column": 48 + } + } + }, + "range": [ + 229, + 278 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 49 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AWSService", + "range": [ + 298, + 308 + ], + "loc": { + "start": { + "line": 12, + "column": 19 + }, + "end": { + "line": 12, + "column": 29 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Service", + "range": [ + 287, + 294 + ], + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 15 + } + } + }, + "range": [ + 287, + 308 + ], + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 29 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./AWS/Service", + "raw": "'./AWS/Service'", + "range": [ + 315, + 330 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 51 + } + } + }, + "range": [ + 279, + 331 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 52 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AWSIAMPolicy", + "range": [ + 350, + 362 + ], + "loc": { + "start": { + "line": 13, + "column": 18 + }, + "end": { + "line": 13, + "column": 30 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Policy", + "range": [ + 340, + 346 + ], + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 14 + } + } + }, + "range": [ + 340, + 362 + ], + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 30 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./AWS/IAM/Policy", + "raw": "'./AWS/IAM/Policy'", + "range": [ + 369, + 387 + ], + "loc": { + "start": { + "line": 13, + "column": 37 + }, + "end": { + "line": 13, + "column": 55 + } + } + }, + "range": [ + 332, + 388 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 13, + "column": 56 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AWSIAMFactory", + "range": [ + 408, + 421 + ], + "loc": { + "start": { + "line": 14, + "column": 19 + }, + "end": { + "line": 14, + "column": 32 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Factory", + "range": [ + 397, + 404 + ], + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 15 + } + } + }, + "range": [ + 397, + 421 + ], + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 32 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./AWS/IAM/Factory", + "raw": "'./AWS/IAM/Factory'", + "range": [ + 428, + 447 + ], + "loc": { + "start": { + "line": 14, + "column": 39 + }, + "end": { + "line": 14, + "column": 58 + } + } + }, + "range": [ + 389, + 448 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 59 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "GenericObjectStorage", + "range": [ + 474, + 494 + ], + "loc": { + "start": { + "line": 15, + "column": 25 + }, + "end": { + "line": 15, + "column": 45 + } + } + }, + "imported": { + "type": "Identifier", + "name": "ObjectStorage", + "range": [ + 457, + 470 + ], + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 21 + } + } + }, + "range": [ + 457, + 494 + ], + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 45 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Generic/ObjectStorage", + "raw": "'./Generic/ObjectStorage'", + "range": [ + 501, + 526 + ], + "loc": { + "start": { + "line": 15, + "column": 52 + }, + "end": { + "line": 15, + "column": 77 + } + } + }, + "range": [ + 449, + 527 + ], + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 78 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "GenericObjectVector", + "range": [ + 552, + 571 + ], + "loc": { + "start": { + "line": 16, + "column": 24 + }, + "end": { + "line": 16, + "column": 43 + } + } + }, + "imported": { + "type": "Identifier", + "name": "ObjectVector", + "range": [ + 536, + 548 + ], + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 20 + } + } + }, + "range": [ + 536, + 571 + ], + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 43 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Generic/ObjectVector", + "raw": "'./Generic/ObjectVector'", + "range": [ + 578, + 602 + ], + "loc": { + "start": { + "line": 16, + "column": 50 + }, + "end": { + "line": 16, + "column": 74 + } + } + }, + "range": [ + 528, + 603 + ], + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 16, + "column": 75 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "ExceptionException", + "range": [ + 625, + 643 + ], + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 39 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 612, + 621 + ], + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 612, + 643 + ], + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 39 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/Exception", + "raw": "'./Exception/Exception'", + "range": [ + 650, + 673 + ], + "loc": { + "start": { + "line": 17, + "column": 46 + }, + "end": { + "line": 17, + "column": 69 + } + } + }, + "range": [ + 604, + 674 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 17, + "column": 70 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "ExceptionMethodsNotImplementedException", + "range": [ + 717, + 756 + ], + "loc": { + "start": { + "line": 18, + "column": 42 + }, + "end": { + "line": 18, + "column": 81 + } + } + }, + "imported": { + "type": "Identifier", + "name": "MethodsNotImplementedException", + "range": [ + 683, + 713 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 38 + } + } + }, + "range": [ + 683, + 756 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 81 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/MethodsNotImplementedException", + "raw": "'./Exception/MethodsNotImplementedException'", + "range": [ + 763, + 807 + ], + "loc": { + "start": { + "line": 18, + "column": 88 + }, + "end": { + "line": 18, + "column": 132 + } + } + }, + "range": [ + 675, + 808 + ], + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 18, + "column": 133 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "ExceptionInvalidArgumentException", + "range": [ + 845, + 878 + ], + "loc": { + "start": { + "line": 19, + "column": 36 + }, + "end": { + "line": 19, + "column": 69 + } + } + }, + "imported": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 817, + 841 + ], + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 32 + } + } + }, + "range": [ + 817, + 878 + ], + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 69 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/InvalidArgumentException", + "raw": "'./Exception/InvalidArgumentException'", + "range": [ + 885, + 923 + ], + "loc": { + "start": { + "line": 19, + "column": 76 + }, + "end": { + "line": 19, + "column": 114 + } + } + }, + "range": [ + 809, + 924 + ], + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 19, + "column": 115 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "ExceptionDatabaseOperationException", + "range": [ + 963, + 998 + ], + "loc": { + "start": { + "line": 20, + "column": 38 + }, + "end": { + "line": 20, + "column": 73 + } + } + }, + "imported": { + "type": "Identifier", + "name": "DatabaseOperationException", + "range": [ + 933, + 959 + ], + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 34 + } + } + }, + "range": [ + 933, + 998 + ], + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 73 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/DatabaseOperationException", + "raw": "'./Exception/DatabaseOperationException'", + "range": [ + 1005, + 1045 + ], + "loc": { + "start": { + "line": 20, + "column": 80 + }, + "end": { + "line": 20, + "column": 120 + } + } + }, + "range": [ + 925, + 1046 + ], + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 121 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "exports", + "range": [ + 1052, + 1059 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 11 + } + } + }, + "init": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "module", + "range": [ + 1062, + 1068 + ], + "loc": { + "start": { + "line": 22, + "column": 14 + }, + "end": { + "line": 22, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exports", + "range": [ + 1069, + 1076 + ], + "loc": { + "start": { + "line": 22, + "column": 21 + }, + "end": { + "line": 22, + "column": 28 + } + } + }, + "range": [ + 1062, + 1076 + ], + "loc": { + "start": { + "line": 22, + "column": 14 + }, + "end": { + "line": 22, + "column": 28 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "IS_DEV_SERVER", + "range": [ + 1083, + 1096 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 23, + "column": 15 + } + } + }, + "value": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "global", + "range": [ + 1098, + 1104 + ], + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "__DEEP_DEV_SERVER", + "range": [ + 1105, + 1122 + ], + "loc": { + "start": { + "line": 23, + "column": 24 + }, + "end": { + "line": 23, + "column": 41 + } + } + }, + "range": [ + 1098, + 1122 + ], + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 41 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 1126, + 1131 + ], + "loc": { + "start": { + "line": 23, + "column": 45 + }, + "end": { + "line": 23, + "column": 50 + } + } + }, + "range": [ + 1098, + 1131 + ], + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 50 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1083, + 1131 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 23, + "column": 50 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Exception", + "range": [ + 1135, + 1144 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 11 + } + } + }, + "value": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Exception", + "range": [ + 1152, + 1161 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 13 + } + } + }, + "value": { + "type": "Identifier", + "name": "ExceptionException", + "range": [ + 1163, + 1181 + ], + "loc": { + "start": { + "line": 25, + "column": 15 + }, + "end": { + "line": 25, + "column": 33 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1152, + 1181 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 33 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 1187, + 1211 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 28 + } + } + }, + "value": { + "type": "Identifier", + "name": "ExceptionInvalidArgumentException", + "range": [ + 1213, + 1246 + ], + "loc": { + "start": { + "line": 26, + "column": 30 + }, + "end": { + "line": 26, + "column": 63 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1187, + 1246 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 63 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "MethodsNotImplementedException", + "range": [ + 1252, + 1282 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 34 + } + } + }, + "value": { + "type": "Identifier", + "name": "ExceptionMethodsNotImplementedException", + "range": [ + 1284, + 1323 + ], + "loc": { + "start": { + "line": 27, + "column": 36 + }, + "end": { + "line": 27, + "column": 75 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1252, + 1323 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 75 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "DatabaseOperationException", + "range": [ + 1329, + 1355 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 30 + } + } + }, + "value": { + "type": "Identifier", + "name": "ExceptionDatabaseOperationException", + "range": [ + 1357, + 1392 + ], + "loc": { + "start": { + "line": 28, + "column": 32 + }, + "end": { + "line": 28, + "column": 67 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1329, + 1392 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 67 + } + } + } + ], + "range": [ + 1146, + 1397 + ], + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 29, + "column": 3 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1135, + 1397 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 29, + "column": 3 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "OOP", + "range": [ + 1401, + 1404 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + }, + "value": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Interface", + "range": [ + 1412, + 1421 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 13 + } + } + }, + "value": { + "type": "Identifier", + "name": "OOPInterface", + "range": [ + 1423, + 1435 + ], + "loc": { + "start": { + "line": 31, + "column": 15 + }, + "end": { + "line": 31, + "column": 27 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1412, + 1435 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 27 + } + } + } + ], + "range": [ + 1406, + 1440 + ], + "loc": { + "start": { + "line": 30, + "column": 7 + }, + "end": { + "line": 32, + "column": 3 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1401, + 1440 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 3 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Generic", + "range": [ + 1444, + 1451 + ], + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 33, + "column": 9 + } + } + }, + "value": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "ObjectStorage", + "range": [ + 1459, + 1472 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 17 + } + } + }, + "value": { + "type": "Identifier", + "name": "GenericObjectStorage", + "range": [ + 1474, + 1494 + ], + "loc": { + "start": { + "line": 34, + "column": 19 + }, + "end": { + "line": 34, + "column": 39 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1459, + 1494 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 39 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "ObjectVector", + "range": [ + 1500, + 1512 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 16 + } + } + }, + "value": { + "type": "Identifier", + "name": "GenericObjectVector", + "range": [ + 1514, + 1533 + ], + "loc": { + "start": { + "line": 35, + "column": 18 + }, + "end": { + "line": 35, + "column": 37 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1500, + 1533 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 37 + } + } + } + ], + "range": [ + 1453, + 1538 + ], + "loc": { + "start": { + "line": 33, + "column": 11 + }, + "end": { + "line": 36, + "column": 3 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1444, + 1538 + ], + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 36, + "column": 3 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "AWS", + "range": [ + 1542, + 1545 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + }, + "value": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Region", + "range": [ + 1553, + 1559 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 10 + } + } + }, + "value": { + "type": "Identifier", + "name": "AWSRegion", + "range": [ + 1561, + 1570 + ], + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 21 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1553, + 1570 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 21 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Service", + "range": [ + 1576, + 1583 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 11 + } + } + }, + "value": { + "type": "Identifier", + "name": "AWSService", + "range": [ + 1585, + 1595 + ], + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 23 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1576, + 1595 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 23 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "IAM", + "range": [ + 1601, + 1604 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + } + }, + "value": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Factory", + "range": [ + 1614, + 1621 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 13 + } + } + }, + "value": { + "type": "Identifier", + "name": "AWSIAMFactory", + "range": [ + 1623, + 1636 + ], + "loc": { + "start": { + "line": 41, + "column": 15 + }, + "end": { + "line": 41, + "column": 28 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1614, + 1636 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 28 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Policy", + "range": [ + 1644, + 1650 + ], + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 12 + } + } + }, + "value": { + "type": "Identifier", + "name": "AWSIAMPolicy", + "range": [ + 1652, + 1664 + ], + "loc": { + "start": { + "line": 42, + "column": 14 + }, + "end": { + "line": 42, + "column": 26 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1644, + 1664 + ], + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 26 + } + } + } + ], + "range": [ + 1606, + 1671 + ], + "loc": { + "start": { + "line": 40, + "column": 9 + }, + "end": { + "line": 43, + "column": 5 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1601, + 1671 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 43, + "column": 5 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Lambda", + "range": [ + 1677, + 1683 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 10 + } + } + }, + "value": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Runtime", + "range": [ + 1693, + 1700 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 13 + } + } + }, + "value": { + "type": "Identifier", + "name": "AWSLambdaRuntime", + "range": [ + 1702, + 1718 + ], + "loc": { + "start": { + "line": 45, + "column": 15 + }, + "end": { + "line": 45, + "column": 31 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1693, + 1718 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 31 + } + } + } + ], + "range": [ + 1685, + 1725 + ], + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 46, + "column": 5 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1677, + 1725 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 46, + "column": 5 + } + } + } + ], + "range": [ + 1547, + 1730 + ], + "loc": { + "start": { + "line": 37, + "column": 7 + }, + "end": { + "line": 47, + "column": 3 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1542, + 1730 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 47, + "column": 3 + } + } + } + ], + "range": [ + 1079, + 1733 + ], + "loc": { + "start": { + "line": 22, + "column": 31 + }, + "end": { + "line": 48, + "column": 1 + } + } + }, + "range": [ + 1062, + 1733 + ], + "loc": { + "start": { + "line": 22, + "column": 14 + }, + "end": { + "line": 48, + "column": 1 + } + } + }, + "range": [ + 1052, + 1733 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 48, + "column": 1 + } + } + } + ], + "kind": "let", + "range": [ + 1048, + 1734 + ], + "loc": { + "start": { + "line": 22, + "column": 0 + }, + "end": { + "line": 48, + "column": 2 + } + } + } + ], + "sourceType": "module", + "range": [ + 89, + 1734 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 48, + "column": 2 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-core/badge.svg b/docs-api/deep-core/badge.svg new file mode 100644 index 00000000..9ba96831 --- /dev/null +++ b/docs-api/deep-core/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 94% + 94% + + diff --git a/docs-api/deep-core/class/lib/AWS/IAM/Action.js~Action.html b/docs-api/deep-core/class/lib/AWS/IAM/Action.js~Action.html new file mode 100644 index 00000000..170a6a45 --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/IAM/Action.js~Action.html @@ -0,0 +1,569 @@ + + + + + + Action | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Action} from 'deep-core/lib/AWS/IAM/Action.js'
    + public + class + + + + | source +
    + +
    +

    Action

    + + + + + +

    Extends:

    lib/AWS/IAM/Extractable~Extractable → Action
    + + + + + + + + + +

    Iam statement action

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + set + + + +
    +

    + action(action: String): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + action: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + service(name: String): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + service: String: * +

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

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + extract(): String +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

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

    Public Members

    + +
    +

    + public + + set + + + action(action: String): * + + + + source + +

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

    + public + + get + + + action: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + service(name: String): * + + + + source + +

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

    + public + + get + + + service: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + extract(): String + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/AWS/IAM/Collection.js~Collection.html b/docs-api/deep-core/class/lib/AWS/IAM/Collection.js~Collection.html new file mode 100644 index 00000000..09d8f181 --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/IAM/Collection.js~Collection.html @@ -0,0 +1,712 @@ + + + + + + Collection | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Collection} from 'deep-core/lib/AWS/IAM/Collection.js'
    + public + class + + + + | source +
    + +
    +

    Collection

    + + + + + +

    Extends:

    lib/AWS/IAM/Extractable~Extractable → Collection
    + + + + + + + + + +

    Collection of something

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(prototype: Object) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + prototype: Object: * +

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

    Method Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + add(args: Array): Object +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + count(): Number +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + create(args: Array): Object +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + extract(): Array +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + list(): Array +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(prototype: Object) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    prototypeObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + prototype: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + add(args: Array): Object + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + +
    +

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + count(): Number + + + + source + +

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

    Return:

    + + + + + +
    Number
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + create(args: Array): Object + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + +
    +

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + extract(): Array + + + + source + +

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

    Return:

    + + + + + +
    Array
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + list(): Array + + + + source + +

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

    Return:

    + + + + + +
    Array
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/AWS/IAM/Exception/InvalidArnException.js~InvalidArnException.html b/docs-api/deep-core/class/lib/AWS/IAM/Exception/InvalidArnException.js~InvalidArnException.html new file mode 100644 index 00000000..01770a9e --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/IAM/Exception/InvalidArnException.js~InvalidArnException.html @@ -0,0 +1,214 @@ + + + + + + InvalidArnException | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {InvalidArnException} from 'deep-core/lib/AWS/IAM/Exception/InvalidArnException.js'
    + public + class + + + + | source +
    + +
    +

    InvalidArnException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → InvalidArnException
    + + + + + + + + + +

    Thrown when ARN is invalid

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(arn: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(arn: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    arnString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/AWS/IAM/Extractable.js~Extractable.html b/docs-api/deep-core/class/lib/AWS/IAM/Extractable.js~Extractable.html new file mode 100644 index 00000000..98038a74 --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/IAM/Extractable.js~Extractable.html @@ -0,0 +1,198 @@ + + + + + + Extractable | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Extractable} from 'deep-core/lib/AWS/IAM/Extractable.js'
    + public + class + + + + | source +
    + +
    +

    Extractable

    + + + + + +

    Extends:

    lib/OOP/Interface~Interface → Extractable
    + + + + + + + + + +

    Extractable helper

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

    + + + + + + + + +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/AWS/IAM/Factory.js~Factory.html b/docs-api/deep-core/class/lib/AWS/IAM/Factory.js~Factory.html new file mode 100644 index 00000000..c4306ddc --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/IAM/Factory.js~Factory.html @@ -0,0 +1,629 @@ + + + + + + Factory | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Factory} from 'deep-core/lib/AWS/IAM/Factory.js'
    + public + class + + + + | source +
    + +
    +

    Factory

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

    AWS IAM factory

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

    Static Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + +
    +

    + ACTION: Resource: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + POLICY: Policy: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + RESOURCE: Action: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + STATEMENT: Statement: * +

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

    Static Method Summary

    + + + + + + + + + + + + + + +
    Static Public Methods
    + public + static + + + + +
    +

    + create(Prototype: Function | *, args: Array): Object +

    +
    +
    + + + +
    +
    + + +
    + public + static + + + + +
    +

    + createCollection(Prototype: Function | *): Collection +

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

    Static Public Members

    + +
    +

    + public + static + get + + + ACTION: Resource: * + + + + source + +

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

    Return:

    + + + + + +
    Resource
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + POLICY: Policy: * + + + + source + +

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

    Return:

    + + + + + +
    Policy
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + RESOURCE: Action: * + + + + source + +

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

    Return:

    + + + + + +
    Action
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + STATEMENT: Statement: * + + + + source + +

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

    Return:

    + + + + + +
    Statement
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Static Public Methods

    + +
    +

    + public + static + + + + create(Prototype: Function | *, args: Array): Object + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    PrototypeFunction | *
    argsArray
    +
    +
    + +
    +

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + + + + createCollection(Prototype: Function | *): Collection + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    PrototypeFunction | *
    +
    +
    + +
    +

    Return:

    + + + + + +
    Collection
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/AWS/IAM/Policy.js~Policy.html b/docs-api/deep-core/class/lib/AWS/IAM/Policy.js~Policy.html new file mode 100644 index 00000000..976570cd --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/IAM/Policy.js~Policy.html @@ -0,0 +1,737 @@ + + + + + + Policy | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Policy} from 'deep-core/lib/AWS/IAM/Policy.js'
    + public + class + + + + | source +
    + +
    +

    Policy

    + + + + + +

    Extends:

    lib/AWS/IAM/Extractable~Extractable → Policy
    + + + + + + + + + +

    IAM policy

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

    Static Member Summary

    + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + +
    +

    + ANY: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    +
    + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + statement: Collection: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + version(version: String): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + version: String: * +

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

    Method Summary

    + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + extract(): Object +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + toString(): String +

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

    Static Public Members

    + +
    +

    + public + static + get + + + ANY: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + DEFAULT_VERSION: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

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

    Public Members

    + +
    +

    + public + + get + + + statement: Collection: * + + + + source + +

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

    Return:

    + + + + + +
    Collection
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + version(version: String): * + + + + source + +

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

    + public + + get + + + version: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + extract(): Object + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + toString(): String + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/AWS/IAM/Resource.js~Resource.html b/docs-api/deep-core/class/lib/AWS/IAM/Resource.js~Resource.html new file mode 100644 index 00000000..4774024e --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/IAM/Resource.js~Resource.html @@ -0,0 +1,940 @@ + + + + + + Resource | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Resource} from 'deep-core/lib/AWS/IAM/Resource.js'
    + public + class + + + + | source +
    + +
    +

    Resource

    + + + + + +

    Extends:

    lib/AWS/IAM/Extractable~Extractable → Resource
    + + + + + + + + + +

    IAM statement resource

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + set + + + +
    +

    + accountId(identifier: String): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + accountId: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + descriptor(descriptor: String): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + descriptor: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + region(name: String): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + region: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + service(name: String): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + service: String: * +

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

    Method Summary

    + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + extract(): String +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + updateFromArn(arn: string): Resource +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

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

    Public Members

    + +
    +

    + public + + set + + + accountId(identifier: String): * + + + + source + +

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

    + public + + get + + + accountId: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + descriptor(descriptor: String): * + + + + source + +

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

    + public + + get + + + descriptor: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + region(name: String): * + + + + source + +

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

    + public + + get + + + region: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + service(name: String): * + + + + source + +

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

    + public + + get + + + service: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + extract(): String + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + updateFromArn(arn: string): Resource + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    arnstring
    +
    +
    + +
    +

    Return:

    + + + + + +
    Resource
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/AWS/IAM/Statement.js~Statement.html b/docs-api/deep-core/class/lib/AWS/IAM/Statement.js~Statement.html new file mode 100644 index 00000000..bee744e6 --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/IAM/Statement.js~Statement.html @@ -0,0 +1,1167 @@ + + + + + + Statement | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Statement} from 'deep-core/lib/AWS/IAM/Statement.js'
    + public + class + + + + | source +
    + +
    +

    Statement

    + + + + + +

    Extends:

    lib/AWS/IAM/Extractable~Extractable → Statement
    + + + + + + + + + +

    IAM policy statement

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

    Static Member Summary

    + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + +
    +

    + ALLOW: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + DENY: String: string +

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + action: Collection: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + condition(condition: Object): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + condition: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + effect(effect: String): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + effect: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + notAction: Collection: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + notResource: Collection: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + principal(principal: *): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + principal: *: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + resource: Collection: * +

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

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + extract(): Object +

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

    Static Public Members

    + +
    +

    + public + static + get + + + ALLOW: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + DENY: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

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

    Public Members

    + +
    +

    + public + + get + + + action: Collection: * + + + + source + +

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

    Return:

    + + + + + +
    Collection
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + condition(condition: Object): * + + + + source + +

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

    + public + + get + + + condition: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + effect(effect: String): * + + + + source + +

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

    + public + + get + + + effect: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + notAction: Collection: * + + + + source + +

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

    Return:

    + + + + + +
    Collection
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + notResource: Collection: * + + + + source + +

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

    Return:

    + + + + + +
    Collection
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + principal(principal: *): * + + + + source + +

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

    + public + + get + + + principal: *: * + + + + source + +

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

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + resource: Collection: * + + + + source + +

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

    Return:

    + + + + + +
    Collection
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + extract(): Object + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/AWS/Lambda/ErrorResponse.js~ErrorResponse.html b/docs-api/deep-core/class/lib/AWS/Lambda/ErrorResponse.js~ErrorResponse.html new file mode 100644 index 00000000..35f6decf --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/Lambda/ErrorResponse.js~ErrorResponse.html @@ -0,0 +1,297 @@ + + + + + + ErrorResponse | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {ErrorResponse} from 'deep-core/lib/AWS/Lambda/ErrorResponse.js'
    + public + class + + + + | source +
    + +
    +

    ErrorResponse

    + + + + + +

    Extends:

    lib/AWS/Lambda/Response~Response → ErrorResponse
    + + + + + + + + + +

    Error response sent to the lambda context

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: *) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + + +
    + + + +
    +
    + + +
    +
    + + + + + + +

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: *) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    args*
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + contextMethod: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js~MissingRuntimeContextException.html b/docs-api/deep-core/class/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js~MissingRuntimeContextException.html new file mode 100644 index 00000000..35da43e1 --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js~MissingRuntimeContextException.html @@ -0,0 +1,198 @@ + + + + + + MissingRuntimeContextException | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {MissingRuntimeContextException} from 'deep-core/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js'
    + public + class + + + + | source +
    + +
    +

    MissingRuntimeContextException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → MissingRuntimeContextException
    + + + + + + + + + +

    Thrown when missing runtime lambda context

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

    + + + + + + + + +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/AWS/Lambda/Request.js~Request.html b/docs-api/deep-core/class/lib/AWS/Lambda/Request.js~Request.html new file mode 100644 index 00000000..eef404ac --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/Lambda/Request.js~Request.html @@ -0,0 +1,402 @@ + + + + + + Request | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Request} from 'deep-core/lib/AWS/Lambda/Request.js'
    + public + class + + + + | source +
    + +
    +

    Request

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

    Request received by the lambda context

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(data: *) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + data: *: * +

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

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + getParam(name: String, defaultValue: String | Object | null): String | Object | null +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(data: *) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    data*
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + data: *: * + + + + source + +

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

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + getParam(name: String, defaultValue: String | Object | null): String | Object | null + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    nameString
    defaultValueString | Object | null
    +
    +
    + +
    +

    Return:

    + + + + + +
    String | Object | null
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/AWS/Lambda/Response.js~Response.html b/docs-api/deep-core/class/lib/AWS/Lambda/Response.js~Response.html new file mode 100644 index 00000000..8f1bb357 --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/Lambda/Response.js~Response.html @@ -0,0 +1,595 @@ + + + + + + Response | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Response} from 'deep-core/lib/AWS/Lambda/Response.js'
    + public + class + + + + | source +
    + +
    +

    Response

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

    Response sent to the lambda context

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(data: *) +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + + +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + data: *: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + runtimeContext(context: Object): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + runtimeContext: Object: * +

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

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + send(): Response +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(data: *) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    data*
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + contextMethod: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + data: *: * + + + + source + +

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

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + runtimeContext(context: Object): * + + + + source + +

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

    + public + + get + + + runtimeContext: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + send(): Response + + + + source + +

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

    Return:

    + + + + + +
    Response
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/AWS/Lambda/Runtime.js~Runtime.html b/docs-api/deep-core/class/lib/AWS/Lambda/Runtime.js~Runtime.html new file mode 100644 index 00000000..0c559328 --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/Lambda/Runtime.js~Runtime.html @@ -0,0 +1,734 @@ + + + + + + Runtime | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Runtime} from 'deep-core/lib/AWS/Lambda/Runtime.js'
    + public + class + + + + | source +
    + +
    +

    Runtime

    + + + + + +

    Extends:

    lib/OOP/Interface~Interface → Runtime
    + + + + + + + + + +

    Lambda runtime context

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(kernel: Object) +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + kernel: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + lambda: Function: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + request: Request: * +

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

    Method Summary

    + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + createError(iError: String): * +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + createResponse(data: Object): * +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + run(event: *, context: *): Runtime +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(kernel: Object) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    kernelObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + kernel: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + lambda: Function: * + + + + source + +

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

    Return:

    + + + + + +
    Function
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + request: Request: * + + + + source + +

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

    Return:

    + + + + + +
    Request
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + createError(iError: String): * + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    iErrorString
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + createResponse(data: Object): * + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    dataObject
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + run(event: *, context: *): Runtime + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    event*
    context*
    +
    +
    + +
    +

    Return:

    + + + + + +
    Runtime
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/AWS/Region.js~Region.html b/docs-api/deep-core/class/lib/AWS/Region.js~Region.html new file mode 100644 index 00000000..a01519ff --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/Region.js~Region.html @@ -0,0 +1,1230 @@ + + + + + + Region | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Region} from 'deep-core/lib/AWS/Region.js'
    + public + class + + + + | source +
    + +
    +

    Region

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

    Available AWS regions

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

    Static Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + +
    +

    + ANY: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    +
    +

    Static Method Summary

    + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Methods
    + public + static + + + + +
    +

    + all(): String[] +

    +
    +
    + + +
    List method alias
    +
    +
    + + +
    + public + static + + + + +
    +

    + exists(name: String): Boolean +

    +
    +
    + + + +
    +
    + + +
    + public + static + + + + +
    +

    + getAppropriateAwsRegion(defaultRegion: string, availableRegions: array): string +

    +
    +
    + + + +
    +
    + + +
    + public + static + + + + +
    +

    + list(): String[] +

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

    Static Public Members

    + +
    +

    + public + static + get + + + ANY: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + ASIA_PACIFIC_SINGAPORE: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + ASIA_PACIFIC_SYDNEY: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + ASIA_PACIFIC_TOKYO: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + EU_FRANKFURT: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + EU_IRELAND: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + SOUTH_AMERICA_SAO_PAULO: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + US_EAST_N_VIRGINIA: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + US_WEST_N_CALIFORNIA: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + US_WEST_OREGON: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Static Public Methods

    + +
    +

    + public + static + + + + all(): String[] + + + + source + +

    + + + + +

    List method alias

    +
    + + + +
    +
    + +
    +

    Return:

    + + + + + +
    String[]
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + + + + exists(name: String): Boolean + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    nameString
    +
    +
    + +
    +

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + + + + getAppropriateAwsRegion(defaultRegion: string, availableRegions: array): string + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    defaultRegionstring
    availableRegionsarray
    +
    +
    + +
    +

    Return:

    + + + + + +
    string
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + + + + list(): String[] + + + + source + +

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

    Return:

    + + + + + +
    String[]
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/AWS/Service.js~Service.html b/docs-api/deep-core/class/lib/AWS/Service.js~Service.html new file mode 100644 index 00000000..feee80f6 --- /dev/null +++ b/docs-api/deep-core/class/lib/AWS/Service.js~Service.html @@ -0,0 +1,1373 @@ + + + + + + Service | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Service} from 'deep-core/lib/AWS/Service.js'
    + public + class + + + + | source +
    + +
    +

    Service

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

    Available AWS services

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

    Static Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + DYNAMO_DB: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + KINESIS: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + LAMBDA: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    +
    +

    Static Method Summary

    + + + + + + + + + + + + + + + + + + + +
    Static Public Methods
    + public + static + + + + +
    +

    + exists(name: String): Boolean +

    +
    +
    + + + +
    +
    + + +
    + public + static + + + + +
    +

    + identifier(service: String): String +

    +
    +
    + + + +
    +
    + + +
    + public + static + + + + +
    +

    + list(): String[] +

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

    Static Public Members

    + +
    +

    + public + static + get + + + API_GATEWAY: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + CLOUD_FRONT: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + CLOUD_WATCH_LOGS: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + COGNITO_IDENTITY: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + COGNITO_SYNC: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + DYNAMO_DB: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + ELASTIC_CACHE: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + IDENTITY_AND_ACCESS_MANAGEMENT: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + KINESIS: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + LAMBDA: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + SECURITY_TOKEN_SERVICE: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + SIMPLE_NOTIFICATION_SERVICE: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + SIMPLE_STORAGE_SERVICE: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Static Public Methods

    + +
    +

    + public + static + + + + exists(name: String): Boolean + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    nameString
    +
    +
    + +
    +

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + + + + identifier(service: String): String + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    serviceString
    +
    +
    + +
    +

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + + + + list(): String[] + + + + source + +

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

    Return:

    + + + + + +
    String[]
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/Exception/DatabaseOperationException.js~DatabaseOperationException.html b/docs-api/deep-core/class/lib/Exception/DatabaseOperationException.js~DatabaseOperationException.html new file mode 100644 index 00000000..6a336339 --- /dev/null +++ b/docs-api/deep-core/class/lib/Exception/DatabaseOperationException.js~DatabaseOperationException.html @@ -0,0 +1,214 @@ + + + + + + DatabaseOperationException | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {DatabaseOperationException} from 'deep-core/lib/Exception/DatabaseOperationException.js'
    + public + class + + + + | source +
    + +
    +

    DatabaseOperationException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → DatabaseOperationException
    + + + + + + + + + +

    Thrown when operation on the database failed

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(error: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(error: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    errorString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/Exception/Exception.js~Exception.html b/docs-api/deep-core/class/lib/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..2caa1579 --- /dev/null +++ b/docs-api/deep-core/class/lib/Exception/Exception.js~Exception.html @@ -0,0 +1,297 @@ + + + + + + Exception | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Exception} from 'deep-core/lib/Exception/Exception.js'
    + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    Error → Exception
    + + + + + + + + + +

    Base exception

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(message: String) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + name: String: * +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(message: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    messageString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + name: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/Exception/InvalidArgumentException.js~InvalidArgumentException.html b/docs-api/deep-core/class/lib/Exception/InvalidArgumentException.js~InvalidArgumentException.html new file mode 100644 index 00000000..390b3992 --- /dev/null +++ b/docs-api/deep-core/class/lib/Exception/InvalidArgumentException.js~InvalidArgumentException.html @@ -0,0 +1,220 @@ + + + + + + InvalidArgumentException | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {InvalidArgumentException} from 'deep-core/lib/Exception/InvalidArgumentException.js'
    + public + class + + + + | source +
    + +
    +

    InvalidArgumentException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → InvalidArgumentException
    + + + + + + + + + +

    Thrown when invalid argument provided

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(argument: *, meantType: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(argument: *, meantType: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argument*
    meantTypeString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/Exception/MethodsNotImplementedException.js~MethodsNotImplementedException.html b/docs-api/deep-core/class/lib/Exception/MethodsNotImplementedException.js~MethodsNotImplementedException.html new file mode 100644 index 00000000..1917ff4a --- /dev/null +++ b/docs-api/deep-core/class/lib/Exception/MethodsNotImplementedException.js~MethodsNotImplementedException.html @@ -0,0 +1,214 @@ + + + + + + MethodsNotImplementedException | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {MethodsNotImplementedException} from 'deep-core/lib/Exception/MethodsNotImplementedException.js'
    + public + class + + + + | source +
    + +
    +

    MethodsNotImplementedException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → MethodsNotImplementedException
    + + + + + + + + + +

    Thrown when methods from interface or abstract class are not implemented

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(methods: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(methods: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    methodsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/Generic/ObjectStorage.js~ObjectStorage.html b/docs-api/deep-core/class/lib/Generic/ObjectStorage.js~ObjectStorage.html new file mode 100644 index 00000000..99963c27 --- /dev/null +++ b/docs-api/deep-core/class/lib/Generic/ObjectStorage.js~ObjectStorage.html @@ -0,0 +1,493 @@ + + + + + + ObjectStorage | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {ObjectStorage} from 'deep-core/lib/Generic/ObjectStorage.js'
    + public + class + + + + | source +
    + +
    +

    ObjectStorage

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

    Simple object storage implementation

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(objects: Array) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + iterator: Array: * +

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

    Method Summary

    + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + add(object: *): ObjectStorage +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + find(thing: *, strict: Boolean): * +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(objects: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    objectsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + iterator: Array: * + + + + source + +

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

    Return:

    + + + + + +
    Array
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + add(object: *): ObjectStorage + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    object*
    +
    +
    + +
    +

    Return:

    + + + + + +
    ObjectStorage
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + find(thing: *, strict: Boolean): * + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    thing*
    strictBoolean
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/Generic/ObjectVector.js~ObjectVector.html b/docs-api/deep-core/class/lib/Generic/ObjectVector.js~ObjectVector.html new file mode 100644 index 00000000..26a8b8a2 --- /dev/null +++ b/docs-api/deep-core/class/lib/Generic/ObjectVector.js~ObjectVector.html @@ -0,0 +1,403 @@ + + + + + + ObjectVector | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {ObjectVector} from 'deep-core/lib/Generic/ObjectVector.js'
    + public + class + + + + | source +
    + +
    +

    ObjectVector

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(proto: Function, instances: Object[] | *) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + collection: Object[]: * +

    +
    +
    + + +
    Get collection of instances
    +
    +
    + + +
    +
    +

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + add(instances: Object[] | *): * +

    +
    +
    + + +
    Add new instances to collection
    +
    +
    + + +
    +
    + + + + + +

    Public Constructors

    + +
    +

    + public + + + + + constructor(proto: Function, instances: Object[] | *) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    protoFunction
    instancesObject[] | *
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + collection: Object[]: * + + + + source + +

    + + + + +

    Get collection of instances

    +
    + + + +
    +
    + +
    +

    Return:

    + + + + + +
    Object[]
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + add(instances: Object[] | *): * + + + + source + +

    + + + + +

    Add new instances to collection

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    instancesObject[] | *
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/class/lib/OOP/Interface.js~Interface.html b/docs-api/deep-core/class/lib/OOP/Interface.js~Interface.html new file mode 100644 index 00000000..f49f5b20 --- /dev/null +++ b/docs-api/deep-core/class/lib/OOP/Interface.js~Interface.html @@ -0,0 +1,214 @@ + + + + + + Interface | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Interface} from 'deep-core/lib/OOP/Interface.js'
    + public + class + + + + | source +
    + +
    +

    Interface

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

    Interface implementation

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(abstractMethods: String[] | String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(abstractMethods: String[] | String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    abstractMethodsString[] | String
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/coverage.json b/docs-api/deep-core/coverage.json new file mode 100644 index 00000000..64512b07 --- /dev/null +++ b/docs-api/deep-core/coverage.json @@ -0,0 +1,131 @@ +{ + "coverage": "94.92%", + "expectCount": 138, + "actualCount": 131, + "files": { + "lib/AWS/IAM/Factory.js": { + "expectCount": 7, + "actualCount": 7, + "undocumentLines": [] + }, + "lib/AWS/IAM/Statement.js": { + "expectCount": 15, + "actualCount": 14, + "undocumentLines": [ + 18 + ] + }, + "lib/AWS/IAM/Policy.js": { + "expectCount": 9, + "actualCount": 8, + "undocumentLines": [ + 15 + ] + }, + "lib/AWS/Region.js": { + "expectCount": 15, + "actualCount": 15, + "undocumentLines": [] + }, + "lib/AWS/Service.js": { + "expectCount": 17, + "actualCount": 17, + "undocumentLines": [] + }, + "lib/AWS/IAM/Action.js": { + "expectCount": 7, + "actualCount": 6, + "undocumentLines": [ + 16 + ] + }, + "lib/AWS/IAM/Collection.js": { + "expectCount": 8, + "actualCount": 8, + "undocumentLines": [] + }, + "lib/Exception/DatabaseOperationException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/AWS/Lambda/ErrorResponse.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + }, + "lib/Exception/Exception.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + }, + "lib/AWS/IAM/Extractable.js": { + "expectCount": 2, + "actualCount": 1, + "undocumentLines": [ + 13 + ] + }, + "lib/OOP/Interface.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Exception/InvalidArgumentException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/AWS/IAM/Exception/InvalidArnException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Exception/MethodsNotImplementedException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/AWS/Lambda/Exception/MissingRuntimeContextException.js": { + "expectCount": 2, + "actualCount": 1, + "undocumentLines": [ + 13 + ] + }, + "lib/Generic/ObjectStorage.js": { + "expectCount": 5, + "actualCount": 5, + "undocumentLines": [] + }, + "lib/Generic/ObjectVector.js": { + "expectCount": 4, + "actualCount": 3, + "undocumentLines": [ + 3 + ] + }, + "lib/AWS/Lambda/Request.js": { + "expectCount": 4, + "actualCount": 4, + "undocumentLines": [] + }, + "lib/AWS/IAM/Resource.js": { + "expectCount": 12, + "actualCount": 11, + "undocumentLines": [ + 17 + ] + }, + "lib/AWS/Lambda/Response.js": { + "expectCount": 7, + "actualCount": 7, + "undocumentLines": [] + }, + "lib/AWS/Lambda/Runtime.js": { + "expectCount": 8, + "actualCount": 8, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/docs-api/deep-core/css/prettify-tomorrow.css b/docs-api/deep-core/css/prettify-tomorrow.css new file mode 100644 index 00000000..b6f92a78 --- /dev/null +++ b/docs-api/deep-core/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs-api/deep-core/css/style.css b/docs-api/deep-core/css/style.css new file mode 100644 index 00000000..4dc99a1b --- /dev/null +++ b/docs-api/deep-core/css/style.css @@ -0,0 +1,862 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Roboto', sans-serif; + overflow: auto; + font-size: 14px; + /*color: #4d4e53;*/ + color: rgba(0, 0, 0, .68); + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + background-color: #E2E2E2; + padding: 4px; + font-weight: 300; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 19px; +} + +p > code { + background-color: #f5f5f5; + border-radius: 3px; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0 4px; + border-radius: 3px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: white; + top: 0; + border-bottom: solid 1px #E02130; +} +.layout-container > header > a{ + margin: 0 5px; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid rgba(0, 0, 0, 0.1); +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation .nav-dir-path { + margin-top: 0.7em; + margin-bottom: 0.25em; + font-size: 0.8em; + color: #aaa; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #999; + color: white; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +pre.source-code { + background: #f5f5f5; + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150); +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #999; + color: white; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} + +table.test-summary thead { + background: #999; + color: white; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-describe .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; +} + +table.test-summary tr.test-describe .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-describe .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} + +.inner-link-active { + background: rgb(255, 255, 150); +} + +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + +/* coverage badge */ +.esdoc-coverage { + display: inline-block; + height: 20px; + vertical-align: top; +} + +h1 .esdoc-coverage { + position: relative; + top: -4px; +} + +.esdoc-coverage-wrap { + color: white; + font-size: 12px; + font-weight: 500; +} + +.esdoc-coverage-label { + padding: 3px 4px 3px 6px; + background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%); + border-radius: 4px 0 0 4px; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-ratio { + padding: 3px 6px 3px 4px; + border-radius: 0 4px 4px 0; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-low { + background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%); +} + +.esdoc-coverage-middle { + background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%); +} + +.esdoc-coverage-high { + background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%); +} + +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; + background-color: transparent; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} diff --git a/docs-api/deep-core/dump.json b/docs-api/deep-core/dump.json new file mode 100644 index 00000000..e0e42d0d --- /dev/null +++ b/docs-api/deep-core/dump.json @@ -0,0 +1,5606 @@ +[ + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/IAM/Action.js", + "memberof": null, + "longname": "lib/AWS/IAM/Action.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/27/15.\n */\n\n'use strict';\n\nimport {Extractable} from './Extractable';\nimport {Service} from '../Service';\nimport {InvalidArgumentException} from '../../Exception/InvalidArgumentException';\nimport {Policy} from './Policy';\n\n/**\n * Iam statement action\n */\nexport class Action extends Extractable {\n constructor() {\n super();\n\n this._service = Policy.ANY;\n this._action = Policy.ANY;\n }\n\n /**\n * @param {String} action\n */\n set action(action) {\n this._action = action;\n }\n\n /**\n * @returns {String}\n */\n get action() {\n return this._action;\n }\n\n /**\n * @param {String} name\n */\n set service(name) {\n if (!Service.exists(name)) {\n throw new InvalidArgumentException(name, Service);\n }\n\n this._service = name;\n }\n\n /**\n * @returns {String}\n */\n get service() {\n return this._service;\n }\n\n /**\n * @returns {String}\n */\n extract() {\n let service = this._service;\n let action = this._action;\n\n return `${service}:${action}`;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Action", + "memberof": "lib/AWS/IAM/Action.js", + "longname": "lib/AWS/IAM/Action.js~Action", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/IAM/Action.js", + "importStyle": "{Action}", + "description": "Iam statement action", + "lineNumber": 15, + "interface": false, + "extends": [ + "lib/AWS/IAM/Extractable~Extractable" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/AWS/IAM/Action.js~Action", + "longname": "lib/AWS/IAM/Action.js~Action#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_service", + "memberof": "lib/AWS/IAM/Action.js~Action", + "longname": "lib/AWS/IAM/Action.js~Action#_service", + "access": null, + "description": null, + "lineNumber": 19, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_action", + "memberof": "lib/AWS/IAM/Action.js~Action", + "longname": "lib/AWS/IAM/Action.js~Action#_action", + "access": null, + "description": null, + "lineNumber": 20, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "action", + "memberof": "lib/AWS/IAM/Action.js~Action", + "longname": "lib/AWS/IAM/Action.js~Action#action", + "access": null, + "description": null, + "lineNumber": 26, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "action", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_action", + "memberof": "lib/AWS/IAM/Action.js~Action", + "longname": "lib/AWS/IAM/Action.js~Action#_action", + "access": null, + "description": null, + "lineNumber": 27, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "action", + "memberof": "lib/AWS/IAM/Action.js~Action", + "longname": "lib/AWS/IAM/Action.js~Action#action", + "access": null, + "description": null, + "lineNumber": 33, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "service", + "memberof": "lib/AWS/IAM/Action.js~Action", + "longname": "lib/AWS/IAM/Action.js~Action#service", + "access": null, + "description": null, + "lineNumber": 40, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_service", + "memberof": "lib/AWS/IAM/Action.js~Action", + "longname": "lib/AWS/IAM/Action.js~Action#_service", + "access": null, + "description": null, + "lineNumber": 45, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "service", + "memberof": "lib/AWS/IAM/Action.js~Action", + "longname": "lib/AWS/IAM/Action.js~Action#service", + "access": null, + "description": null, + "lineNumber": 51, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "extract", + "memberof": "lib/AWS/IAM/Action.js~Action", + "longname": "lib/AWS/IAM/Action.js~Action#extract", + "access": null, + "description": null, + "lineNumber": 58, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/IAM/Collection.js", + "memberof": null, + "longname": "lib/AWS/IAM/Collection.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/27/15.\n */\n\n'use strict';\n\nimport {Extractable} from './Extractable';\nimport {InvalidArgumentException} from '../../Exception/InvalidArgumentException';\n\n/**\n * Collection of something\n */\nexport class Collection extends Extractable {\n /**\n * @param {Object} prototype\n */\n constructor(prototype) {\n super();\n\n if (prototype.__proto__ !== Extractable) {\n throw new InvalidArgumentException(prototype, Extractable);\n }\n\n this._prototype = prototype;\n this._vector = [];\n }\n\n /**\n * @returns {Object}\n */\n get prototype() {\n return this._prototype;\n }\n\n /**\n * @param {Array} args\n * @returns {Object}\n */\n create(...args) {\n return new this._prototype(...args);\n }\n\n /**\n * @param {Array} args\n * @returns {Object}\n */\n add(...args) {\n let instance = args.length === 1 && args[0] instanceof this._prototype\n ? args[0]\n : this.create(...args);\n\n this._vector.push(instance);\n\n return instance;\n }\n\n /**\n * @returns {Number}\n */\n count() {\n return this._vector.length;\n }\n\n /**\n * @returns {Array}\n */\n list() {\n return this._vector;\n }\n\n /**\n * @returns {Array}\n */\n extract() {\n let vector = [];\n\n for (let itemKey in this._vector) {\n if (!this._vector.hasOwnProperty(itemKey)) {\n continue;\n }\n\n let item = this._vector[itemKey];\n\n vector.push(item.extract());\n }\n\n return vector;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Collection", + "memberof": "lib/AWS/IAM/Collection.js", + "longname": "lib/AWS/IAM/Collection.js~Collection", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/IAM/Collection.js", + "importStyle": "{Collection}", + "description": "Collection of something", + "lineNumber": 13, + "interface": false, + "extends": [ + "lib/AWS/IAM/Extractable~Extractable" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/AWS/IAM/Collection.js~Collection", + "longname": "lib/AWS/IAM/Collection.js~Collection#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "prototype", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_prototype", + "memberof": "lib/AWS/IAM/Collection.js~Collection", + "longname": "lib/AWS/IAM/Collection.js~Collection#_prototype", + "access": null, + "description": null, + "lineNumber": 24, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_vector", + "memberof": "lib/AWS/IAM/Collection.js~Collection", + "longname": "lib/AWS/IAM/Collection.js~Collection#_vector", + "access": null, + "description": null, + "lineNumber": 25, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "prototype", + "memberof": "lib/AWS/IAM/Collection.js~Collection", + "longname": "lib/AWS/IAM/Collection.js~Collection#prototype", + "access": null, + "description": null, + "lineNumber": 31, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "create", + "memberof": "lib/AWS/IAM/Collection.js~Collection", + "longname": "lib/AWS/IAM/Collection.js~Collection#create", + "access": null, + "description": null, + "lineNumber": 39, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "add", + "memberof": "lib/AWS/IAM/Collection.js~Collection", + "longname": "lib/AWS/IAM/Collection.js~Collection#add", + "access": null, + "description": null, + "lineNumber": 47, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "count", + "memberof": "lib/AWS/IAM/Collection.js~Collection", + "longname": "lib/AWS/IAM/Collection.js~Collection#count", + "access": null, + "description": null, + "lineNumber": 60, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "list", + "memberof": "lib/AWS/IAM/Collection.js~Collection", + "longname": "lib/AWS/IAM/Collection.js~Collection#list", + "access": null, + "description": null, + "lineNumber": 67, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Array}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "extract", + "memberof": "lib/AWS/IAM/Collection.js~Collection", + "longname": "lib/AWS/IAM/Collection.js~Collection#extract", + "access": null, + "description": null, + "lineNumber": 74, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Array}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/IAM/Exception/InvalidArnException.js", + "memberof": null, + "longname": "lib/AWS/IAM/Exception/InvalidArnException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/12/15.\n */\n\n'use strict';\n\nimport {Exception} from '../../../Exception/Exception';\n\n/**\n * Thrown when ARN is invalid\n */\nexport class InvalidArnException extends Exception {\n /**\n * @param {String} arn\n */\n constructor(arn) {\n super(`Invalid arn string \"${arn}\".`);\n }\n}\n\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "InvalidArnException", + "memberof": "lib/AWS/IAM/Exception/InvalidArnException.js", + "longname": "lib/AWS/IAM/Exception/InvalidArnException.js~InvalidArnException", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/IAM/Exception/InvalidArnException.js", + "importStyle": "{InvalidArnException}", + "description": "Thrown when ARN is invalid", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/AWS/IAM/Exception/InvalidArnException.js~InvalidArnException", + "longname": "lib/AWS/IAM/Exception/InvalidArnException.js~InvalidArnException#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "arn", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/IAM/Extractable.js", + "memberof": null, + "longname": "lib/AWS/IAM/Extractable.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/27/15.\n */\n\n'use strict';\n\nimport {Interface} from '../../OOP/Interface';\n\n/**\n * Extractable helper\n */\nexport class Extractable extends Interface {\n constructor() {\n super(['extract']);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Extractable", + "memberof": "lib/AWS/IAM/Extractable.js", + "longname": "lib/AWS/IAM/Extractable.js~Extractable", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/IAM/Extractable.js", + "importStyle": "{Extractable}", + "description": "Extractable helper", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/OOP/Interface~Interface" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/AWS/IAM/Extractable.js~Extractable", + "longname": "lib/AWS/IAM/Extractable.js~Extractable#constructor", + "access": null, + "description": null, + "lineNumber": 13, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/IAM/Factory.js", + "memberof": null, + "longname": "lib/AWS/IAM/Factory.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/2/15.\n */\n\n'use strict';\n\nimport {Resource} from './Resource';\nimport {Collection} from './Collection';\nimport {Action} from './Action';\nimport {Policy} from './Policy';\nimport {Statement} from './Statement';\n\n/**\n * AWS IAM factory\n */\nexport class Factory {\n /**\n * @param {Function|*} Prototype\n * @param {Array} args\n * @returns {Object}\n */\n static create(Prototype, ...args) {\n Prototype = Factory._assurePrototype(Prototype);\n\n return new Prototype(...args);\n }\n\n /**\n * @param {Function|*} Prototype\n * @returns {Collection}\n */\n static createCollection(Prototype) {\n Prototype = Factory._assurePrototype(Prototype);\n\n return new Collection(Prototype);\n }\n\n /**\n * @param {Function|*} Prototype\n * @returns {Function}\n * @private\n */\n static _assurePrototype(Prototype) {\n if (typeof Prototype === 'string') {\n Prototype = Factory[Prototype.toUpperCase()];\n }\n\n return Prototype;\n }\n\n /**\n * @returns {Policy}\n * @constructor\n */\n static get POLICY() {\n return Policy;\n }\n\n /**\n * @returns {Action}\n * @constructor\n */\n static get RESOURCE() {\n return Resource;\n }\n\n /**\n * @returns {Resource}\n * @constructor\n */\n static get ACTION() {\n return Action;\n }\n\n /**\n * @returns {Statement}\n * @constructor\n */\n static get STATEMENT() {\n return Statement;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Factory", + "memberof": "lib/AWS/IAM/Factory.js", + "longname": "lib/AWS/IAM/Factory.js~Factory", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/IAM/Factory.js", + "importStyle": "{Factory}", + "description": " AWS IAM factory", + "lineNumber": 16, + "interface": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "create", + "memberof": "lib/AWS/IAM/Factory.js~Factory", + "longname": "lib/AWS/IAM/Factory.js~Factory.create", + "access": null, + "description": null, + "lineNumber": 22, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function", + "*" + ], + "spread": false, + "optional": false, + "name": "Prototype", + "description": "" + }, + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "createCollection", + "memberof": "lib/AWS/IAM/Factory.js~Factory", + "longname": "lib/AWS/IAM/Factory.js~Factory.createCollection", + "access": null, + "description": null, + "lineNumber": 32, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Collection}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function", + "*" + ], + "spread": false, + "optional": false, + "name": "Prototype", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Collection" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "_assurePrototype", + "memberof": "lib/AWS/IAM/Factory.js~Factory", + "longname": "lib/AWS/IAM/Factory.js~Factory._assurePrototype", + "access": "private", + "description": null, + "lineNumber": 43, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function", + "*" + ], + "spread": false, + "optional": false, + "name": "Prototype", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "POLICY", + "memberof": "lib/AWS/IAM/Factory.js~Factory", + "longname": "lib/AWS/IAM/Factory.js~Factory.POLICY", + "access": null, + "description": null, + "lineNumber": 55, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Policy}" + }, + { + "tagName": "@constructor", + "tagValue": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Policy" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "RESOURCE", + "memberof": "lib/AWS/IAM/Factory.js~Factory", + "longname": "lib/AWS/IAM/Factory.js~Factory.RESOURCE", + "access": null, + "description": null, + "lineNumber": 63, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Action}" + }, + { + "tagName": "@constructor", + "tagValue": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Action" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "ACTION", + "memberof": "lib/AWS/IAM/Factory.js~Factory", + "longname": "lib/AWS/IAM/Factory.js~Factory.ACTION", + "access": null, + "description": null, + "lineNumber": 71, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Resource}" + }, + { + "tagName": "@constructor", + "tagValue": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Resource" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "STATEMENT", + "memberof": "lib/AWS/IAM/Factory.js~Factory", + "longname": "lib/AWS/IAM/Factory.js~Factory.STATEMENT", + "access": null, + "description": null, + "lineNumber": 79, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Statement}" + }, + { + "tagName": "@constructor", + "tagValue": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Statement" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/IAM/Policy.js", + "memberof": null, + "longname": "lib/AWS/IAM/Policy.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/27/15.\n */\n\n'use strict';\n\nimport {Extractable} from './Extractable';\nimport {Collection} from './Collection';\nimport {Statement} from './Statement';\n\n/**\n * IAM policy\n */\nexport class Policy extends Extractable {\n constructor() {\n super();\n\n this._version = Policy.DEFAULT_VERSION;\n this._statement = new Collection(Statement);\n }\n\n /**\n * @returns {String}\n */\n static get ANY() {\n return '*';\n }\n\n /**\n * @returns {String}\n */\n static get DEFAULT_VERSION() {\n return '2012-10-17';\n }\n\n /**\n * @param {String} version\n */\n set version(version) {\n this._version = version;\n }\n\n /**\n * @returns {String}\n */\n get version() {\n return this._version;\n }\n\n /**\n * @returns {Collection}\n */\n get statement() {\n return this._statement;\n }\n\n /**\n * @return {Object}\n */\n extract() {\n return {\n Version: this._version,\n Statement: this._statement.extract(),\n };\n }\n\n /**\n * @return {String}\n */\n toString() {\n return JSON.stringify(this.extract());\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Policy", + "memberof": "lib/AWS/IAM/Policy.js", + "longname": "lib/AWS/IAM/Policy.js~Policy", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/IAM/Policy.js", + "importStyle": "{Policy}", + "description": "IAM policy", + "lineNumber": 14, + "interface": false, + "extends": [ + "lib/AWS/IAM/Extractable~Extractable" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/AWS/IAM/Policy.js~Policy", + "longname": "lib/AWS/IAM/Policy.js~Policy#constructor", + "access": null, + "description": null, + "lineNumber": 15, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_version", + "memberof": "lib/AWS/IAM/Policy.js~Policy", + "longname": "lib/AWS/IAM/Policy.js~Policy#_version", + "access": null, + "description": null, + "lineNumber": 18, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_statement", + "memberof": "lib/AWS/IAM/Policy.js~Policy", + "longname": "lib/AWS/IAM/Policy.js~Policy#_statement", + "access": null, + "description": null, + "lineNumber": 19, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "ANY", + "memberof": "lib/AWS/IAM/Policy.js~Policy", + "longname": "lib/AWS/IAM/Policy.js~Policy.ANY", + "access": null, + "description": null, + "lineNumber": 25, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "DEFAULT_VERSION", + "memberof": "lib/AWS/IAM/Policy.js~Policy", + "longname": "lib/AWS/IAM/Policy.js~Policy.DEFAULT_VERSION", + "access": null, + "description": null, + "lineNumber": 32, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "version", + "memberof": "lib/AWS/IAM/Policy.js~Policy", + "longname": "lib/AWS/IAM/Policy.js~Policy#version", + "access": null, + "description": null, + "lineNumber": 39, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "version", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_version", + "memberof": "lib/AWS/IAM/Policy.js~Policy", + "longname": "lib/AWS/IAM/Policy.js~Policy#_version", + "access": null, + "description": null, + "lineNumber": 40, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "version", + "memberof": "lib/AWS/IAM/Policy.js~Policy", + "longname": "lib/AWS/IAM/Policy.js~Policy#version", + "access": null, + "description": null, + "lineNumber": 46, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "statement", + "memberof": "lib/AWS/IAM/Policy.js~Policy", + "longname": "lib/AWS/IAM/Policy.js~Policy#statement", + "access": null, + "description": null, + "lineNumber": 53, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Collection}" + } + ], + "return": { + "nullable": null, + "types": [ + "Collection" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "extract", + "memberof": "lib/AWS/IAM/Policy.js~Policy", + "longname": "lib/AWS/IAM/Policy.js~Policy#extract", + "access": null, + "description": null, + "lineNumber": 60, + "params": [], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "toString", + "memberof": "lib/AWS/IAM/Policy.js~Policy", + "longname": "lib/AWS/IAM/Policy.js~Policy#toString", + "access": null, + "description": null, + "lineNumber": 70, + "params": [], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/IAM/Resource.js", + "memberof": null, + "longname": "lib/AWS/IAM/Resource.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/27/15.\n */\n\n'use strict';\n\nimport {Extractable} from './Extractable';\nimport {Region} from '../Region';\nimport {Service} from '../Service';\nimport {InvalidArgumentException} from '../../Exception/InvalidArgumentException';\nimport {InvalidArnException} from './Exception/InvalidArnException';\n\n/**\n * IAM statement resource\n */\nexport class Resource extends Extractable {\n constructor() {\n super();\n\n this._service = '';\n this._region = '';\n this._accountId = '';\n this._descriptor = '';\n }\n\n /**\n * @param {String} identifier\n */\n set accountId(identifier) {\n this._accountId = identifier;\n }\n\n /**\n * @returns {String}\n */\n get accountId() {\n return this._accountId;\n }\n\n /**\n * @param {String} descriptor\n */\n set descriptor(descriptor) {\n this._descriptor = descriptor;\n }\n\n /**\n * @returns {String}\n */\n get descriptor() {\n return this._descriptor;\n }\n\n /**\n * @param {String} name\n */\n set region(name) {\n if (!Region.exists(name)) {\n throw new InvalidArgumentException(name, Region);\n }\n\n this._region = name;\n }\n\n /**\n * @returns {String}\n */\n get region() {\n return this._region;\n }\n\n /**\n * @param {String} name\n */\n set service(name) {\n if (!Service.exists(name)) {\n throw new InvalidArgumentException(name, Service);\n }\n\n this._service = name;\n }\n\n /**\n * @returns {String}\n */\n get service() {\n return this._service;\n }\n\n /**\n * @see - http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html\n *\n * @param {string} arn\n * @returns {Resource}\n */\n updateFromArn(arn) {\n let arnParts = arn.split(':');\n\n if (arnParts.length < 6) {\n throw new InvalidArnException(arn);\n }\n\n this.service = arnParts[2];\n this.region = arnParts[3];\n this.accountId = arnParts[4];\n this.descriptor = arnParts.slice(5).join(':');\n\n return this;\n }\n\n /**\n * @returns {String}\n */\n extract() {\n let service = this._service;\n let region = this._region;\n let accountId = this._accountId;\n let descriptor = this._descriptor;\n\n return `arn:aws:${service}:${region}:${accountId}:${descriptor}`;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Resource", + "memberof": "lib/AWS/IAM/Resource.js", + "longname": "lib/AWS/IAM/Resource.js~Resource", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/IAM/Resource.js", + "importStyle": "{Resource}", + "description": "IAM statement resource", + "lineNumber": 16, + "interface": false, + "extends": [ + "lib/AWS/IAM/Extractable~Extractable" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_service", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#_service", + "access": null, + "description": null, + "lineNumber": 20, + "undocument": true, + "type": { + "types": [ + "string" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_region", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#_region", + "access": null, + "description": null, + "lineNumber": 21, + "undocument": true, + "type": { + "types": [ + "string" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_accountId", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#_accountId", + "access": null, + "description": null, + "lineNumber": 22, + "undocument": true, + "type": { + "types": [ + "string" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_descriptor", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#_descriptor", + "access": null, + "description": null, + "lineNumber": 23, + "undocument": true, + "type": { + "types": [ + "string" + ] + } + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "accountId", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#accountId", + "access": null, + "description": null, + "lineNumber": 29, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "identifier", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_accountId", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#_accountId", + "access": null, + "description": null, + "lineNumber": 30, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "accountId", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#accountId", + "access": null, + "description": null, + "lineNumber": 36, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "descriptor", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#descriptor", + "access": null, + "description": null, + "lineNumber": 43, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "descriptor", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_descriptor", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#_descriptor", + "access": null, + "description": null, + "lineNumber": 44, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "descriptor", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#descriptor", + "access": null, + "description": null, + "lineNumber": 50, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "region", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#region", + "access": null, + "description": null, + "lineNumber": 57, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_region", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#_region", + "access": null, + "description": null, + "lineNumber": 62, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "region", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#region", + "access": null, + "description": null, + "lineNumber": 68, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "service", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#service", + "access": null, + "description": null, + "lineNumber": 75, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_service", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#_service", + "access": null, + "description": null, + "lineNumber": 80, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "service", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#service", + "access": null, + "description": null, + "lineNumber": 86, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "updateFromArn", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#updateFromArn", + "access": null, + "description": null, + "see": [ + "- http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html" + ], + "lineNumber": 96, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Resource}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "arn", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Resource" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "service", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#service", + "access": null, + "description": null, + "lineNumber": 103, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "region", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#region", + "access": null, + "description": null, + "lineNumber": 104, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "accountId", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#accountId", + "access": null, + "description": null, + "lineNumber": 105, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "descriptor", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#descriptor", + "access": null, + "description": null, + "lineNumber": 106, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "extract", + "memberof": "lib/AWS/IAM/Resource.js~Resource", + "longname": "lib/AWS/IAM/Resource.js~Resource#extract", + "access": null, + "description": null, + "lineNumber": 114, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/IAM/Statement.js", + "memberof": null, + "longname": "lib/AWS/IAM/Statement.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/27/15.\n */\n\n'use strict';\n\nimport {Resource} from './Resource';\nimport {Collection} from './Collection';\nimport {Action} from './Action';\nimport {Policy} from './Policy';\nimport {Extractable} from './Extractable';\nimport {InvalidArgumentException} from '../../Exception/InvalidArgumentException';\n\n/**\n * IAM policy statement\n */\nexport class Statement extends Extractable {\n constructor() {\n super();\n\n this._effect = Statement.ALLOW;\n this._action = new Collection(Action);\n this._notAction = new Collection(Action);\n this._resource = new Collection(Resource);\n this._notResource = new Collection(Resource);\n this._condition = null;\n this._principal = null;\n }\n\n /**\n * @param {String} effect\n */\n set effect(effect) {\n if ([Statement.ALLOW, Statement.DENY].indexOf(effect) === -1) {\n throw new InvalidArgumentException(effect, '[Statement.ALLOW, Statement.DENY]');\n }\n\n this._effect = effect;\n }\n\n /**\n * @returns {String}\n */\n get effect() {\n return this._effect;\n }\n\n /**\n * @param {Object} condition\n */\n set condition(condition) {\n this._condition = condition;\n }\n\n /**\n * @returns {Object}\n */\n get condition() {\n return this._condition;\n }\n\n /**\n * @param {*} principal\n */\n set principal(principal) {\n this._principal = principal;\n }\n\n /**\n * @returns {*}\n */\n get principal() {\n return this._principal;\n }\n\n /**\n * @returns {Collection}\n */\n get notResource() {\n return this._notResource;\n }\n\n /**\n * @returns {Collection}\n */\n get resource() {\n return this._resource;\n }\n\n /**\n * @returns {Collection}\n */\n get notAction() {\n return this._notAction;\n }\n\n /**\n * @returns {Collection}\n */\n get action() {\n return this._action;\n }\n\n /**\n * @returns {String}\n */\n static get ALLOW() {\n return 'Allow';\n }\n\n /**\n * @returns {String}\n */\n static get DENY() {\n return 'Deny';\n }\n\n /**\n * @returns {Object}\n */\n extract() {\n let actions = this._action.count() > 0 ? this._action.extract() : Policy.ANY;\n let resources = this._resource.count() > 0 ? this._resource.extract() : null;\n\n let statement = {\n Effect: this._effect,\n Action: actions,\n };\n\n if (resources !== null) {\n statement.Resource = resources;\n }\n\n if (this._condition !== null && this._condition instanceof Object) {\n statement.Condition = this._condition;\n }\n\n // @todo - create separate class for Principal\n if (this._principal != null) {\n statement.Principal = this._principal;\n }\n\n if (this._notAction.count() > 0) {\n statement.NotAction = this._notAction.extract();\n }\n\n if (this._notResource.count() > 0) {\n statement.NotResource = this._notResource.extract();\n }\n\n return statement;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Statement", + "memberof": "lib/AWS/IAM/Statement.js", + "longname": "lib/AWS/IAM/Statement.js~Statement", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/IAM/Statement.js", + "importStyle": "{Statement}", + "description": "IAM policy statement", + "lineNumber": 17, + "interface": false, + "extends": [ + "lib/AWS/IAM/Extractable~Extractable" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#constructor", + "access": null, + "description": null, + "lineNumber": 18, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_effect", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#_effect", + "access": null, + "description": null, + "lineNumber": 21, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_action", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#_action", + "access": null, + "description": null, + "lineNumber": 22, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_notAction", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#_notAction", + "access": null, + "description": null, + "lineNumber": 23, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_resource", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#_resource", + "access": null, + "description": null, + "lineNumber": 24, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_notResource", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#_notResource", + "access": null, + "description": null, + "lineNumber": 25, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_condition", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#_condition", + "access": null, + "description": null, + "lineNumber": 26, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_principal", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#_principal", + "access": null, + "description": null, + "lineNumber": 27, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "effect", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#effect", + "access": null, + "description": null, + "lineNumber": 33, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "effect", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_effect", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#_effect", + "access": null, + "description": null, + "lineNumber": 38, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "effect", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#effect", + "access": null, + "description": null, + "lineNumber": 44, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "condition", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#condition", + "access": null, + "description": null, + "lineNumber": 51, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "condition", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_condition", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#_condition", + "access": null, + "description": null, + "lineNumber": 52, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "condition", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#condition", + "access": null, + "description": null, + "lineNumber": 58, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "principal", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#principal", + "access": null, + "description": null, + "lineNumber": 65, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "principal", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_principal", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#_principal", + "access": null, + "description": null, + "lineNumber": 66, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "principal", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#principal", + "access": null, + "description": null, + "lineNumber": 72, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "notResource", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#notResource", + "access": null, + "description": null, + "lineNumber": 79, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Collection}" + } + ], + "return": { + "nullable": null, + "types": [ + "Collection" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "resource", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#resource", + "access": null, + "description": null, + "lineNumber": 86, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Collection}" + } + ], + "return": { + "nullable": null, + "types": [ + "Collection" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "notAction", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#notAction", + "access": null, + "description": null, + "lineNumber": 93, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Collection}" + } + ], + "return": { + "nullable": null, + "types": [ + "Collection" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "action", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#action", + "access": null, + "description": null, + "lineNumber": 100, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Collection}" + } + ], + "return": { + "nullable": null, + "types": [ + "Collection" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "ALLOW", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement.ALLOW", + "access": null, + "description": null, + "lineNumber": 107, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "DENY", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement.DENY", + "access": null, + "description": null, + "lineNumber": 114, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "extract", + "memberof": "lib/AWS/IAM/Statement.js~Statement", + "longname": "lib/AWS/IAM/Statement.js~Statement#extract", + "access": null, + "description": null, + "lineNumber": 121, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/Lambda/ErrorResponse.js", + "memberof": null, + "longname": "lib/AWS/Lambda/ErrorResponse.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/25/15.\n */\n\n'use strict';\n\nimport {Response} from './Response';\n\n/**\n * Error response sent to the lambda context\n */\nexport class ErrorResponse extends Response {\n /**\n * @param {*} args\n */\n constructor(...args) {\n super(...args);\n }\n\n /**\n * @returns {String}\n */\n get contextMethod() {\n return 'fail';\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "ErrorResponse", + "memberof": "lib/AWS/Lambda/ErrorResponse.js", + "longname": "lib/AWS/Lambda/ErrorResponse.js~ErrorResponse", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/Lambda/ErrorResponse.js", + "importStyle": "{ErrorResponse}", + "description": "Error response sent to the lambda context", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/AWS/Lambda/Response~Response" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/AWS/Lambda/ErrorResponse.js~ErrorResponse", + "longname": "lib/AWS/Lambda/ErrorResponse.js~ErrorResponse#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "contextMethod", + "memberof": "lib/AWS/Lambda/ErrorResponse.js~ErrorResponse", + "longname": "lib/AWS/Lambda/ErrorResponse.js~ErrorResponse#contextMethod", + "access": null, + "description": null, + "lineNumber": 23, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/Lambda/Exception/MissingRuntimeContextException.js", + "memberof": null, + "longname": "lib/AWS/Lambda/Exception/MissingRuntimeContextException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/12/15.\n */\n\n'use strict';\n\nimport {Exception} from '../../../Exception/Exception';\n\n/**\n * Thrown when missing runtime lambda context\n */\nexport class MissingRuntimeContextException extends Exception {\n constructor() {\n super('Missing Lambda runtime context');\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "MissingRuntimeContextException", + "memberof": "lib/AWS/Lambda/Exception/MissingRuntimeContextException.js", + "longname": "lib/AWS/Lambda/Exception/MissingRuntimeContextException.js~MissingRuntimeContextException", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js", + "importStyle": "{MissingRuntimeContextException}", + "description": "Thrown when missing runtime lambda context", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/AWS/Lambda/Exception/MissingRuntimeContextException.js~MissingRuntimeContextException", + "longname": "lib/AWS/Lambda/Exception/MissingRuntimeContextException.js~MissingRuntimeContextException#constructor", + "access": null, + "description": null, + "lineNumber": 13, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/Lambda/Request.js", + "memberof": null, + "longname": "lib/AWS/Lambda/Request.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/25/15.\n */\n\n'use strict';\n\n/**\n * Request received by the lambda context\n */\nexport class Request {\n /**\n * @param {*} data\n */\n constructor(data) {\n this._data = data || {};\n }\n\n /**\n * @returns {*}\n */\n get data() {\n return this._data;\n }\n\n /**\n * @param {String} name\n * @param {String|Object|null} defaultValue\n *\n * @returns {String|Object|null}\n */\n getParam(name, defaultValue = null) {\n return this.data.hasOwnProperty(name) ? this.data[name] : defaultValue;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Request", + "memberof": "lib/AWS/Lambda/Request.js", + "longname": "lib/AWS/Lambda/Request.js~Request", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/Lambda/Request.js", + "importStyle": "{Request}", + "description": "Request received by the lambda context", + "lineNumber": 10, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/AWS/Lambda/Request.js~Request", + "longname": "lib/AWS/Lambda/Request.js~Request#constructor", + "access": null, + "description": null, + "lineNumber": 14, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "data", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_data", + "memberof": "lib/AWS/Lambda/Request.js~Request", + "longname": "lib/AWS/Lambda/Request.js~Request#_data", + "access": null, + "description": null, + "lineNumber": 15, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "data", + "memberof": "lib/AWS/Lambda/Request.js~Request", + "longname": "lib/AWS/Lambda/Request.js~Request#data", + "access": null, + "description": null, + "lineNumber": 21, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "getParam", + "memberof": "lib/AWS/Lambda/Request.js~Request", + "longname": "lib/AWS/Lambda/Request.js~Request#getParam", + "access": null, + "description": null, + "lineNumber": 31, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String|Object|null}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + }, + { + "nullable": null, + "types": [ + "String", + "Object", + "null" + ], + "spread": false, + "optional": false, + "name": "defaultValue", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "String", + "Object", + "null" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/Lambda/Response.js", + "memberof": null, + "longname": "lib/AWS/Lambda/Response.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/25/15.\n */\n\n'use strict';\n\nimport {MissingRuntimeContextException} from './Exception/MissingRuntimeContextException';\n\n/**\n * Response sent to the lambda context\n */\nexport class Response {\n /**\n * @param {*} data\n */\n constructor(data) {\n this._data = data;\n this._runtimeContext = null;\n }\n\n /**\n * @param {Object} context\n */\n set runtimeContext(context) {\n this._runtimeContext = context;\n }\n\n /**\n * @returns {Object}\n */\n get runtimeContext() {\n return this._runtimeContext;\n }\n\n /**\n * @returns {Response}\n */\n send() {\n if (!this._runtimeContext) {\n throw new MissingRuntimeContextException();\n }\n\n this._runtimeContext[this.contextMethod](this._data);\n\n return this;\n }\n\n /**\n * @returns {*}\n */\n get data() {\n return this._data;\n }\n\n /**\n * @returns {String}\n */\n get contextMethod() {\n return 'succeed';\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Response", + "memberof": "lib/AWS/Lambda/Response.js", + "longname": "lib/AWS/Lambda/Response.js~Response", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/Lambda/Response.js", + "importStyle": "{Response}", + "description": "Response sent to the lambda context", + "lineNumber": 12, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/AWS/Lambda/Response.js~Response", + "longname": "lib/AWS/Lambda/Response.js~Response#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "data", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_data", + "memberof": "lib/AWS/Lambda/Response.js~Response", + "longname": "lib/AWS/Lambda/Response.js~Response#_data", + "access": null, + "description": null, + "lineNumber": 17, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_runtimeContext", + "memberof": "lib/AWS/Lambda/Response.js~Response", + "longname": "lib/AWS/Lambda/Response.js~Response#_runtimeContext", + "access": null, + "description": null, + "lineNumber": 18, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "runtimeContext", + "memberof": "lib/AWS/Lambda/Response.js~Response", + "longname": "lib/AWS/Lambda/Response.js~Response#runtimeContext", + "access": null, + "description": null, + "lineNumber": 24, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "context", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_runtimeContext", + "memberof": "lib/AWS/Lambda/Response.js~Response", + "longname": "lib/AWS/Lambda/Response.js~Response#_runtimeContext", + "access": null, + "description": null, + "lineNumber": 25, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "runtimeContext", + "memberof": "lib/AWS/Lambda/Response.js~Response", + "longname": "lib/AWS/Lambda/Response.js~Response#runtimeContext", + "access": null, + "description": null, + "lineNumber": 31, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "send", + "memberof": "lib/AWS/Lambda/Response.js~Response", + "longname": "lib/AWS/Lambda/Response.js~Response#send", + "access": null, + "description": null, + "lineNumber": 38, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Response}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Response" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "data", + "memberof": "lib/AWS/Lambda/Response.js~Response", + "longname": "lib/AWS/Lambda/Response.js~Response#data", + "access": null, + "description": null, + "lineNumber": 51, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "contextMethod", + "memberof": "lib/AWS/Lambda/Response.js~Response", + "longname": "lib/AWS/Lambda/Response.js~Response#contextMethod", + "access": null, + "description": null, + "lineNumber": 58, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/Lambda/Runtime.js", + "memberof": null, + "longname": "lib/AWS/Lambda/Runtime.js", + "access": null, + "description": null, + "lineNumber": 4, + "content": "/**\n * Created by AlexanderC on 5/25/15.\n */\n'use strict';\n\nimport {Interface} from '../../OOP/Interface';\nimport {Response} from './Response';\nimport {Request} from './Request';\n\n/**\n * Lambda runtime context\n */\nexport class Runtime extends Interface {\n /**\n * @param {Object} kernel\n */\n constructor(kernel) {\n super(['handle']);\n\n this._kernel = kernel;\n this._request = null;\n this._context = null;\n }\n\n /**\n * @returns {Object}\n */\n get kernel() {\n return this._kernel;\n }\n\n /**\n * @returns {Function}\n */\n get lambda() {\n let _this = this;\n\n return function(event, context) {\n _this.run(event, context);\n };\n }\n\n /**\n * @param {*} event\n * @param {*} context\n * @returns {Runtime}\n */\n run(event, context) {\n this._addExceptionListener();\n\n this._context = context;\n this._request = new Request(event);\n this.handle(this._request);\n\n return this;\n }\n\n /**\n * @private\n */\n _addExceptionListener() {\n process.removeAllListeners('uncaughtException');\n process.on('uncaughtException', function(error) {\n return this.createError(error).send();\n }.bind(this));\n }\n\n /**\n * @param {String} iError\n */\n createError(iError) {\n let oError = {};\n\n if (typeof iError === 'string') {\n oError = {\n errorType: 'Error',\n errorMessage: iError,\n errorStack: (new Error(iError)).stack,\n };\n } else {\n oError = {\n errorType: iError.name,\n errorMessage: iError.message,\n errorStack: iError.stack,\n };\n }\n\n let response = new Response(oError);\n response.runtimeContext = this._context;\n\n return response;\n }\n\n /**\n * @param {Object} data\n */\n createResponse(data) {\n let response = new Response(data);\n response.runtimeContext = this._context;\n\n return response;\n }\n\n /**\n * @returns {Request}\n */\n get request() {\n return this._request;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Runtime", + "memberof": "lib/AWS/Lambda/Runtime.js", + "longname": "lib/AWS/Lambda/Runtime.js~Runtime", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/Lambda/Runtime.js", + "importStyle": "{Runtime}", + "description": "Lambda runtime context", + "lineNumber": 13, + "interface": false, + "extends": [ + "lib/OOP/Interface~Interface" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/AWS/Lambda/Runtime.js~Runtime", + "longname": "lib/AWS/Lambda/Runtime.js~Runtime#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "kernel", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_kernel", + "memberof": "lib/AWS/Lambda/Runtime.js~Runtime", + "longname": "lib/AWS/Lambda/Runtime.js~Runtime#_kernel", + "access": null, + "description": null, + "lineNumber": 20, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_request", + "memberof": "lib/AWS/Lambda/Runtime.js~Runtime", + "longname": "lib/AWS/Lambda/Runtime.js~Runtime#_request", + "access": null, + "description": null, + "lineNumber": 21, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_context", + "memberof": "lib/AWS/Lambda/Runtime.js~Runtime", + "longname": "lib/AWS/Lambda/Runtime.js~Runtime#_context", + "access": null, + "description": null, + "lineNumber": 22, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "kernel", + "memberof": "lib/AWS/Lambda/Runtime.js~Runtime", + "longname": "lib/AWS/Lambda/Runtime.js~Runtime#kernel", + "access": null, + "description": null, + "lineNumber": 28, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "lambda", + "memberof": "lib/AWS/Lambda/Runtime.js~Runtime", + "longname": "lib/AWS/Lambda/Runtime.js~Runtime#lambda", + "access": null, + "description": null, + "lineNumber": 35, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "run", + "memberof": "lib/AWS/Lambda/Runtime.js~Runtime", + "longname": "lib/AWS/Lambda/Runtime.js~Runtime#run", + "access": null, + "description": null, + "lineNumber": 48, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Runtime}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "event", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "context", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Runtime" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_context", + "memberof": "lib/AWS/Lambda/Runtime.js~Runtime", + "longname": "lib/AWS/Lambda/Runtime.js~Runtime#_context", + "access": null, + "description": null, + "lineNumber": 51, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_request", + "memberof": "lib/AWS/Lambda/Runtime.js~Runtime", + "longname": "lib/AWS/Lambda/Runtime.js~Runtime#_request", + "access": null, + "description": null, + "lineNumber": 52, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_addExceptionListener", + "memberof": "lib/AWS/Lambda/Runtime.js~Runtime", + "longname": "lib/AWS/Lambda/Runtime.js~Runtime#_addExceptionListener", + "access": "private", + "description": null, + "lineNumber": 61, + "params": [], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "createError", + "memberof": "lib/AWS/Lambda/Runtime.js~Runtime", + "longname": "lib/AWS/Lambda/Runtime.js~Runtime#createError", + "access": null, + "description": null, + "lineNumber": 71, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "iError", + "description": "" + } + ], + "return": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "createResponse", + "memberof": "lib/AWS/Lambda/Runtime.js~Runtime", + "longname": "lib/AWS/Lambda/Runtime.js~Runtime#createResponse", + "access": null, + "description": null, + "lineNumber": 97, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "data", + "description": "" + } + ], + "return": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "request", + "memberof": "lib/AWS/Lambda/Runtime.js~Runtime", + "longname": "lib/AWS/Lambda/Runtime.js~Runtime#request", + "access": null, + "description": null, + "lineNumber": 107, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Request}" + } + ], + "return": { + "nullable": null, + "types": [ + "Request" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/Region.js", + "memberof": null, + "longname": "lib/AWS/Region.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/27/15.\n */\n\n'use strict';\n\n/**\n * Available AWS regions\n */\nexport class Region {\n /**\n * @returns {String}\n */\n static get ANY() {\n return '*';\n }\n\n /**\n * @returns {String}\n */\n static get ASIA_PACIFIC_TOKYO() {\n return 'ap-northeast-1';\n }\n\n /**\n * @returns {String}\n */\n static get ASIA_PACIFIC_SINGAPORE() {\n return 'ap-southeast-1';\n }\n\n /**\n * @returns {String}\n */\n static get ASIA_PACIFIC_SYDNEY() {\n return 'ap-southeast-2';\n }\n\n /**\n * @returns {String}\n */\n static get EU_FRANKFURT() {\n return 'eu-central-1';\n }\n\n /**\n * @returns {String}\n */\n static get EU_IRELAND() {\n return 'eu-west-1';\n }\n\n /**\n * @returns {String}\n */\n static get SOUTH_AMERICA_SAO_PAULO() {\n return 'sa-east-1';\n }\n\n /**\n * @returns {String}\n */\n static get US_EAST_N_VIRGINIA() {\n return 'us-east-1';\n }\n\n /**\n * @returns {String}\n */\n static get US_WEST_N_CALIFORNIA() {\n return 'us-west-1';\n }\n\n /**\n * @returns {String}\n */\n static get US_WEST_OREGON() {\n return 'us-west-2';\n }\n\n /**\n * @param {String} name\n * @returns {Boolean}\n */\n static exists(name) {\n return -1 !== Region.list().indexOf(name);\n }\n\n /**\n * @returns {String[]}\n */\n static list() {\n return [\n Region.ANY,\n Region.ASIA_PACIFIC_TOKYO,\n Region.ASIA_PACIFIC_SYDNEY,\n Region.ASIA_PACIFIC_SINGAPORE,\n Region.EU_FRANKFURT,\n Region.EU_IRELAND,\n Region.SOUTH_AMERICA_SAO_PAULO,\n Region.US_EAST_N_VIRGINIA,\n Region.US_WEST_N_CALIFORNIA,\n Region.US_WEST_OREGON,\n ];\n }\n\n /**\n * List method alias\n *\n * @returns {String[]}\n */\n static all() {\n return Region.list();\n }\n\n /**\n * @param {string} defaultRegion\n * @param {array} availableRegions\n * @returns {string}\n */\n static getAppropriateAwsRegion(defaultRegion, availableRegions) {\n if (availableRegions.indexOf(defaultRegion) !== -1) {\n return defaultRegion;\n }\n\n let regionContinent = defaultRegion.split('-')[0];\n\n for (let regionKey in availableRegions) {\n if (!availableRegions.hasOwnProperty(regionKey)) {\n continue;\n }\n\n let region = availableRegions[regionKey];\n\n if (region === Region.ANY) {\n return defaultRegion;\n }\n\n if (region.split('-')[0] === regionContinent) {\n return region;\n }\n }\n\n return availableRegions[0]; // fallback to first available region\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Region", + "memberof": "lib/AWS/Region.js", + "longname": "lib/AWS/Region.js~Region", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/Region.js", + "importStyle": "{Region}", + "description": "Available AWS regions", + "lineNumber": 10, + "interface": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "ANY", + "memberof": "lib/AWS/Region.js~Region", + "longname": "lib/AWS/Region.js~Region.ANY", + "access": null, + "description": null, + "lineNumber": 14, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "ASIA_PACIFIC_TOKYO", + "memberof": "lib/AWS/Region.js~Region", + "longname": "lib/AWS/Region.js~Region.ASIA_PACIFIC_TOKYO", + "access": null, + "description": null, + "lineNumber": 21, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "ASIA_PACIFIC_SINGAPORE", + "memberof": "lib/AWS/Region.js~Region", + "longname": "lib/AWS/Region.js~Region.ASIA_PACIFIC_SINGAPORE", + "access": null, + "description": null, + "lineNumber": 28, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "ASIA_PACIFIC_SYDNEY", + "memberof": "lib/AWS/Region.js~Region", + "longname": "lib/AWS/Region.js~Region.ASIA_PACIFIC_SYDNEY", + "access": null, + "description": null, + "lineNumber": 35, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "EU_FRANKFURT", + "memberof": "lib/AWS/Region.js~Region", + "longname": "lib/AWS/Region.js~Region.EU_FRANKFURT", + "access": null, + "description": null, + "lineNumber": 42, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "EU_IRELAND", + "memberof": "lib/AWS/Region.js~Region", + "longname": "lib/AWS/Region.js~Region.EU_IRELAND", + "access": null, + "description": null, + "lineNumber": 49, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "SOUTH_AMERICA_SAO_PAULO", + "memberof": "lib/AWS/Region.js~Region", + "longname": "lib/AWS/Region.js~Region.SOUTH_AMERICA_SAO_PAULO", + "access": null, + "description": null, + "lineNumber": 56, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "US_EAST_N_VIRGINIA", + "memberof": "lib/AWS/Region.js~Region", + "longname": "lib/AWS/Region.js~Region.US_EAST_N_VIRGINIA", + "access": null, + "description": null, + "lineNumber": 63, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "US_WEST_N_CALIFORNIA", + "memberof": "lib/AWS/Region.js~Region", + "longname": "lib/AWS/Region.js~Region.US_WEST_N_CALIFORNIA", + "access": null, + "description": null, + "lineNumber": 70, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "US_WEST_OREGON", + "memberof": "lib/AWS/Region.js~Region", + "longname": "lib/AWS/Region.js~Region.US_WEST_OREGON", + "access": null, + "description": null, + "lineNumber": 77, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "exists", + "memberof": "lib/AWS/Region.js~Region", + "longname": "lib/AWS/Region.js~Region.exists", + "access": null, + "description": null, + "lineNumber": 85, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "list", + "memberof": "lib/AWS/Region.js~Region", + "longname": "lib/AWS/Region.js~Region.list", + "access": null, + "description": null, + "lineNumber": 92, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String[]}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "String[]" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "all", + "memberof": "lib/AWS/Region.js~Region", + "longname": "lib/AWS/Region.js~Region.all", + "access": null, + "description": "List method alias", + "lineNumber": 112, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String[]}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "String[]" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "getAppropriateAwsRegion", + "memberof": "lib/AWS/Region.js~Region", + "longname": "lib/AWS/Region.js~Region.getAppropriateAwsRegion", + "access": null, + "description": null, + "lineNumber": 121, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{string}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "defaultRegion", + "description": "" + }, + { + "nullable": null, + "types": [ + "array" + ], + "spread": false, + "optional": false, + "name": "availableRegions", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/AWS/Service.js", + "memberof": null, + "longname": "lib/AWS/Service.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/27/15.\n */\n\n'use strict';\n\n/**\n * Available AWS services\n */\nexport class Service {\n /**\n * @returns {String}\n */\n static get LAMBDA() {\n return 'lambda';\n }\n\n /**\n * @returns {String}\n */\n static get SIMPLE_STORAGE_SERVICE() {\n return 's3';\n }\n\n /**\n * @returns {String}\n */\n static get DYNAMO_DB() {\n return 'dynamodb';\n }\n\n /**\n * @returns {String}\n */\n static get SIMPLE_NOTIFICATION_SERVICE() {\n return 'sns';\n }\n\n /**\n * @returns {String}\n */\n static get COGNITO_IDENTITY() {\n return 'cognito-identity';\n }\n\n /**\n * @returns {String}\n */\n static get COGNITO_SYNC() {\n return 'cognito-sync';\n }\n\n /**\n * @returns {String}\n */\n static get ELASTIC_CACHE() {\n return 'elasticache';\n }\n\n /**\n * @returns {String}\n */\n static get IDENTITY_AND_ACCESS_MANAGEMENT() {\n return 'iam';\n }\n\n /**\n * @returns {String}\n */\n static get KINESIS() {\n return 'kinesis';\n }\n\n /**\n * @returns {String}\n */\n static get CLOUD_FRONT() {\n return 'cloudfront';\n }\n\n /**\n * @returns {String}\n */\n static get SECURITY_TOKEN_SERVICE() {\n return 'sts';\n }\n\n /**\n * @returns {String}\n */\n static get CLOUD_WATCH_LOGS() {\n return 'logs';\n }\n\n /**\n * @returns {String}\n */\n static get API_GATEWAY() {\n return 'apigateway';\n }\n\n /**\n * @param {String} service\n * @returns {String}\n */\n static identifier(service) {\n return `${service}.amazonaws.com`;\n }\n\n /**\n * @param {String} name\n * @returns {Boolean}\n */\n static exists(name) {\n return -1 !== Service.list().indexOf(name);\n }\n\n /**\n * @returns {String[]}\n */\n static list() {\n return [\n Service.LAMBDA,\n Service.SIMPLE_STORAGE_SERVICE,\n Service.DYNAMO_DB,\n Service.SIMPLE_NOTIFICATION_SERVICE,\n Service.COGNITO_IDENTITY,\n Service.COGNITO_SYNC,\n Service.ELASTIC_CACHE,\n Service.IDENTITY_AND_ACCESS_MANAGEMENT,\n Service.KINESIS,\n Service.CLOUD_FRONT,\n Service.SECURITY_TOKEN_SERVICE,\n Service.CLOUD_WATCH_LOGS,\n Service.API_GATEWAY,\n ];\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Service", + "memberof": "lib/AWS/Service.js", + "longname": "lib/AWS/Service.js~Service", + "access": null, + "export": true, + "importPath": "deep-core/lib/AWS/Service.js", + "importStyle": "{Service}", + "description": "Available AWS services", + "lineNumber": 10, + "interface": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "LAMBDA", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.LAMBDA", + "access": null, + "description": null, + "lineNumber": 14, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "SIMPLE_STORAGE_SERVICE", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.SIMPLE_STORAGE_SERVICE", + "access": null, + "description": null, + "lineNumber": 21, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "DYNAMO_DB", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.DYNAMO_DB", + "access": null, + "description": null, + "lineNumber": 28, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "SIMPLE_NOTIFICATION_SERVICE", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.SIMPLE_NOTIFICATION_SERVICE", + "access": null, + "description": null, + "lineNumber": 35, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "COGNITO_IDENTITY", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.COGNITO_IDENTITY", + "access": null, + "description": null, + "lineNumber": 42, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "COGNITO_SYNC", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.COGNITO_SYNC", + "access": null, + "description": null, + "lineNumber": 49, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "ELASTIC_CACHE", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.ELASTIC_CACHE", + "access": null, + "description": null, + "lineNumber": 56, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "IDENTITY_AND_ACCESS_MANAGEMENT", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.IDENTITY_AND_ACCESS_MANAGEMENT", + "access": null, + "description": null, + "lineNumber": 63, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "KINESIS", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.KINESIS", + "access": null, + "description": null, + "lineNumber": 70, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "CLOUD_FRONT", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.CLOUD_FRONT", + "access": null, + "description": null, + "lineNumber": 77, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "SECURITY_TOKEN_SERVICE", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.SECURITY_TOKEN_SERVICE", + "access": null, + "description": null, + "lineNumber": 84, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "CLOUD_WATCH_LOGS", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.CLOUD_WATCH_LOGS", + "access": null, + "description": null, + "lineNumber": 91, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "API_GATEWAY", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.API_GATEWAY", + "access": null, + "description": null, + "lineNumber": 98, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "identifier", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.identifier", + "access": null, + "description": null, + "lineNumber": 106, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "service", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "exists", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.exists", + "access": null, + "description": null, + "lineNumber": 114, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "list", + "memberof": "lib/AWS/Service.js~Service", + "longname": "lib/AWS/Service.js~Service.list", + "access": null, + "description": null, + "lineNumber": 121, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String[]}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "String[]" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/DatabaseOperationException.js", + "memberof": null, + "longname": "lib/Exception/DatabaseOperationException.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when operation on the database failed\n */\nexport class DatabaseOperationException extends Exception {\n\n /**\n * @param {String} error\n */\n constructor(error) {\n super(`Database operation failed. ${error}`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "DatabaseOperationException", + "memberof": "lib/Exception/DatabaseOperationException.js", + "longname": "lib/Exception/DatabaseOperationException.js~DatabaseOperationException", + "access": null, + "export": true, + "importPath": "deep-core/lib/Exception/DatabaseOperationException.js", + "importStyle": "{DatabaseOperationException}", + "description": "Thrown when operation on the database failed", + "lineNumber": 8, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/DatabaseOperationException.js~DatabaseOperationException", + "longname": "lib/Exception/DatabaseOperationException.js~DatabaseOperationException#constructor", + "access": null, + "description": null, + "lineNumber": 13, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "error", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/Exception.js", + "memberof": null, + "longname": "lib/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/25/15.\n */\n\n'use strict';\n\n/**\n * Base exception\n */\nexport class Exception extends Error {\n /**\n * @param {String} message\n */\n constructor(message) {\n super();\n\n if (Error.hasOwnProperty('captureStackTrace')) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n Object.defineProperty(this, 'stack', {\n value: (new Error()).stack,\n });\n }\n\n Object.defineProperty(this, 'message', {\n value: message,\n });\n }\n\n /**\n * @returns {String}\n */\n get name() {\n return this.constructor.name;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Exception/Exception.js", + "longname": "lib/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-core/lib/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Base exception", + "lineNumber": 10, + "interface": false, + "extends": [ + "Error" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/Exception.js~Exception", + "longname": "lib/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 14, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "message", + "description": "" + } + ], + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "name", + "memberof": "lib/Exception/Exception.js~Exception", + "longname": "lib/Exception/Exception.js~Exception#name", + "access": null, + "description": null, + "lineNumber": 33, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/InvalidArgumentException.js", + "memberof": null, + "longname": "lib/Exception/InvalidArgumentException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/25/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when invalid argument provided\n */\nexport class InvalidArgumentException extends Exception {\n /**\n * @param {*} argument\n * @param {String} meantType\n */\n constructor(argument, meantType) {\n let argumentType = typeof argument;\n\n super(`Invalid argument ${argument} of type ${argumentType} provided (meant ${meantType}).`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "InvalidArgumentException", + "memberof": "lib/Exception/InvalidArgumentException.js", + "longname": "lib/Exception/InvalidArgumentException.js~InvalidArgumentException", + "access": null, + "export": true, + "importPath": "deep-core/lib/Exception/InvalidArgumentException.js", + "importStyle": "{InvalidArgumentException}", + "description": "Thrown when invalid argument provided", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/InvalidArgumentException.js~InvalidArgumentException", + "longname": "lib/Exception/InvalidArgumentException.js~InvalidArgumentException#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "argument", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "meantType", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/MethodsNotImplementedException.js", + "memberof": null, + "longname": "lib/Exception/MethodsNotImplementedException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/25/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\nimport {InvalidArgumentException} from './InvalidArgumentException';\n\n/**\n * Thrown when methods from interface or abstract class are not implemented\n */\nexport class MethodsNotImplementedException extends Exception {\n /**\n * @param {Array} methods\n */\n constructor(methods) {\n if (!Array.isArray(methods)) {\n throw new InvalidArgumentException(methods, 'Array');\n }\n\n let methodPlain = methods.join(', ');\n\n super(`One or more method are not implemented (${methodPlain}).`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "MethodsNotImplementedException", + "memberof": "lib/Exception/MethodsNotImplementedException.js", + "longname": "lib/Exception/MethodsNotImplementedException.js~MethodsNotImplementedException", + "access": null, + "export": true, + "importPath": "deep-core/lib/Exception/MethodsNotImplementedException.js", + "importStyle": "{MethodsNotImplementedException}", + "description": "Thrown when methods from interface or abstract class are not implemented", + "lineNumber": 13, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/MethodsNotImplementedException.js~MethodsNotImplementedException", + "longname": "lib/Exception/MethodsNotImplementedException.js~MethodsNotImplementedException#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "methods", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Generic/ObjectStorage.js", + "memberof": null, + "longname": "lib/Generic/ObjectStorage.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/27/15.\n */\n\n'use strict';\n\n/**\n * Simple object storage implementation\n */\nexport class ObjectStorage {\n /**\n * @param {Array} objects\n */\n constructor(...objects) {\n if (objects.length === 1 && objects[0] instanceof Array) {\n objects = objects[0];\n }\n\n this._vector = objects;\n }\n\n /**\n * @param {*} object\n * @returns {ObjectStorage}\n */\n add(object) {\n this._vector.push(object);\n\n return this;\n }\n\n /**\n * @param {*} thing\n * @param {Boolean} strict\n * @returns {*}\n */\n find(thing, strict = false) {\n for (let objectKey in this._vector) {\n if (!this._vector.hasOwnProperty(objectKey)) {\n continue;\n }\n\n let object = this._vector[objectKey];\n\n if ((strict && object === thing) || (!strict && object instanceof thing)) {\n return object;\n }\n }\n }\n\n /**\n * @returns {Array}\n */\n get iterator() {\n return this._vector;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "ObjectStorage", + "memberof": "lib/Generic/ObjectStorage.js", + "longname": "lib/Generic/ObjectStorage.js~ObjectStorage", + "access": null, + "export": true, + "importPath": "deep-core/lib/Generic/ObjectStorage.js", + "importStyle": "{ObjectStorage}", + "description": "Simple object storage implementation", + "lineNumber": 10, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Generic/ObjectStorage.js~ObjectStorage", + "longname": "lib/Generic/ObjectStorage.js~ObjectStorage#constructor", + "access": null, + "description": null, + "lineNumber": 14, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "objects", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_vector", + "memberof": "lib/Generic/ObjectStorage.js~ObjectStorage", + "longname": "lib/Generic/ObjectStorage.js~ObjectStorage#_vector", + "access": null, + "description": null, + "lineNumber": 19, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "add", + "memberof": "lib/Generic/ObjectStorage.js~ObjectStorage", + "longname": "lib/Generic/ObjectStorage.js~ObjectStorage#add", + "access": null, + "description": null, + "lineNumber": 26, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{ObjectStorage}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "object", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "ObjectStorage" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "find", + "memberof": "lib/Generic/ObjectStorage.js~ObjectStorage", + "longname": "lib/Generic/ObjectStorage.js~ObjectStorage#find", + "access": null, + "description": null, + "lineNumber": 37, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "thing", + "description": "" + }, + { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "optional": false, + "name": "strict", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "iterator", + "memberof": "lib/Generic/ObjectStorage.js~ObjectStorage", + "longname": "lib/Generic/ObjectStorage.js~ObjectStorage#iterator", + "access": null, + "description": null, + "lineNumber": 54, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Array}" + } + ], + "return": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Generic/ObjectVector.js", + "memberof": null, + "longname": "lib/Generic/ObjectVector.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "'use strict';\n\nexport class ObjectVector {\n\n /**\n * @param {Function} proto\n * @param {Object[]|*} instances\n */\n constructor(proto, ...instances) {\n this._proto = proto;\n this._vector = [];\n\n this.add(...instances);\n }\n\n /**\n * Add new instances to collection\n * @param {Object[]|*} instances\n */\n add(...instances) {\n for (let instance of instances) {\n if (!(instance instanceof this._proto)) {\n throw new Error(\n `The object ${instance.constructor.name} is not an instance of ${this._proto.name}`\n );\n }\n\n this._vector.push(instance);\n }\n\n return this;\n }\n\n /**\n * Get collection of instances\n * @returns {Object[]}\n */\n get collection() {\n return this._vector;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "ObjectVector", + "memberof": "lib/Generic/ObjectVector.js", + "longname": "lib/Generic/ObjectVector.js~ObjectVector", + "access": null, + "export": true, + "importPath": "deep-core/lib/Generic/ObjectVector.js", + "importStyle": "{ObjectVector}", + "description": null, + "lineNumber": 3, + "undocument": true, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Generic/ObjectVector.js~ObjectVector", + "longname": "lib/Generic/ObjectVector.js~ObjectVector#constructor", + "access": null, + "description": null, + "lineNumber": 9, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "proto", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object[]", + "*" + ], + "spread": false, + "optional": false, + "name": "instances", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_proto", + "memberof": "lib/Generic/ObjectVector.js~ObjectVector", + "longname": "lib/Generic/ObjectVector.js~ObjectVector#_proto", + "access": null, + "description": null, + "lineNumber": 10, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_vector", + "memberof": "lib/Generic/ObjectVector.js~ObjectVector", + "longname": "lib/Generic/ObjectVector.js~ObjectVector#_vector", + "access": null, + "description": null, + "lineNumber": 11, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "add", + "memberof": "lib/Generic/ObjectVector.js~ObjectVector", + "longname": "lib/Generic/ObjectVector.js~ObjectVector#add", + "access": null, + "description": "Add new instances to collection", + "lineNumber": 20, + "params": [ + { + "nullable": null, + "types": [ + "Object[]", + "*" + ], + "spread": false, + "optional": false, + "name": "instances", + "description": "" + } + ], + "return": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "collection", + "memberof": "lib/Generic/ObjectVector.js~ObjectVector", + "longname": "lib/Generic/ObjectVector.js~ObjectVector#collection", + "access": null, + "description": "Get collection of instances", + "lineNumber": 38, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object[]}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object[]" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/OOP/Interface.js", + "memberof": null, + "longname": "lib/OOP/Interface.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/25/15.\n */\n\n'use strict';\n\nimport {MethodsNotImplementedException} from '../Exception/MethodsNotImplementedException';\nimport {InvalidArgumentException} from '../Exception/InvalidArgumentException';\n\n/**\n * Interface implementation\n */\nexport class Interface {\n /**\n * @param {String[]|String} abstractMethods\n */\n constructor(...abstractMethods) {\n let methods = abstractMethods.length === 1 && abstractMethods[0] instanceof Array\n ? abstractMethods[0]\n : abstractMethods;\n\n let notImplementedMethods = [];\n\n for (let abstractMethodKey in methods) {\n if (!methods.hasOwnProperty(abstractMethodKey)) {\n continue;\n }\n\n let abstractMethod = methods[abstractMethodKey];\n if (!(this[abstractMethod] instanceof Function)) {\n notImplementedMethods.push(abstractMethod);\n }\n }\n\n if (notImplementedMethods.length > 0) {\n throw new MethodsNotImplementedException(notImplementedMethods);\n }\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Interface", + "memberof": "lib/OOP/Interface.js", + "longname": "lib/OOP/Interface.js~Interface", + "access": null, + "export": true, + "importPath": "deep-core/lib/OOP/Interface.js", + "importStyle": "{Interface}", + "description": "Interface implementation", + "lineNumber": 13, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/OOP/Interface.js~Interface", + "longname": "lib/OOP/Interface.js~Interface#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "String[]", + "String" + ], + "spread": false, + "optional": false, + "name": "abstractMethods", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/bootstrap.js", + "memberof": null, + "longname": "lib/bootstrap.js", + "access": null, + "description": null, + "lineNumber": 7, + "content": "/**\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n */\n\n'use strict';\n\nimport {Interface as OOPInterface} from './OOP/Interface';\nimport {Runtime as AWSLambdaRuntime} from './AWS/Lambda/Runtime';\nimport {Region as AWSRegion} from './AWS/Region';\nimport {Service as AWSService} from './AWS/Service';\nimport {Policy as AWSIAMPolicy} from './AWS/IAM/Policy';\nimport {Factory as AWSIAMFactory} from './AWS/IAM/Factory';\nimport {ObjectStorage as GenericObjectStorage} from './Generic/ObjectStorage';\nimport {ObjectVector as GenericObjectVector} from './Generic/ObjectVector';\nimport {Exception as ExceptionException} from './Exception/Exception';\nimport {MethodsNotImplementedException as ExceptionMethodsNotImplementedException} from './Exception/MethodsNotImplementedException';\nimport {InvalidArgumentException as ExceptionInvalidArgumentException} from './Exception/InvalidArgumentException';\nimport {DatabaseOperationException as ExceptionDatabaseOperationException} from './Exception/DatabaseOperationException';\n\nlet exports = module.exports = {\n IS_DEV_SERVER: global.__DEEP_DEV_SERVER || false,\n Exception: {\n Exception: ExceptionException,\n InvalidArgumentException: ExceptionInvalidArgumentException,\n MethodsNotImplementedException: ExceptionMethodsNotImplementedException,\n DatabaseOperationException: ExceptionDatabaseOperationException,\n },\n OOP: {\n Interface: OOPInterface,\n },\n Generic: {\n ObjectStorage: GenericObjectStorage,\n ObjectVector: GenericObjectVector,\n },\n AWS: {\n Region: AWSRegion,\n Service: AWSService,\n IAM: {\n Factory: AWSIAMFactory,\n Policy: AWSIAMPolicy,\n },\n Lambda: {\n Runtime: AWSLambdaRuntime,\n },\n },\n};\n" + }, + { + "kind": "variable", + "static": true, + "variation": null, + "name": "exports", + "memberof": "lib/bootstrap.js", + "longname": "lib/bootstrap.js~exports", + "access": null, + "export": false, + "importPath": "deep-core/lib/bootstrap.js", + "importStyle": null, + "description": null, + "lineNumber": 22, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~null", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Error", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Date", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~String", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~string", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Map", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Set", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "CanvasRenderingContext2D", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DocumentFragment", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Element", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Element", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Event", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Event", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Node", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Node", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NodeList", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~NodeList", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "XMLHttpRequest", + "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "access": null, + "description": null, + "builtinExternal": true + } +] \ No newline at end of file diff --git a/docs-api/deep-core/file/lib/AWS/IAM/Action.js.html b/docs-api/deep-core/file/lib/AWS/IAM/Action.js.html new file mode 100644 index 00000000..f19fe6e3 --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/IAM/Action.js.html @@ -0,0 +1,140 @@ + + + + + + lib/AWS/IAM/Action.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/IAM/Action.js

    +
    /**
    + * Created by AlexanderC on 5/27/15.
    + */
    +
    +'use strict';
    +
    +import {Extractable} from './Extractable';
    +import {Service} from '../Service';
    +import {InvalidArgumentException} from '../../Exception/InvalidArgumentException';
    +import {Policy} from './Policy';
    +
    +/**
    + * Iam statement action
    + */
    +export class Action extends Extractable {
    +  constructor() {
    +    super();
    +
    +    this._service = Policy.ANY;
    +    this._action = Policy.ANY;
    +  }
    +
    +  /**
    +   * @param {String} action
    +   */
    +  set action(action) {
    +    this._action = action;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get action() {
    +    return this._action;
    +  }
    +
    +  /**
    +   * @param {String} name
    +   */
    +  set service(name) {
    +    if (!Service.exists(name)) {
    +      throw new InvalidArgumentException(name, Service);
    +    }
    +
    +    this._service = name;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get service() {
    +    return this._service;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  extract() {
    +    let service = this._service;
    +    let action = this._action;
    +
    +    return `${service}:${action}`;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/AWS/IAM/Collection.js.html b/docs-api/deep-core/file/lib/AWS/IAM/Collection.js.html new file mode 100644 index 00000000..66895c7c --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/IAM/Collection.js.html @@ -0,0 +1,165 @@ + + + + + + lib/AWS/IAM/Collection.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/IAM/Collection.js

    +
    /**
    + * Created by AlexanderC on 5/27/15.
    + */
    +
    +'use strict';
    +
    +import {Extractable} from './Extractable';
    +import {InvalidArgumentException} from '../../Exception/InvalidArgumentException';
    +
    +/**
    + * Collection of something
    + */
    +export class Collection extends Extractable {
    +  /**
    +   * @param {Object} prototype
    +   */
    +  constructor(prototype) {
    +    super();
    +
    +    if (prototype.__proto__ !== Extractable) {
    +      throw new InvalidArgumentException(prototype, Extractable);
    +    }
    +
    +    this._prototype = prototype;
    +    this._vector = [];
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get prototype() {
    +    return this._prototype;
    +  }
    +
    +  /**
    +   * @param {Array} args
    +   * @returns {Object}
    +   */
    +  create(...args) {
    +    return new this._prototype(...args);
    +  }
    +
    +  /**
    +   * @param {Array} args
    +   * @returns {Object}
    +   */
    +  add(...args) {
    +    let instance = args.length === 1 && args[0] instanceof this._prototype
    +      ? args[0]
    +      : this.create(...args);
    +
    +    this._vector.push(instance);
    +
    +    return instance;
    +  }
    +
    +  /**
    +   * @returns {Number}
    +   */
    +  count() {
    +    return this._vector.length;
    +  }
    +
    +  /**
    +   * @returns {Array}
    +   */
    +  list() {
    +    return this._vector;
    +  }
    +
    +  /**
    +   * @returns {Array}
    +   */
    +  extract() {
    +    let vector = [];
    +
    +    for (let itemKey in this._vector) {
    +      if (!this._vector.hasOwnProperty(itemKey)) {
    +        continue;
    +      }
    +
    +      let item = this._vector[itemKey];
    +
    +      vector.push(item.extract());
    +    }
    +
    +    return vector;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/AWS/IAM/Exception/InvalidArnException.js.html b/docs-api/deep-core/file/lib/AWS/IAM/Exception/InvalidArnException.js.html new file mode 100644 index 00000000..671691d0 --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/IAM/Exception/InvalidArnException.js.html @@ -0,0 +1,96 @@ + + + + + + lib/AWS/IAM/Exception/InvalidArnException.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/IAM/Exception/InvalidArnException.js

    +
    /**
    + * Created by AlexanderC on 6/12/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from '../../../Exception/Exception';
    +
    +/**
    + * Thrown when ARN is invalid
    + */
    +export class InvalidArnException extends Exception {
    +  /**
    +   * @param {String} arn
    +   */
    +  constructor(arn) {
    +    super(`Invalid arn string "${arn}".`);
    +  }
    +}
    +
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/AWS/IAM/Extractable.js.html b/docs-api/deep-core/file/lib/AWS/IAM/Extractable.js.html new file mode 100644 index 00000000..71ebb170 --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/IAM/Extractable.js.html @@ -0,0 +1,92 @@ + + + + + + lib/AWS/IAM/Extractable.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/IAM/Extractable.js

    +
    /**
    + * Created by AlexanderC on 5/27/15.
    + */
    +
    +'use strict';
    +
    +import {Interface} from '../../OOP/Interface';
    +
    +/**
    + * Extractable helper
    + */
    +export class Extractable extends Interface {
    +  constructor() {
    +    super(['extract']);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/AWS/IAM/Factory.js.html b/docs-api/deep-core/file/lib/AWS/IAM/Factory.js.html new file mode 100644 index 00000000..e0327717 --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/IAM/Factory.js.html @@ -0,0 +1,158 @@ + + + + + + lib/AWS/IAM/Factory.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/IAM/Factory.js

    +
    /**
    + * Created by AlexanderC on 6/2/15.
    + */
    +
    +'use strict';
    +
    +import {Resource} from './Resource';
    +import {Collection} from './Collection';
    +import {Action} from './Action';
    +import {Policy} from './Policy';
    +import {Statement} from './Statement';
    +
    +/**
    + *  AWS IAM factory
    + */
    +export class Factory {
    +  /**
    +   * @param {Function|*} Prototype
    +   * @param {Array} args
    +   * @returns {Object}
    +   */
    +  static create(Prototype, ...args) {
    +    Prototype = Factory._assurePrototype(Prototype);
    +
    +    return new Prototype(...args);
    +  }
    +
    +  /**
    +   * @param {Function|*} Prototype
    +   * @returns {Collection}
    +   */
    +  static createCollection(Prototype) {
    +    Prototype = Factory._assurePrototype(Prototype);
    +
    +    return new Collection(Prototype);
    +  }
    +
    +  /**
    +   * @param {Function|*} Prototype
    +   * @returns {Function}
    +   * @private
    +   */
    +  static _assurePrototype(Prototype) {
    +    if (typeof Prototype === 'string') {
    +      Prototype = Factory[Prototype.toUpperCase()];
    +    }
    +
    +    return Prototype;
    +  }
    +
    +  /**
    +   * @returns {Policy}
    +   * @constructor
    +   */
    +  static get POLICY() {
    +    return Policy;
    +  }
    +
    +  /**
    +   * @returns {Action}
    +   * @constructor
    +   */
    +  static get RESOURCE() {
    +    return Resource;
    +  }
    +
    +  /**
    +   * @returns {Resource}
    +   * @constructor
    +   */
    +  static get ACTION() {
    +    return Action;
    +  }
    +
    +  /**
    +   * @returns {Statement}
    +   * @constructor
    +   */
    +  static get STATEMENT() {
    +    return Statement;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/AWS/IAM/Policy.js.html b/docs-api/deep-core/file/lib/AWS/IAM/Policy.js.html new file mode 100644 index 00000000..ab9af136 --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/IAM/Policy.js.html @@ -0,0 +1,149 @@ + + + + + + lib/AWS/IAM/Policy.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/IAM/Policy.js

    +
    /**
    + * Created by AlexanderC on 5/27/15.
    + */
    +
    +'use strict';
    +
    +import {Extractable} from './Extractable';
    +import {Collection} from './Collection';
    +import {Statement} from './Statement';
    +
    +/**
    + * IAM policy
    + */
    +export class Policy extends Extractable {
    +  constructor() {
    +    super();
    +
    +    this._version = Policy.DEFAULT_VERSION;
    +    this._statement = new Collection(Statement);
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get ANY() {
    +    return '*';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get DEFAULT_VERSION() {
    +    return '2012-10-17';
    +  }
    +
    +  /**
    +   * @param {String} version
    +   */
    +  set version(version) {
    +    this._version = version;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get version() {
    +    return this._version;
    +  }
    +
    +  /**
    +   * @returns {Collection}
    +   */
    +  get statement() {
    +    return this._statement;
    +  }
    +
    +  /**
    +   * @return {Object}
    +   */
    +  extract() {
    +    return {
    +      Version: this._version,
    +      Statement: this._statement.extract(),
    +    };
    +  }
    +
    +  /**
    +   * @return {String}
    +   */
    +  toString() {
    +    return JSON.stringify(this.extract());
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/AWS/IAM/Resource.js.html b/docs-api/deep-core/file/lib/AWS/IAM/Resource.js.html new file mode 100644 index 00000000..7cd7260d --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/IAM/Resource.js.html @@ -0,0 +1,198 @@ + + + + + + lib/AWS/IAM/Resource.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/IAM/Resource.js

    +
    /**
    + * Created by AlexanderC on 5/27/15.
    + */
    +
    +'use strict';
    +
    +import {Extractable} from './Extractable';
    +import {Region} from '../Region';
    +import {Service} from '../Service';
    +import {InvalidArgumentException} from '../../Exception/InvalidArgumentException';
    +import {InvalidArnException} from './Exception/InvalidArnException';
    +
    +/**
    + * IAM statement resource
    + */
    +export class Resource extends Extractable {
    +  constructor() {
    +    super();
    +
    +    this._service = '';
    +    this._region = '';
    +    this._accountId = '';
    +    this._descriptor = '';
    +  }
    +
    +  /**
    +   * @param {String} identifier
    +   */
    +  set accountId(identifier) {
    +    this._accountId = identifier;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get accountId() {
    +    return this._accountId;
    +  }
    +
    +  /**
    +   * @param {String} descriptor
    +   */
    +  set descriptor(descriptor) {
    +    this._descriptor = descriptor;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get descriptor() {
    +    return this._descriptor;
    +  }
    +
    +  /**
    +   * @param {String} name
    +   */
    +  set region(name) {
    +    if (!Region.exists(name)) {
    +      throw new InvalidArgumentException(name, Region);
    +    }
    +
    +    this._region = name;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get region() {
    +    return this._region;
    +  }
    +
    +  /**
    +   * @param {String} name
    +   */
    +  set service(name) {
    +    if (!Service.exists(name)) {
    +      throw new InvalidArgumentException(name, Service);
    +    }
    +
    +    this._service = name;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get service() {
    +    return this._service;
    +  }
    +
    +  /**
    +   * @see - http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
    +   *
    +   * @param {string} arn
    +   * @returns {Resource}
    +   */
    +  updateFromArn(arn) {
    +    let arnParts = arn.split(':');
    +
    +    if (arnParts.length < 6) {
    +      throw new InvalidArnException(arn);
    +    }
    +
    +    this.service = arnParts[2];
    +    this.region = arnParts[3];
    +    this.accountId = arnParts[4];
    +    this.descriptor = arnParts.slice(5).join(':');
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  extract() {
    +    let service = this._service;
    +    let region = this._region;
    +    let accountId = this._accountId;
    +    let descriptor = this._descriptor;
    +
    +    return `arn:aws:${service}:${region}:${accountId}:${descriptor}`;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/AWS/IAM/Statement.js.html b/docs-api/deep-core/file/lib/AWS/IAM/Statement.js.html new file mode 100644 index 00000000..c6d9eb57 --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/IAM/Statement.js.html @@ -0,0 +1,229 @@ + + + + + + lib/AWS/IAM/Statement.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/IAM/Statement.js

    +
    /**
    + * Created by AlexanderC on 5/27/15.
    + */
    +
    +'use strict';
    +
    +import {Resource} from './Resource';
    +import {Collection} from './Collection';
    +import {Action} from './Action';
    +import {Policy} from './Policy';
    +import {Extractable} from './Extractable';
    +import {InvalidArgumentException} from '../../Exception/InvalidArgumentException';
    +
    +/**
    + * IAM policy statement
    + */
    +export class Statement extends Extractable {
    +  constructor() {
    +    super();
    +
    +    this._effect = Statement.ALLOW;
    +    this._action = new Collection(Action);
    +    this._notAction = new Collection(Action);
    +    this._resource = new Collection(Resource);
    +    this._notResource = new Collection(Resource);
    +    this._condition = null;
    +    this._principal = null;
    +  }
    +
    +  /**
    +   * @param {String} effect
    +   */
    +  set effect(effect) {
    +    if ([Statement.ALLOW, Statement.DENY].indexOf(effect) === -1) {
    +      throw new InvalidArgumentException(effect, '[Statement.ALLOW, Statement.DENY]');
    +    }
    +
    +    this._effect = effect;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get effect() {
    +    return this._effect;
    +  }
    +
    +  /**
    +   * @param {Object} condition
    +   */
    +  set condition(condition) {
    +    this._condition = condition;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get condition() {
    +    return this._condition;
    +  }
    +
    +  /**
    +   * @param {*} principal
    +   */
    +  set principal(principal) {
    +    this._principal = principal;
    +  }
    +
    +  /**
    +   * @returns {*}
    +   */
    +  get principal() {
    +    return this._principal;
    +  }
    +
    +  /**
    +   * @returns {Collection}
    +   */
    +  get notResource() {
    +    return this._notResource;
    +  }
    +
    +  /**
    +   * @returns {Collection}
    +   */
    +  get resource() {
    +    return this._resource;
    +  }
    +
    +  /**
    +   * @returns {Collection}
    +   */
    +  get notAction() {
    +    return this._notAction;
    +  }
    +
    +  /**
    +   * @returns {Collection}
    +   */
    +  get action() {
    +    return this._action;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get ALLOW() {
    +    return 'Allow';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get DENY() {
    +    return 'Deny';
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  extract() {
    +    let actions = this._action.count() > 0 ? this._action.extract() : Policy.ANY;
    +    let resources = this._resource.count() > 0 ? this._resource.extract() : null;
    +
    +    let statement = {
    +      Effect: this._effect,
    +      Action: actions,
    +    };
    +
    +    if (resources !== null) {
    +      statement.Resource = resources;
    +    }
    +
    +    if (this._condition !== null && this._condition instanceof Object) {
    +      statement.Condition = this._condition;
    +    }
    +
    +    // @todo - create separate class for Principal
    +    if (this._principal != null) {
    +      statement.Principal = this._principal;
    +    }
    +
    +    if (this._notAction.count() > 0) {
    +      statement.NotAction = this._notAction.extract();
    +    }
    +
    +    if (this._notResource.count() > 0) {
    +      statement.NotResource = this._notResource.extract();
    +    }
    +
    +    return statement;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/AWS/Lambda/ErrorResponse.js.html b/docs-api/deep-core/file/lib/AWS/Lambda/ErrorResponse.js.html new file mode 100644 index 00000000..b5a4fc09 --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/Lambda/ErrorResponse.js.html @@ -0,0 +1,102 @@ + + + + + + lib/AWS/Lambda/ErrorResponse.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/Lambda/ErrorResponse.js

    +
    /**
    + * Created by AlexanderC on 5/25/15.
    + */
    +
    +'use strict';
    +
    +import {Response} from './Response';
    +
    +/**
    + * Error response sent to the lambda context
    + */
    +export class ErrorResponse extends Response {
    +  /**
    +   * @param {*} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get contextMethod() {
    +    return 'fail';
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js.html b/docs-api/deep-core/file/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js.html new file mode 100644 index 00000000..8fa19b41 --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js.html @@ -0,0 +1,92 @@ + + + + + + lib/AWS/Lambda/Exception/MissingRuntimeContextException.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/Lambda/Exception/MissingRuntimeContextException.js

    +
    /**
    + * Created by AlexanderC on 6/12/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from '../../../Exception/Exception';
    +
    +/**
    + * Thrown when missing runtime lambda context
    + */
    +export class MissingRuntimeContextException extends Exception {
    +  constructor() {
    +    super('Missing Lambda runtime context');
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/AWS/Lambda/Request.js.html b/docs-api/deep-core/file/lib/AWS/Lambda/Request.js.html new file mode 100644 index 00000000..de220647 --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/Lambda/Request.js.html @@ -0,0 +1,110 @@ + + + + + + lib/AWS/Lambda/Request.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/Lambda/Request.js

    +
    /**
    + * Created by AlexanderC on 5/25/15.
    + */
    +
    +'use strict';
    +
    +/**
    + * Request received by the lambda context
    + */
    +export class Request {
    +  /**
    +   * @param {*} data
    +   */
    +  constructor(data) {
    +    this._data = data || {};
    +  }
    +
    +  /**
    +   * @returns {*}
    +   */
    +  get data() {
    +    return this._data;
    +  }
    +
    +  /**
    +   * @param {String} name
    +   * @param {String|Object|null} defaultValue
    +   *
    +   * @returns {String|Object|null}
    +   */
    +  getParam(name, defaultValue = null) {
    +    return this.data.hasOwnProperty(name) ? this.data[name] : defaultValue;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/AWS/Lambda/Response.js.html b/docs-api/deep-core/file/lib/AWS/Lambda/Response.js.html new file mode 100644 index 00000000..d8e6ed25 --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/Lambda/Response.js.html @@ -0,0 +1,137 @@ + + + + + + lib/AWS/Lambda/Response.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/Lambda/Response.js

    +
    /**
    + * Created by AlexanderC on 5/25/15.
    + */
    +
    +'use strict';
    +
    +import {MissingRuntimeContextException} from './Exception/MissingRuntimeContextException';
    +
    +/**
    + * Response sent to the lambda context
    + */
    +export class Response {
    +  /**
    +   * @param {*} data
    +   */
    +  constructor(data) {
    +    this._data = data;
    +    this._runtimeContext = null;
    +  }
    +
    +  /**
    +   * @param {Object} context
    +   */
    +  set runtimeContext(context) {
    +    this._runtimeContext = context;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get runtimeContext() {
    +    return this._runtimeContext;
    +  }
    +
    +  /**
    +   * @returns {Response}
    +   */
    +  send() {
    +    if (!this._runtimeContext) {
    +      throw new MissingRuntimeContextException();
    +    }
    +
    +    this._runtimeContext[this.contextMethod](this._data);
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @returns {*}
    +   */
    +  get data() {
    +    return this._data;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get contextMethod() {
    +    return 'succeed';
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/AWS/Lambda/Runtime.js.html b/docs-api/deep-core/file/lib/AWS/Lambda/Runtime.js.html new file mode 100644 index 00000000..451fbe95 --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/Lambda/Runtime.js.html @@ -0,0 +1,186 @@ + + + + + + lib/AWS/Lambda/Runtime.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/Lambda/Runtime.js

    +
    /**
    + * Created by AlexanderC on 5/25/15.
    + */
    +'use strict';
    +
    +import {Interface} from '../../OOP/Interface';
    +import {Response} from './Response';
    +import {Request} from './Request';
    +
    +/**
    + * Lambda runtime context
    + */
    +export class Runtime extends Interface {
    +  /**
    +   * @param {Object} kernel
    +   */
    +  constructor(kernel) {
    +    super(['handle']);
    +
    +    this._kernel = kernel;
    +    this._request = null;
    +    this._context = null;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get kernel() {
    +    return this._kernel;
    +  }
    +
    +  /**
    +   * @returns {Function}
    +   */
    +  get lambda() {
    +    let _this = this;
    +
    +    return function(event, context) {
    +      _this.run(event, context);
    +    };
    +  }
    +
    +  /**
    +   * @param {*} event
    +   * @param {*} context
    +   * @returns {Runtime}
    +   */
    +  run(event, context) {
    +    this._addExceptionListener();
    +
    +    this._context = context;
    +    this._request = new Request(event);
    +    this.handle(this._request);
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @private
    +   */
    +  _addExceptionListener() {
    +    process.removeAllListeners('uncaughtException');
    +    process.on('uncaughtException', function(error) {
    +      return this.createError(error).send();
    +    }.bind(this));
    +  }
    +
    +  /**
    +   * @param {String} iError
    +   */
    +  createError(iError) {
    +    let oError = {};
    +
    +    if (typeof iError === 'string') {
    +      oError = {
    +        errorType: 'Error',
    +        errorMessage: iError,
    +        errorStack: (new Error(iError)).stack,
    +      };
    +    } else {
    +      oError = {
    +        errorType: iError.name,
    +        errorMessage: iError.message,
    +        errorStack: iError.stack,
    +      };
    +    }
    +
    +    let response = new Response(oError);
    +    response.runtimeContext = this._context;
    +
    +    return response;
    +  }
    +
    +  /**
    +   * @param {Object} data
    +   */
    +  createResponse(data) {
    +    let response = new Response(data);
    +    response.runtimeContext = this._context;
    +
    +    return response;
    +  }
    +
    +  /**
    +   * @returns {Request}
    +   */
    +  get request() {
    +    return this._request;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/AWS/Region.js.html b/docs-api/deep-core/file/lib/AWS/Region.js.html new file mode 100644 index 00000000..4e422af3 --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/Region.js.html @@ -0,0 +1,222 @@ + + + + + + lib/AWS/Region.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/Region.js

    +
    /**
    + * Created by AlexanderC on 5/27/15.
    + */
    +
    +'use strict';
    +
    +/**
    + * Available AWS regions
    + */
    +export class Region {
    +  /**
    +   * @returns {String}
    +   */
    +  static get ANY() {
    +    return '*';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get ASIA_PACIFIC_TOKYO() {
    +    return 'ap-northeast-1';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get ASIA_PACIFIC_SINGAPORE() {
    +    return 'ap-southeast-1';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get ASIA_PACIFIC_SYDNEY() {
    +    return 'ap-southeast-2';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get EU_FRANKFURT() {
    +    return 'eu-central-1';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get EU_IRELAND() {
    +    return 'eu-west-1';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get SOUTH_AMERICA_SAO_PAULO() {
    +    return 'sa-east-1';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get US_EAST_N_VIRGINIA() {
    +    return 'us-east-1';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get US_WEST_N_CALIFORNIA() {
    +    return 'us-west-1';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get US_WEST_OREGON() {
    +    return 'us-west-2';
    +  }
    +
    +  /**
    +   * @param {String} name
    +   * @returns {Boolean}
    +   */
    +  static exists(name) {
    +    return -1 !== Region.list().indexOf(name);
    +  }
    +
    +  /**
    +   * @returns {String[]}
    +   */
    +  static list() {
    +    return [
    +      Region.ANY,
    +      Region.ASIA_PACIFIC_TOKYO,
    +      Region.ASIA_PACIFIC_SYDNEY,
    +      Region.ASIA_PACIFIC_SINGAPORE,
    +      Region.EU_FRANKFURT,
    +      Region.EU_IRELAND,
    +      Region.SOUTH_AMERICA_SAO_PAULO,
    +      Region.US_EAST_N_VIRGINIA,
    +      Region.US_WEST_N_CALIFORNIA,
    +      Region.US_WEST_OREGON,
    +    ];
    +  }
    +
    +  /**
    +   * List method alias
    +   *
    +   * @returns {String[]}
    +   */
    +  static all() {
    +    return Region.list();
    +  }
    +
    +  /**
    +   * @param {string} defaultRegion
    +   * @param {array} availableRegions
    +   * @returns {string}
    +   */
    +  static getAppropriateAwsRegion(defaultRegion, availableRegions) {
    +    if (availableRegions.indexOf(defaultRegion) !== -1) {
    +      return defaultRegion;
    +    }
    +
    +    let regionContinent = defaultRegion.split('-')[0];
    +
    +    for (let regionKey in availableRegions) {
    +      if (!availableRegions.hasOwnProperty(regionKey)) {
    +        continue;
    +      }
    +
    +      let region = availableRegions[regionKey];
    +
    +      if (region === Region.ANY) {
    +        return defaultRegion;
    +      }
    +
    +      if (region.split('-')[0] === regionContinent) {
    +        return region;
    +      }
    +    }
    +
    +    return availableRegions[0]; // fallback to first available region
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/AWS/Service.js.html b/docs-api/deep-core/file/lib/AWS/Service.js.html new file mode 100644 index 00000000..6594da63 --- /dev/null +++ b/docs-api/deep-core/file/lib/AWS/Service.js.html @@ -0,0 +1,214 @@ + + + + + + lib/AWS/Service.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/AWS/Service.js

    +
    /**
    + * Created by AlexanderC on 5/27/15.
    + */
    +
    +'use strict';
    +
    +/**
    + * Available AWS services
    + */
    +export class Service {
    +  /**
    +   * @returns {String}
    +   */
    +  static get LAMBDA() {
    +    return 'lambda';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get SIMPLE_STORAGE_SERVICE() {
    +    return 's3';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get DYNAMO_DB() {
    +    return 'dynamodb';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get SIMPLE_NOTIFICATION_SERVICE() {
    +    return 'sns';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get COGNITO_IDENTITY() {
    +    return 'cognito-identity';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get COGNITO_SYNC() {
    +    return 'cognito-sync';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get ELASTIC_CACHE() {
    +    return 'elasticache';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get IDENTITY_AND_ACCESS_MANAGEMENT() {
    +    return 'iam';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get KINESIS() {
    +    return 'kinesis';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get CLOUD_FRONT() {
    +    return 'cloudfront';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get SECURITY_TOKEN_SERVICE() {
    +    return 'sts';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get CLOUD_WATCH_LOGS() {
    +    return 'logs';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get API_GATEWAY() {
    +    return 'apigateway';
    +  }
    +
    +  /**
    +   * @param {String} service
    +   * @returns {String}
    +   */
    +  static identifier(service) {
    +    return `${service}.amazonaws.com`;
    +  }
    +
    +  /**
    +   * @param {String} name
    +   * @returns {Boolean}
    +   */
    +  static exists(name) {
    +    return -1 !== Service.list().indexOf(name);
    +  }
    +
    +  /**
    +   * @returns {String[]}
    +   */
    +  static list() {
    +    return [
    +      Service.LAMBDA,
    +      Service.SIMPLE_STORAGE_SERVICE,
    +      Service.DYNAMO_DB,
    +      Service.SIMPLE_NOTIFICATION_SERVICE,
    +      Service.COGNITO_IDENTITY,
    +      Service.COGNITO_SYNC,
    +      Service.ELASTIC_CACHE,
    +      Service.IDENTITY_AND_ACCESS_MANAGEMENT,
    +      Service.KINESIS,
    +      Service.CLOUD_FRONT,
    +      Service.SECURITY_TOKEN_SERVICE,
    +      Service.CLOUD_WATCH_LOGS,
    +      Service.API_GATEWAY,
    +    ];
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/Exception/DatabaseOperationException.js.html b/docs-api/deep-core/file/lib/Exception/DatabaseOperationException.js.html new file mode 100644 index 00000000..916f5137 --- /dev/null +++ b/docs-api/deep-core/file/lib/Exception/DatabaseOperationException.js.html @@ -0,0 +1,92 @@ + + + + + + lib/Exception/DatabaseOperationException.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/DatabaseOperationException.js

    +
    'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when operation on the database failed
    + */
    +export class DatabaseOperationException extends Exception {
    +
    +  /**
    +   * @param {String} error
    +   */
    +  constructor(error) {
    +    super(`Database operation failed. ${error}`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/Exception/Exception.js.html b/docs-api/deep-core/file/lib/Exception/Exception.js.html new file mode 100644 index 00000000..2e2d351f --- /dev/null +++ b/docs-api/deep-core/file/lib/Exception/Exception.js.html @@ -0,0 +1,112 @@ + + + + + + lib/Exception/Exception.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/Exception.js

    +
    /**
    + * Created by AlexanderC on 5/25/15.
    + */
    +
    +'use strict';
    +
    +/**
    + * Base exception
    + */
    +export class Exception extends Error {
    +  /**
    +   * @param {String} message
    +   */
    +  constructor(message) {
    +    super();
    +
    +    if (Error.hasOwnProperty('captureStackTrace')) {
    +      Error.captureStackTrace(this, this.constructor);
    +    } else {
    +      Object.defineProperty(this, 'stack', {
    +        value: (new Error()).stack,
    +      });
    +    }
    +
    +    Object.defineProperty(this, 'message', {
    +      value: message,
    +    });
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get name() {
    +    return this.constructor.name;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/Exception/InvalidArgumentException.js.html b/docs-api/deep-core/file/lib/Exception/InvalidArgumentException.js.html new file mode 100644 index 00000000..064e2e92 --- /dev/null +++ b/docs-api/deep-core/file/lib/Exception/InvalidArgumentException.js.html @@ -0,0 +1,98 @@ + + + + + + lib/Exception/InvalidArgumentException.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/InvalidArgumentException.js

    +
    /**
    + * Created by AlexanderC on 5/25/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when invalid argument provided
    + */
    +export class InvalidArgumentException extends Exception {
    +  /**
    +   * @param {*} argument
    +   * @param {String} meantType
    +   */
    +  constructor(argument, meantType) {
    +    let argumentType = typeof argument;
    +
    +    super(`Invalid argument ${argument} of type ${argumentType} provided (meant ${meantType}).`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/Exception/MethodsNotImplementedException.js.html b/docs-api/deep-core/file/lib/Exception/MethodsNotImplementedException.js.html new file mode 100644 index 00000000..0fed31c5 --- /dev/null +++ b/docs-api/deep-core/file/lib/Exception/MethodsNotImplementedException.js.html @@ -0,0 +1,102 @@ + + + + + + lib/Exception/MethodsNotImplementedException.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/MethodsNotImplementedException.js

    +
    /**
    + * Created by AlexanderC on 5/25/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +import {InvalidArgumentException} from './InvalidArgumentException';
    +
    +/**
    + * Thrown when methods from interface or abstract class are not implemented
    + */
    +export class MethodsNotImplementedException extends Exception {
    +  /**
    +   * @param {Array} methods
    +   */
    +  constructor(methods) {
    +    if (!Array.isArray(methods)) {
    +      throw new InvalidArgumentException(methods, 'Array');
    +    }
    +
    +    let methodPlain = methods.join(', ');
    +
    +    super(`One or more method are not implemented (${methodPlain}).`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/Generic/ObjectStorage.js.html b/docs-api/deep-core/file/lib/Generic/ObjectStorage.js.html new file mode 100644 index 00000000..e128bfa1 --- /dev/null +++ b/docs-api/deep-core/file/lib/Generic/ObjectStorage.js.html @@ -0,0 +1,133 @@ + + + + + + lib/Generic/ObjectStorage.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Generic/ObjectStorage.js

    +
    /**
    + * Created by AlexanderC on 5/27/15.
    + */
    +
    +'use strict';
    +
    +/**
    + * Simple object storage implementation
    + */
    +export class ObjectStorage {
    +  /**
    +   * @param {Array} objects
    +   */
    +  constructor(...objects) {
    +    if (objects.length === 1 && objects[0] instanceof Array) {
    +      objects = objects[0];
    +    }
    +
    +    this._vector = objects;
    +  }
    +
    +  /**
    +   * @param {*} object
    +   * @returns {ObjectStorage}
    +   */
    +  add(object) {
    +    this._vector.push(object);
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {*} thing
    +   * @param {Boolean} strict
    +   * @returns {*}
    +   */
    +  find(thing, strict = false) {
    +    for (let objectKey in this._vector) {
    +      if (!this._vector.hasOwnProperty(objectKey)) {
    +        continue;
    +      }
    +
    +      let object = this._vector[objectKey];
    +
    +      if ((strict && object === thing) || (!strict && object instanceof thing)) {
    +        return object;
    +      }
    +    }
    +  }
    +
    +  /**
    +   * @returns {Array}
    +   */
    +  get iterator() {
    +    return this._vector;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/Generic/ObjectVector.js.html b/docs-api/deep-core/file/lib/Generic/ObjectVector.js.html new file mode 100644 index 00000000..2866bce2 --- /dev/null +++ b/docs-api/deep-core/file/lib/Generic/ObjectVector.js.html @@ -0,0 +1,117 @@ + + + + + + lib/Generic/ObjectVector.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Generic/ObjectVector.js

    +
    'use strict';
    +
    +export class ObjectVector {
    +
    +  /**
    +   * @param {Function} proto
    +   * @param {Object[]|*} instances
    +   */
    +  constructor(proto, ...instances) {
    +    this._proto = proto;
    +    this._vector = [];
    +
    +    this.add(...instances);
    +  }
    +
    +  /**
    +   * Add new instances to collection
    +   * @param {Object[]|*} instances
    +   */
    +  add(...instances) {
    +    for (let instance of instances) {
    +      if (!(instance instanceof this._proto)) {
    +        throw new Error(
    +          `The object ${instance.constructor.name} is not an instance of ${this._proto.name}`
    +        );
    +      }
    +
    +      this._vector.push(instance);
    +    }
    +
    +    return this;
    +  }
    +
    +  /**
    +   * Get collection of instances
    +   * @returns {Object[]}
    +   */
    +  get collection() {
    +    return this._vector;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/OOP/Interface.js.html b/docs-api/deep-core/file/lib/OOP/Interface.js.html new file mode 100644 index 00000000..1b012b91 --- /dev/null +++ b/docs-api/deep-core/file/lib/OOP/Interface.js.html @@ -0,0 +1,115 @@ + + + + + + lib/OOP/Interface.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/OOP/Interface.js

    +
    /**
    + * Created by AlexanderC on 5/25/15.
    + */
    +
    +'use strict';
    +
    +import {MethodsNotImplementedException} from '../Exception/MethodsNotImplementedException';
    +import {InvalidArgumentException} from '../Exception/InvalidArgumentException';
    +
    +/**
    + * Interface implementation
    + */
    +export class Interface {
    +  /**
    +   * @param {String[]|String} abstractMethods
    +   */
    +  constructor(...abstractMethods) {
    +    let methods = abstractMethods.length === 1 && abstractMethods[0] instanceof Array
    +      ? abstractMethods[0]
    +      : abstractMethods;
    +
    +    let notImplementedMethods = [];
    +
    +    for (let abstractMethodKey in methods) {
    +      if (!methods.hasOwnProperty(abstractMethodKey)) {
    +        continue;
    +      }
    +
    +      let abstractMethod = methods[abstractMethodKey];
    +      if (!(this[abstractMethod] instanceof Function)) {
    +        notImplementedMethods.push(abstractMethod);
    +      }
    +    }
    +
    +    if (notImplementedMethods.length > 0) {
    +      throw new MethodsNotImplementedException(notImplementedMethods);
    +    }
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/file/lib/bootstrap.js.html b/docs-api/deep-core/file/lib/bootstrap.js.html new file mode 100644 index 00000000..dc4efaeb --- /dev/null +++ b/docs-api/deep-core/file/lib/bootstrap.js.html @@ -0,0 +1,124 @@ + + + + + + lib/bootstrap.js | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/bootstrap.js

    +
    /**
    + * Created by AlexanderC on 5/22/15.
    + *
    + * Bootstrap file loaded by npm as main
    + */
    +
    +'use strict';
    +
    +import {Interface as OOPInterface} from './OOP/Interface';
    +import {Runtime as AWSLambdaRuntime} from './AWS/Lambda/Runtime';
    +import {Region as AWSRegion} from './AWS/Region';
    +import {Service as AWSService} from './AWS/Service';
    +import {Policy as AWSIAMPolicy} from './AWS/IAM/Policy';
    +import {Factory as AWSIAMFactory} from './AWS/IAM/Factory';
    +import {ObjectStorage as GenericObjectStorage} from './Generic/ObjectStorage';
    +import {ObjectVector as GenericObjectVector} from './Generic/ObjectVector';
    +import {Exception as ExceptionException} from './Exception/Exception';
    +import {MethodsNotImplementedException as ExceptionMethodsNotImplementedException} from './Exception/MethodsNotImplementedException';
    +import {InvalidArgumentException as ExceptionInvalidArgumentException} from './Exception/InvalidArgumentException';
    +import {DatabaseOperationException as ExceptionDatabaseOperationException} from './Exception/DatabaseOperationException';
    +
    +let exports = module.exports = {
    +  IS_DEV_SERVER: global.__DEEP_DEV_SERVER || false,
    +  Exception: {
    +    Exception: ExceptionException,
    +    InvalidArgumentException: ExceptionInvalidArgumentException,
    +    MethodsNotImplementedException: ExceptionMethodsNotImplementedException,
    +    DatabaseOperationException: ExceptionDatabaseOperationException,
    +  },
    +  OOP: {
    +    Interface: OOPInterface,
    +  },
    +  Generic: {
    +    ObjectStorage: GenericObjectStorage,
    +    ObjectVector: GenericObjectVector,
    +  },
    +  AWS: {
    +    Region: AWSRegion,
    +    Service: AWSService,
    +    IAM: {
    +      Factory: AWSIAMFactory,
    +      Policy: AWSIAMPolicy,
    +    },
    +    Lambda: {
    +      Runtime: AWSLambdaRuntime,
    +    },
    +  },
    +};
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/identifiers.html b/docs-api/deep-core/identifiers.html new file mode 100644 index 00000000..1da5b0f9 --- /dev/null +++ b/docs-api/deep-core/identifiers.html @@ -0,0 +1,635 @@ + + + + + + Index | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Identifier

    +

    Class Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Class Summary
    + public + + + + + +
    +

    + Action +

    +
    +
    + + +
    Iam statement action
    +
    +
    + + +
    + public + + + + + +
    +

    + Collection +

    +
    +
    + + +
    Collection of something
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when operation on the database failed
    +
    +
    + + +
    + public + + + + + +
    +

    + ErrorResponse +

    +
    +
    + + +
    Error response sent to the lambda context
    +
    +
    + + +
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Base exception
    +
    +
    + + +
    + public + + + + + +
    +

    + Extractable +

    +
    +
    + + +
    Extractable helper
    +
    +
    + + +
    + public + + + + + +
    +

    + Factory +

    +
    +
    + + +
    AWS IAM factory
    +
    +
    + + +
    + public + + + + + +
    +

    + Interface +

    +
    +
    + + +
    Interface implementation
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when invalid argument provided
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when ARN is invalid
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when methods from interface or abstract class are not implemented
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when missing runtime lambda context
    +
    +
    + + +
    + public + + + + + +
    +

    + ObjectStorage +

    +
    +
    + + +
    Simple object storage implementation
    +
    +
    + + +
    + public + + + + + +
    +

    + ObjectVector +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + Policy +

    +
    +
    + + +
    IAM policy
    +
    +
    + + +
    + public + + + + + +
    +

    + Region +

    +
    +
    + + +
    Available AWS regions
    +
    +
    + + +
    + public + + + + + +
    +

    + Request +

    +
    +
    + + +
    Request received by the lambda context
    +
    +
    + + +
    + public + + + + + +
    +

    + Resource +

    +
    +
    + + +
    IAM statement resource
    +
    +
    + + +
    + public + + + + + +
    +

    + Response +

    +
    +
    + + +
    Response sent to the lambda context
    +
    +
    + + +
    + public + + + + + +
    +

    + Runtime +

    +
    +
    + + +
    Lambda runtime context
    +
    +
    + + +
    + public + + + + + +
    +

    + Service +

    +
    +
    + + +
    Available AWS services
    +
    +
    + + +
    + public + + + + + +
    +

    + Statement +

    +
    +
    + + +
    IAM policy statement
    +
    +
    + + +
    +
    + + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/image/badge.svg b/docs-api/deep-core/image/badge.svg new file mode 100644 index 00000000..324db4c5 --- /dev/null +++ b/docs-api/deep-core/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/docs-api/deep-core/image/github.png b/docs-api/deep-core/image/github.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/docs-api/deep-core/image/github.png differ diff --git a/docs-api/deep-core/image/search.png b/docs-api/deep-core/image/search.png new file mode 100644 index 00000000..f5d84b69 Binary files /dev/null and b/docs-api/deep-core/image/search.png differ diff --git a/docs-api/deep-core/index.html b/docs-api/deep-core/index.html new file mode 100644 index 00000000..cbb6d839 --- /dev/null +++ b/docs-api/deep-core/index.html @@ -0,0 +1,208 @@ + + + + + + DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    deep-core

    +

    NPM Version +Build Status +Coverage Status +Codacy Badge +API Docs

    +

    deep-core is a node.js library, part of DEEP Framework.

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less.

    +

    DEEP for Businesses Join char on gitter.im

    +

    User Guide Documentation (to be updated later)

    +

    DEEP is enabling small and medium businesses, as well as enterprises to:

    +
      +
    • Rent applications on a monthly basis by needed functionality from DEEP Marketplace
    • +
    • Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS
    • +
    • Pay only for subscribed applications and stop paying when unsubscribing and not using anymore
    • +
    • Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences
    • +
    • Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability
    • +
    +
    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP for Developers Join char on gitter.im

    +

    API Guide Documentation

    +

    Developer Guide Documentation

    +

    DEEP is enabling developers and architects to:

    +
      +
    • Design microservices architecture on top of serverless environments from cloud providers like AWS
    • +
    • Build distributed software that combines and manages hardware and software in the same microservice
    • +
    • Use the framework's abstracted approach to build applications that could be cloud agnostic
    • +
    • Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same DEEP Microservice
    • +
    • Run in the cloud the software that was built by distributed teams and served self-service in large organizations
    • +
    • Monetize their work of art by uploading microservices to DEEP Marketplace
    • +
    +
    +

    DEEP Microservice is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with DEEP Microservices HelloWorld or DEEP Microservices ToDo App, as well as DEEP CLI (aka deepify).

    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP Architecture on AWS Join char on gitter.im

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    DEEP is using microservices architecture on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DEEP Abstracted LibraryDescriptionAWS Abstracted Service(s)
    deep-assetAssets Management LibraryAmazon S3
    deep-cacheCache Management LibraryAmazon ElastiCache
    deep-coreCore Management Library-
    deep-dbDatabase Management LibraryAmazon DynamoDB, Amazon SQS
    deep-diDependency Injection Management Library-
    deep-eventEvents Management LibraryAmazon Kinesis
    deep-fsFile System Management LibraryAmazon S3
    deep-kernelKernel Management Library-
    deep-logLogs Management LibraryAmazon CloudWatch Logs
    deep-notificationNotifications Management LibraryAmazon SNS
    deep-resourceResouces Management LibraryAWS Lambda, Amazon API Gateway
    deep-securitySecurity Management LibraryAWS IAM, Amazon Cognito
    deep-validationValidation Management Library-
    +

    Feedback

    +

    We are eager to get your feedback, so please use whatever communication channel you prefer:

    + +

    License

    +

    This repository can be used under the MIT license.

    +
    +

    See LICENSE for more details.

    +
    +

    Sponsors

    +

    This repository is being sponsored by:

    +
    +

    Mitoc Group

    +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-core/package.json b/docs-api/deep-core/package.json new file mode 100644 index 00000000..a53e1a23 --- /dev/null +++ b/docs-api/deep-core/package.json @@ -0,0 +1,68 @@ +{ + "name": "deep-core", + "version": "0.0.67", + "description": "DEEP Core Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Veaceslav Cotruta", + "email": "vcotruta@mitocgroup.com" + }, + { + "name": "Alexandru Scripnic", + "email": "ascripnic@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": {}, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/docs-api/deep-core/script/inherited-summary.js b/docs-api/deep-core/script/inherited-summary.js new file mode 100644 index 00000000..0a35b6df --- /dev/null +++ b/docs-api/deep-core/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/docs-api/deep-core/script/inner-link.js b/docs-api/deep-core/script/inner-link.js new file mode 100644 index 00000000..99d76273 --- /dev/null +++ b/docs-api/deep-core/script/inner-link.js @@ -0,0 +1,29 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + var el = document.querySelector(location.hash); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = location.href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/docs-api/deep-core/script/patch-for-local.js b/docs-api/deep-core/script/patch-for-local.js new file mode 100644 index 00000000..5756d135 --- /dev/null +++ b/docs-api/deep-core/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/docs-api/deep-core/script/prettify/Apache-License-2.0.txt b/docs-api/deep-core/script/prettify/Apache-License-2.0.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/docs-api/deep-core/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs-api/deep-core/script/prettify/prettify.js b/docs-api/deep-core/script/prettify/prettify.js new file mode 100644 index 00000000..eef5ad7e --- /dev/null +++ b/docs-api/deep-core/script/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/docs-api/deep-core/script/search_index.js b/docs-api/deep-core/script/search_index.js new file mode 100644 index 00000000..f8c3a054 --- /dev/null +++ b/docs-api/deep-core/script/search_index.js @@ -0,0 +1,1292 @@ +window.esdocSearchIndex = [ + [ + "deep-core/lib/aws/iam/action.js~action", + "class/lib/AWS/IAM/Action.js~Action.html", + "Action deep-core/lib/AWS/IAM/Action.js", + "class" + ], + [ + "deep-core/lib/aws/iam/collection.js~collection", + "class/lib/AWS/IAM/Collection.js~Collection.html", + "Collection deep-core/lib/AWS/IAM/Collection.js", + "class" + ], + [ + "deep-core/lib/exception/databaseoperationexception.js~databaseoperationexception", + "class/lib/Exception/DatabaseOperationException.js~DatabaseOperationException.html", + "DatabaseOperationException deep-core/lib/Exception/DatabaseOperationException.js", + "class" + ], + [ + "deep-core/lib/aws/lambda/errorresponse.js~errorresponse", + "class/lib/AWS/Lambda/ErrorResponse.js~ErrorResponse.html", + "ErrorResponse deep-core/lib/AWS/Lambda/ErrorResponse.js", + "class" + ], + [ + "deep-core/lib/exception/exception.js~exception", + "class/lib/Exception/Exception.js~Exception.html", + "Exception deep-core/lib/Exception/Exception.js", + "class" + ], + [ + "deep-core/lib/aws/iam/extractable.js~extractable", + "class/lib/AWS/IAM/Extractable.js~Extractable.html", + "Extractable deep-core/lib/AWS/IAM/Extractable.js", + "class" + ], + [ + "deep-core/lib/aws/iam/factory.js~factory", + "class/lib/AWS/IAM/Factory.js~Factory.html", + "Factory deep-core/lib/AWS/IAM/Factory.js", + "class" + ], + [ + "deep-core/lib/oop/interface.js~interface", + "class/lib/OOP/Interface.js~Interface.html", + "Interface deep-core/lib/OOP/Interface.js", + "class" + ], + [ + "deep-core/lib/exception/invalidargumentexception.js~invalidargumentexception", + "class/lib/Exception/InvalidArgumentException.js~InvalidArgumentException.html", + "InvalidArgumentException deep-core/lib/Exception/InvalidArgumentException.js", + "class" + ], + [ + "deep-core/lib/aws/iam/exception/invalidarnexception.js~invalidarnexception", + "class/lib/AWS/IAM/Exception/InvalidArnException.js~InvalidArnException.html", + "InvalidArnException deep-core/lib/AWS/IAM/Exception/InvalidArnException.js", + "class" + ], + [ + "deep-core/lib/exception/methodsnotimplementedexception.js~methodsnotimplementedexception", + "class/lib/Exception/MethodsNotImplementedException.js~MethodsNotImplementedException.html", + "MethodsNotImplementedException deep-core/lib/Exception/MethodsNotImplementedException.js", + "class" + ], + [ + "deep-core/lib/aws/lambda/exception/missingruntimecontextexception.js~missingruntimecontextexception", + "class/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js~MissingRuntimeContextException.html", + "MissingRuntimeContextException deep-core/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js", + "class" + ], + [ + "deep-core/lib/generic/objectstorage.js~objectstorage", + "class/lib/Generic/ObjectStorage.js~ObjectStorage.html", + "ObjectStorage deep-core/lib/Generic/ObjectStorage.js", + "class" + ], + [ + "deep-core/lib/generic/objectvector.js~objectvector", + "class/lib/Generic/ObjectVector.js~ObjectVector.html", + "ObjectVector deep-core/lib/Generic/ObjectVector.js", + "class" + ], + [ + "deep-core/lib/aws/iam/policy.js~policy", + "class/lib/AWS/IAM/Policy.js~Policy.html", + "Policy deep-core/lib/AWS/IAM/Policy.js", + "class" + ], + [ + "deep-core/lib/aws/region.js~region", + "class/lib/AWS/Region.js~Region.html", + "Region deep-core/lib/AWS/Region.js", + "class" + ], + [ + "deep-core/lib/aws/lambda/request.js~request", + "class/lib/AWS/Lambda/Request.js~Request.html", + "Request deep-core/lib/AWS/Lambda/Request.js", + "class" + ], + [ + "deep-core/lib/aws/iam/resource.js~resource", + "class/lib/AWS/IAM/Resource.js~Resource.html", + "Resource deep-core/lib/AWS/IAM/Resource.js", + "class" + ], + [ + "deep-core/lib/aws/lambda/response.js~response", + "class/lib/AWS/Lambda/Response.js~Response.html", + "Response deep-core/lib/AWS/Lambda/Response.js", + "class" + ], + [ + "deep-core/lib/aws/lambda/runtime.js~runtime", + "class/lib/AWS/Lambda/Runtime.js~Runtime.html", + "Runtime deep-core/lib/AWS/Lambda/Runtime.js", + "class" + ], + [ + "deep-core/lib/aws/service.js~service", + "class/lib/AWS/Service.js~Service.html", + "Service deep-core/lib/AWS/Service.js", + "class" + ], + [ + "deep-core/lib/aws/iam/statement.js~statement", + "class/lib/AWS/IAM/Statement.js~Statement.html", + "Statement deep-core/lib/AWS/IAM/Statement.js", + "class" + ], + [ + "builtinexternal/ecmascriptexternal.js~array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~arraybuffer", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~dataview", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~DataView", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~date", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Date", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~error", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Error", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~evalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float64array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generator", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Generator", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generatorfunction", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~infinity", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~internalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~json", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~JSON", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~map", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Map", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~nan", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~NaN", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~promise", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Promise", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~proxy", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~rangeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~referenceerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~reflect", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~regexp", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~set", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Set", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~String", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~symbol", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~syntaxerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~typeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~urierror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~URIError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8clampedarray", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakmap", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakset", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~null", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~null", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~string", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~undefined", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~undefined", + "external" + ], + [ + "builtinexternal/webapiexternal.js~canvasrenderingcontext2d", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "external" + ], + [ + "builtinexternal/webapiexternal.js~documentfragment", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "external" + ], + [ + "builtinexternal/webapiexternal.js~element", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Element", + "external" + ], + [ + "builtinexternal/webapiexternal.js~event", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Event", + "external" + ], + [ + "builtinexternal/webapiexternal.js~node", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Node", + "external" + ], + [ + "builtinexternal/webapiexternal.js~nodelist", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~NodeList", + "external" + ], + [ + "builtinexternal/webapiexternal.js~xmlhttprequest", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "external" + ], + [ + "lib/aws/iam/action.js", + "file/lib/AWS/IAM/Action.js.html", + "lib/AWS/IAM/Action.js", + "file" + ], + [ + "lib/aws/iam/action.js~action#action", + "class/lib/AWS/IAM/Action.js~Action.html#instance-set-action", + "lib/AWS/IAM/Action.js~Action#action", + "member" + ], + [ + "lib/aws/iam/action.js~action#action", + "class/lib/AWS/IAM/Action.js~Action.html#instance-get-action", + "lib/AWS/IAM/Action.js~Action#action", + "member" + ], + [ + "lib/aws/iam/action.js~action#constructor", + "class/lib/AWS/IAM/Action.js~Action.html#instance-constructor-constructor", + "lib/AWS/IAM/Action.js~Action#constructor", + "method" + ], + [ + "lib/aws/iam/action.js~action#extract", + "class/lib/AWS/IAM/Action.js~Action.html#instance-method-extract", + "lib/AWS/IAM/Action.js~Action#extract", + "method" + ], + [ + "lib/aws/iam/action.js~action#service", + "class/lib/AWS/IAM/Action.js~Action.html#instance-get-service", + "lib/AWS/IAM/Action.js~Action#service", + "member" + ], + [ + "lib/aws/iam/action.js~action#service", + "class/lib/AWS/IAM/Action.js~Action.html#instance-set-service", + "lib/AWS/IAM/Action.js~Action#service", + "member" + ], + [ + "lib/aws/iam/collection.js", + "file/lib/AWS/IAM/Collection.js.html", + "lib/AWS/IAM/Collection.js", + "file" + ], + [ + "lib/aws/iam/collection.js~collection#add", + "class/lib/AWS/IAM/Collection.js~Collection.html#instance-method-add", + "lib/AWS/IAM/Collection.js~Collection#add", + "method" + ], + [ + "lib/aws/iam/collection.js~collection#constructor", + "class/lib/AWS/IAM/Collection.js~Collection.html#instance-constructor-constructor", + "lib/AWS/IAM/Collection.js~Collection#constructor", + "method" + ], + [ + "lib/aws/iam/collection.js~collection#count", + "class/lib/AWS/IAM/Collection.js~Collection.html#instance-method-count", + "lib/AWS/IAM/Collection.js~Collection#count", + "method" + ], + [ + "lib/aws/iam/collection.js~collection#create", + "class/lib/AWS/IAM/Collection.js~Collection.html#instance-method-create", + "lib/AWS/IAM/Collection.js~Collection#create", + "method" + ], + [ + "lib/aws/iam/collection.js~collection#extract", + "class/lib/AWS/IAM/Collection.js~Collection.html#instance-method-extract", + "lib/AWS/IAM/Collection.js~Collection#extract", + "method" + ], + [ + "lib/aws/iam/collection.js~collection#list", + "class/lib/AWS/IAM/Collection.js~Collection.html#instance-method-list", + "lib/AWS/IAM/Collection.js~Collection#list", + "method" + ], + [ + "lib/aws/iam/collection.js~collection#prototype", + "class/lib/AWS/IAM/Collection.js~Collection.html#instance-get-prototype", + "lib/AWS/IAM/Collection.js~Collection#prototype", + "member" + ], + [ + "lib/aws/iam/exception/invalidarnexception.js", + "file/lib/AWS/IAM/Exception/InvalidArnException.js.html", + "lib/AWS/IAM/Exception/InvalidArnException.js", + "file" + ], + [ + "lib/aws/iam/exception/invalidarnexception.js~invalidarnexception#constructor", + "class/lib/AWS/IAM/Exception/InvalidArnException.js~InvalidArnException.html#instance-constructor-constructor", + "lib/AWS/IAM/Exception/InvalidArnException.js~InvalidArnException#constructor", + "method" + ], + [ + "lib/aws/iam/extractable.js", + "file/lib/AWS/IAM/Extractable.js.html", + "lib/AWS/IAM/Extractable.js", + "file" + ], + [ + "lib/aws/iam/extractable.js~extractable#constructor", + "class/lib/AWS/IAM/Extractable.js~Extractable.html#instance-constructor-constructor", + "lib/AWS/IAM/Extractable.js~Extractable#constructor", + "method" + ], + [ + "lib/aws/iam/factory.js", + "file/lib/AWS/IAM/Factory.js.html", + "lib/AWS/IAM/Factory.js", + "file" + ], + [ + "lib/aws/iam/factory.js~factory.action", + "class/lib/AWS/IAM/Factory.js~Factory.html#static-get-ACTION", + "lib/AWS/IAM/Factory.js~Factory.ACTION", + "member" + ], + [ + "lib/aws/iam/factory.js~factory.policy", + "class/lib/AWS/IAM/Factory.js~Factory.html#static-get-POLICY", + "lib/AWS/IAM/Factory.js~Factory.POLICY", + "member" + ], + [ + "lib/aws/iam/factory.js~factory.resource", + "class/lib/AWS/IAM/Factory.js~Factory.html#static-get-RESOURCE", + "lib/AWS/IAM/Factory.js~Factory.RESOURCE", + "member" + ], + [ + "lib/aws/iam/factory.js~factory.statement", + "class/lib/AWS/IAM/Factory.js~Factory.html#static-get-STATEMENT", + "lib/AWS/IAM/Factory.js~Factory.STATEMENT", + "member" + ], + [ + "lib/aws/iam/factory.js~factory.create", + "class/lib/AWS/IAM/Factory.js~Factory.html#static-method-create", + "lib/AWS/IAM/Factory.js~Factory.create", + "method" + ], + [ + "lib/aws/iam/factory.js~factory.createcollection", + "class/lib/AWS/IAM/Factory.js~Factory.html#static-method-createCollection", + "lib/AWS/IAM/Factory.js~Factory.createCollection", + "method" + ], + [ + "lib/aws/iam/policy.js", + "file/lib/AWS/IAM/Policy.js.html", + "lib/AWS/IAM/Policy.js", + "file" + ], + [ + "lib/aws/iam/policy.js~policy#constructor", + "class/lib/AWS/IAM/Policy.js~Policy.html#instance-constructor-constructor", + "lib/AWS/IAM/Policy.js~Policy#constructor", + "method" + ], + [ + "lib/aws/iam/policy.js~policy#extract", + "class/lib/AWS/IAM/Policy.js~Policy.html#instance-method-extract", + "lib/AWS/IAM/Policy.js~Policy#extract", + "method" + ], + [ + "lib/aws/iam/policy.js~policy#statement", + "class/lib/AWS/IAM/Policy.js~Policy.html#instance-get-statement", + "lib/AWS/IAM/Policy.js~Policy#statement", + "member" + ], + [ + "lib/aws/iam/policy.js~policy#tostring", + "class/lib/AWS/IAM/Policy.js~Policy.html#instance-method-toString", + "lib/AWS/IAM/Policy.js~Policy#toString", + "method" + ], + [ + "lib/aws/iam/policy.js~policy#version", + "class/lib/AWS/IAM/Policy.js~Policy.html#instance-get-version", + "lib/AWS/IAM/Policy.js~Policy#version", + "member" + ], + [ + "lib/aws/iam/policy.js~policy#version", + "class/lib/AWS/IAM/Policy.js~Policy.html#instance-set-version", + "lib/AWS/IAM/Policy.js~Policy#version", + "member" + ], + [ + "lib/aws/iam/policy.js~policy.any", + "class/lib/AWS/IAM/Policy.js~Policy.html#static-get-ANY", + "lib/AWS/IAM/Policy.js~Policy.ANY", + "member" + ], + [ + "lib/aws/iam/policy.js~policy.default_version", + "class/lib/AWS/IAM/Policy.js~Policy.html#static-get-DEFAULT_VERSION", + "lib/AWS/IAM/Policy.js~Policy.DEFAULT_VERSION", + "member" + ], + [ + "lib/aws/iam/resource.js", + "file/lib/AWS/IAM/Resource.js.html", + "lib/AWS/IAM/Resource.js", + "file" + ], + [ + "lib/aws/iam/resource.js~resource#accountid", + "class/lib/AWS/IAM/Resource.js~Resource.html#instance-set-accountId", + "lib/AWS/IAM/Resource.js~Resource#accountId", + "member" + ], + [ + "lib/aws/iam/resource.js~resource#accountid", + "class/lib/AWS/IAM/Resource.js~Resource.html#instance-get-accountId", + "lib/AWS/IAM/Resource.js~Resource#accountId", + "member" + ], + [ + "lib/aws/iam/resource.js~resource#constructor", + "class/lib/AWS/IAM/Resource.js~Resource.html#instance-constructor-constructor", + "lib/AWS/IAM/Resource.js~Resource#constructor", + "method" + ], + [ + "lib/aws/iam/resource.js~resource#descriptor", + "class/lib/AWS/IAM/Resource.js~Resource.html#instance-set-descriptor", + "lib/AWS/IAM/Resource.js~Resource#descriptor", + "member" + ], + [ + "lib/aws/iam/resource.js~resource#descriptor", + "class/lib/AWS/IAM/Resource.js~Resource.html#instance-get-descriptor", + "lib/AWS/IAM/Resource.js~Resource#descriptor", + "member" + ], + [ + "lib/aws/iam/resource.js~resource#extract", + "class/lib/AWS/IAM/Resource.js~Resource.html#instance-method-extract", + "lib/AWS/IAM/Resource.js~Resource#extract", + "method" + ], + [ + "lib/aws/iam/resource.js~resource#region", + "class/lib/AWS/IAM/Resource.js~Resource.html#instance-set-region", + "lib/AWS/IAM/Resource.js~Resource#region", + "member" + ], + [ + "lib/aws/iam/resource.js~resource#region", + "class/lib/AWS/IAM/Resource.js~Resource.html#instance-get-region", + "lib/AWS/IAM/Resource.js~Resource#region", + "member" + ], + [ + "lib/aws/iam/resource.js~resource#service", + "class/lib/AWS/IAM/Resource.js~Resource.html#instance-set-service", + "lib/AWS/IAM/Resource.js~Resource#service", + "member" + ], + [ + "lib/aws/iam/resource.js~resource#service", + "class/lib/AWS/IAM/Resource.js~Resource.html#instance-get-service", + "lib/AWS/IAM/Resource.js~Resource#service", + "member" + ], + [ + "lib/aws/iam/resource.js~resource#updatefromarn", + "class/lib/AWS/IAM/Resource.js~Resource.html#instance-method-updateFromArn", + "lib/AWS/IAM/Resource.js~Resource#updateFromArn", + "method" + ], + [ + "lib/aws/iam/statement.js", + "file/lib/AWS/IAM/Statement.js.html", + "lib/AWS/IAM/Statement.js", + "file" + ], + [ + "lib/aws/iam/statement.js~statement#action", + "class/lib/AWS/IAM/Statement.js~Statement.html#instance-get-action", + "lib/AWS/IAM/Statement.js~Statement#action", + "member" + ], + [ + "lib/aws/iam/statement.js~statement#condition", + "class/lib/AWS/IAM/Statement.js~Statement.html#instance-set-condition", + "lib/AWS/IAM/Statement.js~Statement#condition", + "member" + ], + [ + "lib/aws/iam/statement.js~statement#condition", + "class/lib/AWS/IAM/Statement.js~Statement.html#instance-get-condition", + "lib/AWS/IAM/Statement.js~Statement#condition", + "member" + ], + [ + "lib/aws/iam/statement.js~statement#constructor", + "class/lib/AWS/IAM/Statement.js~Statement.html#instance-constructor-constructor", + "lib/AWS/IAM/Statement.js~Statement#constructor", + "method" + ], + [ + "lib/aws/iam/statement.js~statement#effect", + "class/lib/AWS/IAM/Statement.js~Statement.html#instance-get-effect", + "lib/AWS/IAM/Statement.js~Statement#effect", + "member" + ], + [ + "lib/aws/iam/statement.js~statement#effect", + "class/lib/AWS/IAM/Statement.js~Statement.html#instance-set-effect", + "lib/AWS/IAM/Statement.js~Statement#effect", + "member" + ], + [ + "lib/aws/iam/statement.js~statement#extract", + "class/lib/AWS/IAM/Statement.js~Statement.html#instance-method-extract", + "lib/AWS/IAM/Statement.js~Statement#extract", + "method" + ], + [ + "lib/aws/iam/statement.js~statement#notaction", + "class/lib/AWS/IAM/Statement.js~Statement.html#instance-get-notAction", + "lib/AWS/IAM/Statement.js~Statement#notAction", + "member" + ], + [ + "lib/aws/iam/statement.js~statement#notresource", + "class/lib/AWS/IAM/Statement.js~Statement.html#instance-get-notResource", + "lib/AWS/IAM/Statement.js~Statement#notResource", + "member" + ], + [ + "lib/aws/iam/statement.js~statement#principal", + "class/lib/AWS/IAM/Statement.js~Statement.html#instance-get-principal", + "lib/AWS/IAM/Statement.js~Statement#principal", + "member" + ], + [ + "lib/aws/iam/statement.js~statement#principal", + "class/lib/AWS/IAM/Statement.js~Statement.html#instance-set-principal", + "lib/AWS/IAM/Statement.js~Statement#principal", + "member" + ], + [ + "lib/aws/iam/statement.js~statement#resource", + "class/lib/AWS/IAM/Statement.js~Statement.html#instance-get-resource", + "lib/AWS/IAM/Statement.js~Statement#resource", + "member" + ], + [ + "lib/aws/iam/statement.js~statement.allow", + "class/lib/AWS/IAM/Statement.js~Statement.html#static-get-ALLOW", + "lib/AWS/IAM/Statement.js~Statement.ALLOW", + "member" + ], + [ + "lib/aws/iam/statement.js~statement.deny", + "class/lib/AWS/IAM/Statement.js~Statement.html#static-get-DENY", + "lib/AWS/IAM/Statement.js~Statement.DENY", + "member" + ], + [ + "lib/aws/lambda/errorresponse.js", + "file/lib/AWS/Lambda/ErrorResponse.js.html", + "lib/AWS/Lambda/ErrorResponse.js", + "file" + ], + [ + "lib/aws/lambda/errorresponse.js~errorresponse#constructor", + "class/lib/AWS/Lambda/ErrorResponse.js~ErrorResponse.html#instance-constructor-constructor", + "lib/AWS/Lambda/ErrorResponse.js~ErrorResponse#constructor", + "method" + ], + [ + "lib/aws/lambda/errorresponse.js~errorresponse#contextmethod", + "class/lib/AWS/Lambda/ErrorResponse.js~ErrorResponse.html#instance-get-contextMethod", + "lib/AWS/Lambda/ErrorResponse.js~ErrorResponse#contextMethod", + "member" + ], + [ + "lib/aws/lambda/exception/missingruntimecontextexception.js", + "file/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js.html", + "lib/AWS/Lambda/Exception/MissingRuntimeContextException.js", + "file" + ], + [ + "lib/aws/lambda/exception/missingruntimecontextexception.js~missingruntimecontextexception#constructor", + "class/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js~MissingRuntimeContextException.html#instance-constructor-constructor", + "lib/AWS/Lambda/Exception/MissingRuntimeContextException.js~MissingRuntimeContextException#constructor", + "method" + ], + [ + "lib/aws/lambda/request.js", + "file/lib/AWS/Lambda/Request.js.html", + "lib/AWS/Lambda/Request.js", + "file" + ], + [ + "lib/aws/lambda/request.js~request#constructor", + "class/lib/AWS/Lambda/Request.js~Request.html#instance-constructor-constructor", + "lib/AWS/Lambda/Request.js~Request#constructor", + "method" + ], + [ + "lib/aws/lambda/request.js~request#data", + "class/lib/AWS/Lambda/Request.js~Request.html#instance-get-data", + "lib/AWS/Lambda/Request.js~Request#data", + "member" + ], + [ + "lib/aws/lambda/request.js~request#getparam", + "class/lib/AWS/Lambda/Request.js~Request.html#instance-method-getParam", + "lib/AWS/Lambda/Request.js~Request#getParam", + "method" + ], + [ + "lib/aws/lambda/response.js", + "file/lib/AWS/Lambda/Response.js.html", + "lib/AWS/Lambda/Response.js", + "file" + ], + [ + "lib/aws/lambda/response.js~response#constructor", + "class/lib/AWS/Lambda/Response.js~Response.html#instance-constructor-constructor", + "lib/AWS/Lambda/Response.js~Response#constructor", + "method" + ], + [ + "lib/aws/lambda/response.js~response#contextmethod", + "class/lib/AWS/Lambda/Response.js~Response.html#instance-get-contextMethod", + "lib/AWS/Lambda/Response.js~Response#contextMethod", + "member" + ], + [ + "lib/aws/lambda/response.js~response#data", + "class/lib/AWS/Lambda/Response.js~Response.html#instance-get-data", + "lib/AWS/Lambda/Response.js~Response#data", + "member" + ], + [ + "lib/aws/lambda/response.js~response#runtimecontext", + "class/lib/AWS/Lambda/Response.js~Response.html#instance-get-runtimeContext", + "lib/AWS/Lambda/Response.js~Response#runtimeContext", + "member" + ], + [ + "lib/aws/lambda/response.js~response#runtimecontext", + "class/lib/AWS/Lambda/Response.js~Response.html#instance-set-runtimeContext", + "lib/AWS/Lambda/Response.js~Response#runtimeContext", + "member" + ], + [ + "lib/aws/lambda/response.js~response#send", + "class/lib/AWS/Lambda/Response.js~Response.html#instance-method-send", + "lib/AWS/Lambda/Response.js~Response#send", + "method" + ], + [ + "lib/aws/lambda/runtime.js", + "file/lib/AWS/Lambda/Runtime.js.html", + "lib/AWS/Lambda/Runtime.js", + "file" + ], + [ + "lib/aws/lambda/runtime.js~runtime#constructor", + "class/lib/AWS/Lambda/Runtime.js~Runtime.html#instance-constructor-constructor", + "lib/AWS/Lambda/Runtime.js~Runtime#constructor", + "method" + ], + [ + "lib/aws/lambda/runtime.js~runtime#createerror", + "class/lib/AWS/Lambda/Runtime.js~Runtime.html#instance-method-createError", + "lib/AWS/Lambda/Runtime.js~Runtime#createError", + "method" + ], + [ + "lib/aws/lambda/runtime.js~runtime#createresponse", + "class/lib/AWS/Lambda/Runtime.js~Runtime.html#instance-method-createResponse", + "lib/AWS/Lambda/Runtime.js~Runtime#createResponse", + "method" + ], + [ + "lib/aws/lambda/runtime.js~runtime#kernel", + "class/lib/AWS/Lambda/Runtime.js~Runtime.html#instance-get-kernel", + "lib/AWS/Lambda/Runtime.js~Runtime#kernel", + "member" + ], + [ + "lib/aws/lambda/runtime.js~runtime#lambda", + "class/lib/AWS/Lambda/Runtime.js~Runtime.html#instance-get-lambda", + "lib/AWS/Lambda/Runtime.js~Runtime#lambda", + "member" + ], + [ + "lib/aws/lambda/runtime.js~runtime#request", + "class/lib/AWS/Lambda/Runtime.js~Runtime.html#instance-get-request", + "lib/AWS/Lambda/Runtime.js~Runtime#request", + "member" + ], + [ + "lib/aws/lambda/runtime.js~runtime#run", + "class/lib/AWS/Lambda/Runtime.js~Runtime.html#instance-method-run", + "lib/AWS/Lambda/Runtime.js~Runtime#run", + "method" + ], + [ + "lib/aws/region.js", + "file/lib/AWS/Region.js.html", + "lib/AWS/Region.js", + "file" + ], + [ + "lib/aws/region.js~region.any", + "class/lib/AWS/Region.js~Region.html#static-get-ANY", + "lib/AWS/Region.js~Region.ANY", + "member" + ], + [ + "lib/aws/region.js~region.asia_pacific_singapore", + "class/lib/AWS/Region.js~Region.html#static-get-ASIA_PACIFIC_SINGAPORE", + "lib/AWS/Region.js~Region.ASIA_PACIFIC_SINGAPORE", + "member" + ], + [ + "lib/aws/region.js~region.asia_pacific_sydney", + "class/lib/AWS/Region.js~Region.html#static-get-ASIA_PACIFIC_SYDNEY", + "lib/AWS/Region.js~Region.ASIA_PACIFIC_SYDNEY", + "member" + ], + [ + "lib/aws/region.js~region.asia_pacific_tokyo", + "class/lib/AWS/Region.js~Region.html#static-get-ASIA_PACIFIC_TOKYO", + "lib/AWS/Region.js~Region.ASIA_PACIFIC_TOKYO", + "member" + ], + [ + "lib/aws/region.js~region.eu_frankfurt", + "class/lib/AWS/Region.js~Region.html#static-get-EU_FRANKFURT", + "lib/AWS/Region.js~Region.EU_FRANKFURT", + "member" + ], + [ + "lib/aws/region.js~region.eu_ireland", + "class/lib/AWS/Region.js~Region.html#static-get-EU_IRELAND", + "lib/AWS/Region.js~Region.EU_IRELAND", + "member" + ], + [ + "lib/aws/region.js~region.south_america_sao_paulo", + "class/lib/AWS/Region.js~Region.html#static-get-SOUTH_AMERICA_SAO_PAULO", + "lib/AWS/Region.js~Region.SOUTH_AMERICA_SAO_PAULO", + "member" + ], + [ + "lib/aws/region.js~region.us_east_n_virginia", + "class/lib/AWS/Region.js~Region.html#static-get-US_EAST_N_VIRGINIA", + "lib/AWS/Region.js~Region.US_EAST_N_VIRGINIA", + "member" + ], + [ + "lib/aws/region.js~region.us_west_n_california", + "class/lib/AWS/Region.js~Region.html#static-get-US_WEST_N_CALIFORNIA", + "lib/AWS/Region.js~Region.US_WEST_N_CALIFORNIA", + "member" + ], + [ + "lib/aws/region.js~region.us_west_oregon", + "class/lib/AWS/Region.js~Region.html#static-get-US_WEST_OREGON", + "lib/AWS/Region.js~Region.US_WEST_OREGON", + "member" + ], + [ + "lib/aws/region.js~region.all", + "class/lib/AWS/Region.js~Region.html#static-method-all", + "lib/AWS/Region.js~Region.all", + "method" + ], + [ + "lib/aws/region.js~region.exists", + "class/lib/AWS/Region.js~Region.html#static-method-exists", + "lib/AWS/Region.js~Region.exists", + "method" + ], + [ + "lib/aws/region.js~region.getappropriateawsregion", + "class/lib/AWS/Region.js~Region.html#static-method-getAppropriateAwsRegion", + "lib/AWS/Region.js~Region.getAppropriateAwsRegion", + "method" + ], + [ + "lib/aws/region.js~region.list", + "class/lib/AWS/Region.js~Region.html#static-method-list", + "lib/AWS/Region.js~Region.list", + "method" + ], + [ + "lib/aws/service.js", + "file/lib/AWS/Service.js.html", + "lib/AWS/Service.js", + "file" + ], + [ + "lib/aws/service.js~service.api_gateway", + "class/lib/AWS/Service.js~Service.html#static-get-API_GATEWAY", + "lib/AWS/Service.js~Service.API_GATEWAY", + "member" + ], + [ + "lib/aws/service.js~service.cloud_front", + "class/lib/AWS/Service.js~Service.html#static-get-CLOUD_FRONT", + "lib/AWS/Service.js~Service.CLOUD_FRONT", + "member" + ], + [ + "lib/aws/service.js~service.cloud_watch_logs", + "class/lib/AWS/Service.js~Service.html#static-get-CLOUD_WATCH_LOGS", + "lib/AWS/Service.js~Service.CLOUD_WATCH_LOGS", + "member" + ], + [ + "lib/aws/service.js~service.cognito_identity", + "class/lib/AWS/Service.js~Service.html#static-get-COGNITO_IDENTITY", + "lib/AWS/Service.js~Service.COGNITO_IDENTITY", + "member" + ], + [ + "lib/aws/service.js~service.cognito_sync", + "class/lib/AWS/Service.js~Service.html#static-get-COGNITO_SYNC", + "lib/AWS/Service.js~Service.COGNITO_SYNC", + "member" + ], + [ + "lib/aws/service.js~service.dynamo_db", + "class/lib/AWS/Service.js~Service.html#static-get-DYNAMO_DB", + "lib/AWS/Service.js~Service.DYNAMO_DB", + "member" + ], + [ + "lib/aws/service.js~service.elastic_cache", + "class/lib/AWS/Service.js~Service.html#static-get-ELASTIC_CACHE", + "lib/AWS/Service.js~Service.ELASTIC_CACHE", + "member" + ], + [ + "lib/aws/service.js~service.identity_and_access_management", + "class/lib/AWS/Service.js~Service.html#static-get-IDENTITY_AND_ACCESS_MANAGEMENT", + "lib/AWS/Service.js~Service.IDENTITY_AND_ACCESS_MANAGEMENT", + "member" + ], + [ + "lib/aws/service.js~service.kinesis", + "class/lib/AWS/Service.js~Service.html#static-get-KINESIS", + "lib/AWS/Service.js~Service.KINESIS", + "member" + ], + [ + "lib/aws/service.js~service.lambda", + "class/lib/AWS/Service.js~Service.html#static-get-LAMBDA", + "lib/AWS/Service.js~Service.LAMBDA", + "member" + ], + [ + "lib/aws/service.js~service.security_token_service", + "class/lib/AWS/Service.js~Service.html#static-get-SECURITY_TOKEN_SERVICE", + "lib/AWS/Service.js~Service.SECURITY_TOKEN_SERVICE", + "member" + ], + [ + "lib/aws/service.js~service.simple_notification_service", + "class/lib/AWS/Service.js~Service.html#static-get-SIMPLE_NOTIFICATION_SERVICE", + "lib/AWS/Service.js~Service.SIMPLE_NOTIFICATION_SERVICE", + "member" + ], + [ + "lib/aws/service.js~service.simple_storage_service", + "class/lib/AWS/Service.js~Service.html#static-get-SIMPLE_STORAGE_SERVICE", + "lib/AWS/Service.js~Service.SIMPLE_STORAGE_SERVICE", + "member" + ], + [ + "lib/aws/service.js~service.exists", + "class/lib/AWS/Service.js~Service.html#static-method-exists", + "lib/AWS/Service.js~Service.exists", + "method" + ], + [ + "lib/aws/service.js~service.identifier", + "class/lib/AWS/Service.js~Service.html#static-method-identifier", + "lib/AWS/Service.js~Service.identifier", + "method" + ], + [ + "lib/aws/service.js~service.list", + "class/lib/AWS/Service.js~Service.html#static-method-list", + "lib/AWS/Service.js~Service.list", + "method" + ], + [ + "lib/exception/databaseoperationexception.js", + "file/lib/Exception/DatabaseOperationException.js.html", + "lib/Exception/DatabaseOperationException.js", + "file" + ], + [ + "lib/exception/databaseoperationexception.js~databaseoperationexception#constructor", + "class/lib/Exception/DatabaseOperationException.js~DatabaseOperationException.html#instance-constructor-constructor", + "lib/Exception/DatabaseOperationException.js~DatabaseOperationException#constructor", + "method" + ], + [ + "lib/exception/exception.js", + "file/lib/Exception/Exception.js.html", + "lib/Exception/Exception.js", + "file" + ], + [ + "lib/exception/exception.js~exception#constructor", + "class/lib/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/exception/exception.js~exception#name", + "class/lib/Exception/Exception.js~Exception.html#instance-get-name", + "lib/Exception/Exception.js~Exception#name", + "member" + ], + [ + "lib/exception/invalidargumentexception.js", + "file/lib/Exception/InvalidArgumentException.js.html", + "lib/Exception/InvalidArgumentException.js", + "file" + ], + [ + "lib/exception/invalidargumentexception.js~invalidargumentexception#constructor", + "class/lib/Exception/InvalidArgumentException.js~InvalidArgumentException.html#instance-constructor-constructor", + "lib/Exception/InvalidArgumentException.js~InvalidArgumentException#constructor", + "method" + ], + [ + "lib/exception/methodsnotimplementedexception.js", + "file/lib/Exception/MethodsNotImplementedException.js.html", + "lib/Exception/MethodsNotImplementedException.js", + "file" + ], + [ + "lib/exception/methodsnotimplementedexception.js~methodsnotimplementedexception#constructor", + "class/lib/Exception/MethodsNotImplementedException.js~MethodsNotImplementedException.html#instance-constructor-constructor", + "lib/Exception/MethodsNotImplementedException.js~MethodsNotImplementedException#constructor", + "method" + ], + [ + "lib/generic/objectstorage.js", + "file/lib/Generic/ObjectStorage.js.html", + "lib/Generic/ObjectStorage.js", + "file" + ], + [ + "lib/generic/objectstorage.js~objectstorage#add", + "class/lib/Generic/ObjectStorage.js~ObjectStorage.html#instance-method-add", + "lib/Generic/ObjectStorage.js~ObjectStorage#add", + "method" + ], + [ + "lib/generic/objectstorage.js~objectstorage#constructor", + "class/lib/Generic/ObjectStorage.js~ObjectStorage.html#instance-constructor-constructor", + "lib/Generic/ObjectStorage.js~ObjectStorage#constructor", + "method" + ], + [ + "lib/generic/objectstorage.js~objectstorage#find", + "class/lib/Generic/ObjectStorage.js~ObjectStorage.html#instance-method-find", + "lib/Generic/ObjectStorage.js~ObjectStorage#find", + "method" + ], + [ + "lib/generic/objectstorage.js~objectstorage#iterator", + "class/lib/Generic/ObjectStorage.js~ObjectStorage.html#instance-get-iterator", + "lib/Generic/ObjectStorage.js~ObjectStorage#iterator", + "member" + ], + [ + "lib/generic/objectvector.js", + "file/lib/Generic/ObjectVector.js.html", + "lib/Generic/ObjectVector.js", + "file" + ], + [ + "lib/generic/objectvector.js~objectvector#add", + "class/lib/Generic/ObjectVector.js~ObjectVector.html#instance-method-add", + "lib/Generic/ObjectVector.js~ObjectVector#add", + "method" + ], + [ + "lib/generic/objectvector.js~objectvector#collection", + "class/lib/Generic/ObjectVector.js~ObjectVector.html#instance-get-collection", + "lib/Generic/ObjectVector.js~ObjectVector#collection", + "member" + ], + [ + "lib/generic/objectvector.js~objectvector#constructor", + "class/lib/Generic/ObjectVector.js~ObjectVector.html#instance-constructor-constructor", + "lib/Generic/ObjectVector.js~ObjectVector#constructor", + "method" + ], + [ + "lib/oop/interface.js", + "file/lib/OOP/Interface.js.html", + "lib/OOP/Interface.js", + "file" + ], + [ + "lib/oop/interface.js~interface#constructor", + "class/lib/OOP/Interface.js~Interface.html#instance-constructor-constructor", + "lib/OOP/Interface.js~Interface#constructor", + "method" + ], + [ + "lib/bootstrap.js", + "file/lib/bootstrap.js.html", + "lib/bootstrap.js", + "file" + ] +] \ No newline at end of file diff --git a/docs-api/deep-core/script/test-summary.js b/docs-api/deep-core/script/test-summary.js new file mode 100644 index 00000000..2f32cb00 --- /dev/null +++ b/docs-api/deep-core/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-describe')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-describe .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/docs-api/deep-core/source.html b/docs-api/deep-core/source.html new file mode 100644 index 00000000..a0517b83 --- /dev/null +++ b/docs-api/deep-core/source.html @@ -0,0 +1,274 @@ + + + + + + Source | DEEP Core Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Source 131/138

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    lib/AWS/IAM/Action.jsAction85 %6/71035 byte642015-09-04 12:52:16 (UTC)
    lib/AWS/IAM/Collection.jsCollection100 %8/81462 byte892015-09-05 11:34:30 (UTC)
    lib/AWS/IAM/Exception/InvalidArnException.jsInvalidArnException100 %2/2317 byte202015-09-04 12:52:16 (UTC)
    lib/AWS/IAM/Extractable.jsExtractable50 %1/2232 byte162015-09-04 12:52:16 (UTC)
    lib/AWS/IAM/Factory.jsFactory100 %7/71404 byte822015-10-07 22:05:00 (UTC)
    lib/AWS/IAM/Policy.jsPolicy88 %8/91075 byte732015-09-04 12:52:16 (UTC)
    lib/AWS/IAM/Resource.jsResource91 %11/122215 byte1222015-09-04 12:52:16 (UTC)
    lib/AWS/IAM/Statement.jsStatement93 %14/152846 byte1532015-09-04 13:15:42 (UTC)
    lib/AWS/Lambda/ErrorResponse.jsErrorResponse100 %3/3365 byte262015-09-04 12:52:16 (UTC)
    lib/AWS/Lambda/Exception/MissingRuntimeContextException.jsMissingRuntimeContextException50 %1/2305 byte162015-09-04 12:52:16 (UTC)
    lib/AWS/Lambda/Request.jsRequest100 %4/4542 byte342015-09-04 08:45:47 (UTC)
    lib/AWS/Lambda/Response.jsResponse100 %7/7931 byte612015-09-05 14:06:11 (UTC)
    lib/AWS/Lambda/Runtime.jsRuntime100 %8/81942 byte1102015-09-03 15:14:16 (UTC)
    lib/AWS/Region.jsRegion100 %15/152490 byte1462015-09-05 14:05:49 (UTC)
    lib/AWS/Service.jsService100 %17/172133 byte1382015-09-04 12:52:16 (UTC)
    lib/Exception/DatabaseOperationException.jsDatabaseOperationException100 %2/2290 byte162015-09-04 08:45:47 (UTC)
    lib/Exception/Exception.jsException100 %3/3595 byte362015-09-05 13:56:07 (UTC)
    lib/Exception/InvalidArgumentException.jsInvalidArgumentException100 %2/2458 byte222015-09-04 12:52:16 (UTC)
    lib/Exception/MethodsNotImplementedException.jsMethodsNotImplementedException100 %2/2605 byte262015-09-04 12:52:16 (UTC)
    lib/Generic/ObjectStorage.jsObjectStorage100 %5/5960 byte572015-09-05 11:34:30 (UTC)
    lib/Generic/ObjectVector.jsObjectVector75 %3/4756 byte412015-09-04 09:43:35 (UTC)
    lib/OOP/Interface.jsInterface100 %2/2999 byte392015-09-04 12:48:20 (UTC)
    lib/bootstrap.js--1735 byte482015-09-04 09:43:35 (UTC)
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/ast/source/DB.js.json b/docs-api/deep-db/ast/source/DB.js.json new file mode 100644 index 00000000..b81d7cb6 --- /dev/null +++ b/docs-api/deep-db/ast/source/DB.js.json @@ -0,0 +1,11658 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 68, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + }, + "range": [ + 68, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-kernel", + "raw": "'deep-kernel'", + "range": [ + 80, + 93 + ], + "loc": { + "start": { + "line": 7, + "column": 19 + }, + "end": { + "line": 7, + "column": 32 + } + } + }, + "range": [ + 61, + 94 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 33 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Vogels", + "range": [ + 102, + 108 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 13 + } + } + }, + "range": [ + 102, + 108 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "vogels", + "raw": "'vogels'", + "range": [ + 114, + 122 + ], + "loc": { + "start": { + "line": 8, + "column": 19 + }, + "end": { + "line": 8, + "column": 27 + } + } + }, + "range": [ + 95, + 123 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 28 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "ExtendModel", + "range": [ + 132, + 143 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 19 + } + } + }, + "imported": { + "type": "Identifier", + "name": "ExtendModel", + "range": [ + 132, + 143 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 19 + } + } + }, + "range": [ + 132, + 143 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 19 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Vogels/ExtendModel", + "raw": "'./Vogels/ExtendModel'", + "range": [ + 150, + 172 + ], + "loc": { + "start": { + "line": 9, + "column": 26 + }, + "end": { + "line": 9, + "column": 48 + } + } + }, + "range": [ + 124, + 173 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 49 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "ModelNotFoundException", + "range": [ + 182, + 204 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 30 + } + } + }, + "imported": { + "type": "Identifier", + "name": "ModelNotFoundException", + "range": [ + 182, + 204 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 30 + } + } + }, + "range": [ + 182, + 204 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 30 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/ModelNotFoundException", + "raw": "'./Exception/ModelNotFoundException'", + "range": [ + 211, + 247 + ], + "loc": { + "start": { + "line": 10, + "column": 37 + }, + "end": { + "line": 10, + "column": 73 + } + } + }, + "range": [ + 174, + 248 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 74 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Validation", + "range": [ + 256, + 266 + ], + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 17 + } + } + }, + "range": [ + 256, + 266 + ], + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-validation", + "raw": "'deep-validation'", + "range": [ + 272, + 289 + ], + "loc": { + "start": { + "line": 11, + "column": 23 + }, + "end": { + "line": 11, + "column": 40 + } + } + }, + "range": [ + 249, + 290 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 41 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Utils", + "range": [ + 298, + 303 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 12, + "column": 12 + } + } + }, + "range": [ + 298, + 303 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 12, + "column": 12 + } + } + } + ], + "source": { + "type": "Literal", + "value": "util", + "raw": "'util'", + "range": [ + 309, + 315 + ], + "loc": { + "start": { + "line": 12, + "column": 18 + }, + "end": { + "line": 12, + "column": 24 + } + } + }, + "range": [ + 291, + 316 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 25 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "FailedToCreateTableException", + "range": [ + 325, + 353 + ], + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 36 + } + } + }, + "imported": { + "type": "Identifier", + "name": "FailedToCreateTableException", + "range": [ + 325, + 353 + ], + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 36 + } + } + }, + "range": [ + 325, + 353 + ], + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 36 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/FailedToCreateTableException", + "raw": "'./Exception/FailedToCreateTableException'", + "range": [ + 360, + 402 + ], + "loc": { + "start": { + "line": 13, + "column": 43 + }, + "end": { + "line": 13, + "column": 85 + } + } + }, + "range": [ + 317, + 403 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 13, + "column": 86 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "FailedToCreateTablesException", + "range": [ + 412, + 441 + ], + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 37 + } + } + }, + "imported": { + "type": "Identifier", + "name": "FailedToCreateTablesException", + "range": [ + 412, + 441 + ], + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 37 + } + } + }, + "range": [ + 412, + 441 + ], + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 37 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/FailedToCreateTablesException", + "raw": "'./Exception/FailedToCreateTablesException'", + "range": [ + 448, + 491 + ], + "loc": { + "start": { + "line": 14, + "column": 44 + }, + "end": { + "line": 14, + "column": 87 + } + } + }, + "range": [ + 404, + 492 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 88 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 501, + 515 + ], + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 22 + } + } + }, + "imported": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 501, + 515 + ], + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 22 + } + } + }, + "range": [ + 501, + 515 + ], + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 22 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Local/Driver/AbstractDriver", + "raw": "'./Local/Driver/AbstractDriver'", + "range": [ + 522, + 553 + ], + "loc": { + "start": { + "line": 15, + "column": 29 + }, + "end": { + "line": 15, + "column": 60 + } + } + }, + "range": [ + 493, + 554 + ], + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 61 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Vogels wrapper\n ", + "range": [ + 556, + 581 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "DB", + "range": [ + 595, + 597 + ], + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 15 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 606, + 612 + ], + "loc": { + "start": { + "line": 20, + "column": 24 + }, + "end": { + "line": 20, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "ContainerAware", + "range": [ + 613, + 627 + ], + "loc": { + "start": { + "line": 20, + "column": 31 + }, + "end": { + "line": 20, + "column": 45 + } + } + }, + "range": [ + 606, + 627 + ], + "loc": { + "start": { + "line": 20, + "column": 24 + }, + "end": { + "line": 20, + "column": 45 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 704, + 715 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 25, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "models", + "range": [ + 716, + 722 + ], + "loc": { + "start": { + "line": 25, + "column": 14 + }, + "end": { + "line": 25, + "column": 20 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 725, + 727 + ], + "loc": { + "start": { + "line": 25, + "column": 23 + }, + "end": { + "line": 25, + "column": 25 + } + } + }, + "range": [ + 716, + 727 + ], + "loc": { + "start": { + "line": 25, + "column": 14 + }, + "end": { + "line": 25, + "column": 25 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "tablesNames", + "range": [ + 729, + 740 + ], + "loc": { + "start": { + "line": 25, + "column": 27 + }, + "end": { + "line": 25, + "column": 38 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 743, + 745 + ], + "loc": { + "start": { + "line": 25, + "column": 41 + }, + "end": { + "line": 25, + "column": 43 + } + } + }, + "range": [ + 729, + 745 + ], + "loc": { + "start": { + "line": 25, + "column": 27 + }, + "end": { + "line": 25, + "column": 43 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 753, + 758 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 753, + 760 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 11 + } + } + }, + "range": [ + 753, + 761 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 12 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " @todo: set retries in a smarter way...", + "range": [ + 767, + 808 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 45 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Vogels", + "range": [ + 813, + 819 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "AWS", + "range": [ + 820, + 823 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 14 + } + } + }, + "range": [ + 813, + 823 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 824, + 830 + ], + "loc": { + "start": { + "line": 29, + "column": 15 + }, + "end": { + "line": 29, + "column": 21 + } + } + }, + "range": [ + 813, + 830 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "maxRetries", + "range": [ + 831, + 841 + ], + "loc": { + "start": { + "line": 29, + "column": 22 + }, + "end": { + "line": 29, + "column": 32 + } + } + }, + "range": [ + 813, + 841 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 32 + } + } + }, + "right": { + "type": "Literal", + "value": 3, + "raw": "3", + "range": [ + 844, + 845 + ], + "loc": { + "start": { + "line": 29, + "column": 35 + }, + "end": { + "line": 29, + "column": 36 + } + } + }, + "range": [ + 813, + 845 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 36 + } + } + }, + "range": [ + 813, + 846 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 37 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: set retries in a smarter way...", + "range": [ + 767, + 808 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 45 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 852, + 856 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_tablesNames", + "range": [ + 857, + 869 + ], + "loc": { + "start": { + "line": 31, + "column": 9 + }, + "end": { + "line": 31, + "column": 21 + } + } + }, + "range": [ + 852, + 869 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 21 + } + } + }, + "right": { + "type": "Identifier", + "name": "tablesNames", + "range": [ + 872, + 883 + ], + "loc": { + "start": { + "line": 31, + "column": 24 + }, + "end": { + "line": 31, + "column": 35 + } + } + }, + "range": [ + 852, + 883 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 35 + } + } + }, + "range": [ + 852, + 884 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 36 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 889, + 893 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_validation", + "range": [ + 894, + 905 + ], + "loc": { + "start": { + "line": 32, + "column": 9 + }, + "end": { + "line": 32, + "column": 20 + } + } + }, + "range": [ + 889, + 905 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 20 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Validation", + "range": [ + 912, + 922 + ], + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "models", + "range": [ + 923, + 929 + ], + "loc": { + "start": { + "line": 32, + "column": 38 + }, + "end": { + "line": 32, + "column": 44 + } + } + } + ], + "range": [ + 908, + 930 + ], + "loc": { + "start": { + "line": 32, + "column": 23 + }, + "end": { + "line": 32, + "column": 45 + } + } + }, + "range": [ + 889, + 930 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 45 + } + } + }, + "range": [ + 889, + 931 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 46 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 936, + 940 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_models", + "range": [ + 941, + 948 + ], + "loc": { + "start": { + "line": 33, + "column": 9 + }, + "end": { + "line": 33, + "column": 16 + } + } + }, + "range": [ + 936, + 948 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 16 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 951, + 955 + ], + "loc": { + "start": { + "line": 33, + "column": 19 + }, + "end": { + "line": 33, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawModelsToVogels", + "range": [ + 956, + 974 + ], + "loc": { + "start": { + "line": 33, + "column": 24 + }, + "end": { + "line": 33, + "column": 42 + } + } + }, + "range": [ + 951, + 974 + ], + "loc": { + "start": { + "line": 33, + "column": 19 + }, + "end": { + "line": 33, + "column": 42 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "models", + "range": [ + 975, + 981 + ], + "loc": { + "start": { + "line": 33, + "column": 43 + }, + "end": { + "line": 33, + "column": 49 + } + } + } + ], + "range": [ + 951, + 982 + ], + "loc": { + "start": { + "line": 33, + "column": 19 + }, + "end": { + "line": 33, + "column": 50 + } + } + }, + "range": [ + 936, + 982 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 50 + } + } + }, + "range": [ + 936, + 983 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 51 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " @todo: remove?", + "range": [ + 989, + 1006 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 21 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1011, + 1015 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_localDbProcess", + "range": [ + 1016, + 1031 + ], + "loc": { + "start": { + "line": 36, + "column": 9 + }, + "end": { + "line": 36, + "column": 24 + } + } + }, + "range": [ + 1011, + 1031 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 24 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1034, + 1038 + ], + "loc": { + "start": { + "line": 36, + "column": 27 + }, + "end": { + "line": 36, + "column": 31 + } + } + }, + "range": [ + 1011, + 1038 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 31 + } + } + }, + "range": [ + 1011, + 1039 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 32 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: remove?", + "range": [ + 989, + 1006 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 21 + } + } + } + ] + } + ], + "range": [ + 747, + 1043 + ], + "loc": { + "start": { + "line": 25, + "column": 45 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 715, + 1043 + ], + "loc": { + "start": { + "line": 25, + "column": 13 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 704, + 1043 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 37, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} models\n * @param {Object} tablesNames\n ", + "range": [ + 632, + 701 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 24, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Validation}\n ", + "range": [ + 1047, + 1083 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "validation", + "range": [ + 1090, + 1100 + ], + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1116, + 1120 + ], + "loc": { + "start": { + "line": 43, + "column": 11 + }, + "end": { + "line": 43, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_validation", + "range": [ + 1121, + 1132 + ], + "loc": { + "start": { + "line": 43, + "column": 16 + }, + "end": { + "line": 43, + "column": 27 + } + } + }, + "range": [ + 1116, + 1132 + ], + "loc": { + "start": { + "line": 43, + "column": 11 + }, + "end": { + "line": 43, + "column": 27 + } + } + }, + "range": [ + 1109, + 1133 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 28 + } + } + } + ], + "range": [ + 1103, + 1137 + ], + "loc": { + "start": { + "line": 42, + "column": 19 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1100, + 1137 + ], + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1086, + 1137 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Validation}\n ", + "range": [ + 1047, + 1083 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Vogels[]}\n ", + "range": [ + 1141, + 1175 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "models", + "range": [ + 1182, + 1188 + ], + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 49, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1204, + 1208 + ], + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 50, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_models", + "range": [ + 1209, + 1216 + ], + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 23 + } + } + }, + "range": [ + 1204, + 1216 + ], + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 50, + "column": 23 + } + } + }, + "range": [ + 1197, + 1217 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 24 + } + } + } + ], + "range": [ + 1191, + 1221 + ], + "loc": { + "start": { + "line": 49, + "column": 15 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1188, + 1221 + ], + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1178, + 1221 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Vogels[]}\n ", + "range": [ + 1141, + 1175 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @returns {Boolean}\n ", + "range": [ + 1225, + 1289 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "has", + "range": [ + 1292, + 1295 + ], + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 57, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 1296, + 1305 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 15 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1327, + 1331 + ], + "loc": { + "start": { + "line": 58, + "column": 18 + }, + "end": { + "line": 58, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "_models", + "range": [ + 1332, + 1339 + ], + "loc": { + "start": { + "line": 58, + "column": 23 + }, + "end": { + "line": 58, + "column": 30 + } + } + }, + "range": [ + 1327, + 1339 + ], + "loc": { + "start": { + "line": 58, + "column": 18 + }, + "end": { + "line": 58, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "modelName", + "range": [ + 1340, + 1349 + ], + "loc": { + "start": { + "line": 58, + "column": 31 + }, + "end": { + "line": 58, + "column": 40 + } + } + }, + "range": [ + 1327, + 1350 + ], + "loc": { + "start": { + "line": 58, + "column": 18 + }, + "end": { + "line": 58, + "column": 41 + } + } + }, + "prefix": true, + "range": [ + 1320, + 1350 + ], + "loc": { + "start": { + "line": 58, + "column": 11 + }, + "end": { + "line": 58, + "column": 41 + } + } + }, + "right": { + "type": "Literal", + "value": "undefined", + "raw": "'undefined'", + "range": [ + 1355, + 1366 + ], + "loc": { + "start": { + "line": 58, + "column": 46 + }, + "end": { + "line": 58, + "column": 57 + } + } + }, + "range": [ + 1320, + 1366 + ], + "loc": { + "start": { + "line": 58, + "column": 11 + }, + "end": { + "line": 58, + "column": 57 + } + } + }, + "range": [ + 1313, + 1367 + ], + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 58 + } + } + } + ], + "range": [ + 1307, + 1371 + ], + "loc": { + "start": { + "line": 57, + "column": 17 + }, + "end": { + "line": 59, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1295, + 1371 + ], + "loc": { + "start": { + "line": 57, + "column": 5 + }, + "end": { + "line": 59, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1292, + 1371 + ], + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 59, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @returns {Boolean}\n ", + "range": [ + 1225, + 1289 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @returns {Vogels}\n ", + "range": [ + 1375, + 1438 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 64, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "get", + "range": [ + 1441, + 1444 + ], + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 1445, + 1454 + ], + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 15 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1467, + 1471 + ], + "loc": { + "start": { + "line": 66, + "column": 9 + }, + "end": { + "line": 66, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "has", + "range": [ + 1472, + 1475 + ], + "loc": { + "start": { + "line": 66, + "column": 14 + }, + "end": { + "line": 66, + "column": 17 + } + } + }, + "range": [ + 1467, + 1475 + ], + "loc": { + "start": { + "line": 66, + "column": 9 + }, + "end": { + "line": 66, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 1476, + 1485 + ], + "loc": { + "start": { + "line": 66, + "column": 18 + }, + "end": { + "line": 66, + "column": 27 + } + } + } + ], + "range": [ + 1467, + 1486 + ], + "loc": { + "start": { + "line": 66, + "column": 9 + }, + "end": { + "line": 66, + "column": 28 + } + } + }, + "prefix": true, + "range": [ + 1466, + 1486 + ], + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 66, + "column": 28 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "ModelNotFoundException", + "range": [ + 1506, + 1528 + ], + "loc": { + "start": { + "line": 67, + "column": 16 + }, + "end": { + "line": 67, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 1529, + 1538 + ], + "loc": { + "start": { + "line": 67, + "column": 39 + }, + "end": { + "line": 67, + "column": 48 + } + } + } + ], + "range": [ + 1502, + 1539 + ], + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 49 + } + } + }, + "range": [ + 1496, + 1540 + ], + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 50 + } + } + } + ], + "range": [ + 1488, + 1546 + ], + "loc": { + "start": { + "line": 66, + "column": 30 + }, + "end": { + "line": 68, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1462, + 1546 + ], + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 68, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1559, + 1563 + ], + "loc": { + "start": { + "line": 70, + "column": 11 + }, + "end": { + "line": 70, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_models", + "range": [ + 1564, + 1571 + ], + "loc": { + "start": { + "line": 70, + "column": 16 + }, + "end": { + "line": 70, + "column": 23 + } + } + }, + "range": [ + 1559, + 1571 + ], + "loc": { + "start": { + "line": 70, + "column": 11 + }, + "end": { + "line": 70, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "modelName", + "range": [ + 1572, + 1581 + ], + "loc": { + "start": { + "line": 70, + "column": 24 + }, + "end": { + "line": 70, + "column": 33 + } + } + }, + "range": [ + 1559, + 1582 + ], + "loc": { + "start": { + "line": 70, + "column": 11 + }, + "end": { + "line": 70, + "column": 34 + } + } + }, + "range": [ + 1552, + 1583 + ], + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 70, + "column": 35 + } + } + } + ], + "range": [ + 1456, + 1587 + ], + "loc": { + "start": { + "line": 65, + "column": 17 + }, + "end": { + "line": 71, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1444, + 1587 + ], + "loc": { + "start": { + "line": 65, + "column": 5 + }, + "end": { + "line": 71, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1441, + 1587 + ], + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 71, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @returns {Vogels}\n ", + "range": [ + 1375, + 1438 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 64, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @param {Function} callback\n * @param {Object} options\n * @returns {DB}\n ", + "range": [ + 1591, + 1711 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 78, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "assureTable", + "range": [ + 1714, + 1725 + ], + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 79, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 1726, + 1735 + ], + "loc": { + "start": { + "line": 79, + "column": 14 + }, + "end": { + "line": 79, + "column": 23 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 1737, + 1745 + ], + "loc": { + "start": { + "line": 79, + "column": 25 + }, + "end": { + "line": 79, + "column": 33 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "options", + "range": [ + 1747, + 1754 + ], + "loc": { + "start": { + "line": 79, + "column": 35 + }, + "end": { + "line": 79, + "column": 42 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 1757, + 1759 + ], + "loc": { + "start": { + "line": 79, + "column": 45 + }, + "end": { + "line": 79, + "column": 47 + } + } + }, + "range": [ + 1747, + 1759 + ], + "loc": { + "start": { + "line": 79, + "column": 35 + }, + "end": { + "line": 79, + "column": 47 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1772, + 1776 + ], + "loc": { + "start": { + "line": 80, + "column": 9 + }, + "end": { + "line": 80, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "has", + "range": [ + 1777, + 1780 + ], + "loc": { + "start": { + "line": 80, + "column": 14 + }, + "end": { + "line": 80, + "column": 17 + } + } + }, + "range": [ + 1772, + 1780 + ], + "loc": { + "start": { + "line": 80, + "column": 9 + }, + "end": { + "line": 80, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 1781, + 1790 + ], + "loc": { + "start": { + "line": 80, + "column": 18 + }, + "end": { + "line": 80, + "column": 27 + } + } + } + ], + "range": [ + 1772, + 1791 + ], + "loc": { + "start": { + "line": 80, + "column": 9 + }, + "end": { + "line": 80, + "column": 28 + } + } + }, + "prefix": true, + "range": [ + 1771, + 1791 + ], + "loc": { + "start": { + "line": 80, + "column": 8 + }, + "end": { + "line": 80, + "column": 28 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "ModelNotFoundException", + "range": [ + 1811, + 1833 + ], + "loc": { + "start": { + "line": 81, + "column": 16 + }, + "end": { + "line": 81, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 1834, + 1843 + ], + "loc": { + "start": { + "line": 81, + "column": 39 + }, + "end": { + "line": 81, + "column": 48 + } + } + } + ], + "range": [ + 1807, + 1844 + ], + "loc": { + "start": { + "line": 81, + "column": 12 + }, + "end": { + "line": 81, + "column": 49 + } + } + }, + "range": [ + 1801, + 1845 + ], + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 50 + } + } + } + ], + "range": [ + 1793, + 1851 + ], + "loc": { + "start": { + "line": 80, + "column": 30 + }, + "end": { + "line": 82, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1767, + 1851 + ], + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 82, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "options", + "range": [ + 1857, + 1864 + ], + "loc": { + "start": { + "line": 84, + "column": 4 + }, + "end": { + "line": 84, + "column": 11 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Utils", + "range": [ + 1867, + 1872 + ], + "loc": { + "start": { + "line": 84, + "column": 14 + }, + "end": { + "line": 84, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "_extend", + "range": [ + 1873, + 1880 + ], + "loc": { + "start": { + "line": 84, + "column": 20 + }, + "end": { + "line": 84, + "column": 27 + } + } + }, + "range": [ + 1867, + 1880 + ], + "loc": { + "start": { + "line": 84, + "column": 14 + }, + "end": { + "line": 84, + "column": 27 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "DB", + "range": [ + 1881, + 1883 + ], + "loc": { + "start": { + "line": 84, + "column": 28 + }, + "end": { + "line": 84, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_TABLE_OPTIONS", + "range": [ + 1884, + 1905 + ], + "loc": { + "start": { + "line": 84, + "column": 31 + }, + "end": { + "line": 84, + "column": 52 + } + } + }, + "range": [ + 1881, + 1905 + ], + "loc": { + "start": { + "line": 84, + "column": 28 + }, + "end": { + "line": 84, + "column": 52 + } + } + }, + { + "type": "Identifier", + "name": "options", + "range": [ + 1907, + 1914 + ], + "loc": { + "start": { + "line": 84, + "column": 54 + }, + "end": { + "line": 84, + "column": 61 + } + } + } + ], + "range": [ + 1867, + 1915 + ], + "loc": { + "start": { + "line": 84, + "column": 14 + }, + "end": { + "line": 84, + "column": 62 + } + } + }, + "range": [ + 1857, + 1915 + ], + "loc": { + "start": { + "line": 84, + "column": 4 + }, + "end": { + "line": 84, + "column": 62 + } + } + }, + "range": [ + 1857, + 1916 + ], + "loc": { + "start": { + "line": 84, + "column": 4 + }, + "end": { + "line": 84, + "column": 63 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "options", + "range": [ + 1921, + 1928 + ], + "loc": { + "start": { + "line": 85, + "column": 4 + }, + "end": { + "line": 85, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "name": "modelName", + "range": [ + 1929, + 1938 + ], + "loc": { + "start": { + "line": 85, + "column": 12 + }, + "end": { + "line": 85, + "column": 21 + } + } + }, + "range": [ + 1921, + 1939 + ], + "loc": { + "start": { + "line": 85, + "column": 4 + }, + "end": { + "line": 85, + "column": 22 + } + } + }, + "right": { + "type": "Identifier", + "name": "options", + "range": [ + 1942, + 1949 + ], + "loc": { + "start": { + "line": 85, + "column": 25 + }, + "end": { + "line": 85, + "column": 32 + } + } + }, + "range": [ + 1921, + 1949 + ], + "loc": { + "start": { + "line": 85, + "column": 4 + }, + "end": { + "line": 85, + "column": 32 + } + } + }, + "range": [ + 1921, + 1950 + ], + "loc": { + "start": { + "line": 85, + "column": 4 + }, + "end": { + "line": 85, + "column": 33 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Vogels", + "range": [ + 1956, + 1962 + ], + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 87, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "createTables", + "range": [ + 1963, + 1975 + ], + "loc": { + "start": { + "line": 87, + "column": 11 + }, + "end": { + "line": 87, + "column": 23 + } + } + }, + "range": [ + 1956, + 1975 + ], + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 87, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "options", + "range": [ + 1976, + 1983 + ], + "loc": { + "start": { + "line": 87, + "column": 24 + }, + "end": { + "line": 87, + "column": 31 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 1994, + 1999 + ], + "loc": { + "start": { + "line": 87, + "column": 42 + }, + "end": { + "line": 87, + "column": 47 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "error", + "range": [ + 2013, + 2018 + ], + "loc": { + "start": { + "line": 88, + "column": 10 + }, + "end": { + "line": 88, + "column": 15 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "FailedToCreateTableException", + "range": [ + 2040, + 2068 + ], + "loc": { + "start": { + "line": 89, + "column": 18 + }, + "end": { + "line": 89, + "column": 46 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 2069, + 2078 + ], + "loc": { + "start": { + "line": 89, + "column": 47 + }, + "end": { + "line": 89, + "column": 56 + } + } + } + ], + "range": [ + 2036, + 2079 + ], + "loc": { + "start": { + "line": 89, + "column": 14 + }, + "end": { + "line": 89, + "column": 57 + } + } + }, + "range": [ + 2030, + 2080 + ], + "loc": { + "start": { + "line": 89, + "column": 8 + }, + "end": { + "line": 89, + "column": 58 + } + } + } + ], + "range": [ + 2020, + 2088 + ], + "loc": { + "start": { + "line": 88, + "column": 17 + }, + "end": { + "line": 90, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 2009, + 2088 + ], + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 90, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 2096, + 2104 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 14 + } + } + }, + "arguments": [], + "range": [ + 2096, + 2106 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 16 + } + } + }, + "range": [ + 2096, + 2107 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 17 + } + } + } + ], + "range": [ + 2001, + 2113 + ], + "loc": { + "start": { + "line": 87, + "column": 49 + }, + "end": { + "line": 93, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1985, + 2113 + ], + "loc": { + "start": { + "line": 87, + "column": 33 + }, + "end": { + "line": 93, + "column": 5 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 2114, + 2118 + ], + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 10 + } + } + }, + "range": [ + 1985, + 2118 + ], + "loc": { + "start": { + "line": 87, + "column": 33 + }, + "end": { + "line": 93, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 2119, + 2123 + ], + "loc": { + "start": { + "line": 93, + "column": 11 + }, + "end": { + "line": 93, + "column": 15 + } + } + } + ], + "range": [ + 1985, + 2124 + ], + "loc": { + "start": { + "line": 87, + "column": 33 + }, + "end": { + "line": 93, + "column": 16 + } + } + } + ], + "range": [ + 1956, + 2125 + ], + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 93, + "column": 17 + } + } + }, + "range": [ + 1956, + 2126 + ], + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 93, + "column": 18 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 2139, + 2143 + ], + "loc": { + "start": { + "line": 95, + "column": 11 + }, + "end": { + "line": 95, + "column": 15 + } + } + }, + "range": [ + 2132, + 2144 + ], + "loc": { + "start": { + "line": 95, + "column": 4 + }, + "end": { + "line": 95, + "column": 16 + } + } + } + ], + "range": [ + 1761, + 2148 + ], + "loc": { + "start": { + "line": 79, + "column": 49 + }, + "end": { + "line": 96, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1725, + 2148 + ], + "loc": { + "start": { + "line": 79, + "column": 13 + }, + "end": { + "line": 96, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1714, + 2148 + ], + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 96, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @param {Function} callback\n * @param {Object} options\n * @returns {DB}\n ", + "range": [ + 1591, + 1711 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 78, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @param {Object} options\n * @returns {DB}\n ", + "range": [ + 2152, + 2241 + ], + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 102, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "assureTables", + "range": [ + 2244, + 2256 + ], + "loc": { + "start": { + "line": 103, + "column": 2 + }, + "end": { + "line": 103, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 2257, + 2265 + ], + "loc": { + "start": { + "line": 103, + "column": 15 + }, + "end": { + "line": 103, + "column": 23 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "options", + "range": [ + 2267, + 2274 + ], + "loc": { + "start": { + "line": 103, + "column": 25 + }, + "end": { + "line": 103, + "column": 32 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 2277, + 2279 + ], + "loc": { + "start": { + "line": 103, + "column": 35 + }, + "end": { + "line": 103, + "column": 37 + } + } + }, + "range": [ + 2267, + 2279 + ], + "loc": { + "start": { + "line": 103, + "column": 25 + }, + "end": { + "line": 103, + "column": 37 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "allModelsOptions", + "range": [ + 2291, + 2307 + ], + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 24 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 2310, + 2312 + ], + "loc": { + "start": { + "line": 104, + "column": 27 + }, + "end": { + "line": 104, + "column": 29 + } + } + }, + "range": [ + 2291, + 2312 + ], + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 29 + } + } + } + ], + "kind": "let", + "range": [ + 2287, + 2313 + ], + "loc": { + "start": { + "line": 104, + "column": 4 + }, + "end": { + "line": 104, + "column": 30 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "allModelNames", + "range": [ + 2322, + 2335 + ], + "loc": { + "start": { + "line": 105, + "column": 8 + }, + "end": { + "line": 105, + "column": 21 + } + } + }, + "init": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 2338, + 2340 + ], + "loc": { + "start": { + "line": 105, + "column": 24 + }, + "end": { + "line": 105, + "column": 26 + } + } + }, + "range": [ + 2322, + 2340 + ], + "loc": { + "start": { + "line": 105, + "column": 8 + }, + "end": { + "line": 105, + "column": 26 + } + } + } + ], + "kind": "let", + "range": [ + 2318, + 2341 + ], + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 27 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "modelName", + "range": [ + 2356, + 2365 + ], + "loc": { + "start": { + "line": 107, + "column": 13 + }, + "end": { + "line": 107, + "column": 22 + } + } + }, + "init": null, + "range": [ + 2356, + 2365 + ], + "loc": { + "start": { + "line": 107, + "column": 13 + }, + "end": { + "line": 107, + "column": 22 + } + } + } + ], + "kind": "let", + "range": [ + 2352, + 2365 + ], + "loc": { + "start": { + "line": 107, + "column": 9 + }, + "end": { + "line": 107, + "column": 22 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2369, + 2373 + ], + "loc": { + "start": { + "line": 107, + "column": 26 + }, + "end": { + "line": 107, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "_models", + "range": [ + 2374, + 2381 + ], + "loc": { + "start": { + "line": 107, + "column": 31 + }, + "end": { + "line": 107, + "column": 38 + } + } + }, + "range": [ + 2369, + 2381 + ], + "loc": { + "start": { + "line": 107, + "column": 26 + }, + "end": { + "line": 107, + "column": 38 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2396, + 2400 + ], + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 108, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_models", + "range": [ + 2401, + 2408 + ], + "loc": { + "start": { + "line": 108, + "column": 16 + }, + "end": { + "line": 108, + "column": 23 + } + } + }, + "range": [ + 2396, + 2408 + ], + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 108, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 2409, + 2423 + ], + "loc": { + "start": { + "line": 108, + "column": 24 + }, + "end": { + "line": 108, + "column": 38 + } + } + }, + "range": [ + 2396, + 2423 + ], + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 108, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 2424, + 2433 + ], + "loc": { + "start": { + "line": 108, + "column": 39 + }, + "end": { + "line": 108, + "column": 48 + } + } + } + ], + "range": [ + 2396, + 2434 + ], + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 108, + "column": 49 + } + } + }, + "prefix": true, + "range": [ + 2395, + 2434 + ], + "loc": { + "start": { + "line": 108, + "column": 10 + }, + "end": { + "line": 108, + "column": 49 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 2446, + 2455 + ], + "loc": { + "start": { + "line": 109, + "column": 8 + }, + "end": { + "line": 109, + "column": 17 + } + } + } + ], + "range": [ + 2436, + 2463 + ], + "loc": { + "start": { + "line": 108, + "column": 51 + }, + "end": { + "line": 110, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 2391, + 2463 + ], + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 110, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "allModelsOptions", + "range": [ + 2471, + 2487 + ], + "loc": { + "start": { + "line": 112, + "column": 6 + }, + "end": { + "line": 112, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "modelName", + "range": [ + 2488, + 2497 + ], + "loc": { + "start": { + "line": 112, + "column": 23 + }, + "end": { + "line": 112, + "column": 32 + } + } + }, + "range": [ + 2471, + 2498 + ], + "loc": { + "start": { + "line": 112, + "column": 6 + }, + "end": { + "line": 112, + "column": 33 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Utils", + "range": [ + 2501, + 2506 + ], + "loc": { + "start": { + "line": 112, + "column": 36 + }, + "end": { + "line": 112, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "name": "_extend", + "range": [ + 2507, + 2514 + ], + "loc": { + "start": { + "line": 112, + "column": 42 + }, + "end": { + "line": 112, + "column": 49 + } + } + }, + "range": [ + 2501, + 2514 + ], + "loc": { + "start": { + "line": 112, + "column": 36 + }, + "end": { + "line": 112, + "column": 49 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "DB", + "range": [ + 2515, + 2517 + ], + "loc": { + "start": { + "line": 112, + "column": 50 + }, + "end": { + "line": 112, + "column": 52 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_TABLE_OPTIONS", + "range": [ + 2518, + 2539 + ], + "loc": { + "start": { + "line": 112, + "column": 53 + }, + "end": { + "line": 112, + "column": 74 + } + } + }, + "range": [ + 2515, + 2539 + ], + "loc": { + "start": { + "line": 112, + "column": 50 + }, + "end": { + "line": 112, + "column": 74 + } + } + }, + { + "type": "Identifier", + "name": "options", + "range": [ + 2541, + 2548 + ], + "loc": { + "start": { + "line": 112, + "column": 76 + }, + "end": { + "line": 112, + "column": 83 + } + } + } + ], + "range": [ + 2501, + 2549 + ], + "loc": { + "start": { + "line": 112, + "column": 36 + }, + "end": { + "line": 112, + "column": 84 + } + } + }, + "range": [ + 2471, + 2549 + ], + "loc": { + "start": { + "line": 112, + "column": 6 + }, + "end": { + "line": 112, + "column": 84 + } + } + }, + "range": [ + 2471, + 2550 + ], + "loc": { + "start": { + "line": 112, + "column": 6 + }, + "end": { + "line": 112, + "column": 85 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "allModelNames", + "range": [ + 2557, + 2570 + ], + "loc": { + "start": { + "line": 113, + "column": 6 + }, + "end": { + "line": 113, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "push", + "range": [ + 2571, + 2575 + ], + "loc": { + "start": { + "line": 113, + "column": 20 + }, + "end": { + "line": 113, + "column": 24 + } + } + }, + "range": [ + 2557, + 2575 + ], + "loc": { + "start": { + "line": 113, + "column": 6 + }, + "end": { + "line": 113, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 2576, + 2585 + ], + "loc": { + "start": { + "line": 113, + "column": 25 + }, + "end": { + "line": 113, + "column": 34 + } + } + } + ], + "range": [ + 2557, + 2586 + ], + "loc": { + "start": { + "line": 113, + "column": 6 + }, + "end": { + "line": 113, + "column": 35 + } + } + }, + "range": [ + 2557, + 2587 + ], + "loc": { + "start": { + "line": 113, + "column": 6 + }, + "end": { + "line": 113, + "column": 36 + } + } + } + ], + "range": [ + 2383, + 2593 + ], + "loc": { + "start": { + "line": 107, + "column": 40 + }, + "end": { + "line": 114, + "column": 5 + } + } + }, + "each": false, + "range": [ + 2347, + 2593 + ], + "loc": { + "start": { + "line": 107, + "column": 4 + }, + "end": { + "line": 114, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Vogels", + "range": [ + 2599, + 2605 + ], + "loc": { + "start": { + "line": 116, + "column": 4 + }, + "end": { + "line": 116, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "createTables", + "range": [ + 2606, + 2618 + ], + "loc": { + "start": { + "line": 116, + "column": 11 + }, + "end": { + "line": 116, + "column": 23 + } + } + }, + "range": [ + 2599, + 2618 + ], + "loc": { + "start": { + "line": 116, + "column": 4 + }, + "end": { + "line": 116, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "allModelsOptions", + "range": [ + 2619, + 2635 + ], + "loc": { + "start": { + "line": 116, + "column": 24 + }, + "end": { + "line": 116, + "column": 40 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 2646, + 2651 + ], + "loc": { + "start": { + "line": 116, + "column": 51 + }, + "end": { + "line": 116, + "column": 56 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "error", + "range": [ + 2665, + 2670 + ], + "loc": { + "start": { + "line": 117, + "column": 10 + }, + "end": { + "line": 117, + "column": 15 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "FailedToCreateTablesException", + "range": [ + 2692, + 2721 + ], + "loc": { + "start": { + "line": 118, + "column": 18 + }, + "end": { + "line": 118, + "column": 47 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "allModelNames", + "range": [ + 2722, + 2735 + ], + "loc": { + "start": { + "line": 118, + "column": 48 + }, + "end": { + "line": 118, + "column": 61 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 2737, + 2742 + ], + "loc": { + "start": { + "line": 118, + "column": 63 + }, + "end": { + "line": 118, + "column": 68 + } + } + } + ], + "range": [ + 2688, + 2743 + ], + "loc": { + "start": { + "line": 118, + "column": 14 + }, + "end": { + "line": 118, + "column": 69 + } + } + }, + "range": [ + 2682, + 2744 + ], + "loc": { + "start": { + "line": 118, + "column": 8 + }, + "end": { + "line": 118, + "column": 70 + } + } + } + ], + "range": [ + 2672, + 2752 + ], + "loc": { + "start": { + "line": 117, + "column": 17 + }, + "end": { + "line": 119, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 2661, + 2752 + ], + "loc": { + "start": { + "line": 117, + "column": 6 + }, + "end": { + "line": 119, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 2760, + 2768 + ], + "loc": { + "start": { + "line": 121, + "column": 6 + }, + "end": { + "line": 121, + "column": 14 + } + } + }, + "arguments": [], + "range": [ + 2760, + 2770 + ], + "loc": { + "start": { + "line": 121, + "column": 6 + }, + "end": { + "line": 121, + "column": 16 + } + } + }, + "range": [ + 2760, + 2771 + ], + "loc": { + "start": { + "line": 121, + "column": 6 + }, + "end": { + "line": 121, + "column": 17 + } + } + } + ], + "range": [ + 2653, + 2777 + ], + "loc": { + "start": { + "line": 116, + "column": 58 + }, + "end": { + "line": 122, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2637, + 2777 + ], + "loc": { + "start": { + "line": 116, + "column": 42 + }, + "end": { + "line": 122, + "column": 5 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 2778, + 2782 + ], + "loc": { + "start": { + "line": 122, + "column": 6 + }, + "end": { + "line": 122, + "column": 10 + } + } + }, + "range": [ + 2637, + 2782 + ], + "loc": { + "start": { + "line": 116, + "column": 42 + }, + "end": { + "line": 122, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 2783, + 2787 + ], + "loc": { + "start": { + "line": 122, + "column": 11 + }, + "end": { + "line": 122, + "column": 15 + } + } + } + ], + "range": [ + 2637, + 2788 + ], + "loc": { + "start": { + "line": 116, + "column": 42 + }, + "end": { + "line": 122, + "column": 16 + } + } + } + ], + "range": [ + 2599, + 2789 + ], + "loc": { + "start": { + "line": 116, + "column": 4 + }, + "end": { + "line": 122, + "column": 17 + } + } + }, + "range": [ + 2599, + 2790 + ], + "loc": { + "start": { + "line": 116, + "column": 4 + }, + "end": { + "line": 122, + "column": 18 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 2803, + 2807 + ], + "loc": { + "start": { + "line": 124, + "column": 11 + }, + "end": { + "line": 124, + "column": 15 + } + } + }, + "range": [ + 2796, + 2808 + ], + "loc": { + "start": { + "line": 124, + "column": 4 + }, + "end": { + "line": 124, + "column": 16 + } + } + } + ], + "range": [ + 2281, + 2812 + ], + "loc": { + "start": { + "line": 103, + "column": 39 + }, + "end": { + "line": 125, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2256, + 2812 + ], + "loc": { + "start": { + "line": 103, + "column": 14 + }, + "end": { + "line": 125, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2244, + 2812 + ], + "loc": { + "start": { + "line": 103, + "column": 2 + }, + "end": { + "line": 125, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @param {Object} options\n * @returns {DB}\n ", + "range": [ + 2152, + 2241 + ], + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 102, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 2816, + 2921 + ], + "loc": { + "start": { + "line": 127, + "column": 2 + }, + "end": { + "line": 132, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "boot", + "range": [ + 2924, + 2928 + ], + "loc": { + "start": { + "line": 133, + "column": 2 + }, + "end": { + "line": 133, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "kernel", + "range": [ + 2929, + 2935 + ], + "loc": { + "start": { + "line": 133, + "column": 7 + }, + "end": { + "line": 133, + "column": 13 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 2937, + 2945 + ], + "loc": { + "start": { + "line": 133, + "column": 15 + }, + "end": { + "line": 133, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2953, + 2957 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 134, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_validation", + "range": [ + 2958, + 2969 + ], + "loc": { + "start": { + "line": 134, + "column": 9 + }, + "end": { + "line": 134, + "column": 20 + } + } + }, + "range": [ + 2953, + 2969 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 134, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "boot", + "range": [ + 2970, + 2974 + ], + "loc": { + "start": { + "line": 134, + "column": 21 + }, + "end": { + "line": 134, + "column": 25 + } + } + }, + "range": [ + 2953, + 2974 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 134, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "kernel", + "range": [ + 2975, + 2981 + ], + "loc": { + "start": { + "line": 134, + "column": 26 + }, + "end": { + "line": 134, + "column": 32 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3002, + 3006 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_validation", + "range": [ + 3007, + 3018 + ], + "loc": { + "start": { + "line": 135, + "column": 11 + }, + "end": { + "line": 135, + "column": 22 + } + } + }, + "range": [ + 3002, + 3018 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "immutable", + "range": [ + 3019, + 3028 + ], + "loc": { + "start": { + "line": 135, + "column": 23 + }, + "end": { + "line": 135, + "column": 32 + } + } + }, + "range": [ + 3002, + 3028 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 32 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 3031, + 3035 + ], + "loc": { + "start": { + "line": 135, + "column": 35 + }, + "end": { + "line": 135, + "column": 39 + } + } + }, + "range": [ + 3002, + 3035 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 39 + } + } + }, + "range": [ + 3002, + 3036 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 40 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3044, + 3048 + ], + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_tablesNames", + "range": [ + 3049, + 3061 + ], + "loc": { + "start": { + "line": 137, + "column": 11 + }, + "end": { + "line": 137, + "column": 23 + } + } + }, + "range": [ + 3044, + 3061 + ], + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 23 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 3064, + 3070 + ], + "loc": { + "start": { + "line": 137, + "column": 26 + }, + "end": { + "line": 137, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 3071, + 3077 + ], + "loc": { + "start": { + "line": 137, + "column": 33 + }, + "end": { + "line": 137, + "column": 39 + } + } + }, + "range": [ + 3064, + 3077 + ], + "loc": { + "start": { + "line": 137, + "column": 26 + }, + "end": { + "line": 137, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "tablesNames", + "range": [ + 3078, + 3089 + ], + "loc": { + "start": { + "line": 137, + "column": 40 + }, + "end": { + "line": 137, + "column": 51 + } + } + }, + "range": [ + 3064, + 3089 + ], + "loc": { + "start": { + "line": 137, + "column": 26 + }, + "end": { + "line": 137, + "column": 51 + } + } + }, + "range": [ + 3044, + 3089 + ], + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 51 + } + } + }, + "range": [ + 3044, + 3090 + ], + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 52 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3097, + 3101 + ], + "loc": { + "start": { + "line": 138, + "column": 6 + }, + "end": { + "line": 138, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_models", + "range": [ + 3102, + 3109 + ], + "loc": { + "start": { + "line": 138, + "column": 11 + }, + "end": { + "line": 138, + "column": 18 + } + } + }, + "range": [ + 3097, + 3109 + ], + "loc": { + "start": { + "line": 138, + "column": 6 + }, + "end": { + "line": 138, + "column": 18 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3112, + 3116 + ], + "loc": { + "start": { + "line": 138, + "column": 21 + }, + "end": { + "line": 138, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawModelsToVogels", + "range": [ + 3117, + 3135 + ], + "loc": { + "start": { + "line": 138, + "column": 26 + }, + "end": { + "line": 138, + "column": 44 + } + } + }, + "range": [ + 3112, + 3135 + ], + "loc": { + "start": { + "line": 138, + "column": 21 + }, + "end": { + "line": 138, + "column": 44 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 3136, + 3142 + ], + "loc": { + "start": { + "line": 138, + "column": 45 + }, + "end": { + "line": 138, + "column": 51 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 3143, + 3149 + ], + "loc": { + "start": { + "line": 138, + "column": 52 + }, + "end": { + "line": 138, + "column": 58 + } + } + }, + "range": [ + 3136, + 3149 + ], + "loc": { + "start": { + "line": 138, + "column": 45 + }, + "end": { + "line": 138, + "column": 58 + } + } + }, + "property": { + "type": "Identifier", + "name": "models", + "range": [ + 3150, + 3156 + ], + "loc": { + "start": { + "line": 138, + "column": 59 + }, + "end": { + "line": 138, + "column": 65 + } + } + }, + "range": [ + 3136, + 3156 + ], + "loc": { + "start": { + "line": 138, + "column": 45 + }, + "end": { + "line": 138, + "column": 65 + } + } + } + ], + "range": [ + 3112, + 3157 + ], + "loc": { + "start": { + "line": 138, + "column": 21 + }, + "end": { + "line": 138, + "column": 66 + } + } + }, + "range": [ + 3097, + 3157 + ], + "loc": { + "start": { + "line": 138, + "column": 6 + }, + "end": { + "line": 138, + "column": 66 + } + } + }, + "range": [ + 3097, + 3158 + ], + "loc": { + "start": { + "line": 138, + "column": 6 + }, + "end": { + "line": 138, + "column": 67 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3170, + 3174 + ], + "loc": { + "start": { + "line": 140, + "column": 10 + }, + "end": { + "line": 140, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "_localBackend", + "range": [ + 3175, + 3188 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 140, + "column": 28 + } + } + }, + "range": [ + 3170, + 3188 + ], + "loc": { + "start": { + "line": 140, + "column": 10 + }, + "end": { + "line": 140, + "column": 28 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3200, + 3204 + ], + "loc": { + "start": { + "line": 141, + "column": 8 + }, + "end": { + "line": 141, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_enableLocalDB", + "range": [ + 3205, + 3219 + ], + "loc": { + "start": { + "line": 141, + "column": 13 + }, + "end": { + "line": 141, + "column": 27 + } + } + }, + "range": [ + 3200, + 3219 + ], + "loc": { + "start": { + "line": 141, + "column": 8 + }, + "end": { + "line": 141, + "column": 27 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 3220, + 3228 + ], + "loc": { + "start": { + "line": 141, + "column": 28 + }, + "end": { + "line": 141, + "column": 36 + } + } + } + ], + "range": [ + 3200, + 3229 + ], + "loc": { + "start": { + "line": 141, + "column": 8 + }, + "end": { + "line": 141, + "column": 37 + } + } + }, + "range": [ + 3200, + 3230 + ], + "loc": { + "start": { + "line": 141, + "column": 8 + }, + "end": { + "line": 141, + "column": 38 + } + } + } + ], + "range": [ + 3190, + 3238 + ], + "loc": { + "start": { + "line": 140, + "column": 30 + }, + "end": { + "line": 142, + "column": 7 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 3254, + 3262 + ], + "loc": { + "start": { + "line": 143, + "column": 8 + }, + "end": { + "line": 143, + "column": 16 + } + } + }, + "arguments": [], + "range": [ + 3254, + 3264 + ], + "loc": { + "start": { + "line": 143, + "column": 8 + }, + "end": { + "line": 143, + "column": 18 + } + } + }, + "range": [ + 3254, + 3265 + ], + "loc": { + "start": { + "line": 143, + "column": 8 + }, + "end": { + "line": 143, + "column": 19 + } + } + } + ], + "range": [ + 3244, + 3273 + ], + "loc": { + "start": { + "line": 142, + "column": 13 + }, + "end": { + "line": 144, + "column": 7 + } + } + }, + "range": [ + 3166, + 3273 + ], + "loc": { + "start": { + "line": 140, + "column": 6 + }, + "end": { + "line": 144, + "column": 7 + } + } + } + ], + "range": [ + 2994, + 3279 + ], + "loc": { + "start": { + "line": 134, + "column": 45 + }, + "end": { + "line": 145, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2983, + 3279 + ], + "loc": { + "start": { + "line": 134, + "column": 34 + }, + "end": { + "line": 145, + "column": 5 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 3280, + 3284 + ], + "loc": { + "start": { + "line": 145, + "column": 6 + }, + "end": { + "line": 145, + "column": 10 + } + } + }, + "range": [ + 2983, + 3284 + ], + "loc": { + "start": { + "line": 134, + "column": 34 + }, + "end": { + "line": 145, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 3285, + 3289 + ], + "loc": { + "start": { + "line": 145, + "column": 11 + }, + "end": { + "line": 145, + "column": 15 + } + } + } + ], + "range": [ + 2983, + 3290 + ], + "loc": { + "start": { + "line": 134, + "column": 34 + }, + "end": { + "line": 145, + "column": 16 + } + } + } + ], + "range": [ + 2953, + 3291 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 145, + "column": 17 + } + } + }, + "range": [ + 2953, + 3292 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 145, + "column": 18 + } + } + } + ], + "range": [ + 2947, + 3296 + ], + "loc": { + "start": { + "line": 133, + "column": 25 + }, + "end": { + "line": 146, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2928, + 3296 + ], + "loc": { + "start": { + "line": 133, + "column": 6 + }, + "end": { + "line": 146, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2924, + 3296 + ], + "loc": { + "start": { + "line": 133, + "column": 2 + }, + "end": { + "line": 146, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 2816, + 2921 + ], + "loc": { + "start": { + "line": 127, + "column": 2 + }, + "end": { + "line": 132, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} driver\n * @returns {DB}\n * @private\n ", + "range": [ + 3300, + 3370 + ], + "loc": { + "start": { + "line": 148, + "column": 2 + }, + "end": { + "line": 152, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_setVogelsDriver", + "range": [ + 3373, + 3389 + ], + "loc": { + "start": { + "line": 153, + "column": 2 + }, + "end": { + "line": 153, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "driver", + "range": [ + 3390, + 3396 + ], + "loc": { + "start": { + "line": 153, + "column": 19 + }, + "end": { + "line": 153, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Vogels", + "range": [ + 3404, + 3410 + ], + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "dynamoDriver", + "range": [ + 3411, + 3423 + ], + "loc": { + "start": { + "line": 154, + "column": 11 + }, + "end": { + "line": 154, + "column": 23 + } + } + }, + "range": [ + 3404, + 3423 + ], + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "driver", + "range": [ + 3424, + 3430 + ], + "loc": { + "start": { + "line": 154, + "column": 24 + }, + "end": { + "line": 154, + "column": 30 + } + } + } + ], + "range": [ + 3404, + 3431 + ], + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 31 + } + } + }, + "range": [ + 3404, + 3432 + ], + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 32 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 3445, + 3449 + ], + "loc": { + "start": { + "line": 156, + "column": 11 + }, + "end": { + "line": 156, + "column": 15 + } + } + }, + "range": [ + 3438, + 3450 + ], + "loc": { + "start": { + "line": 156, + "column": 4 + }, + "end": { + "line": 156, + "column": 16 + } + } + } + ], + "range": [ + 3398, + 3454 + ], + "loc": { + "start": { + "line": 153, + "column": 27 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3389, + 3454 + ], + "loc": { + "start": { + "line": 153, + "column": 18 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 3373, + 3454 + ], + "loc": { + "start": { + "line": 153, + "column": 2 + }, + "end": { + "line": 157, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} driver\n * @returns {DB}\n * @private\n ", + "range": [ + 3300, + 3370 + ], + "loc": { + "start": { + "line": 148, + "column": 2 + }, + "end": { + "line": 152, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @param {String} driver\n * @param {Number} tts\n ", + "range": [ + 3458, + 3552 + ], + "loc": { + "start": { + "line": 159, + "column": 2 + }, + "end": { + "line": 163, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "startLocalDynamoDBServer", + "range": [ + 3562, + 3586 + ], + "loc": { + "start": { + "line": 164, + "column": 9 + }, + "end": { + "line": 164, + "column": 33 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 3587, + 3595 + ], + "loc": { + "start": { + "line": 164, + "column": 34 + }, + "end": { + "line": 164, + "column": 42 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "driver", + "range": [ + 3597, + 3603 + ], + "loc": { + "start": { + "line": 164, + "column": 44 + }, + "end": { + "line": 164, + "column": 50 + } + } + }, + "right": { + "type": "Literal", + "value": "LocalDynamo", + "raw": "'LocalDynamo'", + "range": [ + 3606, + 3619 + ], + "loc": { + "start": { + "line": 164, + "column": 53 + }, + "end": { + "line": 164, + "column": 66 + } + } + }, + "range": [ + 3597, + 3619 + ], + "loc": { + "start": { + "line": 164, + "column": 44 + }, + "end": { + "line": 164, + "column": 66 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "tts", + "range": [ + 3621, + 3624 + ], + "loc": { + "start": { + "line": 164, + "column": 68 + }, + "end": { + "line": 164, + "column": 71 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 3627, + 3641 + ], + "loc": { + "start": { + "line": 164, + "column": 74 + }, + "end": { + "line": 164, + "column": 88 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_TTS", + "range": [ + 3642, + 3653 + ], + "loc": { + "start": { + "line": 164, + "column": 89 + }, + "end": { + "line": 164, + "column": 100 + } + } + }, + "range": [ + 3627, + 3653 + ], + "loc": { + "start": { + "line": 164, + "column": 74 + }, + "end": { + "line": 164, + "column": 100 + } + } + }, + "range": [ + 3621, + 3653 + ], + "loc": { + "start": { + "line": 164, + "column": 68 + }, + "end": { + "line": 164, + "column": 100 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "LocalDBServer", + "range": [ + 3665, + 3678 + ], + "loc": { + "start": { + "line": 165, + "column": 8 + }, + "end": { + "line": 165, + "column": 21 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "require", + "range": [ + 3681, + 3688 + ], + "loc": { + "start": { + "line": 165, + "column": 24 + }, + "end": { + "line": 165, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "./Local/DBServer", + "raw": "'./Local/DBServer'", + "range": [ + 3689, + 3707 + ], + "loc": { + "start": { + "line": 165, + "column": 32 + }, + "end": { + "line": 165, + "column": 50 + } + } + } + ], + "range": [ + 3681, + 3708 + ], + "loc": { + "start": { + "line": 165, + "column": 24 + }, + "end": { + "line": 165, + "column": 51 + } + } + }, + "property": { + "type": "Identifier", + "name": "DBServer", + "range": [ + 3709, + 3717 + ], + "loc": { + "start": { + "line": 165, + "column": 52 + }, + "end": { + "line": 165, + "column": 60 + } + } + }, + "range": [ + 3681, + 3717 + ], + "loc": { + "start": { + "line": 165, + "column": 24 + }, + "end": { + "line": 165, + "column": 60 + } + } + }, + "range": [ + 3665, + 3717 + ], + "loc": { + "start": { + "line": 165, + "column": 8 + }, + "end": { + "line": 165, + "column": 60 + } + } + } + ], + "kind": "let", + "range": [ + 3661, + 3718 + ], + "loc": { + "start": { + "line": 165, + "column": 4 + }, + "end": { + "line": 165, + "column": 61 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "server", + "range": [ + 3728, + 3734 + ], + "loc": { + "start": { + "line": 167, + "column": 8 + }, + "end": { + "line": 167, + "column": 14 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalDBServer", + "range": [ + 3737, + 3750 + ], + "loc": { + "start": { + "line": 167, + "column": 17 + }, + "end": { + "line": 167, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "create", + "range": [ + 3751, + 3757 + ], + "loc": { + "start": { + "line": 167, + "column": 31 + }, + "end": { + "line": 167, + "column": 37 + } + } + }, + "range": [ + 3737, + 3757 + ], + "loc": { + "start": { + "line": 167, + "column": 17 + }, + "end": { + "line": 167, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "driver", + "range": [ + 3758, + 3764 + ], + "loc": { + "start": { + "line": 167, + "column": 38 + }, + "end": { + "line": 167, + "column": 44 + } + } + } + ], + "range": [ + 3737, + 3765 + ], + "loc": { + "start": { + "line": 167, + "column": 17 + }, + "end": { + "line": 167, + "column": 45 + } + } + }, + "range": [ + 3728, + 3765 + ], + "loc": { + "start": { + "line": 167, + "column": 8 + }, + "end": { + "line": 167, + "column": 45 + } + } + } + ], + "kind": "let", + "range": [ + 3724, + 3766 + ], + "loc": { + "start": { + "line": 167, + "column": 4 + }, + "end": { + "line": 167, + "column": 46 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "server", + "range": [ + 3772, + 3778 + ], + "loc": { + "start": { + "line": 169, + "column": 4 + }, + "end": { + "line": 169, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "start", + "range": [ + 3779, + 3784 + ], + "loc": { + "start": { + "line": 169, + "column": 11 + }, + "end": { + "line": 169, + "column": 16 + } + } + }, + "range": [ + 3772, + 3784 + ], + "loc": { + "start": { + "line": 169, + "column": 4 + }, + "end": { + "line": 169, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 3785, + 3793 + ], + "loc": { + "start": { + "line": 169, + "column": 17 + }, + "end": { + "line": 169, + "column": 25 + } + } + }, + { + "type": "Identifier", + "name": "tts", + "range": [ + 3795, + 3798 + ], + "loc": { + "start": { + "line": 169, + "column": 27 + }, + "end": { + "line": 169, + "column": 30 + } + } + } + ], + "range": [ + 3772, + 3799 + ], + "loc": { + "start": { + "line": 169, + "column": 4 + }, + "end": { + "line": 169, + "column": 31 + } + } + }, + "range": [ + 3772, + 3800 + ], + "loc": { + "start": { + "line": 169, + "column": 4 + }, + "end": { + "line": 169, + "column": 32 + } + } + } + ], + "range": [ + 3655, + 3804 + ], + "loc": { + "start": { + "line": 164, + "column": 102 + }, + "end": { + "line": 170, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3586, + 3804 + ], + "loc": { + "start": { + "line": 164, + "column": 33 + }, + "end": { + "line": 170, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 3555, + 3804 + ], + "loc": { + "start": { + "line": 164, + "column": 2 + }, + "end": { + "line": 170, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @param {String} driver\n * @param {Number} tts\n ", + "range": [ + 3458, + 3552 + ], + "loc": { + "start": { + "line": 159, + "column": 2 + }, + "end": { + "line": 163, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @private\n ", + "range": [ + 3808, + 3863 + ], + "loc": { + "start": { + "line": 172, + "column": 2 + }, + "end": { + "line": 175, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_enableLocalDB", + "range": [ + 3866, + 3880 + ], + "loc": { + "start": { + "line": 176, + "column": 2 + }, + "end": { + "line": 176, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 3881, + 3889 + ], + "loc": { + "start": { + "line": 176, + "column": 17 + }, + "end": { + "line": 176, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3897, + 3901 + ], + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 177, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_setVogelsDriver", + "range": [ + 3902, + 3918 + ], + "loc": { + "start": { + "line": 177, + "column": 9 + }, + "end": { + "line": 177, + "column": 25 + } + } + }, + "range": [ + 3897, + 3918 + ], + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 177, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Vogels", + "range": [ + 3930, + 3936 + ], + "loc": { + "start": { + "line": 178, + "column": 10 + }, + "end": { + "line": 178, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "AWS", + "range": [ + 3937, + 3940 + ], + "loc": { + "start": { + "line": 178, + "column": 17 + }, + "end": { + "line": 178, + "column": 20 + } + } + }, + "range": [ + 3930, + 3940 + ], + "loc": { + "start": { + "line": 178, + "column": 10 + }, + "end": { + "line": 178, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "DynamoDB", + "range": [ + 3941, + 3949 + ], + "loc": { + "start": { + "line": 178, + "column": 21 + }, + "end": { + "line": 178, + "column": 29 + } + } + }, + "range": [ + 3930, + 3949 + ], + "loc": { + "start": { + "line": 178, + "column": 10 + }, + "end": { + "line": 178, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "endpoint", + "range": [ + 3960, + 3968 + ], + "loc": { + "start": { + "line": 179, + "column": 8 + }, + "end": { + "line": 179, + "column": 16 + } + } + }, + "value": { + "type": "NewExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Vogels", + "range": [ + 3974, + 3980 + ], + "loc": { + "start": { + "line": 179, + "column": 22 + }, + "end": { + "line": 179, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "AWS", + "range": [ + 3981, + 3984 + ], + "loc": { + "start": { + "line": 179, + "column": 29 + }, + "end": { + "line": 179, + "column": 32 + } + } + }, + "range": [ + 3974, + 3984 + ], + "loc": { + "start": { + "line": 179, + "column": 22 + }, + "end": { + "line": 179, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "Endpoint", + "range": [ + 3985, + 3993 + ], + "loc": { + "start": { + "line": 179, + "column": 33 + }, + "end": { + "line": 179, + "column": 41 + } + } + }, + "range": [ + 3974, + 3993 + ], + "loc": { + "start": { + "line": 179, + "column": 22 + }, + "end": { + "line": 179, + "column": 41 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "http://localhost:", + "cooked": "http://localhost:" + }, + "tail": false, + "range": [ + 3994, + 4014 + ], + "loc": { + "start": { + "line": 179, + "column": 42 + }, + "end": { + "line": 179, + "column": 62 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 4030, + 4032 + ], + "loc": { + "start": { + "line": 179, + "column": 78 + }, + "end": { + "line": 179, + "column": 80 + } + } + } + ], + "expressions": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "DB", + "range": [ + 4014, + 4016 + ], + "loc": { + "start": { + "line": 179, + "column": 62 + }, + "end": { + "line": 179, + "column": 64 + } + } + }, + "property": { + "type": "Identifier", + "name": "LOCAL_DB_PORT", + "range": [ + 4017, + 4030 + ], + "loc": { + "start": { + "line": 179, + "column": 65 + }, + "end": { + "line": 179, + "column": 78 + } + } + }, + "range": [ + 4014, + 4030 + ], + "loc": { + "start": { + "line": 179, + "column": 62 + }, + "end": { + "line": 179, + "column": 78 + } + } + } + ], + "range": [ + 3994, + 4032 + ], + "loc": { + "start": { + "line": 179, + "column": 42 + }, + "end": { + "line": 179, + "column": 80 + } + } + } + ], + "range": [ + 3970, + 4033 + ], + "loc": { + "start": { + "line": 179, + "column": 18 + }, + "end": { + "line": 179, + "column": 81 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 3960, + 4033 + ], + "loc": { + "start": { + "line": 179, + "column": 8 + }, + "end": { + "line": 179, + "column": 81 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "accessKeyId", + "range": [ + 4043, + 4054 + ], + "loc": { + "start": { + "line": 180, + "column": 8 + }, + "end": { + "line": 180, + "column": 19 + } + } + }, + "value": { + "type": "Literal", + "value": "fake", + "raw": "'fake'", + "range": [ + 4056, + 4062 + ], + "loc": { + "start": { + "line": 180, + "column": 21 + }, + "end": { + "line": 180, + "column": 27 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 4043, + 4062 + ], + "loc": { + "start": { + "line": 180, + "column": 8 + }, + "end": { + "line": 180, + "column": 27 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "secretAccessKey", + "range": [ + 4072, + 4087 + ], + "loc": { + "start": { + "line": 181, + "column": 8 + }, + "end": { + "line": 181, + "column": 23 + } + } + }, + "value": { + "type": "Literal", + "value": "fake", + "raw": "'fake'", + "range": [ + 4089, + 4095 + ], + "loc": { + "start": { + "line": 181, + "column": 25 + }, + "end": { + "line": 181, + "column": 31 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 4072, + 4095 + ], + "loc": { + "start": { + "line": 181, + "column": 8 + }, + "end": { + "line": 181, + "column": 31 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "region", + "range": [ + 4105, + 4111 + ], + "loc": { + "start": { + "line": 182, + "column": 8 + }, + "end": { + "line": 182, + "column": 14 + } + } + }, + "value": { + "type": "Literal", + "value": "us-east-1", + "raw": "'us-east-1'", + "range": [ + 4113, + 4124 + ], + "loc": { + "start": { + "line": 182, + "column": 16 + }, + "end": { + "line": 182, + "column": 27 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 4105, + 4124 + ], + "loc": { + "start": { + "line": 182, + "column": 8 + }, + "end": { + "line": 182, + "column": 27 + } + } + } + ], + "range": [ + 3950, + 4133 + ], + "loc": { + "start": { + "line": 178, + "column": 30 + }, + "end": { + "line": 183, + "column": 7 + } + } + } + ], + "range": [ + 3926, + 4134 + ], + "loc": { + "start": { + "line": 178, + "column": 6 + }, + "end": { + "line": 183, + "column": 8 + } + } + } + ], + "range": [ + 3897, + 4140 + ], + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 184, + "column": 5 + } + } + }, + "range": [ + 3897, + 4141 + ], + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 184, + "column": 6 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4147, + 4151 + ], + "loc": { + "start": { + "line": 186, + "column": 4 + }, + "end": { + "line": 186, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "assureTables", + "range": [ + 4152, + 4164 + ], + "loc": { + "start": { + "line": 186, + "column": 9 + }, + "end": { + "line": 186, + "column": 21 + } + } + }, + "range": [ + 4147, + 4164 + ], + "loc": { + "start": { + "line": 186, + "column": 4 + }, + "end": { + "line": 186, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 4165, + 4173 + ], + "loc": { + "start": { + "line": 186, + "column": 22 + }, + "end": { + "line": 186, + "column": 30 + } + } + } + ], + "range": [ + 4147, + 4174 + ], + "loc": { + "start": { + "line": 186, + "column": 4 + }, + "end": { + "line": 186, + "column": 31 + } + } + }, + "range": [ + 4147, + 4175 + ], + "loc": { + "start": { + "line": 186, + "column": 4 + }, + "end": { + "line": 186, + "column": 32 + } + } + } + ], + "range": [ + 3891, + 4179 + ], + "loc": { + "start": { + "line": 176, + "column": 27 + }, + "end": { + "line": 187, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3880, + 4179 + ], + "loc": { + "start": { + "line": 176, + "column": 16 + }, + "end": { + "line": 187, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 3866, + 4179 + ], + "loc": { + "start": { + "line": 176, + "column": 2 + }, + "end": { + "line": 187, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @private\n ", + "range": [ + 3808, + 3863 + ], + "loc": { + "start": { + "line": 172, + "column": 2 + }, + "end": { + "line": 175, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 4183, + 4215 + ], + "loc": { + "start": { + "line": 189, + "column": 2 + }, + "end": { + "line": 191, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "DEFAULT_TABLE_OPTIONS", + "range": [ + 4229, + 4250 + ], + "loc": { + "start": { + "line": 192, + "column": 13 + }, + "end": { + "line": 192, + "column": 34 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "readCapacity", + "range": [ + 4274, + 4286 + ], + "loc": { + "start": { + "line": 194, + "column": 6 + }, + "end": { + "line": 194, + "column": 18 + } + } + }, + "value": { + "type": "Literal", + "value": 5, + "raw": "5", + "range": [ + 4288, + 4289 + ], + "loc": { + "start": { + "line": 194, + "column": 20 + }, + "end": { + "line": 194, + "column": 21 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 4274, + 4289 + ], + "loc": { + "start": { + "line": 194, + "column": 6 + }, + "end": { + "line": 194, + "column": 21 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "writeCapacity", + "range": [ + 4297, + 4310 + ], + "loc": { + "start": { + "line": 195, + "column": 6 + }, + "end": { + "line": 195, + "column": 19 + } + } + }, + "value": { + "type": "Literal", + "value": 5, + "raw": "5", + "range": [ + 4312, + 4313 + ], + "loc": { + "start": { + "line": 195, + "column": 21 + }, + "end": { + "line": 195, + "column": 22 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 4297, + 4313 + ], + "loc": { + "start": { + "line": 195, + "column": 6 + }, + "end": { + "line": 195, + "column": 22 + } + } + } + ], + "range": [ + 4266, + 4320 + ], + "loc": { + "start": { + "line": 193, + "column": 11 + }, + "end": { + "line": 196, + "column": 5 + } + } + }, + "range": [ + 4259, + 4321 + ], + "loc": { + "start": { + "line": 193, + "column": 4 + }, + "end": { + "line": 196, + "column": 6 + } + } + } + ], + "range": [ + 4253, + 4325 + ], + "loc": { + "start": { + "line": 192, + "column": 37 + }, + "end": { + "line": 197, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4250, + 4325 + ], + "loc": { + "start": { + "line": 192, + "column": 34 + }, + "end": { + "line": 197, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 4218, + 4325 + ], + "loc": { + "start": { + "line": 192, + "column": 2 + }, + "end": { + "line": 197, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 4183, + 4215 + ], + "loc": { + "start": { + "line": 189, + "column": 2 + }, + "end": { + "line": 191, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} rawModels\n * @returns {Object}\n ", + "range": [ + 4329, + 4391 + ], + "loc": { + "start": { + "line": 199, + "column": 2 + }, + "end": { + "line": 202, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_rawModelsToVogels", + "range": [ + 4394, + 4412 + ], + "loc": { + "start": { + "line": 203, + "column": 2 + }, + "end": { + "line": 203, + "column": 20 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "rawModels", + "range": [ + 4413, + 4422 + ], + "loc": { + "start": { + "line": 203, + "column": 21 + }, + "end": { + "line": 203, + "column": 30 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "models", + "range": [ + 4434, + 4440 + ], + "loc": { + "start": { + "line": 204, + "column": 8 + }, + "end": { + "line": 204, + "column": 14 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 4443, + 4445 + ], + "loc": { + "start": { + "line": 204, + "column": 17 + }, + "end": { + "line": 204, + "column": 19 + } + } + }, + "range": [ + 4434, + 4445 + ], + "loc": { + "start": { + "line": 204, + "column": 8 + }, + "end": { + "line": 204, + "column": 19 + } + } + } + ], + "kind": "let", + "range": [ + 4430, + 4446 + ], + "loc": { + "start": { + "line": 204, + "column": 4 + }, + "end": { + "line": 204, + "column": 20 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "modelKey", + "range": [ + 4461, + 4469 + ], + "loc": { + "start": { + "line": 206, + "column": 13 + }, + "end": { + "line": 206, + "column": 21 + } + } + }, + "init": null, + "range": [ + 4461, + 4469 + ], + "loc": { + "start": { + "line": 206, + "column": 13 + }, + "end": { + "line": 206, + "column": 21 + } + } + } + ], + "kind": "let", + "range": [ + 4457, + 4469 + ], + "loc": { + "start": { + "line": 206, + "column": 9 + }, + "end": { + "line": 206, + "column": 21 + } + } + }, + "right": { + "type": "Identifier", + "name": "rawModels", + "range": [ + 4473, + 4482 + ], + "loc": { + "start": { + "line": 206, + "column": 25 + }, + "end": { + "line": 206, + "column": 34 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "rawModels", + "range": [ + 4497, + 4506 + ], + "loc": { + "start": { + "line": 207, + "column": 11 + }, + "end": { + "line": 207, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 4507, + 4521 + ], + "loc": { + "start": { + "line": 207, + "column": 21 + }, + "end": { + "line": 207, + "column": 35 + } + } + }, + "range": [ + 4497, + 4521 + ], + "loc": { + "start": { + "line": 207, + "column": 11 + }, + "end": { + "line": 207, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelKey", + "range": [ + 4522, + 4530 + ], + "loc": { + "start": { + "line": 207, + "column": 36 + }, + "end": { + "line": 207, + "column": 44 + } + } + } + ], + "range": [ + 4497, + 4531 + ], + "loc": { + "start": { + "line": 207, + "column": 11 + }, + "end": { + "line": 207, + "column": 45 + } + } + }, + "prefix": true, + "range": [ + 4496, + 4531 + ], + "loc": { + "start": { + "line": 207, + "column": 10 + }, + "end": { + "line": 207, + "column": 45 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 4543, + 4552 + ], + "loc": { + "start": { + "line": 208, + "column": 8 + }, + "end": { + "line": 208, + "column": 17 + } + } + } + ], + "range": [ + 4533, + 4560 + ], + "loc": { + "start": { + "line": 207, + "column": 47 + }, + "end": { + "line": 209, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 4492, + 4560 + ], + "loc": { + "start": { + "line": 207, + "column": 6 + }, + "end": { + "line": 209, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "backendModels", + "range": [ + 4572, + 4585 + ], + "loc": { + "start": { + "line": 211, + "column": 10 + }, + "end": { + "line": 211, + "column": 23 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "rawModels", + "range": [ + 4588, + 4597 + ], + "loc": { + "start": { + "line": 211, + "column": 26 + }, + "end": { + "line": 211, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "modelKey", + "range": [ + 4598, + 4606 + ], + "loc": { + "start": { + "line": 211, + "column": 36 + }, + "end": { + "line": 211, + "column": 44 + } + } + }, + "range": [ + 4588, + 4607 + ], + "loc": { + "start": { + "line": 211, + "column": 26 + }, + "end": { + "line": 211, + "column": 45 + } + } + }, + "range": [ + 4572, + 4607 + ], + "loc": { + "start": { + "line": 211, + "column": 10 + }, + "end": { + "line": 211, + "column": 45 + } + } + } + ], + "kind": "let", + "range": [ + 4568, + 4608 + ], + "loc": { + "start": { + "line": 211, + "column": 6 + }, + "end": { + "line": 211, + "column": 46 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "modelName", + "range": [ + 4625, + 4634 + ], + "loc": { + "start": { + "line": 213, + "column": 15 + }, + "end": { + "line": 213, + "column": 24 + } + } + }, + "init": null, + "range": [ + 4625, + 4634 + ], + "loc": { + "start": { + "line": 213, + "column": 15 + }, + "end": { + "line": 213, + "column": 24 + } + } + } + ], + "kind": "let", + "range": [ + 4621, + 4634 + ], + "loc": { + "start": { + "line": 213, + "column": 11 + }, + "end": { + "line": 213, + "column": 24 + } + } + }, + "right": { + "type": "Identifier", + "name": "backendModels", + "range": [ + 4638, + 4651 + ], + "loc": { + "start": { + "line": 213, + "column": 28 + }, + "end": { + "line": 213, + "column": 41 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "backendModels", + "range": [ + 4668, + 4681 + ], + "loc": { + "start": { + "line": 214, + "column": 13 + }, + "end": { + "line": 214, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 4682, + 4696 + ], + "loc": { + "start": { + "line": 214, + "column": 27 + }, + "end": { + "line": 214, + "column": 41 + } + } + }, + "range": [ + 4668, + 4696 + ], + "loc": { + "start": { + "line": 214, + "column": 13 + }, + "end": { + "line": 214, + "column": 41 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 4697, + 4706 + ], + "loc": { + "start": { + "line": 214, + "column": 42 + }, + "end": { + "line": 214, + "column": 51 + } + } + } + ], + "range": [ + 4668, + 4707 + ], + "loc": { + "start": { + "line": 214, + "column": 13 + }, + "end": { + "line": 214, + "column": 52 + } + } + }, + "prefix": true, + "range": [ + 4667, + 4707 + ], + "loc": { + "start": { + "line": 214, + "column": 12 + }, + "end": { + "line": 214, + "column": 52 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 4721, + 4730 + ], + "loc": { + "start": { + "line": 215, + "column": 10 + }, + "end": { + "line": 215, + "column": 19 + } + } + } + ], + "range": [ + 4709, + 4740 + ], + "loc": { + "start": { + "line": 214, + "column": 54 + }, + "end": { + "line": 216, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 4663, + 4740 + ], + "loc": { + "start": { + "line": 214, + "column": 8 + }, + "end": { + "line": 216, + "column": 9 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "models", + "range": [ + 4750, + 4756 + ], + "loc": { + "start": { + "line": 218, + "column": 8 + }, + "end": { + "line": 218, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "modelName", + "range": [ + 4757, + 4766 + ], + "loc": { + "start": { + "line": 218, + "column": 15 + }, + "end": { + "line": 218, + "column": 24 + } + } + }, + "range": [ + 4750, + 4767 + ], + "loc": { + "start": { + "line": 218, + "column": 8 + }, + "end": { + "line": 218, + "column": 25 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "ExtendModel", + "range": [ + 4774, + 4785 + ], + "loc": { + "start": { + "line": 218, + "column": 32 + }, + "end": { + "line": 218, + "column": 43 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Vogels", + "range": [ + 4786, + 4792 + ], + "loc": { + "start": { + "line": 218, + "column": 44 + }, + "end": { + "line": 218, + "column": 50 + } + } + }, + "property": { + "type": "Identifier", + "name": "define", + "range": [ + 4793, + 4799 + ], + "loc": { + "start": { + "line": 218, + "column": 51 + }, + "end": { + "line": 218, + "column": 57 + } + } + }, + "range": [ + 4786, + 4799 + ], + "loc": { + "start": { + "line": 218, + "column": 44 + }, + "end": { + "line": 218, + "column": 57 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 4811, + 4820 + ], + "loc": { + "start": { + "line": 219, + "column": 10 + }, + "end": { + "line": 219, + "column": 19 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4832, + 4836 + ], + "loc": { + "start": { + "line": 220, + "column": 10 + }, + "end": { + "line": 220, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "_wrapModelSchema", + "range": [ + 4837, + 4853 + ], + "loc": { + "start": { + "line": 220, + "column": 15 + }, + "end": { + "line": 220, + "column": 31 + } + } + }, + "range": [ + 4832, + 4853 + ], + "loc": { + "start": { + "line": 220, + "column": 10 + }, + "end": { + "line": 220, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 4854, + 4863 + ], + "loc": { + "start": { + "line": 220, + "column": 32 + }, + "end": { + "line": 220, + "column": 41 + } + } + } + ], + "range": [ + 4832, + 4864 + ], + "loc": { + "start": { + "line": 220, + "column": 10 + }, + "end": { + "line": 220, + "column": 42 + } + } + } + ], + "range": [ + 4786, + 4874 + ], + "loc": { + "start": { + "line": 218, + "column": 44 + }, + "end": { + "line": 221, + "column": 9 + } + } + } + ], + "range": [ + 4770, + 4875 + ], + "loc": { + "start": { + "line": 218, + "column": 28 + }, + "end": { + "line": 221, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "inject", + "range": [ + 4876, + 4882 + ], + "loc": { + "start": { + "line": 221, + "column": 11 + }, + "end": { + "line": 221, + "column": 17 + } + } + }, + "range": [ + 4770, + 4882 + ], + "loc": { + "start": { + "line": 218, + "column": 28 + }, + "end": { + "line": 221, + "column": 17 + } + } + }, + "arguments": [], + "range": [ + 4770, + 4884 + ], + "loc": { + "start": { + "line": 218, + "column": 28 + }, + "end": { + "line": 221, + "column": 19 + } + } + }, + "range": [ + 4750, + 4884 + ], + "loc": { + "start": { + "line": 218, + "column": 8 + }, + "end": { + "line": 221, + "column": 19 + } + } + }, + "range": [ + 4750, + 4885 + ], + "loc": { + "start": { + "line": 218, + "column": 8 + }, + "end": { + "line": 221, + "column": 20 + } + } + } + ], + "range": [ + 4653, + 4893 + ], + "loc": { + "start": { + "line": 213, + "column": 43 + }, + "end": { + "line": 222, + "column": 7 + } + } + }, + "each": false, + "range": [ + 4616, + 4893 + ], + "loc": { + "start": { + "line": 213, + "column": 6 + }, + "end": { + "line": 222, + "column": 7 + } + } + } + ], + "range": [ + 4484, + 4899 + ], + "loc": { + "start": { + "line": 206, + "column": 36 + }, + "end": { + "line": 223, + "column": 5 + } + } + }, + "each": false, + "range": [ + 4452, + 4899 + ], + "loc": { + "start": { + "line": 206, + "column": 4 + }, + "end": { + "line": 223, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "models", + "range": [ + 4912, + 4918 + ], + "loc": { + "start": { + "line": 225, + "column": 11 + }, + "end": { + "line": 225, + "column": 17 + } + } + }, + "range": [ + 4905, + 4919 + ], + "loc": { + "start": { + "line": 225, + "column": 4 + }, + "end": { + "line": 225, + "column": 18 + } + } + } + ], + "range": [ + 4424, + 4923 + ], + "loc": { + "start": { + "line": 203, + "column": 32 + }, + "end": { + "line": 226, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4412, + 4923 + ], + "loc": { + "start": { + "line": 203, + "column": 20 + }, + "end": { + "line": 226, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 4394, + 4923 + ], + "loc": { + "start": { + "line": 203, + "column": 2 + }, + "end": { + "line": 226, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} rawModels\n * @returns {Object}\n ", + "range": [ + 4329, + 4391 + ], + "loc": { + "start": { + "line": 199, + "column": 2 + }, + "end": { + "line": 202, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Object}\n * @private\n ", + "range": [ + 4927, + 4999 + ], + "loc": { + "start": { + "line": 228, + "column": 2 + }, + "end": { + "line": 232, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_wrapModelSchema", + "range": [ + 5002, + 5018 + ], + "loc": { + "start": { + "line": 233, + "column": 2 + }, + "end": { + "line": 233, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 5019, + 5023 + ], + "loc": { + "start": { + "line": 233, + "column": 19 + }, + "end": { + "line": 233, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "hashKey", + "range": [ + 5046, + 5053 + ], + "loc": { + "start": { + "line": 235, + "column": 6 + }, + "end": { + "line": 235, + "column": 13 + } + } + }, + "value": { + "type": "Literal", + "value": "Id", + "raw": "'Id'", + "range": [ + 5055, + 5059 + ], + "loc": { + "start": { + "line": 235, + "column": 15 + }, + "end": { + "line": 235, + "column": 19 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 5046, + 5059 + ], + "loc": { + "start": { + "line": 235, + "column": 6 + }, + "end": { + "line": 235, + "column": 19 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "timestamps", + "range": [ + 5067, + 5077 + ], + "loc": { + "start": { + "line": 236, + "column": 6 + }, + "end": { + "line": 236, + "column": 16 + } + } + }, + "value": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 5079, + 5083 + ], + "loc": { + "start": { + "line": 236, + "column": 18 + }, + "end": { + "line": 236, + "column": 22 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 5067, + 5083 + ], + "loc": { + "start": { + "line": 236, + "column": 6 + }, + "end": { + "line": 236, + "column": 22 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "tableName", + "range": [ + 5091, + 5100 + ], + "loc": { + "start": { + "line": 237, + "column": 6 + }, + "end": { + "line": 237, + "column": 15 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5102, + 5106 + ], + "loc": { + "start": { + "line": 237, + "column": 17 + }, + "end": { + "line": 237, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "_tablesNames", + "range": [ + 5107, + 5119 + ], + "loc": { + "start": { + "line": 237, + "column": 22 + }, + "end": { + "line": 237, + "column": 34 + } + } + }, + "range": [ + 5102, + 5119 + ], + "loc": { + "start": { + "line": 237, + "column": 17 + }, + "end": { + "line": 237, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 5120, + 5124 + ], + "loc": { + "start": { + "line": 237, + "column": 35 + }, + "end": { + "line": 237, + "column": 39 + } + } + }, + "range": [ + 5102, + 5125 + ], + "loc": { + "start": { + "line": 237, + "column": 17 + }, + "end": { + "line": 237, + "column": 40 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 5091, + 5125 + ], + "loc": { + "start": { + "line": 237, + "column": 6 + }, + "end": { + "line": 237, + "column": 40 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "schema", + "range": [ + 5133, + 5139 + ], + "loc": { + "start": { + "line": 238, + "column": 6 + }, + "end": { + "line": 238, + "column": 12 + } + } + }, + "value": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5141, + 5145 + ], + "loc": { + "start": { + "line": 238, + "column": 14 + }, + "end": { + "line": 238, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "_validation", + "range": [ + 5146, + 5157 + ], + "loc": { + "start": { + "line": 238, + "column": 19 + }, + "end": { + "line": 238, + "column": 30 + } + } + }, + "range": [ + 5141, + 5157 + ], + "loc": { + "start": { + "line": 238, + "column": 14 + }, + "end": { + "line": 238, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 5158, + 5161 + ], + "loc": { + "start": { + "line": 238, + "column": 31 + }, + "end": { + "line": 238, + "column": 34 + } + } + }, + "range": [ + 5141, + 5161 + ], + "loc": { + "start": { + "line": 238, + "column": 14 + }, + "end": { + "line": 238, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 5162, + 5166 + ], + "loc": { + "start": { + "line": 238, + "column": 35 + }, + "end": { + "line": 238, + "column": 39 + } + } + } + ], + "range": [ + 5141, + 5167 + ], + "loc": { + "start": { + "line": 238, + "column": 14 + }, + "end": { + "line": 238, + "column": 40 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 5133, + 5167 + ], + "loc": { + "start": { + "line": 238, + "column": 6 + }, + "end": { + "line": 238, + "column": 40 + } + } + } + ], + "range": [ + 5038, + 5174 + ], + "loc": { + "start": { + "line": 234, + "column": 11 + }, + "end": { + "line": 239, + "column": 5 + } + } + }, + "range": [ + 5031, + 5175 + ], + "loc": { + "start": { + "line": 234, + "column": 4 + }, + "end": { + "line": 239, + "column": 6 + } + } + } + ], + "range": [ + 5025, + 5179 + ], + "loc": { + "start": { + "line": 233, + "column": 25 + }, + "end": { + "line": 240, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 5018, + 5179 + ], + "loc": { + "start": { + "line": 233, + "column": 18 + }, + "end": { + "line": 240, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 5002, + 5179 + ], + "loc": { + "start": { + "line": 233, + "column": 2 + }, + "end": { + "line": 240, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Object}\n * @private\n ", + "range": [ + 4927, + 4999 + ], + "loc": { + "start": { + "line": 228, + "column": 2 + }, + "end": { + "line": 232, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 5183, + 5215 + ], + "loc": { + "start": { + "line": 242, + "column": 2 + }, + "end": { + "line": 244, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "LOCAL_DB_PORT", + "range": [ + 5229, + 5242 + ], + "loc": { + "start": { + "line": 245, + "column": 13 + }, + "end": { + "line": 245, + "column": 26 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 5258, + 5272 + ], + "loc": { + "start": { + "line": 246, + "column": 11 + }, + "end": { + "line": 246, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_PORT", + "range": [ + 5273, + 5285 + ], + "loc": { + "start": { + "line": 246, + "column": 26 + }, + "end": { + "line": 246, + "column": 38 + } + } + }, + "range": [ + 5258, + 5285 + ], + "loc": { + "start": { + "line": 246, + "column": 11 + }, + "end": { + "line": 246, + "column": 38 + } + } + }, + "range": [ + 5251, + 5286 + ], + "loc": { + "start": { + "line": 246, + "column": 4 + }, + "end": { + "line": 246, + "column": 39 + } + } + } + ], + "range": [ + 5245, + 5290 + ], + "loc": { + "start": { + "line": 245, + "column": 29 + }, + "end": { + "line": 247, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 5242, + 5290 + ], + "loc": { + "start": { + "line": 245, + "column": 26 + }, + "end": { + "line": 247, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 5218, + 5290 + ], + "loc": { + "start": { + "line": 245, + "column": 2 + }, + "end": { + "line": 247, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 5183, + 5215 + ], + "loc": { + "start": { + "line": 242, + "column": 2 + }, + "end": { + "line": 244, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 628, + 5292 + ], + "loc": { + "start": { + "line": 20, + "column": 46 + }, + "end": { + "line": 248, + "column": 1 + } + } + }, + "range": [ + 589, + 5292 + ], + "loc": { + "start": { + "line": 20, + "column": 7 + }, + "end": { + "line": 248, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Vogels wrapper\n ", + "range": [ + 556, + 581 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 582, + 5292 + ], + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 248, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Vogels wrapper\n ", + "range": [ + 556, + 581 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 5292 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 248, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Vogels wrapper\n ", + "range": [ + 556, + 581 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} models\n * @param {Object} tablesNames\n ", + "range": [ + 632, + 701 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 24, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: set retries in a smarter way...", + "range": [ + 767, + 808 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 45 + } + } + }, + { + "type": "Line", + "value": " @todo: remove?", + "range": [ + 989, + 1006 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 21 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Validation}\n ", + "range": [ + 1047, + 1083 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Vogels[]}\n ", + "range": [ + 1141, + 1175 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @returns {Boolean}\n ", + "range": [ + 1225, + 1289 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @returns {Vogels}\n ", + "range": [ + 1375, + 1438 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 64, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @param {Function} callback\n * @param {Object} options\n * @returns {DB}\n ", + "range": [ + 1591, + 1711 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 78, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @param {Object} options\n * @returns {DB}\n ", + "range": [ + 2152, + 2241 + ], + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 102, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 2816, + 2921 + ], + "loc": { + "start": { + "line": 127, + "column": 2 + }, + "end": { + "line": 132, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} driver\n * @returns {DB}\n * @private\n ", + "range": [ + 3300, + 3370 + ], + "loc": { + "start": { + "line": 148, + "column": 2 + }, + "end": { + "line": 152, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @param {String} driver\n * @param {Number} tts\n ", + "range": [ + 3458, + 3552 + ], + "loc": { + "start": { + "line": 159, + "column": 2 + }, + "end": { + "line": 163, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @private\n ", + "range": [ + 3808, + 3863 + ], + "loc": { + "start": { + "line": 172, + "column": 2 + }, + "end": { + "line": 175, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 4183, + 4215 + ], + "loc": { + "start": { + "line": 189, + "column": 2 + }, + "end": { + "line": 191, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} rawModels\n * @returns {Object}\n ", + "range": [ + 4329, + 4391 + ], + "loc": { + "start": { + "line": 199, + "column": 2 + }, + "end": { + "line": 202, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Object}\n * @private\n ", + "range": [ + 4927, + 4999 + ], + "loc": { + "start": { + "line": 228, + "column": 2 + }, + "end": { + "line": 232, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 5183, + 5215 + ], + "loc": { + "start": { + "line": 242, + "column": 2 + }, + "end": { + "line": 244, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Exception/Exception.js.json b/docs-api/deep-db/ast/source/Exception/Exception.js.json new file mode 100644 index 00000000..a5724794 --- /dev/null +++ b/docs-api/deep-db/ast/source/Exception/Exception.js.json @@ -0,0 +1,651 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 149, + 158 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 167, + 171 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 172, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "range": [ + 167, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 182, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "range": [ + 167, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 233, + 244 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 248, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 245, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 260, + 265 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 269, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 266, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 260, + 274 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 260, + 275 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 254, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 244, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 233, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 192, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 143, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 136, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 281 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Exception/FailedToCreateTableException.js.json b/docs-api/deep-db/ast/source/Exception/FailedToCreateTableException.js.json new file mode 100644 index 00000000..335c0ddf --- /dev/null +++ b/docs-api/deep-db/ast/source/Exception/FailedToCreateTableException.js.json @@ -0,0 +1,551 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + } + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "FailedToCreateTableException", + "range": [ + 114, + 142 + ], + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 41 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 151, + 160 + ], + "loc": { + "start": { + "line": 9, + "column": 50 + }, + "end": { + "line": 9, + "column": 59 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 208, + 219 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "tableName", + "range": [ + 220, + 229 + ], + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 237, + 242 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Failed to create table for model ", + "cooked": "Failed to create table for model " + }, + "tail": false, + "range": [ + 243, + 279 + ], + "loc": { + "start": { + "line": 14, + "column": 10 + }, + "end": { + "line": 14, + "column": 46 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 288, + 290 + ], + "loc": { + "start": { + "line": 14, + "column": 55 + }, + "end": { + "line": 14, + "column": 57 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "tableName", + "range": [ + 279, + 288 + ], + "loc": { + "start": { + "line": 14, + "column": 46 + }, + "end": { + "line": 14, + "column": 55 + } + } + } + ], + "range": [ + 243, + 290 + ], + "loc": { + "start": { + "line": 14, + "column": 10 + }, + "end": { + "line": 14, + "column": 57 + } + } + } + ], + "range": [ + 237, + 291 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 58 + } + } + }, + "range": [ + 237, + 292 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 59 + } + } + } + ], + "range": [ + 231, + 296 + ], + "loc": { + "start": { + "line": 13, + "column": 25 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 219, + 296 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 208, + 296 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} tableName\n ", + "range": [ + 165, + 205 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 12, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 161, + 298 + ], + "loc": { + "start": { + "line": 9, + "column": 60 + }, + "end": { + "line": 16, + "column": 1 + } + } + }, + "range": [ + 108, + 298 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 101, + 298 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + } + } + ], + "sourceType": "module", + "range": [ + 46, + 298 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} tableName\n ", + "range": [ + 165, + 205 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 12, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Exception/FailedToCreateTablesException.js.json b/docs-api/deep-db/ast/source/Exception/FailedToCreateTablesException.js.json new file mode 100644 index 00000000..278b0a48 --- /dev/null +++ b/docs-api/deep-db/ast/source/Exception/FailedToCreateTablesException.js.json @@ -0,0 +1,609 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 42, + 54 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 42, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 6/25/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 81, + 94 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 57, + 95 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + } + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "FailedToCreateTablesException", + "range": [ + 110, + 139 + ], + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 42 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 148, + 157 + ], + "loc": { + "start": { + "line": 9, + "column": 51 + }, + "end": { + "line": 9, + "column": 60 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 233, + 244 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 14, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "tablesNames", + "range": [ + 245, + 256 + ], + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 25 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 258, + 263 + ], + "loc": { + "start": { + "line": 14, + "column": 27 + }, + "end": { + "line": 14, + "column": 32 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 271, + 276 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Failed to create ", + "cooked": "Failed to create " + }, + "tail": false, + "range": [ + 277, + 297 + ], + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 15, + "column": 30 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " tables. ", + "cooked": " tables. " + }, + "tail": false, + "range": [ + 308, + 320 + ], + "loc": { + "start": { + "line": 15, + "column": 41 + }, + "end": { + "line": 15, + "column": 53 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 325, + 327 + ], + "loc": { + "start": { + "line": 15, + "column": 58 + }, + "end": { + "line": 15, + "column": 60 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "tablesNames", + "range": [ + 297, + 308 + ], + "loc": { + "start": { + "line": 15, + "column": 30 + }, + "end": { + "line": 15, + "column": 41 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 320, + 325 + ], + "loc": { + "start": { + "line": 15, + "column": 53 + }, + "end": { + "line": 15, + "column": 58 + } + } + } + ], + "range": [ + 277, + 327 + ], + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 15, + "column": 60 + } + } + } + ], + "range": [ + 271, + 328 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 61 + } + } + }, + "range": [ + 271, + 329 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 62 + } + } + } + ], + "range": [ + 265, + 333 + ], + "loc": { + "start": { + "line": 14, + "column": 34 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 244, + 333 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 233, + 333 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} tablesNames\n * @param {String} error\n ", + "range": [ + 162, + 230 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 158, + 335 + ], + "loc": { + "start": { + "line": 9, + "column": 61 + }, + "end": { + "line": 17, + "column": 1 + } + } + }, + "range": [ + 104, + 335 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 97, + 335 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 17, + "column": 1 + } + } + } + ], + "sourceType": "module", + "range": [ + 42, + 335 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 6/25/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} tablesNames\n * @param {String} error\n ", + "range": [ + 162, + 230 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Exception/ModelNotFoundException.js.json b/docs-api/deep-db/ast/source/Exception/ModelNotFoundException.js.json new file mode 100644 index 00000000..f0dedff4 --- /dev/null +++ b/docs-api/deep-db/ast/source/Exception/ModelNotFoundException.js.json @@ -0,0 +1,628 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing requested model\n ", + "range": [ + 101, + 147 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "ModelNotFoundException", + "range": [ + 161, + 183 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 192, + 201 + ], + "loc": { + "start": { + "line": 12, + "column": 44 + }, + "end": { + "line": 12, + "column": 53 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 249, + 260 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 261, + 270 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 278, + 283 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Model ", + "cooked": "Model " + }, + "tail": false, + "range": [ + 284, + 293 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 19 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " was not found", + "cooked": " was not found" + }, + "tail": true, + "range": [ + 302, + 318 + ], + "loc": { + "start": { + "line": 17, + "column": 28 + }, + "end": { + "line": 17, + "column": 44 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 293, + 302 + ], + "loc": { + "start": { + "line": 17, + "column": 19 + }, + "end": { + "line": 17, + "column": 28 + } + } + } + ], + "range": [ + 284, + 318 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 44 + } + } + } + ], + "range": [ + 278, + 319 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 45 + } + } + }, + "range": [ + 278, + 320 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 46 + } + } + } + ], + "range": [ + 272, + 324 + ], + "loc": { + "start": { + "line": 16, + "column": 25 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 260, + 324 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 249, + 324 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n ", + "range": [ + 206, + 246 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 202, + 326 + ], + "loc": { + "start": { + "line": 12, + "column": 54 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 155, + 326 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing requested model\n ", + "range": [ + 101, + 147 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 148, + 326 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing requested model\n ", + "range": [ + 101, + 147 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 326 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when missing requested model\n ", + "range": [ + 101, + 147 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} modelName\n ", + "range": [ + 206, + 246 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Local/DBServer.js.json b/docs-api/deep-db/ast/source/Local/DBServer.js.json new file mode 100644 index 00000000..671c9604 --- /dev/null +++ b/docs-api/deep-db/ast/source/Local/DBServer.js.json @@ -0,0 +1,2448 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "LocalDynamo", + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + }, + "imported": { + "type": "Identifier", + "name": "LocalDynamo", + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + }, + "range": [ + 69, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Driver/LocalDynamo", + "raw": "'./Driver/LocalDynamo'", + "range": [ + 87, + 109 + ], + "loc": { + "start": { + "line": 7, + "column": 26 + }, + "end": { + "line": 7, + "column": 48 + } + } + }, + "range": [ + 61, + 110 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 49 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Dynalite", + "range": [ + 119, + 127 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 16 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Dynalite", + "range": [ + 119, + 127 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 16 + } + } + }, + "range": [ + 119, + 127 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 16 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Driver/Dynalite", + "raw": "'./Driver/Dynalite'", + "range": [ + 134, + 153 + ], + "loc": { + "start": { + "line": 8, + "column": 23 + }, + "end": { + "line": 8, + "column": 42 + } + } + }, + "range": [ + 111, + 154 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 43 + } + } + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "DBServer", + "range": [ + 169, + 177 + ], + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 21 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "create", + "range": [ + 284, + 290 + ], + "loc": { + "start": { + "line": 16, + "column": 9 + }, + "end": { + "line": 16, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "driver", + "range": [ + 291, + 297 + ], + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 22 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "DBServer", + "range": [ + 300, + 308 + ], + "loc": { + "start": { + "line": 16, + "column": 25 + }, + "end": { + "line": 16, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_DRIVER", + "range": [ + 309, + 323 + ], + "loc": { + "start": { + "line": 16, + "column": 34 + }, + "end": { + "line": 16, + "column": 48 + } + } + }, + "range": [ + 300, + 323 + ], + "loc": { + "start": { + "line": 16, + "column": 25 + }, + "end": { + "line": 16, + "column": 48 + } + } + }, + "range": [ + 291, + 323 + ], + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 48 + } + } + }, + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 328, + 332 + ], + "loc": { + "start": { + "line": 16, + "column": 53 + }, + "end": { + "line": 16, + "column": 57 + } + } + }, + "range": [ + 325, + 332 + ], + "loc": { + "start": { + "line": 16, + "column": 50 + }, + "end": { + "line": 16, + "column": 57 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "DriverProto", + "range": [ + 344, + 355 + ], + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 19 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "Identifier", + "name": "driver", + "range": [ + 365, + 371 + ], + "loc": { + "start": { + "line": 17, + "column": 29 + }, + "end": { + "line": 17, + "column": 35 + } + } + }, + "prefix": true, + "range": [ + 358, + 371 + ], + "loc": { + "start": { + "line": 17, + "column": 22 + }, + "end": { + "line": 17, + "column": 35 + } + } + }, + "right": { + "type": "Literal", + "value": "string", + "raw": "'string'", + "range": [ + 376, + 384 + ], + "loc": { + "start": { + "line": 17, + "column": 40 + }, + "end": { + "line": 17, + "column": 48 + } + } + }, + "range": [ + 358, + 384 + ], + "loc": { + "start": { + "line": 17, + "column": 22 + }, + "end": { + "line": 17, + "column": 48 + } + } + }, + "consequent": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "DBServer", + "range": [ + 393, + 401 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "_findDriverPrototype", + "range": [ + 402, + 422 + ], + "loc": { + "start": { + "line": 18, + "column": 17 + }, + "end": { + "line": 18, + "column": 37 + } + } + }, + "range": [ + 393, + 422 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "driver", + "range": [ + 423, + 429 + ], + "loc": { + "start": { + "line": 18, + "column": 38 + }, + "end": { + "line": 18, + "column": 44 + } + } + } + ], + "range": [ + 393, + 430 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 45 + } + } + }, + "alternate": { + "type": "Identifier", + "name": "driver", + "range": [ + 439, + 445 + ], + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 14 + } + } + }, + "range": [ + 358, + 445 + ], + "loc": { + "start": { + "line": 17, + "column": 22 + }, + "end": { + "line": 19, + "column": 14 + } + } + }, + "range": [ + 344, + 445 + ], + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 19, + "column": 14 + } + } + } + ], + "kind": "let", + "range": [ + 340, + 446 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 19, + "column": 15 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "DriverProto", + "range": [ + 457, + 468 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 20 + } + } + }, + "prefix": true, + "range": [ + 456, + 468 + ], + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 20 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Error", + "range": [ + 488, + 493 + ], + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Missing DB server driver ", + "cooked": "Missing DB server driver " + }, + "tail": false, + "range": [ + 494, + 522 + ], + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 50 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 528, + 530 + ], + "loc": { + "start": { + "line": 22, + "column": 56 + }, + "end": { + "line": 22, + "column": 58 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "driver", + "range": [ + 522, + 528 + ], + "loc": { + "start": { + "line": 22, + "column": 50 + }, + "end": { + "line": 22, + "column": 56 + } + } + } + ], + "range": [ + 494, + 530 + ], + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 58 + } + } + } + ], + "range": [ + 484, + 531 + ], + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 59 + } + } + }, + "range": [ + 478, + 532 + ], + "loc": { + "start": { + "line": 22, + "column": 6 + }, + "end": { + "line": 22, + "column": 60 + } + } + } + ], + "range": [ + 470, + 538 + ], + "loc": { + "start": { + "line": 21, + "column": 22 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 452, + 538 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "DriverProto", + "range": [ + 555, + 566 + ], + "loc": { + "start": { + "line": 25, + "column": 15 + }, + "end": { + "line": 25, + "column": 26 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 570, + 574 + ], + "loc": { + "start": { + "line": 25, + "column": 30 + }, + "end": { + "line": 25, + "column": 34 + } + } + }, + "range": [ + 567, + 574 + ], + "loc": { + "start": { + "line": 25, + "column": 27 + }, + "end": { + "line": 25, + "column": 34 + } + } + } + ], + "range": [ + 551, + 575 + ], + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 35 + } + } + }, + "range": [ + 544, + 576 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 36 + } + } + } + ], + "range": [ + 334, + 580 + ], + "loc": { + "start": { + "line": 16, + "column": 59 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 290, + 580 + ], + "loc": { + "start": { + "line": 16, + "column": 15 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 277, + 580 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 26, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function|String} driver\n * @param {*} args\n * @returns {Function}\n ", + "range": [ + 182, + 274 + ], + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Function}\n * @private\n ", + "range": [ + 584, + 658 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_findDriverPrototype", + "range": [ + 668, + 688 + ], + "loc": { + "start": { + "line": 33, + "column": 9 + }, + "end": { + "line": 33, + "column": 29 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 689, + 693 + ], + "loc": { + "start": { + "line": 33, + "column": 30 + }, + "end": { + "line": 33, + "column": 34 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "driverProtoKey", + "range": [ + 710, + 724 + ], + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 27 + } + } + }, + "init": null, + "range": [ + 710, + 724 + ], + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 27 + } + } + } + ], + "kind": "let", + "range": [ + 706, + 724 + ], + "loc": { + "start": { + "line": 34, + "column": 9 + }, + "end": { + "line": 34, + "column": 27 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "DBServer", + "range": [ + 728, + 736 + ], + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "DRIVERS", + "range": [ + 737, + 744 + ], + "loc": { + "start": { + "line": 34, + "column": 40 + }, + "end": { + "line": 34, + "column": 47 + } + } + }, + "range": [ + 728, + 744 + ], + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 47 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "DBServer", + "range": [ + 759, + 767 + ], + "loc": { + "start": { + "line": 35, + "column": 11 + }, + "end": { + "line": 35, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "DRIVERS", + "range": [ + 768, + 775 + ], + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 27 + } + } + }, + "range": [ + 759, + 775 + ], + "loc": { + "start": { + "line": 35, + "column": 11 + }, + "end": { + "line": 35, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 776, + 790 + ], + "loc": { + "start": { + "line": 35, + "column": 28 + }, + "end": { + "line": 35, + "column": 42 + } + } + }, + "range": [ + 759, + 790 + ], + "loc": { + "start": { + "line": 35, + "column": 11 + }, + "end": { + "line": 35, + "column": 42 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "driverProtoKey", + "range": [ + 791, + 805 + ], + "loc": { + "start": { + "line": 35, + "column": 43 + }, + "end": { + "line": 35, + "column": 57 + } + } + } + ], + "range": [ + 759, + 806 + ], + "loc": { + "start": { + "line": 35, + "column": 11 + }, + "end": { + "line": 35, + "column": 58 + } + } + }, + "prefix": true, + "range": [ + 758, + 806 + ], + "loc": { + "start": { + "line": 35, + "column": 10 + }, + "end": { + "line": 35, + "column": 58 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 818, + 827 + ], + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 17 + } + } + } + ], + "range": [ + 808, + 835 + ], + "loc": { + "start": { + "line": 35, + "column": 60 + }, + "end": { + "line": 37, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 754, + 835 + ], + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 37, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "driverProto", + "range": [ + 847, + 858 + ], + "loc": { + "start": { + "line": 39, + "column": 10 + }, + "end": { + "line": 39, + "column": 21 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "DBServer", + "range": [ + 861, + 869 + ], + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "DRIVERS", + "range": [ + 870, + 877 + ], + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 40 + } + } + }, + "range": [ + 861, + 877 + ], + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "driverProtoKey", + "range": [ + 878, + 892 + ], + "loc": { + "start": { + "line": 39, + "column": 41 + }, + "end": { + "line": 39, + "column": 55 + } + } + }, + "range": [ + 861, + 893 + ], + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 56 + } + } + }, + "range": [ + 847, + 893 + ], + "loc": { + "start": { + "line": 39, + "column": 10 + }, + "end": { + "line": 39, + "column": 56 + } + } + } + ], + "kind": "let", + "range": [ + 843, + 894 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 57 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "driverProto", + "range": [ + 906, + 917 + ], + "loc": { + "start": { + "line": 41, + "column": 10 + }, + "end": { + "line": 41, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 918, + 922 + ], + "loc": { + "start": { + "line": 41, + "column": 22 + }, + "end": { + "line": 41, + "column": 26 + } + } + }, + "range": [ + 906, + 922 + ], + "loc": { + "start": { + "line": 41, + "column": 10 + }, + "end": { + "line": 41, + "column": 26 + } + } + }, + "right": { + "type": "Identifier", + "name": "name", + "range": [ + 927, + 931 + ], + "loc": { + "start": { + "line": 41, + "column": 31 + }, + "end": { + "line": 41, + "column": 35 + } + } + }, + "range": [ + 906, + 931 + ], + "loc": { + "start": { + "line": 41, + "column": 10 + }, + "end": { + "line": 41, + "column": 35 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "driverProto", + "range": [ + 950, + 961 + ], + "loc": { + "start": { + "line": 42, + "column": 15 + }, + "end": { + "line": 42, + "column": 26 + } + } + }, + "range": [ + 943, + 962 + ], + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 27 + } + } + } + ], + "range": [ + 933, + 970 + ], + "loc": { + "start": { + "line": 41, + "column": 37 + }, + "end": { + "line": 43, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 902, + 970 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 43, + "column": 7 + } + } + } + ], + "range": [ + 746, + 976 + ], + "loc": { + "start": { + "line": 34, + "column": 49 + }, + "end": { + "line": 44, + "column": 5 + } + } + }, + "each": false, + "range": [ + 701, + 976 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 44, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 989, + 993 + ], + "loc": { + "start": { + "line": 46, + "column": 11 + }, + "end": { + "line": 46, + "column": 15 + } + } + }, + "range": [ + 982, + 994 + ], + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 16 + } + } + } + ], + "range": [ + 695, + 998 + ], + "loc": { + "start": { + "line": 33, + "column": 36 + }, + "end": { + "line": 47, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 688, + 998 + ], + "loc": { + "start": { + "line": 33, + "column": 29 + }, + "end": { + "line": 47, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 661, + 998 + ], + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 47, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Function}\n * @private\n ", + "range": [ + 584, + 658 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Function[]}\n ", + "range": [ + 1002, + 1038 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "DRIVERS", + "range": [ + 1052, + 1059 + ], + "loc": { + "start": { + "line": 52, + "column": 13 + }, + "end": { + "line": 52, + "column": 20 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ArrayExpression", + "elements": [ + { + "type": "Identifier", + "name": "LocalDynamo", + "range": [ + 1083, + 1094 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 17 + } + } + }, + { + "type": "Identifier", + "name": "Dynalite", + "range": [ + 1102, + 1110 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 14 + } + } + } + ], + "range": [ + 1075, + 1117 + ], + "loc": { + "start": { + "line": 53, + "column": 11 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + "range": [ + 1068, + 1118 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 56, + "column": 6 + } + } + } + ], + "range": [ + 1062, + 1122 + ], + "loc": { + "start": { + "line": 52, + "column": 23 + }, + "end": { + "line": 57, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1059, + 1122 + ], + "loc": { + "start": { + "line": 52, + "column": 20 + }, + "end": { + "line": 57, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1041, + 1122 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 57, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Function[]}\n ", + "range": [ + 1002, + 1038 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Function}\n ", + "range": [ + 1126, + 1160 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 61, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "DEFAULT_DRIVER", + "range": [ + 1174, + 1188 + ], + "loc": { + "start": { + "line": 62, + "column": 13 + }, + "end": { + "line": 62, + "column": 27 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "DBServer", + "range": [ + 1204, + 1212 + ], + "loc": { + "start": { + "line": 63, + "column": 11 + }, + "end": { + "line": 63, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "DRIVERS", + "range": [ + 1213, + 1220 + ], + "loc": { + "start": { + "line": 63, + "column": 20 + }, + "end": { + "line": 63, + "column": 27 + } + } + }, + "range": [ + 1204, + 1220 + ], + "loc": { + "start": { + "line": 63, + "column": 11 + }, + "end": { + "line": 63, + "column": 27 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1221, + 1222 + ], + "loc": { + "start": { + "line": 63, + "column": 28 + }, + "end": { + "line": 63, + "column": 29 + } + } + }, + "range": [ + 1204, + 1223 + ], + "loc": { + "start": { + "line": 63, + "column": 11 + }, + "end": { + "line": 63, + "column": 30 + } + } + }, + "range": [ + 1197, + 1224 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 31 + } + } + } + ], + "range": [ + 1191, + 1228 + ], + "loc": { + "start": { + "line": 62, + "column": 30 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1188, + 1228 + ], + "loc": { + "start": { + "line": 62, + "column": 27 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1163, + 1228 + ], + "loc": { + "start": { + "line": 62, + "column": 2 + }, + "end": { + "line": 64, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Function}\n ", + "range": [ + 1126, + 1160 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 61, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 178, + 1230 + ], + "loc": { + "start": { + "line": 10, + "column": 22 + }, + "end": { + "line": 65, + "column": 1 + } + } + }, + "range": [ + 163, + 1230 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 65, + "column": 1 + } + }, + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 156, + 1230 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 65, + "column": 1 + } + } + } + ], + "sourceType": "module", + "range": [ + 46, + 1230 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 65, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function|String} driver\n * @param {*} args\n * @returns {Function}\n ", + "range": [ + 182, + 274 + ], + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Function}\n * @private\n ", + "range": [ + 584, + 658 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Function[]}\n ", + "range": [ + 1002, + 1038 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Function}\n ", + "range": [ + 1126, + 1160 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 61, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Local/Driver/AbstractDriver.js.json b/docs-api/deep-db/ast/source/Local/Driver/AbstractDriver.js.json new file mode 100644 index 00000000..1acabd49 --- /dev/null +++ b/docs-api/deep-db/ast/source/Local/Driver/AbstractDriver.js.json @@ -0,0 +1,6744 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "ServerAlreadyRunningException", + "range": [ + 99, + 128 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 37 + } + } + }, + "imported": { + "type": "Identifier", + "name": "ServerAlreadyRunningException", + "range": [ + 99, + 128 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 37 + } + } + }, + "range": [ + 99, + 128 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 37 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/ServerAlreadyRunningException", + "raw": "'./Exception/ServerAlreadyRunningException'", + "range": [ + 135, + 178 + ], + "loc": { + "start": { + "line": 8, + "column": 44 + }, + "end": { + "line": 8, + "column": 87 + } + } + }, + "range": [ + 91, + 179 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 88 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "ServerTtsExceededException", + "range": [ + 188, + 214 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 34 + } + } + }, + "imported": { + "type": "Identifier", + "name": "ServerTtsExceededException", + "range": [ + 188, + 214 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 34 + } + } + }, + "range": [ + 188, + 214 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 34 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/ServerTtsExceededException", + "raw": "'./Exception/ServerTtsExceededException'", + "range": [ + 221, + 261 + ], + "loc": { + "start": { + "line": 9, + "column": 41 + }, + "end": { + "line": 9, + "column": 81 + } + } + }, + "range": [ + 180, + 262 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 82 + } + } + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 277, + 291 + ], + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 11, + "column": 27 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 300, + 304 + ], + "loc": { + "start": { + "line": 11, + "column": 36 + }, + "end": { + "line": 11, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "OOP", + "range": [ + 305, + 308 + ], + "loc": { + "start": { + "line": 11, + "column": 41 + }, + "end": { + "line": 11, + "column": 44 + } + } + }, + "range": [ + 300, + 308 + ], + "loc": { + "start": { + "line": 11, + "column": 36 + }, + "end": { + "line": 11, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "Interface", + "range": [ + 309, + 318 + ], + "loc": { + "start": { + "line": 11, + "column": 45 + }, + "end": { + "line": 11, + "column": 54 + } + } + }, + "range": [ + 300, + 318 + ], + "loc": { + "start": { + "line": 11, + "column": 36 + }, + "end": { + "line": 11, + "column": 54 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 361, + 372 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 15, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "port", + "range": [ + 373, + 377 + ], + "loc": { + "start": { + "line": 15, + "column": 14 + }, + "end": { + "line": 15, + "column": 18 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 380, + 394 + ], + "loc": { + "start": { + "line": 15, + "column": 21 + }, + "end": { + "line": 15, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_PORT", + "range": [ + 395, + 407 + ], + "loc": { + "start": { + "line": 15, + "column": 36 + }, + "end": { + "line": 15, + "column": 48 + } + } + }, + "range": [ + 380, + 407 + ], + "loc": { + "start": { + "line": 15, + "column": 21 + }, + "end": { + "line": 15, + "column": 48 + } + } + }, + "range": [ + 373, + 407 + ], + "loc": { + "start": { + "line": 15, + "column": 14 + }, + "end": { + "line": 15, + "column": 48 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 415, + 420 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "_start", + "raw": "'_start'", + "range": [ + 421, + 429 + ], + "loc": { + "start": { + "line": 16, + "column": 10 + }, + "end": { + "line": 16, + "column": 18 + } + } + }, + { + "type": "Literal", + "value": "_stop", + "raw": "'_stop'", + "range": [ + 431, + 438 + ], + "loc": { + "start": { + "line": 16, + "column": 20 + }, + "end": { + "line": 16, + "column": 27 + } + } + } + ], + "range": [ + 415, + 439 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 28 + } + } + }, + "range": [ + 415, + 440 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 29 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 446, + 450 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_running", + "range": [ + 451, + 459 + ], + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + "range": [ + 446, + 459 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 462, + 467 + ], + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 25 + } + } + }, + "range": [ + 446, + 467 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 25 + } + } + }, + "range": [ + 446, + 468 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 26 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 473, + 477 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_port", + "range": [ + 478, + 483 + ], + "loc": { + "start": { + "line": 19, + "column": 9 + }, + "end": { + "line": 19, + "column": 14 + } + } + }, + "range": [ + 473, + 483 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 14 + } + } + }, + "right": { + "type": "Identifier", + "name": "port", + "range": [ + 486, + 490 + ], + "loc": { + "start": { + "line": 19, + "column": 17 + }, + "end": { + "line": 19, + "column": 21 + } + } + }, + "range": [ + 473, + 490 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 21 + } + } + }, + "range": [ + 473, + 491 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 22 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 496, + 500 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_teardownHook", + "range": [ + 501, + 514 + ], + "loc": { + "start": { + "line": 20, + "column": 9 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + "range": [ + 496, + 514 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 517, + 522 + ], + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 20, + "column": 30 + } + } + }, + "range": [ + 496, + 522 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 30 + } + } + }, + "range": [ + 496, + 523 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 31 + } + } + } + ], + "range": [ + 409, + 527 + ], + "loc": { + "start": { + "line": 15, + "column": 50 + }, + "end": { + "line": 21, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 372, + 527 + ], + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 21, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 361, + 527 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 21, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Number} port\n ", + "range": [ + 323, + 358 + ], + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 14, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 531, + 563 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "port", + "range": [ + 570, + 574 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 590, + 594 + ], + "loc": { + "start": { + "line": 27, + "column": 11 + }, + "end": { + "line": 27, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_port", + "range": [ + 595, + 600 + ], + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 21 + } + } + }, + "range": [ + 590, + 600 + ], + "loc": { + "start": { + "line": 27, + "column": 11 + }, + "end": { + "line": 27, + "column": 21 + } + } + }, + "range": [ + 583, + 601 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 22 + } + } + } + ], + "range": [ + 577, + 605 + ], + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 28, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 574, + 605 + ], + "loc": { + "start": { + "line": 26, + "column": 10 + }, + "end": { + "line": 28, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 566, + 605 + ], + "loc": { + "start": { + "line": 26, + "column": 2 + }, + "end": { + "line": 28, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 531, + 563 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Number} port\n ", + "range": [ + 609, + 644 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "port", + "range": [ + 651, + 655 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "port", + "range": [ + 656, + 660 + ], + "loc": { + "start": { + "line": 33, + "column": 11 + }, + "end": { + "line": 33, + "column": 15 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 668, + 672 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_port", + "range": [ + 673, + 678 + ], + "loc": { + "start": { + "line": 34, + "column": 9 + }, + "end": { + "line": 34, + "column": 14 + } + } + }, + "range": [ + 668, + 678 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 14 + } + } + }, + "right": { + "type": "Identifier", + "name": "port", + "range": [ + 681, + 685 + ], + "loc": { + "start": { + "line": 34, + "column": 17 + }, + "end": { + "line": 34, + "column": 21 + } + } + }, + "range": [ + 668, + 685 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 21 + } + } + }, + "range": [ + 668, + 686 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 22 + } + } + } + ], + "range": [ + 662, + 690 + ], + "loc": { + "start": { + "line": 33, + "column": 17 + }, + "end": { + "line": 35, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 655, + 690 + ], + "loc": { + "start": { + "line": 33, + "column": 10 + }, + "end": { + "line": 35, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 647, + 690 + ], + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 35, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Number} port\n ", + "range": [ + 609, + 644 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 694, + 727 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "running", + "range": [ + 734, + 741 + ], + "loc": { + "start": { + "line": 40, + "column": 6 + }, + "end": { + "line": 40, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 757, + 761 + ], + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_running", + "range": [ + 762, + 770 + ], + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 24 + } + } + }, + "range": [ + 757, + 770 + ], + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 24 + } + } + }, + "range": [ + 750, + 771 + ], + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 25 + } + } + } + ], + "range": [ + 744, + 775 + ], + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 42, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 741, + 775 + ], + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 42, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 730, + 775 + ], + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 42, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 694, + 727 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {AbstractDriver}\n * @private\n ", + "range": [ + 779, + 833 + ], + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_registerTeardownHook", + "range": [ + 836, + 857 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 48, + "column": 23 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 870, + 874 + ], + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 49, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_teardownHook", + "range": [ + 875, + 888 + ], + "loc": { + "start": { + "line": 49, + "column": 13 + }, + "end": { + "line": 49, + "column": 26 + } + } + }, + "range": [ + 870, + 888 + ], + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 49, + "column": 26 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 905, + 909 + ], + "loc": { + "start": { + "line": 50, + "column": 13 + }, + "end": { + "line": 50, + "column": 17 + } + } + }, + "range": [ + 898, + 910 + ], + "loc": { + "start": { + "line": 50, + "column": 6 + }, + "end": { + "line": 50, + "column": 18 + } + } + } + ], + "range": [ + 890, + 916 + ], + "loc": { + "start": { + "line": 49, + "column": 28 + }, + "end": { + "line": 51, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 866, + 916 + ], + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 51, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 922, + 926 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_teardownHook", + "range": [ + 927, + 940 + ], + "loc": { + "start": { + "line": 53, + "column": 9 + }, + "end": { + "line": 53, + "column": 22 + } + } + }, + "range": [ + 922, + 940 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 22 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 943, + 947 + ], + "loc": { + "start": { + "line": 53, + "column": 25 + }, + "end": { + "line": 53, + "column": 29 + } + } + }, + "range": [ + 922, + 947 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 29 + } + } + }, + "range": [ + 922, + 948 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 30 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "process", + "range": [ + 954, + 961 + ], + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 55, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "name": "once", + "range": [ + 962, + 966 + ], + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 16 + } + } + }, + "range": [ + 954, + 966 + ], + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 55, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "uncaughtException", + "raw": "'uncaughtException'", + "range": [ + 967, + 986 + ], + "loc": { + "start": { + "line": 55, + "column": 17 + }, + "end": { + "line": 55, + "column": 36 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 989, + 994 + ], + "loc": { + "start": { + "line": 55, + "column": 39 + }, + "end": { + "line": 55, + "column": 44 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1007, + 1011 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "stop", + "range": [ + 1012, + 1016 + ], + "loc": { + "start": { + "line": 56, + "column": 11 + }, + "end": { + "line": 56, + "column": 15 + } + } + }, + "range": [ + 1007, + 1016 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 1023, + 1025 + ], + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 56, + "column": 24 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 1017, + 1025 + ], + "loc": { + "start": { + "line": 56, + "column": 16 + }, + "end": { + "line": 56, + "column": 24 + } + } + } + ], + "range": [ + 1007, + 1026 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 25 + } + } + }, + "range": [ + 1007, + 1027 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 26 + } + } + }, + { + "type": "ThrowStatement", + "argument": { + "type": "Identifier", + "name": "error", + "range": [ + 1041, + 1046 + ], + "loc": { + "start": { + "line": 58, + "column": 12 + }, + "end": { + "line": 58, + "column": 17 + } + } + }, + "range": [ + 1035, + 1047 + ], + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 18 + } + } + } + ], + "range": [ + 999, + 1053 + ], + "loc": { + "start": { + "line": 55, + "column": 49 + }, + "end": { + "line": 59, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 988, + 1053 + ], + "loc": { + "start": { + "line": 55, + "column": 38 + }, + "end": { + "line": 59, + "column": 5 + } + } + } + ], + "range": [ + 954, + 1054 + ], + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 59, + "column": 6 + } + } + }, + "range": [ + 954, + 1055 + ], + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 59, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "process", + "range": [ + 1061, + 1068 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "name": "once", + "range": [ + 1069, + 1073 + ], + "loc": { + "start": { + "line": 61, + "column": 12 + }, + "end": { + "line": 61, + "column": 16 + } + } + }, + "range": [ + 1061, + 1073 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "exit", + "raw": "'exit'", + "range": [ + 1074, + 1080 + ], + "loc": { + "start": { + "line": 61, + "column": 17 + }, + "end": { + "line": 61, + "column": 23 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1096, + 1100 + ], + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "stop", + "range": [ + 1101, + 1105 + ], + "loc": { + "start": { + "line": 62, + "column": 11 + }, + "end": { + "line": 62, + "column": 15 + } + } + }, + "range": [ + 1096, + 1105 + ], + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 1112, + 1114 + ], + "loc": { + "start": { + "line": 62, + "column": 22 + }, + "end": { + "line": 62, + "column": 24 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 1106, + 1114 + ], + "loc": { + "start": { + "line": 62, + "column": 16 + }, + "end": { + "line": 62, + "column": 24 + } + } + } + ], + "range": [ + 1096, + 1115 + ], + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 25 + } + } + }, + "range": [ + 1096, + 1116 + ], + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 26 + } + } + } + ], + "range": [ + 1088, + 1122 + ], + "loc": { + "start": { + "line": 61, + "column": 31 + }, + "end": { + "line": 63, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1082, + 1122 + ], + "loc": { + "start": { + "line": 61, + "column": 25 + }, + "end": { + "line": 63, + "column": 5 + } + } + } + ], + "range": [ + 1061, + 1123 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 63, + "column": 6 + } + } + }, + "range": [ + 1061, + 1124 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 63, + "column": 7 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 1137, + 1141 + ], + "loc": { + "start": { + "line": 65, + "column": 11 + }, + "end": { + "line": 65, + "column": 15 + } + } + }, + "range": [ + 1130, + 1142 + ], + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 65, + "column": 16 + } + } + } + ], + "range": [ + 860, + 1146 + ], + "loc": { + "start": { + "line": 48, + "column": 26 + }, + "end": { + "line": 66, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 857, + 1146 + ], + "loc": { + "start": { + "line": 48, + "column": 23 + }, + "end": { + "line": 66, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 836, + 1146 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 66, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {AbstractDriver}\n * @private\n ", + "range": [ + 779, + 833 + ], + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @todo: better way to control the timeout of server startup...\n *\n * @param {Number} tts\n * @param {Function} cb\n * @private\n ", + "range": [ + 1150, + 1296 + ], + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_triggerOnTtsExpired", + "range": [ + 1299, + 1319 + ], + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 75, + "column": 22 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "tts", + "range": [ + 1320, + 1323 + ], + "loc": { + "start": { + "line": 75, + "column": 23 + }, + "end": { + "line": 75, + "column": 26 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 1325, + 1327 + ], + "loc": { + "start": { + "line": 75, + "column": 28 + }, + "end": { + "line": 75, + "column": 30 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "setTimeout", + "range": [ + 1335, + 1345 + ], + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1365, + 1369 + ], + "loc": { + "start": { + "line": 77, + "column": 11 + }, + "end": { + "line": 77, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_running", + "range": [ + 1370, + 1378 + ], + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 24 + } + } + }, + "range": [ + 1365, + 1378 + ], + "loc": { + "start": { + "line": 77, + "column": 11 + }, + "end": { + "line": 77, + "column": 24 + } + } + }, + "prefix": true, + "range": [ + 1364, + 1378 + ], + "loc": { + "start": { + "line": 77, + "column": 10 + }, + "end": { + "line": 77, + "column": 24 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 1390, + 1392 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 10 + } + } + }, + "arguments": [], + "range": [ + 1390, + 1394 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 12 + } + } + }, + "range": [ + 1390, + 1395 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 13 + } + } + } + ], + "range": [ + 1380, + 1403 + ], + "loc": { + "start": { + "line": 77, + "column": 26 + }, + "end": { + "line": 79, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1360, + 1403 + ], + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 79, + "column": 7 + } + } + } + ], + "range": [ + 1352, + 1409 + ], + "loc": { + "start": { + "line": 76, + "column": 21 + }, + "end": { + "line": 80, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1346, + 1409 + ], + "loc": { + "start": { + "line": 76, + "column": 15 + }, + "end": { + "line": 80, + "column": 5 + } + } + }, + { + "type": "BinaryExpression", + "operator": "*", + "left": { + "type": "Identifier", + "name": "tts", + "range": [ + 1411, + 1414 + ], + "loc": { + "start": { + "line": 80, + "column": 7 + }, + "end": { + "line": 80, + "column": 10 + } + } + }, + "right": { + "type": "Literal", + "value": 1000, + "raw": "1000", + "range": [ + 1417, + 1421 + ], + "loc": { + "start": { + "line": 80, + "column": 13 + }, + "end": { + "line": 80, + "column": 17 + } + } + }, + "range": [ + 1411, + 1421 + ], + "loc": { + "start": { + "line": 80, + "column": 7 + }, + "end": { + "line": 80, + "column": 17 + } + } + } + ], + "range": [ + 1335, + 1422 + ], + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 80, + "column": 18 + } + } + }, + "range": [ + 1335, + 1423 + ], + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 80, + "column": 19 + } + } + } + ], + "range": [ + 1329, + 1427 + ], + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1319, + 1427 + ], + "loc": { + "start": { + "line": 75, + "column": 22 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1299, + 1427 + ], + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 81, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @todo: better way to control the timeout of server startup...\n *\n * @param {Number} tts\n * @param {Function} cb\n * @private\n ", + "range": [ + 1150, + 1296 + ], + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @param {Number} tts\n * @returns {AbstractDriver}\n ", + "range": [ + 1431, + 1522 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 87, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "start", + "range": [ + 1525, + 1530 + ], + "loc": { + "start": { + "line": 88, + "column": 2 + }, + "end": { + "line": 88, + "column": 7 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 1531, + 1533 + ], + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 88, + "column": 10 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "tts", + "range": [ + 1535, + 1538 + ], + "loc": { + "start": { + "line": 88, + "column": 12 + }, + "end": { + "line": 88, + "column": 15 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 1541, + 1555 + ], + "loc": { + "start": { + "line": 88, + "column": 18 + }, + "end": { + "line": 88, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_TTS", + "range": [ + 1556, + 1567 + ], + "loc": { + "start": { + "line": 88, + "column": 33 + }, + "end": { + "line": 88, + "column": 44 + } + } + }, + "range": [ + 1541, + 1567 + ], + "loc": { + "start": { + "line": 88, + "column": 18 + }, + "end": { + "line": 88, + "column": 44 + } + } + }, + "range": [ + 1535, + 1567 + ], + "loc": { + "start": { + "line": 88, + "column": 12 + }, + "end": { + "line": 88, + "column": 44 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1579, + 1583 + ], + "loc": { + "start": { + "line": 89, + "column": 8 + }, + "end": { + "line": 89, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_running", + "range": [ + 1584, + 1592 + ], + "loc": { + "start": { + "line": 89, + "column": 13 + }, + "end": { + "line": 89, + "column": 21 + } + } + }, + "range": [ + 1579, + 1592 + ], + "loc": { + "start": { + "line": 89, + "column": 8 + }, + "end": { + "line": 89, + "column": 21 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 1602, + 1604 + ], + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 8 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "ServerAlreadyRunningException", + "range": [ + 1609, + 1638 + ], + "loc": { + "start": { + "line": 90, + "column": 13 + }, + "end": { + "line": 90, + "column": 42 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 1639, + 1643 + ], + "loc": { + "start": { + "line": 90, + "column": 43 + }, + "end": { + "line": 90, + "column": 47 + } + } + } + ], + "range": [ + 1605, + 1644 + ], + "loc": { + "start": { + "line": 90, + "column": 9 + }, + "end": { + "line": 90, + "column": 48 + } + } + } + ], + "range": [ + 1602, + 1645 + ], + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 49 + } + } + }, + "range": [ + 1602, + 1646 + ], + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 50 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 1661, + 1665 + ], + "loc": { + "start": { + "line": 92, + "column": 13 + }, + "end": { + "line": 92, + "column": 17 + } + } + }, + "range": [ + 1654, + 1666 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 18 + } + } + } + ], + "range": [ + 1594, + 1672 + ], + "loc": { + "start": { + "line": 89, + "column": 23 + }, + "end": { + "line": 93, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1575, + 1672 + ], + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 93, + "column": 5 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "_cbTriggered", + "range": [ + 1682, + 1694 + ], + "loc": { + "start": { + "line": 95, + "column": 8 + }, + "end": { + "line": 95, + "column": 20 + } + } + }, + "init": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 1697, + 1702 + ], + "loc": { + "start": { + "line": 95, + "column": 23 + }, + "end": { + "line": 95, + "column": 28 + } + } + }, + "range": [ + 1682, + 1702 + ], + "loc": { + "start": { + "line": 95, + "column": 8 + }, + "end": { + "line": 95, + "column": 28 + } + } + } + ], + "kind": "let", + "range": [ + 1678, + 1703 + ], + "loc": { + "start": { + "line": 95, + "column": 4 + }, + "end": { + "line": 95, + "column": 29 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1709, + 1713 + ], + "loc": { + "start": { + "line": 97, + "column": 4 + }, + "end": { + "line": 97, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_start", + "range": [ + 1714, + 1720 + ], + "loc": { + "start": { + "line": 97, + "column": 9 + }, + "end": { + "line": 97, + "column": 15 + } + } + }, + "range": [ + 1709, + 1720 + ], + "loc": { + "start": { + "line": 97, + "column": 4 + }, + "end": { + "line": 97, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 1722, + 1727 + ], + "loc": { + "start": { + "line": 97, + "column": 17 + }, + "end": { + "line": 97, + "column": 22 + } + } + }, + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 1732, + 1736 + ], + "loc": { + "start": { + "line": 97, + "column": 27 + }, + "end": { + "line": 97, + "column": 31 + } + } + }, + "range": [ + 1729, + 1736 + ], + "loc": { + "start": { + "line": 97, + "column": 24 + }, + "end": { + "line": 97, + "column": 31 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "_cbTriggered", + "range": [ + 1749, + 1761 + ], + "loc": { + "start": { + "line": 98, + "column": 6 + }, + "end": { + "line": 98, + "column": 18 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1764, + 1768 + ], + "loc": { + "start": { + "line": 98, + "column": 21 + }, + "end": { + "line": 98, + "column": 25 + } + } + }, + "range": [ + 1749, + 1768 + ], + "loc": { + "start": { + "line": 98, + "column": 6 + }, + "end": { + "line": 98, + "column": 25 + } + } + }, + "range": [ + 1749, + 1769 + ], + "loc": { + "start": { + "line": 98, + "column": 6 + }, + "end": { + "line": 98, + "column": 26 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "error", + "range": [ + 1782, + 1787 + ], + "loc": { + "start": { + "line": 100, + "column": 11 + }, + "end": { + "line": 100, + "column": 16 + } + } + }, + "prefix": true, + "range": [ + 1781, + 1787 + ], + "loc": { + "start": { + "line": 100, + "column": 10 + }, + "end": { + "line": 100, + "column": 16 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1799, + 1803 + ], + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 101, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_running", + "range": [ + 1804, + 1812 + ], + "loc": { + "start": { + "line": 101, + "column": 13 + }, + "end": { + "line": 101, + "column": 21 + } + } + }, + "range": [ + 1799, + 1812 + ], + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 101, + "column": 21 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1815, + 1819 + ], + "loc": { + "start": { + "line": 101, + "column": 24 + }, + "end": { + "line": 101, + "column": 28 + } + } + }, + "range": [ + 1799, + 1819 + ], + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 101, + "column": 28 + } + } + }, + "range": [ + 1799, + 1820 + ], + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 101, + "column": 29 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1829, + 1833 + ], + "loc": { + "start": { + "line": 102, + "column": 8 + }, + "end": { + "line": 102, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_registerTeardownHook", + "range": [ + 1834, + 1855 + ], + "loc": { + "start": { + "line": 102, + "column": 13 + }, + "end": { + "line": 102, + "column": 34 + } + } + }, + "range": [ + 1829, + 1855 + ], + "loc": { + "start": { + "line": 102, + "column": 8 + }, + "end": { + "line": 102, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 1829, + 1857 + ], + "loc": { + "start": { + "line": 102, + "column": 8 + }, + "end": { + "line": 102, + "column": 36 + } + } + }, + "range": [ + 1829, + 1858 + ], + "loc": { + "start": { + "line": 102, + "column": 8 + }, + "end": { + "line": 102, + "column": 37 + } + } + } + ], + "range": [ + 1789, + 1866 + ], + "loc": { + "start": { + "line": 100, + "column": 18 + }, + "end": { + "line": 103, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1777, + 1866 + ], + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 103, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 1874, + 1876 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 8 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 1877, + 1882 + ], + "loc": { + "start": { + "line": 105, + "column": 9 + }, + "end": { + "line": 105, + "column": 14 + } + } + }, + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 1887, + 1891 + ], + "loc": { + "start": { + "line": 105, + "column": 19 + }, + "end": { + "line": 105, + "column": 23 + } + } + }, + "range": [ + 1884, + 1891 + ], + "loc": { + "start": { + "line": 105, + "column": 16 + }, + "end": { + "line": 105, + "column": 23 + } + } + } + ], + "range": [ + 1874, + 1892 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 24 + } + } + }, + "range": [ + 1874, + 1893 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 25 + } + } + } + ], + "range": [ + 1741, + 1899 + ], + "loc": { + "start": { + "line": 97, + "column": 36 + }, + "end": { + "line": 106, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1721, + 1899 + ], + "loc": { + "start": { + "line": 97, + "column": 16 + }, + "end": { + "line": 106, + "column": 5 + } + } + } + ], + "range": [ + 1709, + 1900 + ], + "loc": { + "start": { + "line": 97, + "column": 4 + }, + "end": { + "line": 106, + "column": 6 + } + } + }, + "range": [ + 1709, + 1901 + ], + "loc": { + "start": { + "line": 97, + "column": 4 + }, + "end": { + "line": 106, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1907, + 1911 + ], + "loc": { + "start": { + "line": 108, + "column": 4 + }, + "end": { + "line": 108, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_triggerOnTtsExpired", + "range": [ + 1912, + 1932 + ], + "loc": { + "start": { + "line": 108, + "column": 9 + }, + "end": { + "line": 108, + "column": 29 + } + } + }, + "range": [ + 1907, + 1932 + ], + "loc": { + "start": { + "line": 108, + "column": 4 + }, + "end": { + "line": 108, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "tts", + "range": [ + 1933, + 1936 + ], + "loc": { + "start": { + "line": 108, + "column": 30 + }, + "end": { + "line": 108, + "column": 33 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "_cbTriggered", + "range": [ + 1957, + 1969 + ], + "loc": { + "start": { + "line": 109, + "column": 11 + }, + "end": { + "line": 109, + "column": 23 + } + } + }, + "prefix": true, + "range": [ + 1956, + 1969 + ], + "loc": { + "start": { + "line": 109, + "column": 10 + }, + "end": { + "line": 109, + "column": 23 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "_cbTriggered", + "range": [ + 1981, + 1993 + ], + "loc": { + "start": { + "line": 110, + "column": 8 + }, + "end": { + "line": 110, + "column": 20 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1996, + 2000 + ], + "loc": { + "start": { + "line": 110, + "column": 23 + }, + "end": { + "line": 110, + "column": 27 + } + } + }, + "range": [ + 1981, + 2000 + ], + "loc": { + "start": { + "line": 110, + "column": 8 + }, + "end": { + "line": 110, + "column": 27 + } + } + }, + "range": [ + 1981, + 2001 + ], + "loc": { + "start": { + "line": 110, + "column": 8 + }, + "end": { + "line": 110, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 2011, + 2013 + ], + "loc": { + "start": { + "line": 112, + "column": 8 + }, + "end": { + "line": 112, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "ServerTtsExceededException", + "range": [ + 2018, + 2044 + ], + "loc": { + "start": { + "line": 112, + "column": 15 + }, + "end": { + "line": 112, + "column": 41 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 2045, + 2049 + ], + "loc": { + "start": { + "line": 112, + "column": 42 + }, + "end": { + "line": 112, + "column": 46 + } + } + }, + { + "type": "Identifier", + "name": "tts", + "range": [ + 2051, + 2054 + ], + "loc": { + "start": { + "line": 112, + "column": 48 + }, + "end": { + "line": 112, + "column": 51 + } + } + } + ], + "range": [ + 2014, + 2055 + ], + "loc": { + "start": { + "line": 112, + "column": 11 + }, + "end": { + "line": 112, + "column": 52 + } + } + } + ], + "range": [ + 2011, + 2056 + ], + "loc": { + "start": { + "line": 112, + "column": 8 + }, + "end": { + "line": 112, + "column": 53 + } + } + }, + "range": [ + 2011, + 2057 + ], + "loc": { + "start": { + "line": 112, + "column": 8 + }, + "end": { + "line": 112, + "column": 54 + } + } + } + ], + "range": [ + 1971, + 2065 + ], + "loc": { + "start": { + "line": 109, + "column": 25 + }, + "end": { + "line": 113, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1952, + 2065 + ], + "loc": { + "start": { + "line": 109, + "column": 6 + }, + "end": { + "line": 113, + "column": 7 + } + } + } + ], + "range": [ + 1944, + 2071 + ], + "loc": { + "start": { + "line": 108, + "column": 41 + }, + "end": { + "line": 114, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1938, + 2071 + ], + "loc": { + "start": { + "line": 108, + "column": 35 + }, + "end": { + "line": 114, + "column": 5 + } + } + } + ], + "range": [ + 1907, + 2072 + ], + "loc": { + "start": { + "line": 108, + "column": 4 + }, + "end": { + "line": 114, + "column": 6 + } + } + }, + "range": [ + 1907, + 2073 + ], + "loc": { + "start": { + "line": 108, + "column": 4 + }, + "end": { + "line": 114, + "column": 7 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 2086, + 2090 + ], + "loc": { + "start": { + "line": 116, + "column": 11 + }, + "end": { + "line": 116, + "column": 15 + } + } + }, + "range": [ + 2079, + 2091 + ], + "loc": { + "start": { + "line": 116, + "column": 4 + }, + "end": { + "line": 116, + "column": 16 + } + } + } + ], + "range": [ + 1569, + 2095 + ], + "loc": { + "start": { + "line": 88, + "column": 46 + }, + "end": { + "line": 117, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1530, + 2095 + ], + "loc": { + "start": { + "line": 88, + "column": 7 + }, + "end": { + "line": 117, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1525, + 2095 + ], + "loc": { + "start": { + "line": 88, + "column": 2 + }, + "end": { + "line": 117, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @param {Number} tts\n * @returns {AbstractDriver}\n ", + "range": [ + 1431, + 1522 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 87, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @returns {AbstractDriver}\n ", + "range": [ + 2099, + 2165 + ], + "loc": { + "start": { + "line": 119, + "column": 2 + }, + "end": { + "line": 122, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "stop", + "range": [ + 2168, + 2172 + ], + "loc": { + "start": { + "line": 123, + "column": 2 + }, + "end": { + "line": 123, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 2173, + 2175 + ], + "loc": { + "start": { + "line": 123, + "column": 7 + }, + "end": { + "line": 123, + "column": 9 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2188, + 2192 + ], + "loc": { + "start": { + "line": 124, + "column": 9 + }, + "end": { + "line": 124, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "_running", + "range": [ + 2193, + 2201 + ], + "loc": { + "start": { + "line": 124, + "column": 14 + }, + "end": { + "line": 124, + "column": 22 + } + } + }, + "range": [ + 2188, + 2201 + ], + "loc": { + "start": { + "line": 124, + "column": 9 + }, + "end": { + "line": 124, + "column": 22 + } + } + }, + "prefix": true, + "range": [ + 2187, + 2201 + ], + "loc": { + "start": { + "line": 124, + "column": 8 + }, + "end": { + "line": 124, + "column": 22 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 2211, + 2213 + ], + "loc": { + "start": { + "line": 125, + "column": 6 + }, + "end": { + "line": 125, + "column": 8 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 2214, + 2218 + ], + "loc": { + "start": { + "line": 125, + "column": 9 + }, + "end": { + "line": 125, + "column": 13 + } + } + } + ], + "range": [ + 2211, + 2219 + ], + "loc": { + "start": { + "line": 125, + "column": 6 + }, + "end": { + "line": 125, + "column": 14 + } + } + }, + "range": [ + 2211, + 2220 + ], + "loc": { + "start": { + "line": 125, + "column": 6 + }, + "end": { + "line": 125, + "column": 15 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 2235, + 2239 + ], + "loc": { + "start": { + "line": 127, + "column": 13 + }, + "end": { + "line": 127, + "column": 17 + } + } + }, + "range": [ + 2228, + 2240 + ], + "loc": { + "start": { + "line": 127, + "column": 6 + }, + "end": { + "line": 127, + "column": 18 + } + } + } + ], + "range": [ + 2203, + 2246 + ], + "loc": { + "start": { + "line": 124, + "column": 24 + }, + "end": { + "line": 128, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 2183, + 2246 + ], + "loc": { + "start": { + "line": 124, + "column": 4 + }, + "end": { + "line": 128, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2252, + 2256 + ], + "loc": { + "start": { + "line": 130, + "column": 4 + }, + "end": { + "line": 130, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_stop", + "range": [ + 2257, + 2262 + ], + "loc": { + "start": { + "line": 130, + "column": 9 + }, + "end": { + "line": 130, + "column": 14 + } + } + }, + "range": [ + 2252, + 2262 + ], + "loc": { + "start": { + "line": 130, + "column": 4 + }, + "end": { + "line": 130, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 2264, + 2269 + ], + "loc": { + "start": { + "line": 130, + "column": 16 + }, + "end": { + "line": 130, + "column": 21 + } + } + }, + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 2274, + 2278 + ], + "loc": { + "start": { + "line": 130, + "column": 26 + }, + "end": { + "line": 130, + "column": 30 + } + } + }, + "range": [ + 2271, + 2278 + ], + "loc": { + "start": { + "line": 130, + "column": 23 + }, + "end": { + "line": 130, + "column": 30 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "error", + "range": [ + 2296, + 2301 + ], + "loc": { + "start": { + "line": 131, + "column": 11 + }, + "end": { + "line": 131, + "column": 16 + } + } + }, + "prefix": true, + "range": [ + 2295, + 2301 + ], + "loc": { + "start": { + "line": 131, + "column": 10 + }, + "end": { + "line": 131, + "column": 16 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2313, + 2317 + ], + "loc": { + "start": { + "line": 132, + "column": 8 + }, + "end": { + "line": 132, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_running", + "range": [ + 2318, + 2326 + ], + "loc": { + "start": { + "line": 132, + "column": 13 + }, + "end": { + "line": 132, + "column": 21 + } + } + }, + "range": [ + 2313, + 2326 + ], + "loc": { + "start": { + "line": 132, + "column": 8 + }, + "end": { + "line": 132, + "column": 21 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 2329, + 2334 + ], + "loc": { + "start": { + "line": 132, + "column": 24 + }, + "end": { + "line": 132, + "column": 29 + } + } + }, + "range": [ + 2313, + 2334 + ], + "loc": { + "start": { + "line": 132, + "column": 8 + }, + "end": { + "line": 132, + "column": 29 + } + } + }, + "range": [ + 2313, + 2335 + ], + "loc": { + "start": { + "line": 132, + "column": 8 + }, + "end": { + "line": 132, + "column": 30 + } + } + } + ], + "range": [ + 2303, + 2343 + ], + "loc": { + "start": { + "line": 131, + "column": 18 + }, + "end": { + "line": 133, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 2291, + 2343 + ], + "loc": { + "start": { + "line": 131, + "column": 6 + }, + "end": { + "line": 133, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 2351, + 2353 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 8 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 2354, + 2359 + ], + "loc": { + "start": { + "line": 135, + "column": 9 + }, + "end": { + "line": 135, + "column": 14 + } + } + }, + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 2364, + 2368 + ], + "loc": { + "start": { + "line": 135, + "column": 19 + }, + "end": { + "line": 135, + "column": 23 + } + } + }, + "range": [ + 2361, + 2368 + ], + "loc": { + "start": { + "line": 135, + "column": 16 + }, + "end": { + "line": 135, + "column": 23 + } + } + } + ], + "range": [ + 2351, + 2369 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 24 + } + } + }, + "range": [ + 2351, + 2370 + ], + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 25 + } + } + } + ], + "range": [ + 2283, + 2376 + ], + "loc": { + "start": { + "line": 130, + "column": 35 + }, + "end": { + "line": 136, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2263, + 2376 + ], + "loc": { + "start": { + "line": 130, + "column": 15 + }, + "end": { + "line": 136, + "column": 5 + } + } + } + ], + "range": [ + 2252, + 2377 + ], + "loc": { + "start": { + "line": 130, + "column": 4 + }, + "end": { + "line": 136, + "column": 6 + } + } + }, + "range": [ + 2252, + 2378 + ], + "loc": { + "start": { + "line": 130, + "column": 4 + }, + "end": { + "line": 136, + "column": 7 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 2391, + 2395 + ], + "loc": { + "start": { + "line": 138, + "column": 11 + }, + "end": { + "line": 138, + "column": 15 + } + } + }, + "range": [ + 2384, + 2396 + ], + "loc": { + "start": { + "line": 138, + "column": 4 + }, + "end": { + "line": 138, + "column": 16 + } + } + } + ], + "range": [ + 2177, + 2400 + ], + "loc": { + "start": { + "line": 123, + "column": 11 + }, + "end": { + "line": 139, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2172, + 2400 + ], + "loc": { + "start": { + "line": 123, + "column": 6 + }, + "end": { + "line": 139, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2168, + 2400 + ], + "loc": { + "start": { + "line": 123, + "column": 2 + }, + "end": { + "line": 139, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @returns {AbstractDriver}\n ", + "range": [ + 2099, + 2165 + ], + "loc": { + "start": { + "line": 119, + "column": 2 + }, + "end": { + "line": 122, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @returns {AbstractDriver}\n ", + "range": [ + 2404, + 2470 + ], + "loc": { + "start": { + "line": 141, + "column": 2 + }, + "end": { + "line": 144, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "restart", + "range": [ + 2473, + 2480 + ], + "loc": { + "start": { + "line": 145, + "column": 2 + }, + "end": { + "line": 145, + "column": 9 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 2481, + 2483 + ], + "loc": { + "start": { + "line": 145, + "column": 10 + }, + "end": { + "line": 145, + "column": 12 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2491, + 2495 + ], + "loc": { + "start": { + "line": 146, + "column": 4 + }, + "end": { + "line": 146, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "stop", + "range": [ + 2496, + 2500 + ], + "loc": { + "start": { + "line": 146, + "column": 9 + }, + "end": { + "line": 146, + "column": 13 + } + } + }, + "range": [ + 2491, + 2500 + ], + "loc": { + "start": { + "line": 146, + "column": 4 + }, + "end": { + "line": 146, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 2502, + 2507 + ], + "loc": { + "start": { + "line": 146, + "column": 15 + }, + "end": { + "line": 146, + "column": 20 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "error", + "range": [ + 2524, + 2529 + ], + "loc": { + "start": { + "line": 147, + "column": 10 + }, + "end": { + "line": 147, + "column": 15 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 2541, + 2543 + ], + "loc": { + "start": { + "line": 148, + "column": 8 + }, + "end": { + "line": 148, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 2544, + 2549 + ], + "loc": { + "start": { + "line": 148, + "column": 11 + }, + "end": { + "line": 148, + "column": 16 + } + } + } + ], + "range": [ + 2541, + 2550 + ], + "loc": { + "start": { + "line": 148, + "column": 8 + }, + "end": { + "line": 148, + "column": 17 + } + } + }, + "range": [ + 2541, + 2551 + ], + "loc": { + "start": { + "line": 148, + "column": 8 + }, + "end": { + "line": 148, + "column": 18 + } + } + }, + { + "type": "ReturnStatement", + "argument": null, + "range": [ + 2561, + 2568 + ], + "loc": { + "start": { + "line": 150, + "column": 8 + }, + "end": { + "line": 150, + "column": 15 + } + } + } + ], + "range": [ + 2531, + 2576 + ], + "loc": { + "start": { + "line": 147, + "column": 17 + }, + "end": { + "line": 151, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 2520, + 2576 + ], + "loc": { + "start": { + "line": 147, + "column": 6 + }, + "end": { + "line": 151, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2584, + 2588 + ], + "loc": { + "start": { + "line": 153, + "column": 6 + }, + "end": { + "line": 153, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "start", + "range": [ + 2589, + 2594 + ], + "loc": { + "start": { + "line": 153, + "column": 11 + }, + "end": { + "line": 153, + "column": 16 + } + } + }, + "range": [ + 2584, + 2594 + ], + "loc": { + "start": { + "line": 153, + "column": 6 + }, + "end": { + "line": 153, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 2595, + 2597 + ], + "loc": { + "start": { + "line": 153, + "column": 17 + }, + "end": { + "line": 153, + "column": 19 + } + } + } + ], + "range": [ + 2584, + 2598 + ], + "loc": { + "start": { + "line": 153, + "column": 6 + }, + "end": { + "line": 153, + "column": 20 + } + } + }, + "range": [ + 2584, + 2599 + ], + "loc": { + "start": { + "line": 153, + "column": 6 + }, + "end": { + "line": 153, + "column": 21 + } + } + } + ], + "range": [ + 2512, + 2605 + ], + "loc": { + "start": { + "line": 146, + "column": 25 + }, + "end": { + "line": 154, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2501, + 2605 + ], + "loc": { + "start": { + "line": 146, + "column": 14 + }, + "end": { + "line": 154, + "column": 5 + } + } + } + ], + "range": [ + 2491, + 2606 + ], + "loc": { + "start": { + "line": 146, + "column": 4 + }, + "end": { + "line": 154, + "column": 6 + } + } + }, + "range": [ + 2491, + 2607 + ], + "loc": { + "start": { + "line": 146, + "column": 4 + }, + "end": { + "line": 154, + "column": 7 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 2620, + 2624 + ], + "loc": { + "start": { + "line": 156, + "column": 11 + }, + "end": { + "line": 156, + "column": 15 + } + } + }, + "range": [ + 2613, + 2625 + ], + "loc": { + "start": { + "line": 156, + "column": 4 + }, + "end": { + "line": 156, + "column": 16 + } + } + } + ], + "range": [ + 2485, + 2629 + ], + "loc": { + "start": { + "line": 145, + "column": 14 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2480, + 2629 + ], + "loc": { + "start": { + "line": 145, + "column": 9 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2473, + 2629 + ], + "loc": { + "start": { + "line": 145, + "column": 2 + }, + "end": { + "line": 157, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @returns {AbstractDriver}\n ", + "range": [ + 2404, + 2470 + ], + "loc": { + "start": { + "line": 141, + "column": 2 + }, + "end": { + "line": 144, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 2633, + 2665 + ], + "loc": { + "start": { + "line": 159, + "column": 2 + }, + "end": { + "line": 161, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "DEFAULT_TTS", + "range": [ + 2679, + 2690 + ], + "loc": { + "start": { + "line": 162, + "column": 13 + }, + "end": { + "line": 162, + "column": 24 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": 10, + "raw": "10", + "range": [ + 2706, + 2708 + ], + "loc": { + "start": { + "line": 163, + "column": 11 + }, + "end": { + "line": 163, + "column": 13 + } + } + }, + "range": [ + 2699, + 2709 + ], + "loc": { + "start": { + "line": 163, + "column": 4 + }, + "end": { + "line": 163, + "column": 14 + } + } + } + ], + "range": [ + 2693, + 2713 + ], + "loc": { + "start": { + "line": 162, + "column": 27 + }, + "end": { + "line": 164, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2690, + 2713 + ], + "loc": { + "start": { + "line": 162, + "column": 24 + }, + "end": { + "line": 164, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2668, + 2713 + ], + "loc": { + "start": { + "line": 162, + "column": 2 + }, + "end": { + "line": 164, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 2633, + 2665 + ], + "loc": { + "start": { + "line": 159, + "column": 2 + }, + "end": { + "line": 161, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 2717, + 2749 + ], + "loc": { + "start": { + "line": 166, + "column": 2 + }, + "end": { + "line": 168, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "DEFAULT_PORT", + "range": [ + 2763, + 2775 + ], + "loc": { + "start": { + "line": 169, + "column": 13 + }, + "end": { + "line": 169, + "column": 25 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": 8877, + "raw": "8877", + "range": [ + 2791, + 2795 + ], + "loc": { + "start": { + "line": 170, + "column": 11 + }, + "end": { + "line": 170, + "column": 15 + } + } + }, + "range": [ + 2784, + 2796 + ], + "loc": { + "start": { + "line": 170, + "column": 4 + }, + "end": { + "line": 170, + "column": 16 + } + } + } + ], + "range": [ + 2778, + 2800 + ], + "loc": { + "start": { + "line": 169, + "column": 28 + }, + "end": { + "line": 171, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2775, + 2800 + ], + "loc": { + "start": { + "line": 169, + "column": 25 + }, + "end": { + "line": 171, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2752, + 2800 + ], + "loc": { + "start": { + "line": 169, + "column": 2 + }, + "end": { + "line": 171, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 2717, + 2749 + ], + "loc": { + "start": { + "line": 166, + "column": 2 + }, + "end": { + "line": 168, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 319, + 2802 + ], + "loc": { + "start": { + "line": 11, + "column": 55 + }, + "end": { + "line": 172, + "column": 1 + } + } + }, + "range": [ + 271, + 2802 + ], + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 172, + "column": 1 + } + }, + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 264, + 2802 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 172, + "column": 1 + } + } + } + ], + "sourceType": "module", + "range": [ + 46, + 2802 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 172, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Number} port\n ", + "range": [ + 323, + 358 + ], + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 14, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 531, + 563 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Number} port\n ", + "range": [ + 609, + 644 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 694, + 727 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {AbstractDriver}\n * @private\n ", + "range": [ + 779, + 833 + ], + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @todo: better way to control the timeout of server startup...\n *\n * @param {Number} tts\n * @param {Function} cb\n * @private\n ", + "range": [ + 1150, + 1296 + ], + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @param {Number} tts\n * @returns {AbstractDriver}\n ", + "range": [ + 1431, + 1522 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 87, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @returns {AbstractDriver}\n ", + "range": [ + 2099, + 2165 + ], + "loc": { + "start": { + "line": 119, + "column": 2 + }, + "end": { + "line": 122, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @returns {AbstractDriver}\n ", + "range": [ + 2404, + 2470 + ], + "loc": { + "start": { + "line": 141, + "column": 2 + }, + "end": { + "line": 144, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 2633, + 2665 + ], + "loc": { + "start": { + "line": 159, + "column": 2 + }, + "end": { + "line": 161, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 2717, + 2749 + ], + "loc": { + "start": { + "line": 166, + "column": 2 + }, + "end": { + "line": 168, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Local/Driver/Dynalite.js.json b/docs-api/deep-db/ast/source/Local/Driver/Dynalite.js.json new file mode 100644 index 00000000..c8dda7c5 --- /dev/null +++ b/docs-api/deep-db/ast/source/Local/Driver/Dynalite.js.json @@ -0,0 +1,3287 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "PathAwareDriver", + "range": [ + 69, + 84 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 23 + } + } + }, + "imported": { + "type": "Identifier", + "name": "PathAwareDriver", + "range": [ + 69, + 84 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 23 + } + } + }, + "range": [ + 69, + 84 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 23 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./PathAwareDriver", + "raw": "'./PathAwareDriver'", + "range": [ + 91, + 110 + ], + "loc": { + "start": { + "line": 7, + "column": 30 + }, + "end": { + "line": 7, + "column": 49 + } + } + }, + "range": [ + 61, + 111 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 50 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "DynaliteServer", + "range": [ + 119, + 133 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 21 + } + } + }, + "range": [ + 119, + 133 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 21 + } + } + } + ], + "source": { + "type": "Literal", + "value": "dynalite", + "raw": "'dynalite'", + "range": [ + 139, + 149 + ], + "loc": { + "start": { + "line": 8, + "column": 27 + }, + "end": { + "line": 8, + "column": 37 + } + } + }, + "range": [ + 112, + 150 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 38 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "FailedToStartServerException", + "range": [ + 159, + 187 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 36 + } + } + }, + "imported": { + "type": "Identifier", + "name": "FailedToStartServerException", + "range": [ + 159, + 187 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 36 + } + } + }, + "range": [ + 159, + 187 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 36 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/FailedToStartServerException", + "raw": "'./Exception/FailedToStartServerException'", + "range": [ + 194, + 236 + ], + "loc": { + "start": { + "line": 9, + "column": 43 + }, + "end": { + "line": 9, + "column": 85 + } + } + }, + "range": [ + 151, + 237 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 86 + } + } + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Dynalite", + "range": [ + 252, + 260 + ], + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 11, + "column": 21 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "PathAwareDriver", + "range": [ + 269, + 284 + ], + "loc": { + "start": { + "line": 11, + "column": 30 + }, + "end": { + "line": 11, + "column": 45 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 382, + 393 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "options", + "range": [ + 394, + 401 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 21 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Dynalite", + "range": [ + 404, + 412 + ], + "loc": { + "start": { + "line": 17, + "column": 24 + }, + "end": { + "line": 17, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_OPTIONS", + "range": [ + 413, + 428 + ], + "loc": { + "start": { + "line": 17, + "column": 33 + }, + "end": { + "line": 17, + "column": 48 + } + } + }, + "range": [ + 404, + 428 + ], + "loc": { + "start": { + "line": 17, + "column": 24 + }, + "end": { + "line": 17, + "column": 48 + } + } + }, + "range": [ + 394, + 428 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 48 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "path", + "range": [ + 430, + 434 + ], + "loc": { + "start": { + "line": 17, + "column": 50 + }, + "end": { + "line": 17, + "column": 54 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Dynalite", + "range": [ + 437, + 445 + ], + "loc": { + "start": { + "line": 17, + "column": 57 + }, + "end": { + "line": 17, + "column": 65 + } + } + }, + "property": { + "type": "Identifier", + "name": "DBPath", + "range": [ + 446, + 452 + ], + "loc": { + "start": { + "line": 17, + "column": 66 + }, + "end": { + "line": 17, + "column": 72 + } + } + }, + "range": [ + 437, + 452 + ], + "loc": { + "start": { + "line": 17, + "column": 57 + }, + "end": { + "line": 17, + "column": 72 + } + } + }, + "range": [ + 430, + 452 + ], + "loc": { + "start": { + "line": 17, + "column": 50 + }, + "end": { + "line": 17, + "column": 72 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "port", + "range": [ + 454, + 458 + ], + "loc": { + "start": { + "line": 17, + "column": 74 + }, + "end": { + "line": 17, + "column": 78 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Dynalite", + "range": [ + 461, + 469 + ], + "loc": { + "start": { + "line": 17, + "column": 81 + }, + "end": { + "line": 17, + "column": 89 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_PORT", + "range": [ + 470, + 482 + ], + "loc": { + "start": { + "line": 17, + "column": 90 + }, + "end": { + "line": 17, + "column": 102 + } + } + }, + "range": [ + 461, + 482 + ], + "loc": { + "start": { + "line": 17, + "column": 81 + }, + "end": { + "line": 17, + "column": 102 + } + } + }, + "range": [ + 454, + 482 + ], + "loc": { + "start": { + "line": 17, + "column": 74 + }, + "end": { + "line": 17, + "column": 102 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 490, + 495 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "path", + "range": [ + 496, + 500 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 14 + } + } + }, + { + "type": "Identifier", + "name": "port", + "range": [ + 502, + 506 + ], + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 20 + } + } + } + ], + "range": [ + 490, + 507 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 21 + } + } + }, + "range": [ + 490, + 508 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 22 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 514, + 518 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 519, + 527 + ], + "loc": { + "start": { + "line": 20, + "column": 9 + }, + "end": { + "line": 20, + "column": 17 + } + } + }, + "range": [ + 514, + 527 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 17 + } + } + }, + "right": { + "type": "Identifier", + "name": "options", + "range": [ + 530, + 537 + ], + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 27 + } + } + }, + "range": [ + 514, + 537 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 27 + } + } + }, + "range": [ + 514, + 538 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 543, + 547 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_server", + "range": [ + 548, + 555 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 16 + } + } + }, + "range": [ + 543, + 555 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 558, + 562 + ], + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 23 + } + } + }, + "range": [ + 543, + 562 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 23 + } + } + }, + "range": [ + 543, + 563 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 24 + } + } + } + ], + "range": [ + 484, + 567 + ], + "loc": { + "start": { + "line": 17, + "column": 104 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 393, + 567 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 382, + 567 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} options\n * @param {String} path\n * @param {Number} port\n ", + "range": [ + 289, + 379 + ], + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 571, + 603 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "options", + "range": [ + 610, + 617 + ], + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 633, + 637 + ], + "loc": { + "start": { + "line": 28, + "column": 11 + }, + "end": { + "line": 28, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 638, + 646 + ], + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 24 + } + } + }, + "range": [ + 633, + 646 + ], + "loc": { + "start": { + "line": 28, + "column": 11 + }, + "end": { + "line": 28, + "column": 24 + } + } + }, + "range": [ + 626, + 647 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 25 + } + } + } + ], + "range": [ + 620, + 651 + ], + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 29, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 617, + 651 + ], + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 29, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 606, + 651 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 571, + 603 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @private\n ", + "range": [ + 655, + 704 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_start", + "range": [ + 707, + 713 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 35, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 714, + 716 + ], + "loc": { + "start": { + "line": 35, + "column": 9 + }, + "end": { + "line": 35, + "column": 11 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 724, + 728 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 729, + 737 + ], + "loc": { + "start": { + "line": 36, + "column": 9 + }, + "end": { + "line": 36, + "column": 17 + } + } + }, + "range": [ + 724, + 737 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "path", + "range": [ + 738, + 742 + ], + "loc": { + "start": { + "line": 36, + "column": 18 + }, + "end": { + "line": 36, + "column": 22 + } + } + }, + "range": [ + 724, + 742 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 22 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 745, + 749 + ], + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 36, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "path", + "range": [ + 750, + 754 + ], + "loc": { + "start": { + "line": 36, + "column": 30 + }, + "end": { + "line": 36, + "column": 34 + } + } + }, + "range": [ + 745, + 754 + ], + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 36, + "column": 34 + } + } + }, + "range": [ + 724, + 754 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 34 + } + } + }, + "range": [ + 724, + 755 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 35 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 761, + 765 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_server", + "range": [ + 766, + 773 + ], + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 16 + } + } + }, + "range": [ + 761, + 773 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 16 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "DynaliteServer", + "range": [ + 776, + 790 + ], + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 38, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 791, + 795 + ], + "loc": { + "start": { + "line": 38, + "column": 34 + }, + "end": { + "line": 38, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 796, + 804 + ], + "loc": { + "start": { + "line": 38, + "column": 39 + }, + "end": { + "line": 38, + "column": 47 + } + } + }, + "range": [ + 791, + 804 + ], + "loc": { + "start": { + "line": 38, + "column": 34 + }, + "end": { + "line": 38, + "column": 47 + } + } + } + ], + "range": [ + 776, + 805 + ], + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 38, + "column": 48 + } + } + }, + "range": [ + 761, + 805 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 48 + } + } + }, + "range": [ + 761, + 806 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 49 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 812, + 816 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_server", + "range": [ + 817, + 824 + ], + "loc": { + "start": { + "line": 40, + "column": 9 + }, + "end": { + "line": 40, + "column": 16 + } + } + }, + "range": [ + 812, + 824 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "listen", + "range": [ + 825, + 831 + ], + "loc": { + "start": { + "line": 40, + "column": 17 + }, + "end": { + "line": 40, + "column": 23 + } + } + }, + "range": [ + 812, + 831 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 832, + 836 + ], + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "port", + "range": [ + 837, + 841 + ], + "loc": { + "start": { + "line": 40, + "column": 29 + }, + "end": { + "line": 40, + "column": 33 + } + } + }, + "range": [ + 832, + 841 + ], + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 33 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 844, + 849 + ], + "loc": { + "start": { + "line": 40, + "column": 36 + }, + "end": { + "line": 40, + "column": 41 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "error", + "range": [ + 866, + 871 + ], + "loc": { + "start": { + "line": 41, + "column": 10 + }, + "end": { + "line": 41, + "column": 15 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 883, + 885 + ], + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "FailedToStartServerException", + "range": [ + 890, + 918 + ], + "loc": { + "start": { + "line": 42, + "column": 15 + }, + "end": { + "line": 42, + "column": 43 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 919, + 923 + ], + "loc": { + "start": { + "line": 42, + "column": 44 + }, + "end": { + "line": 42, + "column": 48 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 925, + 930 + ], + "loc": { + "start": { + "line": 42, + "column": 50 + }, + "end": { + "line": 42, + "column": 55 + } + } + } + ], + "range": [ + 886, + 931 + ], + "loc": { + "start": { + "line": 42, + "column": 11 + }, + "end": { + "line": 42, + "column": 56 + } + } + } + ], + "range": [ + 883, + 932 + ], + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 57 + } + } + }, + "range": [ + 883, + 933 + ], + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 58 + } + } + }, + { + "type": "ReturnStatement", + "argument": null, + "range": [ + 942, + 949 + ], + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 15 + } + } + } + ], + "range": [ + 873, + 957 + ], + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 44, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 862, + 957 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 44, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 965, + 967 + ], + "loc": { + "start": { + "line": 46, + "column": 6 + }, + "end": { + "line": 46, + "column": 8 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 968, + 972 + ], + "loc": { + "start": { + "line": 46, + "column": 9 + }, + "end": { + "line": 46, + "column": 13 + } + } + } + ], + "range": [ + 965, + 973 + ], + "loc": { + "start": { + "line": 46, + "column": 6 + }, + "end": { + "line": 46, + "column": 14 + } + } + }, + "range": [ + 965, + 974 + ], + "loc": { + "start": { + "line": 46, + "column": 6 + }, + "end": { + "line": 46, + "column": 15 + } + } + } + ], + "range": [ + 854, + 980 + ], + "loc": { + "start": { + "line": 40, + "column": 46 + }, + "end": { + "line": 47, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 843, + 980 + ], + "loc": { + "start": { + "line": 40, + "column": 35 + }, + "end": { + "line": 47, + "column": 5 + } + } + } + ], + "range": [ + 812, + 981 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 47, + "column": 6 + } + } + }, + "range": [ + 812, + 982 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 47, + "column": 7 + } + } + } + ], + "range": [ + 718, + 986 + ], + "loc": { + "start": { + "line": 35, + "column": 13 + }, + "end": { + "line": 48, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 713, + 986 + ], + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 48, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 707, + 986 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 48, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @private\n ", + "range": [ + 655, + 704 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @private\n ", + "range": [ + 990, + 1039 + ], + "loc": { + "start": { + "line": 50, + "column": 2 + }, + "end": { + "line": 53, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_stop", + "range": [ + 1042, + 1047 + ], + "loc": { + "start": { + "line": 54, + "column": 2 + }, + "end": { + "line": 54, + "column": 7 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 1048, + 1050 + ], + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 10 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1062, + 1066 + ], + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_server", + "range": [ + 1067, + 1074 + ], + "loc": { + "start": { + "line": 55, + "column": 13 + }, + "end": { + "line": 55, + "column": 20 + } + } + }, + "range": [ + 1062, + 1074 + ], + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 20 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1084, + 1088 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_server", + "range": [ + 1089, + 1096 + ], + "loc": { + "start": { + "line": 56, + "column": 11 + }, + "end": { + "line": 56, + "column": 18 + } + } + }, + "range": [ + 1084, + 1096 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "close", + "range": [ + 1097, + 1102 + ], + "loc": { + "start": { + "line": 56, + "column": 19 + }, + "end": { + "line": 56, + "column": 24 + } + } + }, + "range": [ + 1084, + 1102 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 1103, + 1105 + ], + "loc": { + "start": { + "line": 56, + "column": 25 + }, + "end": { + "line": 56, + "column": 27 + } + } + } + ], + "range": [ + 1084, + 1106 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 28 + } + } + }, + "range": [ + 1084, + 1107 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 29 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1114, + 1118 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_server", + "range": [ + 1119, + 1126 + ], + "loc": { + "start": { + "line": 57, + "column": 11 + }, + "end": { + "line": 57, + "column": 18 + } + } + }, + "range": [ + 1114, + 1126 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 18 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1129, + 1133 + ], + "loc": { + "start": { + "line": 57, + "column": 21 + }, + "end": { + "line": 57, + "column": 25 + } + } + }, + "range": [ + 1114, + 1133 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 25 + } + } + }, + "range": [ + 1114, + 1134 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 26 + } + } + }, + { + "type": "ReturnStatement", + "argument": null, + "range": [ + 1142, + 1149 + ], + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 13 + } + } + } + ], + "range": [ + 1076, + 1155 + ], + "loc": { + "start": { + "line": 55, + "column": 22 + }, + "end": { + "line": 60, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1058, + 1155 + ], + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 60, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 1161, + 1163 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 6 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1164, + 1168 + ], + "loc": { + "start": { + "line": 62, + "column": 7 + }, + "end": { + "line": 62, + "column": 11 + } + } + } + ], + "range": [ + 1161, + 1169 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 12 + } + } + }, + "range": [ + 1161, + 1170 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 13 + } + } + } + ], + "range": [ + 1052, + 1174 + ], + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 63, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1047, + 1174 + ], + "loc": { + "start": { + "line": 54, + "column": 7 + }, + "end": { + "line": 63, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1042, + 1174 + ], + "loc": { + "start": { + "line": 54, + "column": 2 + }, + "end": { + "line": 63, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @private\n ", + "range": [ + 990, + 1039 + ], + "loc": { + "start": { + "line": 50, + "column": 2 + }, + "end": { + "line": 53, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1178, + 1210 + ], + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 67, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "DEFAULT_OPTIONS", + "range": [ + 1224, + 1239 + ], + "loc": { + "start": { + "line": 68, + "column": 13 + }, + "end": { + "line": 68, + "column": 28 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "createTableMs", + "range": [ + 1263, + 1276 + ], + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 19 + } + } + }, + "value": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1278, + 1279 + ], + "loc": { + "start": { + "line": 70, + "column": 21 + }, + "end": { + "line": 70, + "column": 22 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1263, + 1279 + ], + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 22 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "deleteTableMs", + "range": [ + 1287, + 1300 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 19 + } + } + }, + "value": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1302, + 1303 + ], + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 71, + "column": 22 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1287, + 1303 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 22 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "updateTableMs", + "range": [ + 1311, + 1324 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 19 + } + } + }, + "value": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1326, + 1327 + ], + "loc": { + "start": { + "line": 72, + "column": 21 + }, + "end": { + "line": 72, + "column": 22 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1311, + 1327 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 22 + } + } + } + ], + "range": [ + 1255, + 1334 + ], + "loc": { + "start": { + "line": 69, + "column": 11 + }, + "end": { + "line": 73, + "column": 5 + } + } + }, + "range": [ + 1248, + 1335 + ], + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 73, + "column": 6 + } + } + } + ], + "range": [ + 1242, + 1339 + ], + "loc": { + "start": { + "line": 68, + "column": 31 + }, + "end": { + "line": 74, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1239, + 1339 + ], + "loc": { + "start": { + "line": 68, + "column": 28 + }, + "end": { + "line": 74, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1213, + 1339 + ], + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 74, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1178, + 1210 + ], + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 67, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 285, + 1341 + ], + "loc": { + "start": { + "line": 11, + "column": 46 + }, + "end": { + "line": 75, + "column": 1 + } + } + }, + "range": [ + 246, + 1341 + ], + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 75, + "column": 1 + } + }, + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 239, + 1341 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 75, + "column": 1 + } + } + } + ], + "sourceType": "module", + "range": [ + 46, + 1341 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 75, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} options\n * @param {String} path\n * @param {Number} port\n ", + "range": [ + 289, + 379 + ], + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 571, + 603 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @private\n ", + "range": [ + 655, + 704 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @private\n ", + "range": [ + 990, + 1039 + ], + "loc": { + "start": { + "line": 50, + "column": 2 + }, + "end": { + "line": 53, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1178, + 1210 + ], + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 67, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Local/Driver/Exception/Exception.js.json b/docs-api/deep-db/ast/source/Local/Driver/Exception/Exception.js.json new file mode 100644 index 00000000..a5724794 --- /dev/null +++ b/docs-api/deep-db/ast/source/Local/Driver/Exception/Exception.js.json @@ -0,0 +1,651 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 149, + 158 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 167, + 171 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 172, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "range": [ + 167, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 182, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "range": [ + 167, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 233, + 244 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 248, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 245, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 260, + 265 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 269, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 266, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 260, + 274 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 260, + 275 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 254, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 244, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 233, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 192, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 143, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 136, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 281 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Local/Driver/Exception/FailedToStartServerException.js.json b/docs-api/deep-db/ast/source/Local/Driver/Exception/FailedToStartServerException.js.json new file mode 100644 index 00000000..bde46493 --- /dev/null +++ b/docs-api/deep-db/ast/source/Local/Driver/Exception/FailedToStartServerException.js.json @@ -0,0 +1,757 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + } + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "FailedToStartServerException", + "range": [ + 114, + 142 + ], + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 41 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 151, + 160 + ], + "loc": { + "start": { + "line": 9, + "column": 50 + }, + "end": { + "line": 9, + "column": 59 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 232, + 243 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 14, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "driver", + "range": [ + 244, + 250 + ], + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 20 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 252, + 257 + ], + "loc": { + "start": { + "line": 14, + "column": 22 + }, + "end": { + "line": 14, + "column": 27 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 265, + 270 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Failed to start DB server ", + "cooked": "Failed to start DB server " + }, + "tail": false, + "range": [ + 271, + 300 + ], + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 15, + "column": 39 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " on port ", + "cooked": " on port " + }, + "tail": false, + "range": [ + 323, + 335 + ], + "loc": { + "start": { + "line": 15, + "column": 62 + }, + "end": { + "line": 15, + "column": 74 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ": ", + "cooked": ": " + }, + "tail": false, + "range": [ + 346, + 351 + ], + "loc": { + "start": { + "line": 15, + "column": 85 + }, + "end": { + "line": 15, + "column": 90 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 356, + 358 + ], + "loc": { + "start": { + "line": 15, + "column": 95 + }, + "end": { + "line": 15, + "column": 97 + } + } + } + ], + "expressions": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "driver", + "range": [ + 300, + 306 + ], + "loc": { + "start": { + "line": 15, + "column": 39 + }, + "end": { + "line": 15, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "constructor", + "range": [ + 307, + 318 + ], + "loc": { + "start": { + "line": 15, + "column": 46 + }, + "end": { + "line": 15, + "column": 57 + } + } + }, + "range": [ + 300, + 318 + ], + "loc": { + "start": { + "line": 15, + "column": 39 + }, + "end": { + "line": 15, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 319, + 323 + ], + "loc": { + "start": { + "line": 15, + "column": 58 + }, + "end": { + "line": 15, + "column": 62 + } + } + }, + "range": [ + 300, + 323 + ], + "loc": { + "start": { + "line": 15, + "column": 39 + }, + "end": { + "line": 15, + "column": 62 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "driver", + "range": [ + 335, + 341 + ], + "loc": { + "start": { + "line": 15, + "column": 74 + }, + "end": { + "line": 15, + "column": 80 + } + } + }, + "property": { + "type": "Identifier", + "name": "port", + "range": [ + 342, + 346 + ], + "loc": { + "start": { + "line": 15, + "column": 81 + }, + "end": { + "line": 15, + "column": 85 + } + } + }, + "range": [ + 335, + 346 + ], + "loc": { + "start": { + "line": 15, + "column": 74 + }, + "end": { + "line": 15, + "column": 85 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 351, + 356 + ], + "loc": { + "start": { + "line": 15, + "column": 90 + }, + "end": { + "line": 15, + "column": 95 + } + } + } + ], + "range": [ + 271, + 358 + ], + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 15, + "column": 97 + } + } + } + ], + "range": [ + 265, + 359 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 98 + } + } + }, + "range": [ + 265, + 360 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 99 + } + } + } + ], + "range": [ + 259, + 364 + ], + "loc": { + "start": { + "line": 14, + "column": 29 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 243, + 364 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 232, + 364 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} driver\n * @param {String} error\n ", + "range": [ + 165, + 229 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 161, + 366 + ], + "loc": { + "start": { + "line": 9, + "column": 60 + }, + "end": { + "line": 17, + "column": 1 + } + } + }, + "range": [ + 108, + 366 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 101, + 366 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 17, + "column": 1 + } + } + } + ], + "sourceType": "module", + "range": [ + 46, + 366 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} driver\n * @param {String} error\n ", + "range": [ + 165, + 229 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Local/Driver/Exception/ServerAlreadyRunningException.js.json b/docs-api/deep-db/ast/source/Local/Driver/Exception/ServerAlreadyRunningException.js.json new file mode 100644 index 00000000..73e53487 --- /dev/null +++ b/docs-api/deep-db/ast/source/Local/Driver/Exception/ServerAlreadyRunningException.js.json @@ -0,0 +1,699 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + } + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "ServerAlreadyRunningException", + "range": [ + 114, + 143 + ], + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 42 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 152, + 161 + ], + "loc": { + "start": { + "line": 9, + "column": 51 + }, + "end": { + "line": 9, + "column": 60 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 206, + 217 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "driver", + "range": [ + 218, + 224 + ], + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 20 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 232, + 237 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "The DB server ", + "cooked": "The DB server " + }, + "tail": false, + "range": [ + 238, + 255 + ], + "loc": { + "start": { + "line": 14, + "column": 10 + }, + "end": { + "line": 14, + "column": 27 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " on port ", + "cooked": " on port " + }, + "tail": false, + "range": [ + 278, + 290 + ], + "loc": { + "start": { + "line": 14, + "column": 50 + }, + "end": { + "line": 14, + "column": 62 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " is already running", + "cooked": " is already running" + }, + "tail": true, + "range": [ + 301, + 322 + ], + "loc": { + "start": { + "line": 14, + "column": 73 + }, + "end": { + "line": 14, + "column": 94 + } + } + } + ], + "expressions": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "driver", + "range": [ + 255, + 261 + ], + "loc": { + "start": { + "line": 14, + "column": 27 + }, + "end": { + "line": 14, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "constructor", + "range": [ + 262, + 273 + ], + "loc": { + "start": { + "line": 14, + "column": 34 + }, + "end": { + "line": 14, + "column": 45 + } + } + }, + "range": [ + 255, + 273 + ], + "loc": { + "start": { + "line": 14, + "column": 27 + }, + "end": { + "line": 14, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 274, + 278 + ], + "loc": { + "start": { + "line": 14, + "column": 46 + }, + "end": { + "line": 14, + "column": 50 + } + } + }, + "range": [ + 255, + 278 + ], + "loc": { + "start": { + "line": 14, + "column": 27 + }, + "end": { + "line": 14, + "column": 50 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "driver", + "range": [ + 290, + 296 + ], + "loc": { + "start": { + "line": 14, + "column": 62 + }, + "end": { + "line": 14, + "column": 68 + } + } + }, + "property": { + "type": "Identifier", + "name": "port", + "range": [ + 297, + 301 + ], + "loc": { + "start": { + "line": 14, + "column": 69 + }, + "end": { + "line": 14, + "column": 73 + } + } + }, + "range": [ + 290, + 301 + ], + "loc": { + "start": { + "line": 14, + "column": 62 + }, + "end": { + "line": 14, + "column": 73 + } + } + } + ], + "range": [ + 238, + 322 + ], + "loc": { + "start": { + "line": 14, + "column": 10 + }, + "end": { + "line": 14, + "column": 94 + } + } + } + ], + "range": [ + 232, + 323 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 95 + } + } + }, + "range": [ + 232, + 324 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 96 + } + } + } + ], + "range": [ + 226, + 328 + ], + "loc": { + "start": { + "line": 13, + "column": 22 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 217, + 328 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 206, + 328 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} driver\n ", + "range": [ + 166, + 203 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 12, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 162, + 330 + ], + "loc": { + "start": { + "line": 9, + "column": 61 + }, + "end": { + "line": 16, + "column": 1 + } + } + }, + "range": [ + 108, + 330 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 101, + 330 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + } + } + ], + "sourceType": "module", + "range": [ + 46, + 330 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} driver\n ", + "range": [ + 166, + 203 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 12, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Local/Driver/Exception/ServerTtsExceededException.js.json b/docs-api/deep-db/ast/source/Local/Driver/Exception/ServerTtsExceededException.js.json new file mode 100644 index 00000000..44e9dca7 --- /dev/null +++ b/docs-api/deep-db/ast/source/Local/Driver/Exception/ServerTtsExceededException.js.json @@ -0,0 +1,681 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + } + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "ServerTtsExceededException", + "range": [ + 114, + 140 + ], + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 39 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 149, + 158 + ], + "loc": { + "start": { + "line": 9, + "column": 48 + }, + "end": { + "line": 9, + "column": 57 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 228, + 239 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 14, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "driver", + "range": [ + 240, + 246 + ], + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 20 + } + } + }, + { + "type": "Identifier", + "name": "tts", + "range": [ + 248, + 251 + ], + "loc": { + "start": { + "line": 14, + "column": 22 + }, + "end": { + "line": 14, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 259, + 264 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "The DB server's ", + "cooked": "The DB server's " + }, + "tail": false, + "range": [ + 265, + 284 + ], + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 15, + "column": 29 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " tts of ", + "cooked": " tts of " + }, + "tail": false, + "range": [ + 307, + 318 + ], + "loc": { + "start": { + "line": 15, + "column": 52 + }, + "end": { + "line": 15, + "column": 63 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " seconds exceeded", + "cooked": " seconds exceeded" + }, + "tail": true, + "range": [ + 321, + 340 + ], + "loc": { + "start": { + "line": 15, + "column": 66 + }, + "end": { + "line": 15, + "column": 85 + } + } + } + ], + "expressions": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "driver", + "range": [ + 284, + 290 + ], + "loc": { + "start": { + "line": 15, + "column": 29 + }, + "end": { + "line": 15, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "constructor", + "range": [ + 291, + 302 + ], + "loc": { + "start": { + "line": 15, + "column": 36 + }, + "end": { + "line": 15, + "column": 47 + } + } + }, + "range": [ + 284, + 302 + ], + "loc": { + "start": { + "line": 15, + "column": 29 + }, + "end": { + "line": 15, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 303, + 307 + ], + "loc": { + "start": { + "line": 15, + "column": 48 + }, + "end": { + "line": 15, + "column": 52 + } + } + }, + "range": [ + 284, + 307 + ], + "loc": { + "start": { + "line": 15, + "column": 29 + }, + "end": { + "line": 15, + "column": 52 + } + } + }, + { + "type": "Identifier", + "name": "tts", + "range": [ + 318, + 321 + ], + "loc": { + "start": { + "line": 15, + "column": 63 + }, + "end": { + "line": 15, + "column": 66 + } + } + } + ], + "range": [ + 265, + 340 + ], + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 15, + "column": 85 + } + } + } + ], + "range": [ + 259, + 341 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 86 + } + } + }, + "range": [ + 259, + 342 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 87 + } + } + } + ], + "range": [ + 253, + 346 + ], + "loc": { + "start": { + "line": 14, + "column": 27 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 239, + 346 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 228, + 346 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} driver\n * @param {Number} tts\n ", + "range": [ + 163, + 225 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 159, + 348 + ], + "loc": { + "start": { + "line": 9, + "column": 58 + }, + "end": { + "line": 17, + "column": 1 + } + } + }, + "range": [ + 108, + 348 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 101, + 348 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 17, + "column": 1 + } + } + } + ], + "sourceType": "module", + "range": [ + 46, + 348 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} driver\n * @param {Number} tts\n ", + "range": [ + 163, + 225 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 13, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Local/Driver/LocalDynamo.js.json b/docs-api/deep-db/ast/source/Local/Driver/LocalDynamo.js.json new file mode 100644 index 00000000..c22ad3ea --- /dev/null +++ b/docs-api/deep-db/ast/source/Local/Driver/LocalDynamo.js.json @@ -0,0 +1,4716 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "PathAwareDriver", + "range": [ + 69, + 84 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 23 + } + } + }, + "imported": { + "type": "Identifier", + "name": "PathAwareDriver", + "range": [ + 69, + 84 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 23 + } + } + }, + "range": [ + 69, + 84 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 23 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./PathAwareDriver", + "raw": "'./PathAwareDriver'", + "range": [ + 91, + 110 + ], + "loc": { + "start": { + "line": 7, + "column": 30 + }, + "end": { + "line": 7, + "column": 49 + } + } + }, + "range": [ + 61, + 111 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 50 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "LocalDynamoServer", + "range": [ + 119, + 136 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 24 + } + } + }, + "range": [ + 119, + 136 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 24 + } + } + } + ], + "source": { + "type": "Literal", + "value": "local-dynamo", + "raw": "'local-dynamo'", + "range": [ + 142, + 156 + ], + "loc": { + "start": { + "line": 8, + "column": 30 + }, + "end": { + "line": 8, + "column": 44 + } + } + }, + "range": [ + 112, + 157 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 45 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "FailedToStartServerException", + "range": [ + 166, + 194 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 36 + } + } + }, + "imported": { + "type": "Identifier", + "name": "FailedToStartServerException", + "range": [ + 166, + 194 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 36 + } + } + }, + "range": [ + 166, + 194 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 36 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/FailedToStartServerException", + "raw": "'./Exception/FailedToStartServerException'", + "range": [ + 201, + 243 + ], + "loc": { + "start": { + "line": 9, + "column": 43 + }, + "end": { + "line": 9, + "column": 85 + } + } + }, + "range": [ + 158, + 244 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 86 + } + } + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "LocalDynamo", + "range": [ + 259, + 270 + ], + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 11, + "column": 24 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "PathAwareDriver", + "range": [ + 279, + 294 + ], + "loc": { + "start": { + "line": 11, + "column": 33 + }, + "end": { + "line": 11, + "column": 48 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 392, + 403 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "options", + "range": [ + 404, + 411 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 21 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalDynamo", + "range": [ + 414, + 425 + ], + "loc": { + "start": { + "line": 17, + "column": 24 + }, + "end": { + "line": 17, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_OPTIONS", + "range": [ + 426, + 441 + ], + "loc": { + "start": { + "line": 17, + "column": 36 + }, + "end": { + "line": 17, + "column": 51 + } + } + }, + "range": [ + 414, + 441 + ], + "loc": { + "start": { + "line": 17, + "column": 24 + }, + "end": { + "line": 17, + "column": 51 + } + } + }, + "range": [ + 404, + 441 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 51 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "path", + "range": [ + 443, + 447 + ], + "loc": { + "start": { + "line": 17, + "column": 53 + }, + "end": { + "line": 17, + "column": 57 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalDynamo", + "range": [ + 450, + 461 + ], + "loc": { + "start": { + "line": 17, + "column": 60 + }, + "end": { + "line": 17, + "column": 71 + } + } + }, + "property": { + "type": "Identifier", + "name": "DBPath", + "range": [ + 462, + 468 + ], + "loc": { + "start": { + "line": 17, + "column": 72 + }, + "end": { + "line": 17, + "column": 78 + } + } + }, + "range": [ + 450, + 468 + ], + "loc": { + "start": { + "line": 17, + "column": 60 + }, + "end": { + "line": 17, + "column": 78 + } + } + }, + "range": [ + 443, + 468 + ], + "loc": { + "start": { + "line": 17, + "column": 53 + }, + "end": { + "line": 17, + "column": 78 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "port", + "range": [ + 470, + 474 + ], + "loc": { + "start": { + "line": 17, + "column": 80 + }, + "end": { + "line": 17, + "column": 84 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalDynamo", + "range": [ + 477, + 488 + ], + "loc": { + "start": { + "line": 17, + "column": 87 + }, + "end": { + "line": 17, + "column": 98 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_PORT", + "range": [ + 489, + 501 + ], + "loc": { + "start": { + "line": 17, + "column": 99 + }, + "end": { + "line": 17, + "column": 111 + } + } + }, + "range": [ + 477, + 501 + ], + "loc": { + "start": { + "line": 17, + "column": 87 + }, + "end": { + "line": 17, + "column": 111 + } + } + }, + "range": [ + 470, + 501 + ], + "loc": { + "start": { + "line": 17, + "column": 80 + }, + "end": { + "line": 17, + "column": 111 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 509, + 514 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "path", + "range": [ + 515, + 519 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 14 + } + } + }, + { + "type": "Identifier", + "name": "port", + "range": [ + 521, + 525 + ], + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 20 + } + } + } + ], + "range": [ + 509, + 526 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 21 + } + } + }, + "range": [ + 509, + 527 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 22 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 533, + 537 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 538, + 546 + ], + "loc": { + "start": { + "line": 20, + "column": 9 + }, + "end": { + "line": 20, + "column": 17 + } + } + }, + "range": [ + 533, + 546 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 17 + } + } + }, + "right": { + "type": "Identifier", + "name": "options", + "range": [ + 549, + 556 + ], + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 27 + } + } + }, + "range": [ + 533, + 556 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 27 + } + } + }, + "range": [ + 533, + 557 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 562, + 566 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_process", + "range": [ + 567, + 575 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 17 + } + } + }, + "range": [ + 562, + 575 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 17 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 578, + 582 + ], + "loc": { + "start": { + "line": 21, + "column": 20 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + "range": [ + 562, + 582 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + "range": [ + 562, + 583 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 25 + } + } + } + ], + "range": [ + 503, + 587 + ], + "loc": { + "start": { + "line": 17, + "column": 113 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 403, + 587 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 392, + 587 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} options\n * @param {String} path\n * @param {Number} port\n ", + "range": [ + 299, + 389 + ], + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 591, + 623 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "options", + "range": [ + 630, + 637 + ], + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 653, + 657 + ], + "loc": { + "start": { + "line": 28, + "column": 11 + }, + "end": { + "line": 28, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 658, + 666 + ], + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 24 + } + } + }, + "range": [ + 653, + 666 + ], + "loc": { + "start": { + "line": 28, + "column": 11 + }, + "end": { + "line": 28, + "column": 24 + } + } + }, + "range": [ + 646, + 667 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 25 + } + } + } + ], + "range": [ + 640, + 671 + ], + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 29, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 637, + 671 + ], + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 29, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 626, + 671 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 29, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 591, + 623 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @private\n ", + "range": [ + 675, + 724 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_start", + "range": [ + 727, + 733 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 35, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 734, + 736 + ], + "loc": { + "start": { + "line": 35, + "column": 9 + }, + "end": { + "line": 35, + "column": 11 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "cbTriggered", + "range": [ + 748, + 759 + ], + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 19 + } + } + }, + "init": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 762, + 767 + ], + "loc": { + "start": { + "line": 36, + "column": 22 + }, + "end": { + "line": 36, + "column": 27 + } + } + }, + "range": [ + 748, + 767 + ], + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 27 + } + } + } + ], + "kind": "let", + "range": [ + 744, + 768 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 774, + 778 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 779, + 787 + ], + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 17 + } + } + }, + "range": [ + 774, + 787 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "dir", + "range": [ + 788, + 791 + ], + "loc": { + "start": { + "line": 38, + "column": 18 + }, + "end": { + "line": 38, + "column": 21 + } + } + }, + "range": [ + 774, + 791 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 21 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 794, + 798 + ], + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "path", + "range": [ + 799, + 803 + ], + "loc": { + "start": { + "line": 38, + "column": 29 + }, + "end": { + "line": 38, + "column": 33 + } + } + }, + "range": [ + 794, + 803 + ], + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 33 + } + } + }, + "range": [ + 774, + 803 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 33 + } + } + }, + "range": [ + 774, + 804 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 34 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 810, + 814 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_process", + "range": [ + 815, + 823 + ], + "loc": { + "start": { + "line": 40, + "column": 9 + }, + "end": { + "line": 40, + "column": 17 + } + } + }, + "range": [ + 810, + 823 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 17 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalDynamoServer", + "range": [ + 826, + 843 + ], + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "launch", + "range": [ + 844, + 850 + ], + "loc": { + "start": { + "line": 40, + "column": 38 + }, + "end": { + "line": 40, + "column": 44 + } + } + }, + "range": [ + 826, + 850 + ], + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 44 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 851, + 855 + ], + "loc": { + "start": { + "line": 40, + "column": 45 + }, + "end": { + "line": 40, + "column": 49 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 856, + 864 + ], + "loc": { + "start": { + "line": 40, + "column": 50 + }, + "end": { + "line": 40, + "column": 58 + } + } + }, + "range": [ + 851, + 864 + ], + "loc": { + "start": { + "line": 40, + "column": 45 + }, + "end": { + "line": 40, + "column": 58 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 866, + 870 + ], + "loc": { + "start": { + "line": 40, + "column": 60 + }, + "end": { + "line": 40, + "column": 64 + } + } + }, + "property": { + "type": "Identifier", + "name": "port", + "range": [ + 871, + 875 + ], + "loc": { + "start": { + "line": 40, + "column": 65 + }, + "end": { + "line": 40, + "column": 69 + } + } + }, + "range": [ + 866, + 875 + ], + "loc": { + "start": { + "line": 40, + "column": 60 + }, + "end": { + "line": 40, + "column": 69 + } + } + } + ], + "range": [ + 826, + 876 + ], + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 70 + } + } + }, + "range": [ + 810, + 876 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 70 + } + } + }, + "range": [ + 810, + 877 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 71 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " This hook fixes DynamoDB startup delay by waiting an empty stdout dataset", + "range": [ + 883, + 959 + ], + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 80 + } + } + }, + { + "type": "Line", + "value": " @todo: remove this hook after fixing issue!", + "range": [ + 964, + 1010 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 50 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1015, + 1019 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_process", + "range": [ + 1020, + 1028 + ], + "loc": { + "start": { + "line": 44, + "column": 9 + }, + "end": { + "line": 44, + "column": 17 + } + } + }, + "range": [ + 1015, + 1028 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "stdout", + "range": [ + 1029, + 1035 + ], + "loc": { + "start": { + "line": 44, + "column": 18 + }, + "end": { + "line": 44, + "column": 24 + } + } + }, + "range": [ + 1015, + 1035 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "on", + "range": [ + 1036, + 1038 + ], + "loc": { + "start": { + "line": 44, + "column": 25 + }, + "end": { + "line": 44, + "column": 27 + } + } + }, + "range": [ + 1015, + 1038 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 27 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "data", + "raw": "'data'", + "range": [ + 1039, + 1045 + ], + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 34 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "data", + "range": [ + 1048, + 1052 + ], + "loc": { + "start": { + "line": 44, + "column": 37 + }, + "end": { + "line": 44, + "column": 41 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "data", + "range": [ + 1070, + 1074 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "toString", + "range": [ + 1075, + 1083 + ], + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 24 + } + } + }, + "range": [ + 1070, + 1083 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 24 + } + } + }, + "arguments": [], + "range": [ + 1070, + 1085 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "replace", + "range": [ + 1086, + 1093 + ], + "loc": { + "start": { + "line": 45, + "column": 27 + }, + "end": { + "line": 45, + "column": 34 + } + } + }, + "range": [ + 1070, + 1093 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": {}, + "raw": "/\\s+/", + "regex": { + "pattern": "\\s+", + "flags": "" + }, + "range": [ + 1094, + 1099 + ], + "loc": { + "start": { + "line": 45, + "column": 35 + }, + "end": { + "line": 45, + "column": 40 + } + } + }, + { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 1101, + 1103 + ], + "loc": { + "start": { + "line": 45, + "column": 42 + }, + "end": { + "line": 45, + "column": 44 + } + } + } + ], + "range": [ + 1070, + 1104 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 45 + } + } + }, + "prefix": true, + "range": [ + 1069, + 1104 + ], + "loc": { + "start": { + "line": 45, + "column": 10 + }, + "end": { + "line": 45, + "column": 45 + } + } + }, + "right": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "cbTriggered", + "range": [ + 1109, + 1120 + ], + "loc": { + "start": { + "line": 45, + "column": 50 + }, + "end": { + "line": 45, + "column": 61 + } + } + }, + "prefix": true, + "range": [ + 1108, + 1120 + ], + "loc": { + "start": { + "line": 45, + "column": 49 + }, + "end": { + "line": 45, + "column": 61 + } + } + }, + "range": [ + 1069, + 1120 + ], + "loc": { + "start": { + "line": 45, + "column": 10 + }, + "end": { + "line": 45, + "column": 61 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "cbTriggered", + "range": [ + 1132, + 1143 + ], + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1146, + 1150 + ], + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 26 + } + } + }, + "range": [ + 1132, + 1150 + ], + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 26 + } + } + }, + "range": [ + 1132, + 1151 + ], + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 27 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 1160, + 1162 + ], + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1163, + 1167 + ], + "loc": { + "start": { + "line": 47, + "column": 11 + }, + "end": { + "line": 47, + "column": 15 + } + } + } + ], + "range": [ + 1160, + 1168 + ], + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 16 + } + } + }, + "range": [ + 1160, + 1169 + ], + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 17 + } + } + } + ], + "range": [ + 1122, + 1177 + ], + "loc": { + "start": { + "line": 45, + "column": 63 + }, + "end": { + "line": 48, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1065, + 1177 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 48, + "column": 7 + } + } + } + ], + "range": [ + 1057, + 1183 + ], + "loc": { + "start": { + "line": 44, + "column": 46 + }, + "end": { + "line": 49, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1047, + 1183 + ], + "loc": { + "start": { + "line": 44, + "column": 36 + }, + "end": { + "line": 49, + "column": 5 + } + } + } + ], + "range": [ + 1015, + 1184 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 49, + "column": 6 + } + } + }, + "range": [ + 1015, + 1185 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 49, + "column": 7 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " This hook fixes DynamoDB startup delay by waiting an empty stdout dataset", + "range": [ + 883, + 959 + ], + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 80 + } + } + }, + { + "type": "Line", + "value": " @todo: remove this hook after fixing issue!", + "range": [ + 964, + 1010 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 50 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "onError", + "range": [ + 1195, + 1202 + ], + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 15 + } + } + }, + "init": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 1206, + 1211 + ], + "loc": { + "start": { + "line": 51, + "column": 19 + }, + "end": { + "line": 51, + "column": 24 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1224, + 1228 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_stop", + "range": [ + 1229, + 1234 + ], + "loc": { + "start": { + "line": 52, + "column": 11 + }, + "end": { + "line": 52, + "column": 16 + } + } + }, + "range": [ + 1224, + 1234 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 1241, + 1243 + ], + "loc": { + "start": { + "line": 52, + "column": 23 + }, + "end": { + "line": 52, + "column": 25 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 1235, + 1243 + ], + "loc": { + "start": { + "line": 52, + "column": 17 + }, + "end": { + "line": 52, + "column": 25 + } + } + } + ], + "range": [ + 1224, + 1244 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 26 + } + } + }, + "range": [ + 1224, + 1245 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 27 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "cbTriggered", + "range": [ + 1258, + 1269 + ], + "loc": { + "start": { + "line": 54, + "column": 11 + }, + "end": { + "line": 54, + "column": 22 + } + } + }, + "prefix": true, + "range": [ + 1257, + 1269 + ], + "loc": { + "start": { + "line": 54, + "column": 10 + }, + "end": { + "line": 54, + "column": 22 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "cbTriggered", + "range": [ + 1281, + 1292 + ], + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1295, + 1299 + ], + "loc": { + "start": { + "line": 55, + "column": 22 + }, + "end": { + "line": 55, + "column": 26 + } + } + }, + "range": [ + 1281, + 1299 + ], + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 26 + } + } + }, + "range": [ + 1281, + 1300 + ], + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 27 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 1309, + 1311 + ], + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "FailedToStartServerException", + "range": [ + 1316, + 1344 + ], + "loc": { + "start": { + "line": 56, + "column": 15 + }, + "end": { + "line": 56, + "column": 43 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 1345, + 1349 + ], + "loc": { + "start": { + "line": 56, + "column": 44 + }, + "end": { + "line": 56, + "column": 48 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 1351, + 1356 + ], + "loc": { + "start": { + "line": 56, + "column": 50 + }, + "end": { + "line": 56, + "column": 55 + } + } + } + ], + "range": [ + 1312, + 1357 + ], + "loc": { + "start": { + "line": 56, + "column": 11 + }, + "end": { + "line": 56, + "column": 56 + } + } + } + ], + "range": [ + 1309, + 1358 + ], + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 57 + } + } + }, + "range": [ + 1309, + 1359 + ], + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 58 + } + } + } + ], + "range": [ + 1271, + 1367 + ], + "loc": { + "start": { + "line": 54, + "column": 24 + }, + "end": { + "line": 57, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1253, + 1367 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 57, + "column": 7 + } + } + } + ], + "range": [ + 1216, + 1373 + ], + "loc": { + "start": { + "line": 51, + "column": 29 + }, + "end": { + "line": 58, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1205, + 1373 + ], + "loc": { + "start": { + "line": 51, + "column": 18 + }, + "end": { + "line": 58, + "column": 5 + } + } + }, + "range": [ + 1195, + 1373 + ], + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 58, + "column": 5 + } + } + } + ], + "kind": "let", + "range": [ + 1191, + 1374 + ], + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 58, + "column": 6 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1380, + 1384 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_process", + "range": [ + 1385, + 1393 + ], + "loc": { + "start": { + "line": 60, + "column": 9 + }, + "end": { + "line": 60, + "column": 17 + } + } + }, + "range": [ + 1380, + 1393 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "on", + "range": [ + 1394, + 1396 + ], + "loc": { + "start": { + "line": 60, + "column": 18 + }, + "end": { + "line": 60, + "column": 20 + } + } + }, + "range": [ + 1380, + 1396 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "uncaughtException", + "raw": "'uncaughtException'", + "range": [ + 1397, + 1416 + ], + "loc": { + "start": { + "line": 60, + "column": 21 + }, + "end": { + "line": 60, + "column": 40 + } + } + }, + { + "type": "Identifier", + "name": "onError", + "range": [ + 1418, + 1425 + ], + "loc": { + "start": { + "line": 60, + "column": 42 + }, + "end": { + "line": 60, + "column": 49 + } + } + } + ], + "range": [ + 1380, + 1426 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 50 + } + } + }, + "range": [ + 1380, + 1427 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 51 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1432, + 1436 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_process", + "range": [ + 1437, + 1445 + ], + "loc": { + "start": { + "line": 61, + "column": 9 + }, + "end": { + "line": 61, + "column": 17 + } + } + }, + "range": [ + 1432, + 1445 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "on", + "range": [ + 1446, + 1448 + ], + "loc": { + "start": { + "line": 61, + "column": 18 + }, + "end": { + "line": 61, + "column": 20 + } + } + }, + "range": [ + 1432, + 1448 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "error", + "raw": "'error'", + "range": [ + 1449, + 1456 + ], + "loc": { + "start": { + "line": 61, + "column": 21 + }, + "end": { + "line": 61, + "column": 28 + } + } + }, + { + "type": "Identifier", + "name": "onError", + "range": [ + 1458, + 1465 + ], + "loc": { + "start": { + "line": 61, + "column": 30 + }, + "end": { + "line": 61, + "column": 37 + } + } + } + ], + "range": [ + 1432, + 1466 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 38 + } + } + }, + "range": [ + 1432, + 1467 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 39 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1472, + 1476 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_process", + "range": [ + 1477, + 1485 + ], + "loc": { + "start": { + "line": 62, + "column": 9 + }, + "end": { + "line": 62, + "column": 17 + } + } + }, + "range": [ + 1472, + 1485 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "on", + "range": [ + 1486, + 1488 + ], + "loc": { + "start": { + "line": 62, + "column": 18 + }, + "end": { + "line": 62, + "column": 20 + } + } + }, + "range": [ + 1472, + 1488 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "exit", + "raw": "'exit'", + "range": [ + 1489, + 1495 + ], + "loc": { + "start": { + "line": 62, + "column": 21 + }, + "end": { + "line": 62, + "column": 27 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1511, + 1515 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "stop", + "range": [ + 1516, + 1520 + ], + "loc": { + "start": { + "line": 63, + "column": 11 + }, + "end": { + "line": 63, + "column": 15 + } + } + }, + "range": [ + 1511, + 1520 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 1527, + 1529 + ], + "loc": { + "start": { + "line": 63, + "column": 22 + }, + "end": { + "line": 63, + "column": 24 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 1521, + 1529 + ], + "loc": { + "start": { + "line": 63, + "column": 16 + }, + "end": { + "line": 63, + "column": 24 + } + } + } + ], + "range": [ + 1511, + 1530 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 25 + } + } + }, + "range": [ + 1511, + 1531 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 26 + } + } + } + ], + "range": [ + 1503, + 1537 + ], + "loc": { + "start": { + "line": 62, + "column": 35 + }, + "end": { + "line": 64, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1497, + 1537 + ], + "loc": { + "start": { + "line": 62, + "column": 29 + }, + "end": { + "line": 64, + "column": 5 + } + } + } + ], + "range": [ + 1472, + 1538 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 64, + "column": 6 + } + } + }, + "range": [ + 1472, + 1539 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 64, + "column": 7 + } + } + } + ], + "range": [ + 738, + 1543 + ], + "loc": { + "start": { + "line": 35, + "column": 13 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 733, + 1543 + ], + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 727, + 1543 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 65, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @private\n ", + "range": [ + 675, + 724 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @private\n ", + "range": [ + 1547, + 1596 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_stop", + "range": [ + 1599, + 1604 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 71, + "column": 7 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 1605, + 1607 + ], + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 10 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1619, + 1623 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_process", + "range": [ + 1624, + 1632 + ], + "loc": { + "start": { + "line": 72, + "column": 13 + }, + "end": { + "line": 72, + "column": 21 + } + } + }, + "range": [ + 1619, + 1632 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 21 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1642, + 1646 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_process", + "range": [ + 1647, + 1655 + ], + "loc": { + "start": { + "line": 73, + "column": 11 + }, + "end": { + "line": 73, + "column": 19 + } + } + }, + "range": [ + 1642, + 1655 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "kill", + "range": [ + 1656, + 1660 + ], + "loc": { + "start": { + "line": 73, + "column": 20 + }, + "end": { + "line": 73, + "column": 24 + } + } + }, + "range": [ + 1642, + 1660 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 24 + } + } + }, + "arguments": [], + "range": [ + 1642, + 1662 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 26 + } + } + }, + "range": [ + 1642, + 1663 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 27 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1670, + 1674 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_process", + "range": [ + 1675, + 1683 + ], + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 74, + "column": 19 + } + } + }, + "range": [ + 1670, + 1683 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1686, + 1690 + ], + "loc": { + "start": { + "line": 74, + "column": 22 + }, + "end": { + "line": 74, + "column": 26 + } + } + }, + "range": [ + 1670, + 1690 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 26 + } + } + }, + "range": [ + 1670, + 1691 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 27 + } + } + } + ], + "range": [ + 1634, + 1697 + ], + "loc": { + "start": { + "line": 72, + "column": 23 + }, + "end": { + "line": 75, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1615, + 1697 + ], + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 75, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 1703, + 1705 + ], + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 77, + "column": 6 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1706, + 1710 + ], + "loc": { + "start": { + "line": 77, + "column": 7 + }, + "end": { + "line": 77, + "column": 11 + } + } + } + ], + "range": [ + 1703, + 1711 + ], + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 77, + "column": 12 + } + } + }, + "range": [ + 1703, + 1712 + ], + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 77, + "column": 13 + } + } + } + ], + "range": [ + 1609, + 1716 + ], + "loc": { + "start": { + "line": 71, + "column": 12 + }, + "end": { + "line": 78, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1604, + 1716 + ], + "loc": { + "start": { + "line": 71, + "column": 7 + }, + "end": { + "line": 78, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1599, + 1716 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 78, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @private\n ", + "range": [ + 1547, + 1596 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1720, + 1752 + ], + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 82, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "DEFAULT_OPTIONS", + "range": [ + 1766, + 1781 + ], + "loc": { + "start": { + "line": 83, + "column": 13 + }, + "end": { + "line": 83, + "column": 28 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "stdio", + "range": [ + 1805, + 1810 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 11 + } + } + }, + "value": { + "type": "Literal", + "value": "pipe", + "raw": "'pipe'", + "range": [ + 1812, + 1818 + ], + "loc": { + "start": { + "line": 85, + "column": 13 + }, + "end": { + "line": 85, + "column": 19 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1805, + 1818 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 19 + } + } + } + ], + "range": [ + 1797, + 1825 + ], + "loc": { + "start": { + "line": 84, + "column": 11 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + "range": [ + 1790, + 1826 + ], + "loc": { + "start": { + "line": 84, + "column": 4 + }, + "end": { + "line": 86, + "column": 6 + } + } + } + ], + "range": [ + 1784, + 1830 + ], + "loc": { + "start": { + "line": 83, + "column": 31 + }, + "end": { + "line": 87, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1781, + 1830 + ], + "loc": { + "start": { + "line": 83, + "column": 28 + }, + "end": { + "line": 87, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1755, + 1830 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 87, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1720, + 1752 + ], + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 82, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 295, + 1832 + ], + "loc": { + "start": { + "line": 11, + "column": 49 + }, + "end": { + "line": 88, + "column": 1 + } + } + }, + "range": [ + 253, + 1832 + ], + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 88, + "column": 1 + } + }, + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 246, + 1832 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 88, + "column": 1 + } + } + } + ], + "sourceType": "module", + "range": [ + 46, + 1832 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 88, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} options\n * @param {String} path\n * @param {Number} port\n ", + "range": [ + 299, + 389 + ], + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 591, + 623 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @private\n ", + "range": [ + 675, + 724 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " This hook fixes DynamoDB startup delay by waiting an empty stdout dataset", + "range": [ + 883, + 959 + ], + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 80 + } + } + }, + { + "type": "Line", + "value": " @todo: remove this hook after fixing issue!", + "range": [ + 964, + 1010 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 50 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} cb\n * @private\n ", + "range": [ + 1547, + 1596 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1720, + 1752 + ], + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 82, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Local/Driver/PathAwareDriver.js.json b/docs-api/deep-db/ast/source/Local/Driver/PathAwareDriver.js.json new file mode 100644 index 00000000..6c2c53a2 --- /dev/null +++ b/docs-api/deep-db/ast/source/Local/Driver/PathAwareDriver.js.json @@ -0,0 +1,2175 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "OS", + "range": [ + 68, + 70 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 9 + } + } + }, + "range": [ + 68, + 70 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 9 + } + } + } + ], + "source": { + "type": "Literal", + "value": "os", + "raw": "'os'", + "range": [ + 76, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 15 + }, + "end": { + "line": 7, + "column": 19 + } + } + }, + "range": [ + 61, + 81 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 20 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "FileSystem", + "range": [ + 89, + 99 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 17 + } + } + }, + "range": [ + 89, + 99 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "fs", + "raw": "'fs'", + "range": [ + 105, + 109 + ], + "loc": { + "start": { + "line": 8, + "column": 23 + }, + "end": { + "line": 8, + "column": 27 + } + } + }, + "range": [ + 82, + 110 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 28 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Path", + "range": [ + 118, + 122 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 11 + } + } + }, + "range": [ + 118, + 122 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "path", + "raw": "'path'", + "range": [ + 128, + 134 + ], + "loc": { + "start": { + "line": 9, + "column": 17 + }, + "end": { + "line": 9, + "column": 23 + } + } + }, + "range": [ + 111, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 24 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 144, + 158 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 22 + } + } + }, + "imported": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 144, + 158 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 22 + } + } + }, + "range": [ + 144, + 158 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 22 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./AbstractDriver", + "raw": "'./AbstractDriver'", + "range": [ + 165, + 183 + ], + "loc": { + "start": { + "line": 10, + "column": 29 + }, + "end": { + "line": 10, + "column": 47 + } + } + }, + "range": [ + 136, + 184 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 48 + } + } + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "PathAwareDriver", + "range": [ + 199, + 214 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 28 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 223, + 237 + ], + "loc": { + "start": { + "line": 12, + "column": 37 + }, + "end": { + "line": 12, + "column": 51 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 306, + 317 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "path", + "range": [ + 318, + 322 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "PathAwareDriver", + "range": [ + 325, + 340 + ], + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "DBPath", + "range": [ + 341, + 347 + ], + "loc": { + "start": { + "line": 17, + "column": 37 + }, + "end": { + "line": 17, + "column": 43 + } + } + }, + "range": [ + 325, + 347 + ], + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 43 + } + } + }, + "range": [ + 318, + 347 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 43 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "port", + "range": [ + 349, + 353 + ], + "loc": { + "start": { + "line": 17, + "column": 45 + }, + "end": { + "line": 17, + "column": 49 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "PathAwareDriver", + "range": [ + 356, + 371 + ], + "loc": { + "start": { + "line": 17, + "column": 52 + }, + "end": { + "line": 17, + "column": 67 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_PORT", + "range": [ + 372, + 384 + ], + "loc": { + "start": { + "line": 17, + "column": 68 + }, + "end": { + "line": 17, + "column": 80 + } + } + }, + "range": [ + 356, + 384 + ], + "loc": { + "start": { + "line": 17, + "column": 52 + }, + "end": { + "line": 17, + "column": 80 + } + } + }, + "range": [ + 349, + 384 + ], + "loc": { + "start": { + "line": 17, + "column": 45 + }, + "end": { + "line": 17, + "column": 80 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 392, + 397 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "port", + "range": [ + 398, + 402 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 14 + } + } + } + ], + "range": [ + 392, + 403 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 15 + } + } + }, + "range": [ + 392, + 404 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 16 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 410, + 414 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_path", + "range": [ + 415, + 420 + ], + "loc": { + "start": { + "line": 20, + "column": 9 + }, + "end": { + "line": 20, + "column": 14 + } + } + }, + "range": [ + 410, + 420 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 14 + } + } + }, + "right": { + "type": "Identifier", + "name": "path", + "range": [ + 423, + 427 + ], + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 21 + } + } + }, + "range": [ + 410, + 427 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 21 + } + } + }, + "range": [ + 410, + 428 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 22 + } + } + } + ], + "range": [ + 386, + 432 + ], + "loc": { + "start": { + "line": 17, + "column": 82 + }, + "end": { + "line": 21, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 317, + 432 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 21, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 306, + 432 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 21, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} path\n * @param {Number} port\n ", + "range": [ + 242, + 303 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 436, + 468 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "path", + "range": [ + 475, + 479 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 495, + 499 + ], + "loc": { + "start": { + "line": 27, + "column": 11 + }, + "end": { + "line": 27, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_path", + "range": [ + 500, + 505 + ], + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 21 + } + } + }, + "range": [ + 495, + 505 + ], + "loc": { + "start": { + "line": 27, + "column": 11 + }, + "end": { + "line": 27, + "column": 21 + } + } + }, + "range": [ + 488, + 506 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 22 + } + } + } + ], + "range": [ + 482, + 510 + ], + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 28, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 479, + 510 + ], + "loc": { + "start": { + "line": 26, + "column": 10 + }, + "end": { + "line": 28, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 471, + 510 + ], + "loc": { + "start": { + "line": 26, + "column": 2 + }, + "end": { + "line": 28, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 436, + 468 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} path\n ", + "range": [ + 514, + 549 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "path", + "range": [ + 556, + 560 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "path", + "range": [ + 561, + 565 + ], + "loc": { + "start": { + "line": 33, + "column": 11 + }, + "end": { + "line": 33, + "column": 15 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 573, + 577 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_path", + "range": [ + 578, + 583 + ], + "loc": { + "start": { + "line": 34, + "column": 9 + }, + "end": { + "line": 34, + "column": 14 + } + } + }, + "range": [ + 573, + 583 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 14 + } + } + }, + "right": { + "type": "Identifier", + "name": "path", + "range": [ + 586, + 590 + ], + "loc": { + "start": { + "line": 34, + "column": 17 + }, + "end": { + "line": 34, + "column": 21 + } + } + }, + "range": [ + 573, + 590 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 21 + } + } + }, + "range": [ + 573, + 591 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 22 + } + } + } + ], + "range": [ + 567, + 595 + ], + "loc": { + "start": { + "line": 33, + "column": 17 + }, + "end": { + "line": 35, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 560, + 595 + ], + "loc": { + "start": { + "line": 33, + "column": 10 + }, + "end": { + "line": 35, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 552, + 595 + ], + "loc": { + "start": { + "line": 33, + "column": 2 + }, + "end": { + "line": 35, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} path\n ", + "range": [ + 514, + 549 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 599, + 631 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "DBPath", + "range": [ + 645, + 651 + ], + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 40, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "dir", + "range": [ + 664, + 667 + ], + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 11 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Path", + "range": [ + 670, + 674 + ], + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 41, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "join", + "range": [ + 675, + 679 + ], + "loc": { + "start": { + "line": 41, + "column": 19 + }, + "end": { + "line": 41, + "column": 23 + } + } + }, + "range": [ + 670, + 679 + ], + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 41, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "OS", + "range": [ + 680, + 682 + ], + "loc": { + "start": { + "line": 41, + "column": 24 + }, + "end": { + "line": 41, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "tmpdir", + "range": [ + 683, + 689 + ], + "loc": { + "start": { + "line": 41, + "column": 27 + }, + "end": { + "line": 41, + "column": 33 + } + } + }, + "range": [ + 680, + 689 + ], + "loc": { + "start": { + "line": 41, + "column": 24 + }, + "end": { + "line": 41, + "column": 33 + } + } + }, + "arguments": [], + "range": [ + 680, + 691 + ], + "loc": { + "start": { + "line": 41, + "column": 24 + }, + "end": { + "line": 41, + "column": 35 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 693, + 697 + ], + "loc": { + "start": { + "line": 41, + "column": 37 + }, + "end": { + "line": 41, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 698, + 702 + ], + "loc": { + "start": { + "line": 41, + "column": 42 + }, + "end": { + "line": 41, + "column": 46 + } + } + }, + "range": [ + 693, + 702 + ], + "loc": { + "start": { + "line": 41, + "column": 37 + }, + "end": { + "line": 41, + "column": 46 + } + } + } + ], + "range": [ + 670, + 703 + ], + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 41, + "column": 47 + } + } + }, + "range": [ + 664, + 703 + ], + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 47 + } + } + } + ], + "kind": "let", + "range": [ + 660, + 704 + ], + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 48 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " @todo: do it async!", + "range": [ + 710, + 732 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 26 + } + } + } + ] + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FileSystem", + "range": [ + 742, + 752 + ], + "loc": { + "start": { + "line": 44, + "column": 9 + }, + "end": { + "line": 44, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "existsSync", + "range": [ + 753, + 763 + ], + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 30 + } + } + }, + "range": [ + 742, + 763 + ], + "loc": { + "start": { + "line": 44, + "column": 9 + }, + "end": { + "line": 44, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "dir", + "range": [ + 764, + 767 + ], + "loc": { + "start": { + "line": 44, + "column": 31 + }, + "end": { + "line": 44, + "column": 34 + } + } + } + ], + "range": [ + 742, + 768 + ], + "loc": { + "start": { + "line": 44, + "column": 9 + }, + "end": { + "line": 44, + "column": 35 + } + } + }, + "prefix": true, + "range": [ + 741, + 768 + ], + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 35 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FileSystem", + "range": [ + 778, + 788 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "mkdirSync", + "range": [ + 789, + 798 + ], + "loc": { + "start": { + "line": 45, + "column": 17 + }, + "end": { + "line": 45, + "column": 26 + } + } + }, + "range": [ + 778, + 798 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 26 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "dir", + "range": [ + 799, + 802 + ], + "loc": { + "start": { + "line": 45, + "column": 27 + }, + "end": { + "line": 45, + "column": 30 + } + } + } + ], + "range": [ + 778, + 803 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 31 + } + } + }, + "range": [ + 778, + 804 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 32 + } + } + } + ], + "range": [ + 770, + 810 + ], + "loc": { + "start": { + "line": 44, + "column": 37 + }, + "end": { + "line": 46, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 737, + 810 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 46, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: do it async!", + "range": [ + 710, + 732 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 26 + } + } + } + ] + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "dir", + "range": [ + 823, + 826 + ], + "loc": { + "start": { + "line": 48, + "column": 11 + }, + "end": { + "line": 48, + "column": 14 + } + } + }, + "range": [ + 816, + 827 + ], + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 15 + } + } + } + ], + "range": [ + 654, + 831 + ], + "loc": { + "start": { + "line": 40, + "column": 22 + }, + "end": { + "line": 49, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 651, + 831 + ], + "loc": { + "start": { + "line": 40, + "column": 19 + }, + "end": { + "line": 49, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 634, + 831 + ], + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 49, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 599, + 631 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 238, + 833 + ], + "loc": { + "start": { + "line": 12, + "column": 52 + }, + "end": { + "line": 50, + "column": 1 + } + } + }, + "range": [ + 193, + 833 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 50, + "column": 1 + } + }, + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 186, + 833 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 50, + "column": 1 + } + } + } + ], + "sourceType": "module", + "range": [ + 46, + 833 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 50, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 9/23/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} path\n * @param {Number} port\n ", + "range": [ + 242, + 303 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 436, + 468 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} path\n ", + "range": [ + 514, + 549 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 599, + 631 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: do it async!", + "range": [ + 710, + 732 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 26 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Vogels/Exceptions/Exception.js.json b/docs-api/deep-db/ast/source/Vogels/Exceptions/Exception.js.json new file mode 100644 index 00000000..b6feb0d0 --- /dev/null +++ b/docs-api/deep-db/ast/source/Vogels/Exceptions/Exception.js.json @@ -0,0 +1,597 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 50, + 62 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 50, + 63 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by Stefan Hariton on 6/25/15.\n ", + "range": [ + 0, + 48 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "BaseException", + "range": [ + 86, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 21 + }, + "end": { + "line": 7, + "column": 34 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 73, + 82 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 73, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 34 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../Exception/Exception", + "raw": "'../../Exception/Exception'", + "range": [ + 106, + 133 + ], + "loc": { + "start": { + "line": 7, + "column": 41 + }, + "end": { + "line": 7, + "column": 68 + } + } + }, + "range": [ + 65, + 134 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 69 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 136, + 161 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 175, + 184 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "BaseException", + "range": [ + 193, + 206 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 44 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 248, + 259 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 263, + 267 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 260, + 267 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 275, + 280 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 284, + 288 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 281, + 288 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 275, + 289 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 275, + 290 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 269, + 294 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 259, + 294 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 248, + 294 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 211, + 245 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 207, + 296 + ], + "loc": { + "start": { + "line": 12, + "column": 45 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 169, + 296 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 136, + 161 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 162, + 296 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 136, + 161 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 50, + 296 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by Stefan Hariton on 6/25/15.\n ", + "range": [ + 0, + 48 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Base exception\n ", + "range": [ + 136, + 161 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 211, + 245 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Vogels/Exceptions/InvalidArgumentException.js.json b/docs-api/deep-db/ast/source/Vogels/Exceptions/InvalidArgumentException.js.json new file mode 100644 index 00000000..81378072 --- /dev/null +++ b/docs-api/deep-db/ast/source/Vogels/Exceptions/InvalidArgumentException.js.json @@ -0,0 +1,818 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 50, + 62 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 50, + 63 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by Stefan Hariton on 6/26/15.\n ", + "range": [ + 0, + 48 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 73, + 82 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 73, + 82 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 73, + 82 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 89, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 65, + 103 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when invalid argument provided\n ", + "range": [ + 105, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 167, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 37 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 200, + 209 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 282, + 293 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "argument", + "range": [ + 294, + 302 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 22 + } + } + }, + { + "type": "Identifier", + "name": "meantType", + "range": [ + 304, + 313 + ], + "loc": { + "start": { + "line": 17, + "column": 24 + }, + "end": { + "line": 17, + "column": 33 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "argumentType", + "range": [ + 325, + 337 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 20 + } + } + }, + "init": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "Identifier", + "name": "argument", + "range": [ + 347, + 355 + ], + "loc": { + "start": { + "line": 18, + "column": 30 + }, + "end": { + "line": 18, + "column": 38 + } + } + }, + "prefix": true, + "range": [ + 340, + 355 + ], + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 38 + } + } + }, + "range": [ + 325, + 355 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 38 + } + } + } + ], + "kind": "let", + "range": [ + 321, + 356 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 39 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 362, + 367 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Invalid argument ", + "cooked": "Invalid argument " + }, + "tail": false, + "range": [ + 368, + 388 + ], + "loc": { + "start": { + "line": 20, + "column": 10 + }, + "end": { + "line": 20, + "column": 30 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " of type ", + "cooked": " of type " + }, + "tail": false, + "range": [ + 396, + 408 + ], + "loc": { + "start": { + "line": 20, + "column": 38 + }, + "end": { + "line": 20, + "column": 50 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " provided (meant ", + "cooked": " provided (meant " + }, + "tail": false, + "range": [ + 420, + 440 + ], + "loc": { + "start": { + "line": 20, + "column": 62 + }, + "end": { + "line": 20, + "column": 82 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ").", + "cooked": ")." + }, + "tail": true, + "range": [ + 449, + 453 + ], + "loc": { + "start": { + "line": 20, + "column": 91 + }, + "end": { + "line": 20, + "column": 95 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "argument", + "range": [ + 388, + 396 + ], + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "argumentType", + "range": [ + 408, + 420 + ], + "loc": { + "start": { + "line": 20, + "column": 50 + }, + "end": { + "line": 20, + "column": 62 + } + } + }, + { + "type": "Identifier", + "name": "meantType", + "range": [ + 440, + 449 + ], + "loc": { + "start": { + "line": 20, + "column": 82 + }, + "end": { + "line": 20, + "column": 91 + } + } + } + ], + "range": [ + 368, + 453 + ], + "loc": { + "start": { + "line": 20, + "column": 10 + }, + "end": { + "line": 20, + "column": 95 + } + } + } + ], + "range": [ + 362, + 454 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 96 + } + } + }, + "range": [ + 362, + 455 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 97 + } + } + } + ], + "range": [ + 315, + 459 + ], + "loc": { + "start": { + "line": 17, + "column": 35 + }, + "end": { + "line": 21, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 293, + 459 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 21, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 282, + 459 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 21, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} argument\n * @param {String} meantType\n ", + "range": [ + 214, + 279 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 210, + 461 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 22, + "column": 1 + } + } + }, + "range": [ + 161, + 461 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when invalid argument provided\n ", + "range": [ + 105, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 154, + 461 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when invalid argument provided\n ", + "range": [ + 105, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 50, + 461 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by Stefan Hariton on 6/26/15.\n ", + "range": [ + 0, + 48 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when invalid argument provided\n ", + "range": [ + 105, + 153 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {*} argument\n * @param {String} meantType\n ", + "range": [ + 214, + 279 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Vogels/Exceptions/UndefinedMethodException.js.json b/docs-api/deep-db/ast/source/Vogels/Exceptions/UndefinedMethodException.js.json new file mode 100644 index 00000000..3d833aea --- /dev/null +++ b/docs-api/deep-db/ast/source/Vogels/Exceptions/UndefinedMethodException.js.json @@ -0,0 +1,686 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 50, + 62 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 50, + 63 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by Stefan Hariton on 6/26/15.\n ", + "range": [ + 0, + 48 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 73, + 82 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 73, + 82 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 73, + 82 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 89, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 65, + 103 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when undefined method is requested\n ", + "range": [ + 105, + 157 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "UndefinedMethodException", + "range": [ + 171, + 195 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 37 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 204, + 213 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 276, + 287 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 288, + 292 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + { + "type": "Identifier", + "name": "availableMethods", + "range": [ + 294, + 310 + ], + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 36 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 318, + 323 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Method: ", + "cooked": "Method: " + }, + "tail": false, + "range": [ + 324, + 335 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 21 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " does not exist. Available methods:", + "cooked": " does not exist. Available methods:" + }, + "tail": false, + "range": [ + 339, + 377 + ], + "loc": { + "start": { + "line": 18, + "column": 25 + }, + "end": { + "line": 18, + "column": 63 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ").", + "cooked": ")." + }, + "tail": true, + "range": [ + 393, + 397 + ], + "loc": { + "start": { + "line": 18, + "column": 79 + }, + "end": { + "line": 18, + "column": 83 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 335, + 339 + ], + "loc": { + "start": { + "line": 18, + "column": 21 + }, + "end": { + "line": 18, + "column": 25 + } + } + }, + { + "type": "Identifier", + "name": "availableMethods", + "range": [ + 377, + 393 + ], + "loc": { + "start": { + "line": 18, + "column": 63 + }, + "end": { + "line": 18, + "column": 79 + } + } + } + ], + "range": [ + 324, + 397 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 83 + } + } + } + ], + "range": [ + 318, + 398 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 84 + } + } + }, + "range": [ + 318, + 399 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 85 + } + } + } + ], + "range": [ + 312, + 403 + ], + "loc": { + "start": { + "line": 17, + "column": 38 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 287, + 403 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 276, + 403 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param name\n * @param availableMethods\n ", + "range": [ + 218, + 273 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 214, + 405 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 20, + "column": 1 + } + } + }, + "range": [ + 165, + 405 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when undefined method is requested\n ", + "range": [ + 105, + 157 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 158, + 405 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when undefined method is requested\n ", + "range": [ + 105, + 157 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 50, + 405 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by Stefan Hariton on 6/26/15.\n ", + "range": [ + 0, + 48 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when undefined method is requested\n ", + "range": [ + 105, + 157 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param name\n * @param availableMethods\n ", + "range": [ + 218, + 273 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/Vogels/ExtendModel.js.json b/docs-api/deep-db/ast/source/Vogels/ExtendModel.js.json new file mode 100644 index 00000000..164a432d --- /dev/null +++ b/docs-api/deep-db/ast/source/Vogels/ExtendModel.js.json @@ -0,0 +1,15671 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 50, + 62 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 50, + 63 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by Stefan Hariton on 6/26/15.\n ", + "range": [ + 0, + 48 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "UndefinedMethodException", + "range": [ + 72, + 96 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 31 + } + } + }, + "range": [ + 72, + 96 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 31 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exceptions/UndefinedMethodException", + "raw": "'./Exceptions/UndefinedMethodException'", + "range": [ + 102, + 141 + ], + "loc": { + "start": { + "line": 7, + "column": 37 + }, + "end": { + "line": 7, + "column": 76 + } + } + }, + "range": [ + 65, + 142 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 77 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Extends standard Vogels models\n ", + "range": [ + 144, + 185 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "ExtendModel", + "range": [ + 199, + 210 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 24 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 254, + 265 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "model", + "range": [ + 266, + 271 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 19 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 279, + 283 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_model", + "range": [ + 284, + 290 + ], + "loc": { + "start": { + "line": 17, + "column": 9 + }, + "end": { + "line": 17, + "column": 15 + } + } + }, + "range": [ + 279, + 290 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 15 + } + } + }, + "right": { + "type": "Identifier", + "name": "model", + "range": [ + 293, + 298 + ], + "loc": { + "start": { + "line": 17, + "column": 18 + }, + "end": { + "line": 17, + "column": 23 + } + } + }, + "range": [ + 279, + 298 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 23 + } + } + }, + "range": [ + 279, + 299 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 24 + } + } + } + ], + "range": [ + 273, + 303 + ], + "loc": { + "start": { + "line": 16, + "column": 21 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 265, + 303 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 254, + 303 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} model\n ", + "range": [ + 215, + 251 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 307, + 339 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "model", + "range": [ + 346, + 351 + ], + "loc": { + "start": { + "line": 23, + "column": 6 + }, + "end": { + "line": 23, + "column": 11 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 367, + 371 + ], + "loc": { + "start": { + "line": 24, + "column": 11 + }, + "end": { + "line": 24, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_model", + "range": [ + 372, + 378 + ], + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 22 + } + } + }, + "range": [ + 367, + 378 + ], + "loc": { + "start": { + "line": 24, + "column": 11 + }, + "end": { + "line": 24, + "column": 22 + } + } + }, + "range": [ + 360, + 379 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 23 + } + } + } + ], + "range": [ + 354, + 383 + ], + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 25, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 351, + 383 + ], + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 25, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 342, + 383 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 307, + 339 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 387, + 419 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "DEFAULT_LIMIT", + "range": [ + 433, + 446 + ], + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 26 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": 10, + "raw": "10", + "range": [ + 462, + 464 + ], + "loc": { + "start": { + "line": 31, + "column": 11 + }, + "end": { + "line": 31, + "column": 13 + } + } + }, + "range": [ + 455, + 465 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 14 + } + } + } + ], + "range": [ + 449, + 469 + ], + "loc": { + "start": { + "line": 30, + "column": 29 + }, + "end": { + "line": 32, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 446, + 469 + ], + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 32, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 422, + 469 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 387, + 419 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {number}\n ", + "range": [ + 473, + 505 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "DEFAULT_SEGMENTS_NUMBER", + "range": [ + 519, + 542 + ], + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 36 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": 4, + "raw": "4", + "range": [ + 558, + 559 + ], + "loc": { + "start": { + "line": 38, + "column": 11 + }, + "end": { + "line": 38, + "column": 12 + } + } + }, + "range": [ + 551, + 560 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 13 + } + } + } + ], + "range": [ + 545, + 564 + ], + "loc": { + "start": { + "line": 37, + "column": 39 + }, + "end": { + "line": 39, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 542, + 564 + ], + "loc": { + "start": { + "line": 37, + "column": 36 + }, + "end": { + "line": 39, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 508, + 564 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {number}\n ", + "range": [ + 473, + 505 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Makes filterExpression, filtersExpressionValues and filterExpressionNames from an object, that are used to make\n * a DynamoDb scan\n *\n * @param {Object} params\n * @returns {Object}\n ", + "range": [ + 568, + 771 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "buildScanParameters", + "range": [ + 781, + 800 + ], + "loc": { + "start": { + "line": 48, + "column": 9 + }, + "end": { + "line": 48, + "column": 28 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "params", + "range": [ + 801, + 807 + ], + "loc": { + "start": { + "line": 48, + "column": 29 + }, + "end": { + "line": 48, + "column": 35 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 819, + 835 + ], + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 49, + "column": 24 + } + } + }, + "init": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 838, + 840 + ], + "loc": { + "start": { + "line": 49, + "column": 27 + }, + "end": { + "line": 49, + "column": 29 + } + } + }, + "range": [ + 819, + 840 + ], + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 49, + "column": 29 + } + } + } + ], + "kind": "let", + "range": [ + 815, + 841 + ], + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 30 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "filterExpressionValues", + "range": [ + 850, + 872 + ], + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 30 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 875, + 877 + ], + "loc": { + "start": { + "line": 50, + "column": 33 + }, + "end": { + "line": 50, + "column": 35 + } + } + }, + "range": [ + 850, + 877 + ], + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 35 + } + } + } + ], + "kind": "let", + "range": [ + 846, + 878 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 36 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "filterExpressionNames", + "range": [ + 887, + 908 + ], + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 29 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 911, + 913 + ], + "loc": { + "start": { + "line": 51, + "column": 32 + }, + "end": { + "line": 51, + "column": 34 + } + } + }, + "range": [ + 887, + 913 + ], + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 34 + } + } + } + ], + "kind": "let", + "range": [ + 883, + 914 + ], + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 35 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "first", + "range": [ + 923, + 928 + ], + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 13 + } + } + }, + "init": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 931, + 935 + ], + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 20 + } + } + }, + "range": [ + 923, + 935 + ], + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 20 + } + } + } + ], + "kind": "let", + "range": [ + 919, + 936 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 21 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "key", + "range": [ + 951, + 954 + ], + "loc": { + "start": { + "line": 54, + "column": 13 + }, + "end": { + "line": 54, + "column": 16 + } + } + }, + "init": null, + "range": [ + 951, + 954 + ], + "loc": { + "start": { + "line": 54, + "column": 13 + }, + "end": { + "line": 54, + "column": 16 + } + } + } + ], + "kind": "let", + "range": [ + 947, + 954 + ], + "loc": { + "start": { + "line": 54, + "column": 9 + }, + "end": { + "line": 54, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "params", + "range": [ + 958, + 964 + ], + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 54, + "column": 26 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "params", + "range": [ + 979, + 985 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 986, + 1000 + ], + "loc": { + "start": { + "line": 55, + "column": 18 + }, + "end": { + "line": 55, + "column": 32 + } + } + }, + "range": [ + 979, + 1000 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1001, + 1004 + ], + "loc": { + "start": { + "line": 55, + "column": 33 + }, + "end": { + "line": 55, + "column": 36 + } + } + } + ], + "range": [ + 979, + 1005 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 37 + } + } + }, + "prefix": true, + "range": [ + 978, + 1005 + ], + "loc": { + "start": { + "line": 55, + "column": 10 + }, + "end": { + "line": 55, + "column": 37 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 1017, + 1026 + ], + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 17 + } + } + } + ], + "range": [ + 1007, + 1034 + ], + "loc": { + "start": { + "line": 55, + "column": 39 + }, + "end": { + "line": 57, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 974, + 1034 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 57, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "fieldValue", + "range": [ + 1046, + 1056 + ], + "loc": { + "start": { + "line": 59, + "column": 10 + }, + "end": { + "line": 59, + "column": 20 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "params", + "range": [ + 1059, + 1065 + ], + "loc": { + "start": { + "line": 59, + "column": 23 + }, + "end": { + "line": 59, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 1066, + 1069 + ], + "loc": { + "start": { + "line": 59, + "column": 30 + }, + "end": { + "line": 59, + "column": 33 + } + } + }, + "range": [ + 1059, + 1070 + ], + "loc": { + "start": { + "line": 59, + "column": 23 + }, + "end": { + "line": 59, + "column": 34 + } + } + }, + "range": [ + 1046, + 1070 + ], + "loc": { + "start": { + "line": 59, + "column": 10 + }, + "end": { + "line": 59, + "column": 34 + } + } + } + ], + "kind": "let", + "range": [ + 1042, + 1071 + ], + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 35 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "fieldName", + "range": [ + 1083, + 1092 + ], + "loc": { + "start": { + "line": 61, + "column": 10 + }, + "end": { + "line": 61, + "column": 19 + } + } + }, + "init": { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "#", + "cooked": "#" + }, + "tail": false, + "range": [ + 1095, + 1099 + ], + "loc": { + "start": { + "line": 61, + "column": 22 + }, + "end": { + "line": 61, + "column": 26 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 1102, + 1104 + ], + "loc": { + "start": { + "line": 61, + "column": 29 + }, + "end": { + "line": 61, + "column": 31 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1099, + 1102 + ], + "loc": { + "start": { + "line": 61, + "column": 26 + }, + "end": { + "line": 61, + "column": 29 + } + } + } + ], + "range": [ + 1095, + 1104 + ], + "loc": { + "start": { + "line": 61, + "column": 22 + }, + "end": { + "line": 61, + "column": 31 + } + } + }, + "range": [ + 1083, + 1104 + ], + "loc": { + "start": { + "line": 61, + "column": 10 + }, + "end": { + "line": 61, + "column": 31 + } + } + } + ], + "kind": "let", + "range": [ + 1079, + 1105 + ], + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 61, + "column": 32 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "fieldValueName", + "range": [ + 1116, + 1130 + ], + "loc": { + "start": { + "line": 62, + "column": 10 + }, + "end": { + "line": 62, + "column": 24 + } + } + }, + "init": { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": ":", + "cooked": ":" + }, + "tail": false, + "range": [ + 1133, + 1137 + ], + "loc": { + "start": { + "line": 62, + "column": 27 + }, + "end": { + "line": 62, + "column": 31 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 1140, + 1142 + ], + "loc": { + "start": { + "line": 62, + "column": 34 + }, + "end": { + "line": 62, + "column": 36 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1137, + 1140 + ], + "loc": { + "start": { + "line": 62, + "column": 31 + }, + "end": { + "line": 62, + "column": 34 + } + } + } + ], + "range": [ + 1133, + 1142 + ], + "loc": { + "start": { + "line": 62, + "column": 27 + }, + "end": { + "line": 62, + "column": 36 + } + } + }, + "range": [ + 1116, + 1142 + ], + "loc": { + "start": { + "line": 62, + "column": 10 + }, + "end": { + "line": 62, + "column": 36 + } + } + } + ], + "kind": "let", + "range": [ + 1112, + 1143 + ], + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 37 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "first", + "range": [ + 1156, + 1161 + ], + "loc": { + "start": { + "line": 64, + "column": 11 + }, + "end": { + "line": 64, + "column": 16 + } + } + }, + "prefix": true, + "range": [ + 1155, + 1161 + ], + "loc": { + "start": { + "line": 64, + "column": 10 + }, + "end": { + "line": 64, + "column": 16 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "+=", + "left": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 1173, + 1189 + ], + "loc": { + "start": { + "line": 65, + "column": 8 + }, + "end": { + "line": 65, + "column": 24 + } + } + }, + "right": { + "type": "Literal", + "value": " AND ", + "raw": "' AND '", + "range": [ + 1193, + 1200 + ], + "loc": { + "start": { + "line": 65, + "column": 28 + }, + "end": { + "line": 65, + "column": 35 + } + } + }, + "range": [ + 1173, + 1200 + ], + "loc": { + "start": { + "line": 65, + "column": 8 + }, + "end": { + "line": 65, + "column": 35 + } + } + }, + "range": [ + 1173, + 1201 + ], + "loc": { + "start": { + "line": 65, + "column": 8 + }, + "end": { + "line": 65, + "column": 36 + } + } + } + ], + "range": [ + 1163, + 1209 + ], + "loc": { + "start": { + "line": 64, + "column": 18 + }, + "end": { + "line": 66, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1151, + 1209 + ], + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 66, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "+=", + "left": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 1217, + 1233 + ], + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 22 + } + } + }, + "right": { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": false, + "range": [ + 1237, + 1240 + ], + "loc": { + "start": { + "line": 68, + "column": 26 + }, + "end": { + "line": 68, + "column": 29 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " = ", + "cooked": " = " + }, + "tail": false, + "range": [ + 1249, + 1255 + ], + "loc": { + "start": { + "line": 68, + "column": 38 + }, + "end": { + "line": 68, + "column": 44 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 1269, + 1271 + ], + "loc": { + "start": { + "line": 68, + "column": 58 + }, + "end": { + "line": 68, + "column": 60 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "fieldName", + "range": [ + 1240, + 1249 + ], + "loc": { + "start": { + "line": 68, + "column": 29 + }, + "end": { + "line": 68, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "fieldValueName", + "range": [ + 1255, + 1269 + ], + "loc": { + "start": { + "line": 68, + "column": 44 + }, + "end": { + "line": 68, + "column": 58 + } + } + } + ], + "range": [ + 1237, + 1271 + ], + "loc": { + "start": { + "line": 68, + "column": 26 + }, + "end": { + "line": 68, + "column": 60 + } + } + }, + "range": [ + 1217, + 1271 + ], + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 60 + } + } + }, + "range": [ + 1217, + 1272 + ], + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 61 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "filterExpressionValues", + "range": [ + 1279, + 1301 + ], + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "fieldValueName", + "range": [ + 1302, + 1316 + ], + "loc": { + "start": { + "line": 69, + "column": 29 + }, + "end": { + "line": 69, + "column": 43 + } + } + }, + "range": [ + 1279, + 1317 + ], + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 44 + } + } + }, + "right": { + "type": "Identifier", + "name": "fieldValue", + "range": [ + 1320, + 1330 + ], + "loc": { + "start": { + "line": 69, + "column": 47 + }, + "end": { + "line": 69, + "column": 57 + } + } + }, + "range": [ + 1279, + 1330 + ], + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 57 + } + } + }, + "range": [ + 1279, + 1331 + ], + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 58 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "filterExpressionNames", + "range": [ + 1338, + 1359 + ], + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "fieldName", + "range": [ + 1360, + 1369 + ], + "loc": { + "start": { + "line": 70, + "column": 28 + }, + "end": { + "line": 70, + "column": 37 + } + } + }, + "range": [ + 1338, + 1370 + ], + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 38 + } + } + }, + "right": { + "type": "Identifier", + "name": "key", + "range": [ + 1373, + 1376 + ], + "loc": { + "start": { + "line": 70, + "column": 41 + }, + "end": { + "line": 70, + "column": 44 + } + } + }, + "range": [ + 1338, + 1376 + ], + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 44 + } + } + }, + "range": [ + 1338, + 1377 + ], + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 45 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "first", + "range": [ + 1384, + 1389 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 11 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 1392, + 1397 + ], + "loc": { + "start": { + "line": 71, + "column": 14 + }, + "end": { + "line": 71, + "column": 19 + } + } + }, + "range": [ + 1384, + 1397 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 19 + } + } + }, + "range": [ + 1384, + 1398 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 20 + } + } + } + ], + "range": [ + 966, + 1404 + ], + "loc": { + "start": { + "line": 54, + "column": 28 + }, + "end": { + "line": 72, + "column": 5 + } + } + }, + "each": false, + "range": [ + 942, + 1404 + ], + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 72, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 1425, + 1441 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 22 + } + } + }, + "value": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 1443, + 1459 + ], + "loc": { + "start": { + "line": 75, + "column": 24 + }, + "end": { + "line": 75, + "column": 40 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1425, + 1459 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 40 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "filterExpressionValues", + "range": [ + 1467, + 1489 + ], + "loc": { + "start": { + "line": 76, + "column": 6 + }, + "end": { + "line": 76, + "column": 28 + } + } + }, + "value": { + "type": "Identifier", + "name": "filterExpressionValues", + "range": [ + 1491, + 1513 + ], + "loc": { + "start": { + "line": 76, + "column": 30 + }, + "end": { + "line": 76, + "column": 52 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1467, + 1513 + ], + "loc": { + "start": { + "line": 76, + "column": 6 + }, + "end": { + "line": 76, + "column": 52 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "filterExpressionNames", + "range": [ + 1521, + 1542 + ], + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 77, + "column": 27 + } + } + }, + "value": { + "type": "Identifier", + "name": "filterExpressionNames", + "range": [ + 1544, + 1565 + ], + "loc": { + "start": { + "line": 77, + "column": 29 + }, + "end": { + "line": 77, + "column": 50 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1521, + 1565 + ], + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 77, + "column": 50 + } + } + } + ], + "range": [ + 1417, + 1572 + ], + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 78, + "column": 5 + } + } + }, + "range": [ + 1410, + 1573 + ], + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 78, + "column": 6 + } + } + } + ], + "range": [ + 809, + 1577 + ], + "loc": { + "start": { + "line": 48, + "column": 37 + }, + "end": { + "line": 79, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 800, + 1577 + ], + "loc": { + "start": { + "line": 48, + "column": 28 + }, + "end": { + "line": 79, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 774, + 1577 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 79, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Makes filterExpression, filtersExpressionValues and filterExpressionNames from an object, that are used to make\n * a DynamoDb scan\n *\n * @param {Object} params\n * @returns {Object}\n ", + "range": [ + 568, + 771 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1581, + 1613 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "methods", + "range": [ + 1620, + 1627 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "_this", + "range": [ + 1640, + 1645 + ], + "loc": { + "start": { + "line": 85, + "column": 8 + }, + "end": { + "line": 85, + "column": 13 + } + } + }, + "init": { + "type": "ThisExpression", + "range": [ + 1648, + 1652 + ], + "loc": { + "start": { + "line": 85, + "column": 16 + }, + "end": { + "line": 85, + "column": 20 + } + } + }, + "range": [ + 1640, + 1652 + ], + "loc": { + "start": { + "line": 85, + "column": 8 + }, + "end": { + "line": 85, + "column": 20 + } + } + } + ], + "kind": "let", + "range": [ + 1636, + 1653 + ], + "loc": { + "start": { + "line": 85, + "column": 4 + }, + "end": { + "line": 85, + "column": 21 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "findAll", + "range": [ + 1674, + 1681 + ], + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 88, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 1692, + 1694 + ], + "loc": { + "start": { + "line": 88, + "column": 24 + }, + "end": { + "line": 88, + "column": 26 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 1713, + 1718 + ], + "loc": { + "start": { + "line": 89, + "column": 15 + }, + "end": { + "line": 89, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 1719, + 1724 + ], + "loc": { + "start": { + "line": 89, + "column": 21 + }, + "end": { + "line": 89, + "column": 26 + } + } + }, + "range": [ + 1713, + 1724 + ], + "loc": { + "start": { + "line": 89, + "column": 15 + }, + "end": { + "line": 89, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "scan", + "range": [ + 1725, + 1729 + ], + "loc": { + "start": { + "line": 89, + "column": 27 + }, + "end": { + "line": 89, + "column": 31 + } + } + }, + "range": [ + 1713, + 1729 + ], + "loc": { + "start": { + "line": 89, + "column": 15 + }, + "end": { + "line": 89, + "column": 31 + } + } + }, + "arguments": [], + "range": [ + 1713, + 1731 + ], + "loc": { + "start": { + "line": 89, + "column": 15 + }, + "end": { + "line": 89, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "loadAll", + "range": [ + 1732, + 1739 + ], + "loc": { + "start": { + "line": 89, + "column": 34 + }, + "end": { + "line": 89, + "column": 41 + } + } + }, + "range": [ + 1713, + 1739 + ], + "loc": { + "start": { + "line": 89, + "column": 15 + }, + "end": { + "line": 89, + "column": 41 + } + } + }, + "arguments": [], + "range": [ + 1713, + 1741 + ], + "loc": { + "start": { + "line": 89, + "column": 15 + }, + "end": { + "line": 89, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "name": "exec", + "range": [ + 1742, + 1746 + ], + "loc": { + "start": { + "line": 89, + "column": 44 + }, + "end": { + "line": 89, + "column": 48 + } + } + }, + "range": [ + 1713, + 1746 + ], + "loc": { + "start": { + "line": 89, + "column": 15 + }, + "end": { + "line": 89, + "column": 48 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 1747, + 1749 + ], + "loc": { + "start": { + "line": 89, + "column": 49 + }, + "end": { + "line": 89, + "column": 51 + } + } + } + ], + "range": [ + 1713, + 1750 + ], + "loc": { + "start": { + "line": 89, + "column": 15 + }, + "end": { + "line": 89, + "column": 52 + } + } + }, + "range": [ + 1706, + 1751 + ], + "loc": { + "start": { + "line": 89, + "column": 8 + }, + "end": { + "line": 89, + "column": 53 + } + } + } + ], + "range": [ + 1696, + 1759 + ], + "loc": { + "start": { + "line": 88, + "column": 28 + }, + "end": { + "line": 90, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1683, + 1759 + ], + "loc": { + "start": { + "line": 88, + "column": 15 + }, + "end": { + "line": 90, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1674, + 1759 + ], + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 90, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "findAllPaginated", + "range": [ + 1768, + 1784 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 22 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "startKey", + "range": [ + 1795, + 1803 + ], + "loc": { + "start": { + "line": 92, + "column": 33 + }, + "end": { + "line": 92, + "column": 41 + } + } + }, + { + "type": "Identifier", + "name": "limit", + "range": [ + 1805, + 1810 + ], + "loc": { + "start": { + "line": 92, + "column": 43 + }, + "end": { + "line": 92, + "column": 48 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 1812, + 1814 + ], + "loc": { + "start": { + "line": 92, + "column": 50 + }, + "end": { + "line": 92, + "column": 52 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 1833, + 1838 + ], + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 93, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 1839, + 1844 + ], + "loc": { + "start": { + "line": 93, + "column": 21 + }, + "end": { + "line": 93, + "column": 26 + } + } + }, + "range": [ + 1833, + 1844 + ], + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 93, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "scan", + "range": [ + 1856, + 1860 + ], + "loc": { + "start": { + "line": 94, + "column": 11 + }, + "end": { + "line": 94, + "column": 15 + } + } + }, + "range": [ + 1833, + 1860 + ], + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 94, + "column": 15 + } + } + }, + "arguments": [], + "range": [ + 1833, + 1862 + ], + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 94, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "startKey", + "range": [ + 1874, + 1882 + ], + "loc": { + "start": { + "line": 95, + "column": 11 + }, + "end": { + "line": 95, + "column": 19 + } + } + }, + "range": [ + 1833, + 1882 + ], + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 95, + "column": 19 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "startKey", + "range": [ + 1883, + 1891 + ], + "loc": { + "start": { + "line": 95, + "column": 20 + }, + "end": { + "line": 95, + "column": 28 + } + } + } + ], + "range": [ + 1833, + 1892 + ], + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 95, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "limit", + "range": [ + 1904, + 1909 + ], + "loc": { + "start": { + "line": 96, + "column": 11 + }, + "end": { + "line": 96, + "column": 16 + } + } + }, + "range": [ + 1833, + 1909 + ], + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 96, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "limit", + "range": [ + 1910, + 1915 + ], + "loc": { + "start": { + "line": 96, + "column": 17 + }, + "end": { + "line": 96, + "column": 22 + } + } + } + ], + "range": [ + 1833, + 1916 + ], + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 96, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "exec", + "range": [ + 1928, + 1932 + ], + "loc": { + "start": { + "line": 97, + "column": 11 + }, + "end": { + "line": 97, + "column": 15 + } + } + }, + "range": [ + 1833, + 1932 + ], + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 97, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 1933, + 1935 + ], + "loc": { + "start": { + "line": 97, + "column": 16 + }, + "end": { + "line": 97, + "column": 18 + } + } + } + ], + "range": [ + 1833, + 1936 + ], + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 97, + "column": 19 + } + } + }, + "range": [ + 1826, + 1937 + ], + "loc": { + "start": { + "line": 93, + "column": 8 + }, + "end": { + "line": 97, + "column": 20 + } + } + } + ], + "range": [ + 1816, + 1945 + ], + "loc": { + "start": { + "line": 92, + "column": 54 + }, + "end": { + "line": 98, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1786, + 1945 + ], + "loc": { + "start": { + "line": 92, + "column": 24 + }, + "end": { + "line": 98, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1768, + 1945 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 98, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "findOneById", + "range": [ + 1954, + 1965 + ], + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 17 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "id", + "range": [ + 1976, + 1978 + ], + "loc": { + "start": { + "line": 100, + "column": 28 + }, + "end": { + "line": 100, + "column": 30 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 1980, + 1982 + ], + "loc": { + "start": { + "line": 100, + "column": 32 + }, + "end": { + "line": 100, + "column": 34 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 2001, + 2006 + ], + "loc": { + "start": { + "line": 101, + "column": 15 + }, + "end": { + "line": 101, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 2007, + 2012 + ], + "loc": { + "start": { + "line": 101, + "column": 21 + }, + "end": { + "line": 101, + "column": 26 + } + } + }, + "range": [ + 2001, + 2012 + ], + "loc": { + "start": { + "line": 101, + "column": 15 + }, + "end": { + "line": 101, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 2013, + 2016 + ], + "loc": { + "start": { + "line": 101, + "column": 27 + }, + "end": { + "line": 101, + "column": 30 + } + } + }, + "range": [ + 2001, + 2016 + ], + "loc": { + "start": { + "line": 101, + "column": 15 + }, + "end": { + "line": 101, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "id", + "range": [ + 2017, + 2019 + ], + "loc": { + "start": { + "line": 101, + "column": 31 + }, + "end": { + "line": 101, + "column": 33 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 2021, + 2023 + ], + "loc": { + "start": { + "line": 101, + "column": 35 + }, + "end": { + "line": 101, + "column": 37 + } + } + } + ], + "range": [ + 2001, + 2024 + ], + "loc": { + "start": { + "line": 101, + "column": 15 + }, + "end": { + "line": 101, + "column": 38 + } + } + }, + "range": [ + 1994, + 2025 + ], + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 101, + "column": 39 + } + } + } + ], + "range": [ + 1984, + 2033 + ], + "loc": { + "start": { + "line": 100, + "column": 36 + }, + "end": { + "line": 102, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1967, + 2033 + ], + "loc": { + "start": { + "line": 100, + "column": 19 + }, + "end": { + "line": 102, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1954, + 2033 + ], + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 102, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "findOneBy", + "range": [ + 2042, + 2051 + ], + "loc": { + "start": { + "line": 104, + "column": 6 + }, + "end": { + "line": 104, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "fieldName", + "range": [ + 2062, + 2071 + ], + "loc": { + "start": { + "line": 104, + "column": 26 + }, + "end": { + "line": 104, + "column": 35 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 2073, + 2078 + ], + "loc": { + "start": { + "line": 104, + "column": 37 + }, + "end": { + "line": 104, + "column": 42 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 2080, + 2082 + ], + "loc": { + "start": { + "line": 104, + "column": 44 + }, + "end": { + "line": 104, + "column": 46 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 2101, + 2106 + ], + "loc": { + "start": { + "line": 105, + "column": 15 + }, + "end": { + "line": 105, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 2107, + 2112 + ], + "loc": { + "start": { + "line": 105, + "column": 21 + }, + "end": { + "line": 105, + "column": 26 + } + } + }, + "range": [ + 2101, + 2112 + ], + "loc": { + "start": { + "line": 105, + "column": 15 + }, + "end": { + "line": 105, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "scan", + "range": [ + 2124, + 2128 + ], + "loc": { + "start": { + "line": 106, + "column": 11 + }, + "end": { + "line": 106, + "column": 15 + } + } + }, + "range": [ + 2101, + 2128 + ], + "loc": { + "start": { + "line": 105, + "column": 15 + }, + "end": { + "line": 106, + "column": 15 + } + } + }, + "arguments": [], + "range": [ + 2101, + 2130 + ], + "loc": { + "start": { + "line": 105, + "column": 15 + }, + "end": { + "line": 106, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "where", + "range": [ + 2142, + 2147 + ], + "loc": { + "start": { + "line": 107, + "column": 11 + }, + "end": { + "line": 107, + "column": 16 + } + } + }, + "range": [ + 2101, + 2147 + ], + "loc": { + "start": { + "line": 105, + "column": 15 + }, + "end": { + "line": 107, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "fieldName", + "range": [ + 2148, + 2157 + ], + "loc": { + "start": { + "line": 107, + "column": 17 + }, + "end": { + "line": 107, + "column": 26 + } + } + } + ], + "range": [ + 2101, + 2158 + ], + "loc": { + "start": { + "line": 105, + "column": 15 + }, + "end": { + "line": 107, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "equals", + "range": [ + 2159, + 2165 + ], + "loc": { + "start": { + "line": 107, + "column": 28 + }, + "end": { + "line": 107, + "column": 34 + } + } + }, + "range": [ + 2101, + 2165 + ], + "loc": { + "start": { + "line": 105, + "column": 15 + }, + "end": { + "line": 107, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "value", + "range": [ + 2166, + 2171 + ], + "loc": { + "start": { + "line": 107, + "column": 35 + }, + "end": { + "line": 107, + "column": 40 + } + } + } + ], + "range": [ + 2101, + 2172 + ], + "loc": { + "start": { + "line": 105, + "column": 15 + }, + "end": { + "line": 107, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "name": "limit", + "range": [ + 2184, + 2189 + ], + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 108, + "column": 16 + } + } + }, + "range": [ + 2101, + 2189 + ], + "loc": { + "start": { + "line": 105, + "column": 15 + }, + "end": { + "line": 108, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 2190, + 2191 + ], + "loc": { + "start": { + "line": 108, + "column": 17 + }, + "end": { + "line": 108, + "column": 18 + } + } + } + ], + "range": [ + 2101, + 2192 + ], + "loc": { + "start": { + "line": 105, + "column": 15 + }, + "end": { + "line": 108, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "exec", + "range": [ + 2204, + 2208 + ], + "loc": { + "start": { + "line": 109, + "column": 11 + }, + "end": { + "line": 109, + "column": 15 + } + } + }, + "range": [ + 2101, + 2208 + ], + "loc": { + "start": { + "line": 105, + "column": 15 + }, + "end": { + "line": 109, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 2209, + 2211 + ], + "loc": { + "start": { + "line": 109, + "column": 16 + }, + "end": { + "line": 109, + "column": 18 + } + } + } + ], + "range": [ + 2101, + 2212 + ], + "loc": { + "start": { + "line": 105, + "column": 15 + }, + "end": { + "line": 109, + "column": 19 + } + } + }, + "range": [ + 2094, + 2213 + ], + "loc": { + "start": { + "line": 105, + "column": 8 + }, + "end": { + "line": 109, + "column": 20 + } + } + } + ], + "range": [ + 2084, + 2221 + ], + "loc": { + "start": { + "line": 104, + "column": 48 + }, + "end": { + "line": 110, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2053, + 2221 + ], + "loc": { + "start": { + "line": 104, + "column": 17 + }, + "end": { + "line": 110, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 2042, + 2221 + ], + "loc": { + "start": { + "line": 104, + "column": 6 + }, + "end": { + "line": 110, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "findBy", + "range": [ + 2230, + 2236 + ], + "loc": { + "start": { + "line": 112, + "column": 6 + }, + "end": { + "line": 112, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "fieldName", + "range": [ + 2247, + 2256 + ], + "loc": { + "start": { + "line": 112, + "column": 23 + }, + "end": { + "line": 112, + "column": 32 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 2258, + 2263 + ], + "loc": { + "start": { + "line": 112, + "column": 34 + }, + "end": { + "line": 112, + "column": 39 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 2265, + 2267 + ], + "loc": { + "start": { + "line": 112, + "column": 41 + }, + "end": { + "line": 112, + "column": 43 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "limit", + "range": [ + 2269, + 2274 + ], + "loc": { + "start": { + "line": 112, + "column": 45 + }, + "end": { + "line": 112, + "column": 50 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "ExtendModel", + "range": [ + 2277, + 2288 + ], + "loc": { + "start": { + "line": 112, + "column": 53 + }, + "end": { + "line": 112, + "column": 64 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_LIMIT", + "range": [ + 2289, + 2302 + ], + "loc": { + "start": { + "line": 112, + "column": 65 + }, + "end": { + "line": 112, + "column": 78 + } + } + }, + "range": [ + 2277, + 2302 + ], + "loc": { + "start": { + "line": 112, + "column": 53 + }, + "end": { + "line": 112, + "column": 78 + } + } + }, + "range": [ + 2269, + 2302 + ], + "loc": { + "start": { + "line": 112, + "column": 45 + }, + "end": { + "line": 112, + "column": 78 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 2321, + 2326 + ], + "loc": { + "start": { + "line": 113, + "column": 15 + }, + "end": { + "line": 113, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 2327, + 2332 + ], + "loc": { + "start": { + "line": 113, + "column": 21 + }, + "end": { + "line": 113, + "column": 26 + } + } + }, + "range": [ + 2321, + 2332 + ], + "loc": { + "start": { + "line": 113, + "column": 15 + }, + "end": { + "line": 113, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "scan", + "range": [ + 2344, + 2348 + ], + "loc": { + "start": { + "line": 114, + "column": 11 + }, + "end": { + "line": 114, + "column": 15 + } + } + }, + "range": [ + 2321, + 2348 + ], + "loc": { + "start": { + "line": 113, + "column": 15 + }, + "end": { + "line": 114, + "column": 15 + } + } + }, + "arguments": [], + "range": [ + 2321, + 2350 + ], + "loc": { + "start": { + "line": 113, + "column": 15 + }, + "end": { + "line": 114, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "where", + "range": [ + 2362, + 2367 + ], + "loc": { + "start": { + "line": 115, + "column": 11 + }, + "end": { + "line": 115, + "column": 16 + } + } + }, + "range": [ + 2321, + 2367 + ], + "loc": { + "start": { + "line": 113, + "column": 15 + }, + "end": { + "line": 115, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "fieldName", + "range": [ + 2368, + 2377 + ], + "loc": { + "start": { + "line": 115, + "column": 17 + }, + "end": { + "line": 115, + "column": 26 + } + } + } + ], + "range": [ + 2321, + 2378 + ], + "loc": { + "start": { + "line": 113, + "column": 15 + }, + "end": { + "line": 115, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "equals", + "range": [ + 2379, + 2385 + ], + "loc": { + "start": { + "line": 115, + "column": 28 + }, + "end": { + "line": 115, + "column": 34 + } + } + }, + "range": [ + 2321, + 2385 + ], + "loc": { + "start": { + "line": 113, + "column": 15 + }, + "end": { + "line": 115, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "value", + "range": [ + 2386, + 2391 + ], + "loc": { + "start": { + "line": 115, + "column": 35 + }, + "end": { + "line": 115, + "column": 40 + } + } + } + ], + "range": [ + 2321, + 2392 + ], + "loc": { + "start": { + "line": 113, + "column": 15 + }, + "end": { + "line": 115, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "name": "limit", + "range": [ + 2404, + 2409 + ], + "loc": { + "start": { + "line": 116, + "column": 11 + }, + "end": { + "line": 116, + "column": 16 + } + } + }, + "range": [ + 2321, + 2409 + ], + "loc": { + "start": { + "line": 113, + "column": 15 + }, + "end": { + "line": 116, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "limit", + "range": [ + 2410, + 2415 + ], + "loc": { + "start": { + "line": 116, + "column": 17 + }, + "end": { + "line": 116, + "column": 22 + } + } + } + ], + "range": [ + 2321, + 2416 + ], + "loc": { + "start": { + "line": 113, + "column": 15 + }, + "end": { + "line": 116, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "exec", + "range": [ + 2428, + 2432 + ], + "loc": { + "start": { + "line": 117, + "column": 11 + }, + "end": { + "line": 117, + "column": 15 + } + } + }, + "range": [ + 2321, + 2432 + ], + "loc": { + "start": { + "line": 113, + "column": 15 + }, + "end": { + "line": 117, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 2433, + 2435 + ], + "loc": { + "start": { + "line": 117, + "column": 16 + }, + "end": { + "line": 117, + "column": 18 + } + } + } + ], + "range": [ + 2321, + 2436 + ], + "loc": { + "start": { + "line": 113, + "column": 15 + }, + "end": { + "line": 117, + "column": 19 + } + } + }, + "range": [ + 2314, + 2437 + ], + "loc": { + "start": { + "line": 113, + "column": 8 + }, + "end": { + "line": 117, + "column": 20 + } + } + } + ], + "range": [ + 2304, + 2445 + ], + "loc": { + "start": { + "line": 112, + "column": 80 + }, + "end": { + "line": 118, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2238, + 2445 + ], + "loc": { + "start": { + "line": 112, + "column": 14 + }, + "end": { + "line": 118, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 2230, + 2445 + ], + "loc": { + "start": { + "line": 112, + "column": 6 + }, + "end": { + "line": 118, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "findAllBy", + "range": [ + 2454, + 2463 + ], + "loc": { + "start": { + "line": 120, + "column": 6 + }, + "end": { + "line": 120, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "fieldName", + "range": [ + 2474, + 2483 + ], + "loc": { + "start": { + "line": 120, + "column": 26 + }, + "end": { + "line": 120, + "column": 35 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 2485, + 2490 + ], + "loc": { + "start": { + "line": 120, + "column": 37 + }, + "end": { + "line": 120, + "column": 42 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 2492, + 2494 + ], + "loc": { + "start": { + "line": 120, + "column": 44 + }, + "end": { + "line": 120, + "column": 46 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 2513, + 2518 + ], + "loc": { + "start": { + "line": 121, + "column": 15 + }, + "end": { + "line": 121, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 2519, + 2524 + ], + "loc": { + "start": { + "line": 121, + "column": 21 + }, + "end": { + "line": 121, + "column": 26 + } + } + }, + "range": [ + 2513, + 2524 + ], + "loc": { + "start": { + "line": 121, + "column": 15 + }, + "end": { + "line": 121, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "scan", + "range": [ + 2536, + 2540 + ], + "loc": { + "start": { + "line": 122, + "column": 11 + }, + "end": { + "line": 122, + "column": 15 + } + } + }, + "range": [ + 2513, + 2540 + ], + "loc": { + "start": { + "line": 121, + "column": 15 + }, + "end": { + "line": 122, + "column": 15 + } + } + }, + "arguments": [], + "range": [ + 2513, + 2542 + ], + "loc": { + "start": { + "line": 121, + "column": 15 + }, + "end": { + "line": 122, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "where", + "range": [ + 2554, + 2559 + ], + "loc": { + "start": { + "line": 123, + "column": 11 + }, + "end": { + "line": 123, + "column": 16 + } + } + }, + "range": [ + 2513, + 2559 + ], + "loc": { + "start": { + "line": 121, + "column": 15 + }, + "end": { + "line": 123, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "fieldName", + "range": [ + 2560, + 2569 + ], + "loc": { + "start": { + "line": 123, + "column": 17 + }, + "end": { + "line": 123, + "column": 26 + } + } + } + ], + "range": [ + 2513, + 2570 + ], + "loc": { + "start": { + "line": 121, + "column": 15 + }, + "end": { + "line": 123, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "equals", + "range": [ + 2571, + 2577 + ], + "loc": { + "start": { + "line": 123, + "column": 28 + }, + "end": { + "line": 123, + "column": 34 + } + } + }, + "range": [ + 2513, + 2577 + ], + "loc": { + "start": { + "line": 121, + "column": 15 + }, + "end": { + "line": 123, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "value", + "range": [ + 2578, + 2583 + ], + "loc": { + "start": { + "line": 123, + "column": 35 + }, + "end": { + "line": 123, + "column": 40 + } + } + } + ], + "range": [ + 2513, + 2584 + ], + "loc": { + "start": { + "line": 121, + "column": 15 + }, + "end": { + "line": 123, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "name": "loadAll", + "range": [ + 2596, + 2603 + ], + "loc": { + "start": { + "line": 124, + "column": 11 + }, + "end": { + "line": 124, + "column": 18 + } + } + }, + "range": [ + 2513, + 2603 + ], + "loc": { + "start": { + "line": 121, + "column": 15 + }, + "end": { + "line": 124, + "column": 18 + } + } + }, + "arguments": [], + "range": [ + 2513, + 2605 + ], + "loc": { + "start": { + "line": 121, + "column": 15 + }, + "end": { + "line": 124, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exec", + "range": [ + 2617, + 2621 + ], + "loc": { + "start": { + "line": 125, + "column": 11 + }, + "end": { + "line": 125, + "column": 15 + } + } + }, + "range": [ + 2513, + 2621 + ], + "loc": { + "start": { + "line": 121, + "column": 15 + }, + "end": { + "line": 125, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 2622, + 2624 + ], + "loc": { + "start": { + "line": 125, + "column": 16 + }, + "end": { + "line": 125, + "column": 18 + } + } + } + ], + "range": [ + 2513, + 2625 + ], + "loc": { + "start": { + "line": 121, + "column": 15 + }, + "end": { + "line": 125, + "column": 19 + } + } + }, + "range": [ + 2506, + 2626 + ], + "loc": { + "start": { + "line": 121, + "column": 8 + }, + "end": { + "line": 125, + "column": 20 + } + } + } + ], + "range": [ + 2496, + 2634 + ], + "loc": { + "start": { + "line": 120, + "column": 48 + }, + "end": { + "line": 126, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2465, + 2634 + ], + "loc": { + "start": { + "line": 120, + "column": 17 + }, + "end": { + "line": 126, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 2454, + 2634 + ], + "loc": { + "start": { + "line": 120, + "column": 6 + }, + "end": { + "line": 126, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "findAllByPaginated", + "range": [ + 2643, + 2661 + ], + "loc": { + "start": { + "line": 128, + "column": 6 + }, + "end": { + "line": 128, + "column": 24 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "fieldName", + "range": [ + 2672, + 2681 + ], + "loc": { + "start": { + "line": 128, + "column": 35 + }, + "end": { + "line": 128, + "column": 44 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 2683, + 2688 + ], + "loc": { + "start": { + "line": 128, + "column": 46 + }, + "end": { + "line": 128, + "column": 51 + } + } + }, + { + "type": "Identifier", + "name": "startKey", + "range": [ + 2690, + 2698 + ], + "loc": { + "start": { + "line": 128, + "column": 53 + }, + "end": { + "line": 128, + "column": 61 + } + } + }, + { + "type": "Identifier", + "name": "limit", + "range": [ + 2700, + 2705 + ], + "loc": { + "start": { + "line": 128, + "column": 63 + }, + "end": { + "line": 128, + "column": 68 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 2707, + 2709 + ], + "loc": { + "start": { + "line": 128, + "column": 70 + }, + "end": { + "line": 128, + "column": 72 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 2728, + 2733 + ], + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 129, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 2734, + 2739 + ], + "loc": { + "start": { + "line": 129, + "column": 21 + }, + "end": { + "line": 129, + "column": 26 + } + } + }, + "range": [ + 2728, + 2739 + ], + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 129, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "scan", + "range": [ + 2751, + 2755 + ], + "loc": { + "start": { + "line": 130, + "column": 11 + }, + "end": { + "line": 130, + "column": 15 + } + } + }, + "range": [ + 2728, + 2755 + ], + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 130, + "column": 15 + } + } + }, + "arguments": [], + "range": [ + 2728, + 2757 + ], + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 130, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "where", + "range": [ + 2769, + 2774 + ], + "loc": { + "start": { + "line": 131, + "column": 11 + }, + "end": { + "line": 131, + "column": 16 + } + } + }, + "range": [ + 2728, + 2774 + ], + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 131, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "fieldName", + "range": [ + 2775, + 2784 + ], + "loc": { + "start": { + "line": 131, + "column": 17 + }, + "end": { + "line": 131, + "column": 26 + } + } + } + ], + "range": [ + 2728, + 2785 + ], + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 131, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "equals", + "range": [ + 2786, + 2792 + ], + "loc": { + "start": { + "line": 131, + "column": 28 + }, + "end": { + "line": 131, + "column": 34 + } + } + }, + "range": [ + 2728, + 2792 + ], + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 131, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "value", + "range": [ + 2793, + 2798 + ], + "loc": { + "start": { + "line": 131, + "column": 35 + }, + "end": { + "line": 131, + "column": 40 + } + } + } + ], + "range": [ + 2728, + 2799 + ], + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 131, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "name": "startKey", + "range": [ + 2811, + 2819 + ], + "loc": { + "start": { + "line": 132, + "column": 11 + }, + "end": { + "line": 132, + "column": 19 + } + } + }, + "range": [ + 2728, + 2819 + ], + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 132, + "column": 19 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "startKey", + "range": [ + 2820, + 2828 + ], + "loc": { + "start": { + "line": 132, + "column": 20 + }, + "end": { + "line": 132, + "column": 28 + } + } + } + ], + "range": [ + 2728, + 2829 + ], + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 132, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "limit", + "range": [ + 2841, + 2846 + ], + "loc": { + "start": { + "line": 133, + "column": 11 + }, + "end": { + "line": 133, + "column": 16 + } + } + }, + "range": [ + 2728, + 2846 + ], + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 133, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "limit", + "range": [ + 2847, + 2852 + ], + "loc": { + "start": { + "line": 133, + "column": 17 + }, + "end": { + "line": 133, + "column": 22 + } + } + } + ], + "range": [ + 2728, + 2853 + ], + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 133, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "exec", + "range": [ + 2865, + 2869 + ], + "loc": { + "start": { + "line": 134, + "column": 11 + }, + "end": { + "line": 134, + "column": 15 + } + } + }, + "range": [ + 2728, + 2869 + ], + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 134, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 2870, + 2872 + ], + "loc": { + "start": { + "line": 134, + "column": 16 + }, + "end": { + "line": 134, + "column": 18 + } + } + } + ], + "range": [ + 2728, + 2873 + ], + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 134, + "column": 19 + } + } + }, + "range": [ + 2721, + 2874 + ], + "loc": { + "start": { + "line": 129, + "column": 8 + }, + "end": { + "line": 134, + "column": 20 + } + } + } + ], + "range": [ + 2711, + 2882 + ], + "loc": { + "start": { + "line": 128, + "column": 74 + }, + "end": { + "line": 135, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2663, + 2882 + ], + "loc": { + "start": { + "line": 128, + "column": 26 + }, + "end": { + "line": 135, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 2643, + 2882 + ], + "loc": { + "start": { + "line": 128, + "column": 6 + }, + "end": { + "line": 135, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "findMatching", + "range": [ + 2891, + 2903 + ], + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "params", + "range": [ + 2914, + 2920 + ], + "loc": { + "start": { + "line": 137, + "column": 29 + }, + "end": { + "line": 137, + "column": 35 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 2922, + 2924 + ], + "loc": { + "start": { + "line": 137, + "column": 37 + }, + "end": { + "line": 137, + "column": 39 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "limit", + "range": [ + 2926, + 2931 + ], + "loc": { + "start": { + "line": 137, + "column": 41 + }, + "end": { + "line": 137, + "column": 46 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "ExtendModel", + "range": [ + 2934, + 2945 + ], + "loc": { + "start": { + "line": 137, + "column": 49 + }, + "end": { + "line": 137, + "column": 60 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEFAULT_LIMIT", + "range": [ + 2946, + 2959 + ], + "loc": { + "start": { + "line": 137, + "column": 61 + }, + "end": { + "line": 137, + "column": 74 + } + } + }, + "range": [ + 2934, + 2959 + ], + "loc": { + "start": { + "line": 137, + "column": 49 + }, + "end": { + "line": 137, + "column": 74 + } + } + }, + "range": [ + 2926, + 2959 + ], + "loc": { + "start": { + "line": 137, + "column": 41 + }, + "end": { + "line": 137, + "column": 74 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 2975, + 2985 + ], + "loc": { + "start": { + "line": 138, + "column": 12 + }, + "end": { + "line": 138, + "column": 22 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "ExtendModel", + "range": [ + 2988, + 2999 + ], + "loc": { + "start": { + "line": 138, + "column": 25 + }, + "end": { + "line": 138, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "buildScanParameters", + "range": [ + 3000, + 3019 + ], + "loc": { + "start": { + "line": 138, + "column": 37 + }, + "end": { + "line": 138, + "column": 56 + } + } + }, + "range": [ + 2988, + 3019 + ], + "loc": { + "start": { + "line": 138, + "column": 25 + }, + "end": { + "line": 138, + "column": 56 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "params", + "range": [ + 3020, + 3026 + ], + "loc": { + "start": { + "line": 138, + "column": 57 + }, + "end": { + "line": 138, + "column": 63 + } + } + } + ], + "range": [ + 2988, + 3027 + ], + "loc": { + "start": { + "line": 138, + "column": 25 + }, + "end": { + "line": 138, + "column": 64 + } + } + }, + "range": [ + 2975, + 3027 + ], + "loc": { + "start": { + "line": 138, + "column": 12 + }, + "end": { + "line": 138, + "column": 64 + } + } + } + ], + "kind": "let", + "range": [ + 2971, + 3028 + ], + "loc": { + "start": { + "line": 138, + "column": 8 + }, + "end": { + "line": 138, + "column": 65 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 3045, + 3050 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 140, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 3051, + 3056 + ], + "loc": { + "start": { + "line": 140, + "column": 21 + }, + "end": { + "line": 140, + "column": 26 + } + } + }, + "range": [ + 3045, + 3056 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 140, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "scan", + "range": [ + 3068, + 3072 + ], + "loc": { + "start": { + "line": 141, + "column": 11 + }, + "end": { + "line": 141, + "column": 15 + } + } + }, + "range": [ + 3045, + 3072 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 141, + "column": 15 + } + } + }, + "arguments": [], + "range": [ + 3045, + 3074 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 141, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 3086, + 3102 + ], + "loc": { + "start": { + "line": 142, + "column": 11 + }, + "end": { + "line": 142, + "column": 27 + } + } + }, + "range": [ + 3045, + 3102 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 142, + "column": 27 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 3103, + 3113 + ], + "loc": { + "start": { + "line": 142, + "column": 28 + }, + "end": { + "line": 142, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 3114, + 3130 + ], + "loc": { + "start": { + "line": 142, + "column": 39 + }, + "end": { + "line": 142, + "column": 55 + } + } + }, + "range": [ + 3103, + 3130 + ], + "loc": { + "start": { + "line": 142, + "column": 28 + }, + "end": { + "line": 142, + "column": 55 + } + } + } + ], + "range": [ + 3045, + 3131 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 142, + "column": 56 + } + } + }, + "property": { + "type": "Identifier", + "name": "expressionAttributeValues", + "range": [ + 3143, + 3168 + ], + "loc": { + "start": { + "line": 143, + "column": 11 + }, + "end": { + "line": 143, + "column": 36 + } + } + }, + "range": [ + 3045, + 3168 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 143, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 3169, + 3179 + ], + "loc": { + "start": { + "line": 143, + "column": 37 + }, + "end": { + "line": 143, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpressionValues", + "range": [ + 3180, + 3202 + ], + "loc": { + "start": { + "line": 143, + "column": 48 + }, + "end": { + "line": 143, + "column": 70 + } + } + }, + "range": [ + 3169, + 3202 + ], + "loc": { + "start": { + "line": 143, + "column": 37 + }, + "end": { + "line": 143, + "column": 70 + } + } + } + ], + "range": [ + 3045, + 3203 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 143, + "column": 71 + } + } + }, + "property": { + "type": "Identifier", + "name": "expressionAttributeNames", + "range": [ + 3215, + 3239 + ], + "loc": { + "start": { + "line": 144, + "column": 11 + }, + "end": { + "line": 144, + "column": 35 + } + } + }, + "range": [ + 3045, + 3239 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 144, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 3240, + 3250 + ], + "loc": { + "start": { + "line": 144, + "column": 36 + }, + "end": { + "line": 144, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpressionNames", + "range": [ + 3251, + 3272 + ], + "loc": { + "start": { + "line": 144, + "column": 47 + }, + "end": { + "line": 144, + "column": 68 + } + } + }, + "range": [ + 3240, + 3272 + ], + "loc": { + "start": { + "line": 144, + "column": 36 + }, + "end": { + "line": 144, + "column": 68 + } + } + } + ], + "range": [ + 3045, + 3273 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 144, + "column": 69 + } + } + }, + "property": { + "type": "Identifier", + "name": "limit", + "range": [ + 3285, + 3290 + ], + "loc": { + "start": { + "line": 145, + "column": 11 + }, + "end": { + "line": 145, + "column": 16 + } + } + }, + "range": [ + 3045, + 3290 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 145, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "limit", + "range": [ + 3291, + 3296 + ], + "loc": { + "start": { + "line": 145, + "column": 17 + }, + "end": { + "line": 145, + "column": 22 + } + } + } + ], + "range": [ + 3045, + 3297 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 145, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "exec", + "range": [ + 3309, + 3313 + ], + "loc": { + "start": { + "line": 146, + "column": 11 + }, + "end": { + "line": 146, + "column": 15 + } + } + }, + "range": [ + 3045, + 3313 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 146, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 3314, + 3316 + ], + "loc": { + "start": { + "line": 146, + "column": 16 + }, + "end": { + "line": 146, + "column": 18 + } + } + } + ], + "range": [ + 3045, + 3317 + ], + "loc": { + "start": { + "line": 140, + "column": 15 + }, + "end": { + "line": 146, + "column": 19 + } + } + }, + "range": [ + 3038, + 3318 + ], + "loc": { + "start": { + "line": 140, + "column": 8 + }, + "end": { + "line": 146, + "column": 20 + } + } + } + ], + "range": [ + 2961, + 3326 + ], + "loc": { + "start": { + "line": 137, + "column": 76 + }, + "end": { + "line": 147, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2905, + 3326 + ], + "loc": { + "start": { + "line": 137, + "column": 20 + }, + "end": { + "line": 147, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 2891, + 3326 + ], + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 147, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "findOneMatching", + "range": [ + 3335, + 3350 + ], + "loc": { + "start": { + "line": 149, + "column": 6 + }, + "end": { + "line": 149, + "column": 21 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "params", + "range": [ + 3361, + 3367 + ], + "loc": { + "start": { + "line": 149, + "column": 32 + }, + "end": { + "line": 149, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 3369, + 3371 + ], + "loc": { + "start": { + "line": 149, + "column": 40 + }, + "end": { + "line": 149, + "column": 42 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 3387, + 3397 + ], + "loc": { + "start": { + "line": 150, + "column": 12 + }, + "end": { + "line": 150, + "column": 22 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "ExtendModel", + "range": [ + 3400, + 3411 + ], + "loc": { + "start": { + "line": 150, + "column": 25 + }, + "end": { + "line": 150, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "buildScanParameters", + "range": [ + 3412, + 3431 + ], + "loc": { + "start": { + "line": 150, + "column": 37 + }, + "end": { + "line": 150, + "column": 56 + } + } + }, + "range": [ + 3400, + 3431 + ], + "loc": { + "start": { + "line": 150, + "column": 25 + }, + "end": { + "line": 150, + "column": 56 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "params", + "range": [ + 3432, + 3438 + ], + "loc": { + "start": { + "line": 150, + "column": 57 + }, + "end": { + "line": 150, + "column": 63 + } + } + } + ], + "range": [ + 3400, + 3439 + ], + "loc": { + "start": { + "line": 150, + "column": 25 + }, + "end": { + "line": 150, + "column": 64 + } + } + }, + "range": [ + 3387, + 3439 + ], + "loc": { + "start": { + "line": 150, + "column": 12 + }, + "end": { + "line": 150, + "column": 64 + } + } + } + ], + "kind": "let", + "range": [ + 3383, + 3440 + ], + "loc": { + "start": { + "line": 150, + "column": 8 + }, + "end": { + "line": 150, + "column": 65 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 3457, + 3462 + ], + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 152, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 3463, + 3468 + ], + "loc": { + "start": { + "line": 152, + "column": 21 + }, + "end": { + "line": 152, + "column": 26 + } + } + }, + "range": [ + 3457, + 3468 + ], + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 152, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "scan", + "range": [ + 3480, + 3484 + ], + "loc": { + "start": { + "line": 153, + "column": 11 + }, + "end": { + "line": 153, + "column": 15 + } + } + }, + "range": [ + 3457, + 3484 + ], + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 153, + "column": 15 + } + } + }, + "arguments": [], + "range": [ + 3457, + 3486 + ], + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 153, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 3498, + 3514 + ], + "loc": { + "start": { + "line": 154, + "column": 11 + }, + "end": { + "line": 154, + "column": 27 + } + } + }, + "range": [ + 3457, + 3514 + ], + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 154, + "column": 27 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 3515, + 3525 + ], + "loc": { + "start": { + "line": 154, + "column": 28 + }, + "end": { + "line": 154, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 3526, + 3542 + ], + "loc": { + "start": { + "line": 154, + "column": 39 + }, + "end": { + "line": 154, + "column": 55 + } + } + }, + "range": [ + 3515, + 3542 + ], + "loc": { + "start": { + "line": 154, + "column": 28 + }, + "end": { + "line": 154, + "column": 55 + } + } + } + ], + "range": [ + 3457, + 3543 + ], + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 154, + "column": 56 + } + } + }, + "property": { + "type": "Identifier", + "name": "expressionAttributeValues", + "range": [ + 3555, + 3580 + ], + "loc": { + "start": { + "line": 155, + "column": 11 + }, + "end": { + "line": 155, + "column": 36 + } + } + }, + "range": [ + 3457, + 3580 + ], + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 155, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 3581, + 3591 + ], + "loc": { + "start": { + "line": 155, + "column": 37 + }, + "end": { + "line": 155, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpressionValues", + "range": [ + 3592, + 3614 + ], + "loc": { + "start": { + "line": 155, + "column": 48 + }, + "end": { + "line": 155, + "column": 70 + } + } + }, + "range": [ + 3581, + 3614 + ], + "loc": { + "start": { + "line": 155, + "column": 37 + }, + "end": { + "line": 155, + "column": 70 + } + } + } + ], + "range": [ + 3457, + 3615 + ], + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 155, + "column": 71 + } + } + }, + "property": { + "type": "Identifier", + "name": "expressionAttributeNames", + "range": [ + 3627, + 3651 + ], + "loc": { + "start": { + "line": 156, + "column": 11 + }, + "end": { + "line": 156, + "column": 35 + } + } + }, + "range": [ + 3457, + 3651 + ], + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 156, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 3652, + 3662 + ], + "loc": { + "start": { + "line": 156, + "column": 36 + }, + "end": { + "line": 156, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpressionNames", + "range": [ + 3663, + 3684 + ], + "loc": { + "start": { + "line": 156, + "column": 47 + }, + "end": { + "line": 156, + "column": 68 + } + } + }, + "range": [ + 3652, + 3684 + ], + "loc": { + "start": { + "line": 156, + "column": 36 + }, + "end": { + "line": 156, + "column": 68 + } + } + } + ], + "range": [ + 3457, + 3685 + ], + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 156, + "column": 69 + } + } + }, + "property": { + "type": "Identifier", + "name": "limit", + "range": [ + 3697, + 3702 + ], + "loc": { + "start": { + "line": 157, + "column": 11 + }, + "end": { + "line": 157, + "column": 16 + } + } + }, + "range": [ + 3457, + 3702 + ], + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 157, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 3703, + 3704 + ], + "loc": { + "start": { + "line": 157, + "column": 17 + }, + "end": { + "line": 157, + "column": 18 + } + } + } + ], + "range": [ + 3457, + 3705 + ], + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 157, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "exec", + "range": [ + 3717, + 3721 + ], + "loc": { + "start": { + "line": 158, + "column": 11 + }, + "end": { + "line": 158, + "column": 15 + } + } + }, + "range": [ + 3457, + 3721 + ], + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 158, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 3722, + 3724 + ], + "loc": { + "start": { + "line": 158, + "column": 16 + }, + "end": { + "line": 158, + "column": 18 + } + } + } + ], + "range": [ + 3457, + 3725 + ], + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 158, + "column": 19 + } + } + }, + "range": [ + 3450, + 3726 + ], + "loc": { + "start": { + "line": 152, + "column": 8 + }, + "end": { + "line": 158, + "column": 20 + } + } + } + ], + "range": [ + 3373, + 3734 + ], + "loc": { + "start": { + "line": 149, + "column": 44 + }, + "end": { + "line": 159, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3352, + 3734 + ], + "loc": { + "start": { + "line": 149, + "column": 23 + }, + "end": { + "line": 159, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 3335, + 3734 + ], + "loc": { + "start": { + "line": 149, + "column": 6 + }, + "end": { + "line": 159, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "findAllMatching", + "range": [ + 3743, + 3758 + ], + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 161, + "column": 21 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "params", + "range": [ + 3769, + 3775 + ], + "loc": { + "start": { + "line": 161, + "column": 32 + }, + "end": { + "line": 161, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 3777, + 3779 + ], + "loc": { + "start": { + "line": 161, + "column": 40 + }, + "end": { + "line": 161, + "column": 42 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 3795, + 3805 + ], + "loc": { + "start": { + "line": 162, + "column": 12 + }, + "end": { + "line": 162, + "column": 22 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "ExtendModel", + "range": [ + 3808, + 3819 + ], + "loc": { + "start": { + "line": 162, + "column": 25 + }, + "end": { + "line": 162, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "buildScanParameters", + "range": [ + 3820, + 3839 + ], + "loc": { + "start": { + "line": 162, + "column": 37 + }, + "end": { + "line": 162, + "column": 56 + } + } + }, + "range": [ + 3808, + 3839 + ], + "loc": { + "start": { + "line": 162, + "column": 25 + }, + "end": { + "line": 162, + "column": 56 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "params", + "range": [ + 3840, + 3846 + ], + "loc": { + "start": { + "line": 162, + "column": 57 + }, + "end": { + "line": 162, + "column": 63 + } + } + } + ], + "range": [ + 3808, + 3847 + ], + "loc": { + "start": { + "line": 162, + "column": 25 + }, + "end": { + "line": 162, + "column": 64 + } + } + }, + "range": [ + 3795, + 3847 + ], + "loc": { + "start": { + "line": 162, + "column": 12 + }, + "end": { + "line": 162, + "column": 64 + } + } + } + ], + "kind": "let", + "range": [ + 3791, + 3848 + ], + "loc": { + "start": { + "line": 162, + "column": 8 + }, + "end": { + "line": 162, + "column": 65 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 3865, + 3870 + ], + "loc": { + "start": { + "line": 164, + "column": 15 + }, + "end": { + "line": 164, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 3871, + 3876 + ], + "loc": { + "start": { + "line": 164, + "column": 21 + }, + "end": { + "line": 164, + "column": 26 + } + } + }, + "range": [ + 3865, + 3876 + ], + "loc": { + "start": { + "line": 164, + "column": 15 + }, + "end": { + "line": 164, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "scan", + "range": [ + 3888, + 3892 + ], + "loc": { + "start": { + "line": 165, + "column": 11 + }, + "end": { + "line": 165, + "column": 15 + } + } + }, + "range": [ + 3865, + 3892 + ], + "loc": { + "start": { + "line": 164, + "column": 15 + }, + "end": { + "line": 165, + "column": 15 + } + } + }, + "arguments": [], + "range": [ + 3865, + 3894 + ], + "loc": { + "start": { + "line": 164, + "column": 15 + }, + "end": { + "line": 165, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 3906, + 3922 + ], + "loc": { + "start": { + "line": 166, + "column": 11 + }, + "end": { + "line": 166, + "column": 27 + } + } + }, + "range": [ + 3865, + 3922 + ], + "loc": { + "start": { + "line": 164, + "column": 15 + }, + "end": { + "line": 166, + "column": 27 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 3923, + 3933 + ], + "loc": { + "start": { + "line": 166, + "column": 28 + }, + "end": { + "line": 166, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 3934, + 3950 + ], + "loc": { + "start": { + "line": 166, + "column": 39 + }, + "end": { + "line": 166, + "column": 55 + } + } + }, + "range": [ + 3923, + 3950 + ], + "loc": { + "start": { + "line": 166, + "column": 28 + }, + "end": { + "line": 166, + "column": 55 + } + } + } + ], + "range": [ + 3865, + 3951 + ], + "loc": { + "start": { + "line": 164, + "column": 15 + }, + "end": { + "line": 166, + "column": 56 + } + } + }, + "property": { + "type": "Identifier", + "name": "expressionAttributeValues", + "range": [ + 3963, + 3988 + ], + "loc": { + "start": { + "line": 167, + "column": 11 + }, + "end": { + "line": 167, + "column": 36 + } + } + }, + "range": [ + 3865, + 3988 + ], + "loc": { + "start": { + "line": 164, + "column": 15 + }, + "end": { + "line": 167, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 3989, + 3999 + ], + "loc": { + "start": { + "line": 167, + "column": 37 + }, + "end": { + "line": 167, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpressionValues", + "range": [ + 4000, + 4022 + ], + "loc": { + "start": { + "line": 167, + "column": 48 + }, + "end": { + "line": 167, + "column": 70 + } + } + }, + "range": [ + 3989, + 4022 + ], + "loc": { + "start": { + "line": 167, + "column": 37 + }, + "end": { + "line": 167, + "column": 70 + } + } + } + ], + "range": [ + 3865, + 4023 + ], + "loc": { + "start": { + "line": 164, + "column": 15 + }, + "end": { + "line": 167, + "column": 71 + } + } + }, + "property": { + "type": "Identifier", + "name": "expressionAttributeNames", + "range": [ + 4035, + 4059 + ], + "loc": { + "start": { + "line": 168, + "column": 11 + }, + "end": { + "line": 168, + "column": 35 + } + } + }, + "range": [ + 3865, + 4059 + ], + "loc": { + "start": { + "line": 164, + "column": 15 + }, + "end": { + "line": 168, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 4060, + 4070 + ], + "loc": { + "start": { + "line": 168, + "column": 36 + }, + "end": { + "line": 168, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpressionNames", + "range": [ + 4071, + 4092 + ], + "loc": { + "start": { + "line": 168, + "column": 47 + }, + "end": { + "line": 168, + "column": 68 + } + } + }, + "range": [ + 4060, + 4092 + ], + "loc": { + "start": { + "line": 168, + "column": 36 + }, + "end": { + "line": 168, + "column": 68 + } + } + } + ], + "range": [ + 3865, + 4093 + ], + "loc": { + "start": { + "line": 164, + "column": 15 + }, + "end": { + "line": 168, + "column": 69 + } + } + }, + "property": { + "type": "Identifier", + "name": "loadAll", + "range": [ + 4105, + 4112 + ], + "loc": { + "start": { + "line": 169, + "column": 11 + }, + "end": { + "line": 169, + "column": 18 + } + } + }, + "range": [ + 3865, + 4112 + ], + "loc": { + "start": { + "line": 164, + "column": 15 + }, + "end": { + "line": 169, + "column": 18 + } + } + }, + "arguments": [], + "range": [ + 3865, + 4114 + ], + "loc": { + "start": { + "line": 164, + "column": 15 + }, + "end": { + "line": 169, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exec", + "range": [ + 4126, + 4130 + ], + "loc": { + "start": { + "line": 170, + "column": 11 + }, + "end": { + "line": 170, + "column": 15 + } + } + }, + "range": [ + 3865, + 4130 + ], + "loc": { + "start": { + "line": 164, + "column": 15 + }, + "end": { + "line": 170, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 4131, + 4133 + ], + "loc": { + "start": { + "line": 170, + "column": 16 + }, + "end": { + "line": 170, + "column": 18 + } + } + } + ], + "range": [ + 3865, + 4134 + ], + "loc": { + "start": { + "line": 164, + "column": 15 + }, + "end": { + "line": 170, + "column": 19 + } + } + }, + "range": [ + 3858, + 4135 + ], + "loc": { + "start": { + "line": 164, + "column": 8 + }, + "end": { + "line": 170, + "column": 20 + } + } + } + ], + "range": [ + 3781, + 4143 + ], + "loc": { + "start": { + "line": 161, + "column": 44 + }, + "end": { + "line": 171, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3760, + 4143 + ], + "loc": { + "start": { + "line": 161, + "column": 23 + }, + "end": { + "line": 171, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 3743, + 4143 + ], + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 171, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "findAllMatchingPaginated", + "range": [ + 4152, + 4176 + ], + "loc": { + "start": { + "line": 173, + "column": 6 + }, + "end": { + "line": 173, + "column": 30 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "params", + "range": [ + 4187, + 4193 + ], + "loc": { + "start": { + "line": 173, + "column": 41 + }, + "end": { + "line": 173, + "column": 47 + } + } + }, + { + "type": "Identifier", + "name": "startKey", + "range": [ + 4195, + 4203 + ], + "loc": { + "start": { + "line": 173, + "column": 49 + }, + "end": { + "line": 173, + "column": 57 + } + } + }, + { + "type": "Identifier", + "name": "limit", + "range": [ + 4205, + 4210 + ], + "loc": { + "start": { + "line": 173, + "column": 59 + }, + "end": { + "line": 173, + "column": 64 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 4212, + 4214 + ], + "loc": { + "start": { + "line": 173, + "column": 66 + }, + "end": { + "line": 173, + "column": 68 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 4230, + 4240 + ], + "loc": { + "start": { + "line": 174, + "column": 12 + }, + "end": { + "line": 174, + "column": 22 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "ExtendModel", + "range": [ + 4243, + 4254 + ], + "loc": { + "start": { + "line": 174, + "column": 25 + }, + "end": { + "line": 174, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "buildScanParameters", + "range": [ + 4255, + 4274 + ], + "loc": { + "start": { + "line": 174, + "column": 37 + }, + "end": { + "line": 174, + "column": 56 + } + } + }, + "range": [ + 4243, + 4274 + ], + "loc": { + "start": { + "line": 174, + "column": 25 + }, + "end": { + "line": 174, + "column": 56 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "params", + "range": [ + 4275, + 4281 + ], + "loc": { + "start": { + "line": 174, + "column": 57 + }, + "end": { + "line": 174, + "column": 63 + } + } + } + ], + "range": [ + 4243, + 4282 + ], + "loc": { + "start": { + "line": 174, + "column": 25 + }, + "end": { + "line": 174, + "column": 64 + } + } + }, + "range": [ + 4230, + 4282 + ], + "loc": { + "start": { + "line": 174, + "column": 12 + }, + "end": { + "line": 174, + "column": 64 + } + } + } + ], + "kind": "let", + "range": [ + 4226, + 4283 + ], + "loc": { + "start": { + "line": 174, + "column": 8 + }, + "end": { + "line": 174, + "column": 65 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 4300, + 4305 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 176, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 4306, + 4311 + ], + "loc": { + "start": { + "line": 176, + "column": 21 + }, + "end": { + "line": 176, + "column": 26 + } + } + }, + "range": [ + 4300, + 4311 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 176, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "scan", + "range": [ + 4323, + 4327 + ], + "loc": { + "start": { + "line": 177, + "column": 11 + }, + "end": { + "line": 177, + "column": 15 + } + } + }, + "range": [ + 4300, + 4327 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 177, + "column": 15 + } + } + }, + "arguments": [], + "range": [ + 4300, + 4329 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 177, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 4341, + 4357 + ], + "loc": { + "start": { + "line": 178, + "column": 11 + }, + "end": { + "line": 178, + "column": 27 + } + } + }, + "range": [ + 4300, + 4357 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 178, + "column": 27 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 4358, + 4368 + ], + "loc": { + "start": { + "line": 178, + "column": 28 + }, + "end": { + "line": 178, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 4369, + 4385 + ], + "loc": { + "start": { + "line": 178, + "column": 39 + }, + "end": { + "line": 178, + "column": 55 + } + } + }, + "range": [ + 4358, + 4385 + ], + "loc": { + "start": { + "line": 178, + "column": 28 + }, + "end": { + "line": 178, + "column": 55 + } + } + } + ], + "range": [ + 4300, + 4386 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 178, + "column": 56 + } + } + }, + "property": { + "type": "Identifier", + "name": "expressionAttributeValues", + "range": [ + 4398, + 4423 + ], + "loc": { + "start": { + "line": 179, + "column": 11 + }, + "end": { + "line": 179, + "column": 36 + } + } + }, + "range": [ + 4300, + 4423 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 179, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 4424, + 4434 + ], + "loc": { + "start": { + "line": 179, + "column": 37 + }, + "end": { + "line": 179, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpressionValues", + "range": [ + 4435, + 4457 + ], + "loc": { + "start": { + "line": 179, + "column": 48 + }, + "end": { + "line": 179, + "column": 70 + } + } + }, + "range": [ + 4424, + 4457 + ], + "loc": { + "start": { + "line": 179, + "column": 37 + }, + "end": { + "line": 179, + "column": 70 + } + } + } + ], + "range": [ + 4300, + 4458 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 179, + "column": 71 + } + } + }, + "property": { + "type": "Identifier", + "name": "expressionAttributeNames", + "range": [ + 4470, + 4494 + ], + "loc": { + "start": { + "line": 180, + "column": 11 + }, + "end": { + "line": 180, + "column": 35 + } + } + }, + "range": [ + 4300, + 4494 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 180, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 4495, + 4505 + ], + "loc": { + "start": { + "line": 180, + "column": 36 + }, + "end": { + "line": 180, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpressionNames", + "range": [ + 4506, + 4527 + ], + "loc": { + "start": { + "line": 180, + "column": 47 + }, + "end": { + "line": 180, + "column": 68 + } + } + }, + "range": [ + 4495, + 4527 + ], + "loc": { + "start": { + "line": 180, + "column": 36 + }, + "end": { + "line": 180, + "column": 68 + } + } + } + ], + "range": [ + 4300, + 4528 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 180, + "column": 69 + } + } + }, + "property": { + "type": "Identifier", + "name": "startKey", + "range": [ + 4540, + 4548 + ], + "loc": { + "start": { + "line": 181, + "column": 11 + }, + "end": { + "line": 181, + "column": 19 + } + } + }, + "range": [ + 4300, + 4548 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 181, + "column": 19 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "startKey", + "range": [ + 4549, + 4557 + ], + "loc": { + "start": { + "line": 181, + "column": 20 + }, + "end": { + "line": 181, + "column": 28 + } + } + } + ], + "range": [ + 4300, + 4558 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 181, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "limit", + "range": [ + 4570, + 4575 + ], + "loc": { + "start": { + "line": 182, + "column": 11 + }, + "end": { + "line": 182, + "column": 16 + } + } + }, + "range": [ + 4300, + 4575 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 182, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "limit", + "range": [ + 4576, + 4581 + ], + "loc": { + "start": { + "line": 182, + "column": 17 + }, + "end": { + "line": 182, + "column": 22 + } + } + } + ], + "range": [ + 4300, + 4582 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 182, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "exec", + "range": [ + 4594, + 4598 + ], + "loc": { + "start": { + "line": 183, + "column": 11 + }, + "end": { + "line": 183, + "column": 15 + } + } + }, + "range": [ + 4300, + 4598 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 183, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 4599, + 4601 + ], + "loc": { + "start": { + "line": 183, + "column": 16 + }, + "end": { + "line": 183, + "column": 18 + } + } + } + ], + "range": [ + 4300, + 4602 + ], + "loc": { + "start": { + "line": 176, + "column": 15 + }, + "end": { + "line": 183, + "column": 19 + } + } + }, + "range": [ + 4293, + 4603 + ], + "loc": { + "start": { + "line": 176, + "column": 8 + }, + "end": { + "line": 183, + "column": 20 + } + } + } + ], + "range": [ + 4216, + 4611 + ], + "loc": { + "start": { + "line": 173, + "column": 70 + }, + "end": { + "line": 184, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4178, + 4611 + ], + "loc": { + "start": { + "line": 173, + "column": 32 + }, + "end": { + "line": 184, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 4152, + 4611 + ], + "loc": { + "start": { + "line": 173, + "column": 6 + }, + "end": { + "line": 184, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "deleteById", + "range": [ + 4620, + 4630 + ], + "loc": { + "start": { + "line": 186, + "column": 6 + }, + "end": { + "line": 186, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "id", + "range": [ + 4641, + 4643 + ], + "loc": { + "start": { + "line": 186, + "column": 27 + }, + "end": { + "line": 186, + "column": 29 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 4645, + 4647 + ], + "loc": { + "start": { + "line": 186, + "column": 31 + }, + "end": { + "line": 186, + "column": 33 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 4666, + 4671 + ], + "loc": { + "start": { + "line": 187, + "column": 15 + }, + "end": { + "line": 187, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 4672, + 4677 + ], + "loc": { + "start": { + "line": 187, + "column": 21 + }, + "end": { + "line": 187, + "column": 26 + } + } + }, + "range": [ + 4666, + 4677 + ], + "loc": { + "start": { + "line": 187, + "column": 15 + }, + "end": { + "line": 187, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "destroy", + "range": [ + 4678, + 4685 + ], + "loc": { + "start": { + "line": 187, + "column": 27 + }, + "end": { + "line": 187, + "column": 34 + } + } + }, + "range": [ + 4666, + 4685 + ], + "loc": { + "start": { + "line": 187, + "column": 15 + }, + "end": { + "line": 187, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "id", + "range": [ + 4686, + 4688 + ], + "loc": { + "start": { + "line": 187, + "column": 35 + }, + "end": { + "line": 187, + "column": 37 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 4690, + 4692 + ], + "loc": { + "start": { + "line": 187, + "column": 39 + }, + "end": { + "line": 187, + "column": 41 + } + } + } + ], + "range": [ + 4666, + 4693 + ], + "loc": { + "start": { + "line": 187, + "column": 15 + }, + "end": { + "line": 187, + "column": 42 + } + } + }, + "range": [ + 4659, + 4694 + ], + "loc": { + "start": { + "line": 187, + "column": 8 + }, + "end": { + "line": 187, + "column": 43 + } + } + } + ], + "range": [ + 4649, + 4702 + ], + "loc": { + "start": { + "line": 186, + "column": 35 + }, + "end": { + "line": 188, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4632, + 4702 + ], + "loc": { + "start": { + "line": 186, + "column": 18 + }, + "end": { + "line": 188, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 4620, + 4702 + ], + "loc": { + "start": { + "line": 186, + "column": 6 + }, + "end": { + "line": 188, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "deleteByIdConditional", + "range": [ + 4711, + 4732 + ], + "loc": { + "start": { + "line": 190, + "column": 6 + }, + "end": { + "line": 190, + "column": 27 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "id", + "range": [ + 4743, + 4745 + ], + "loc": { + "start": { + "line": 190, + "column": 38 + }, + "end": { + "line": 190, + "column": 40 + } + } + }, + { + "type": "Identifier", + "name": "condition", + "range": [ + 4747, + 4756 + ], + "loc": { + "start": { + "line": 190, + "column": 42 + }, + "end": { + "line": 190, + "column": 51 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 4758, + 4760 + ], + "loc": { + "start": { + "line": 190, + "column": 53 + }, + "end": { + "line": 190, + "column": 55 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 4779, + 4784 + ], + "loc": { + "start": { + "line": 191, + "column": 15 + }, + "end": { + "line": 191, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 4785, + 4790 + ], + "loc": { + "start": { + "line": 191, + "column": 21 + }, + "end": { + "line": 191, + "column": 26 + } + } + }, + "range": [ + 4779, + 4790 + ], + "loc": { + "start": { + "line": 191, + "column": 15 + }, + "end": { + "line": 191, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "destroy", + "range": [ + 4791, + 4798 + ], + "loc": { + "start": { + "line": 191, + "column": 27 + }, + "end": { + "line": 191, + "column": 34 + } + } + }, + "range": [ + 4779, + 4798 + ], + "loc": { + "start": { + "line": 191, + "column": 15 + }, + "end": { + "line": 191, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "id", + "range": [ + 4799, + 4801 + ], + "loc": { + "start": { + "line": 191, + "column": 35 + }, + "end": { + "line": 191, + "column": 37 + } + } + }, + { + "type": "Identifier", + "name": "condition", + "range": [ + 4803, + 4812 + ], + "loc": { + "start": { + "line": 191, + "column": 39 + }, + "end": { + "line": 191, + "column": 48 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 4814, + 4816 + ], + "loc": { + "start": { + "line": 191, + "column": 50 + }, + "end": { + "line": 191, + "column": 52 + } + } + } + ], + "range": [ + 4779, + 4817 + ], + "loc": { + "start": { + "line": 191, + "column": 15 + }, + "end": { + "line": 191, + "column": 53 + } + } + }, + "range": [ + 4772, + 4818 + ], + "loc": { + "start": { + "line": 191, + "column": 8 + }, + "end": { + "line": 191, + "column": 54 + } + } + } + ], + "range": [ + 4762, + 4826 + ], + "loc": { + "start": { + "line": 190, + "column": 57 + }, + "end": { + "line": 192, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4734, + 4826 + ], + "loc": { + "start": { + "line": 190, + "column": 29 + }, + "end": { + "line": 192, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 4711, + 4826 + ], + "loc": { + "start": { + "line": 190, + "column": 6 + }, + "end": { + "line": 192, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "createItem", + "range": [ + 4835, + 4845 + ], + "loc": { + "start": { + "line": 194, + "column": 6 + }, + "end": { + "line": 194, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "data", + "range": [ + 4856, + 4860 + ], + "loc": { + "start": { + "line": 194, + "column": 27 + }, + "end": { + "line": 194, + "column": 31 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 4862, + 4864 + ], + "loc": { + "start": { + "line": 194, + "column": 33 + }, + "end": { + "line": 194, + "column": 35 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 4883, + 4888 + ], + "loc": { + "start": { + "line": 195, + "column": 15 + }, + "end": { + "line": 195, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 4889, + 4894 + ], + "loc": { + "start": { + "line": 195, + "column": 21 + }, + "end": { + "line": 195, + "column": 26 + } + } + }, + "range": [ + 4883, + 4894 + ], + "loc": { + "start": { + "line": 195, + "column": 15 + }, + "end": { + "line": 195, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "create", + "range": [ + 4895, + 4901 + ], + "loc": { + "start": { + "line": 195, + "column": 27 + }, + "end": { + "line": 195, + "column": 33 + } + } + }, + "range": [ + 4883, + 4901 + ], + "loc": { + "start": { + "line": 195, + "column": 15 + }, + "end": { + "line": 195, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "data", + "range": [ + 4902, + 4906 + ], + "loc": { + "start": { + "line": 195, + "column": 34 + }, + "end": { + "line": 195, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 4908, + 4910 + ], + "loc": { + "start": { + "line": 195, + "column": 40 + }, + "end": { + "line": 195, + "column": 42 + } + } + } + ], + "range": [ + 4883, + 4911 + ], + "loc": { + "start": { + "line": 195, + "column": 15 + }, + "end": { + "line": 195, + "column": 43 + } + } + }, + "range": [ + 4876, + 4912 + ], + "loc": { + "start": { + "line": 195, + "column": 8 + }, + "end": { + "line": 195, + "column": 44 + } + } + } + ], + "range": [ + 4866, + 4920 + ], + "loc": { + "start": { + "line": 194, + "column": 37 + }, + "end": { + "line": 196, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4847, + 4920 + ], + "loc": { + "start": { + "line": 194, + "column": 18 + }, + "end": { + "line": 196, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 4835, + 4920 + ], + "loc": { + "start": { + "line": 194, + "column": 6 + }, + "end": { + "line": 196, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "createUniqueOnFields", + "range": [ + 4929, + 4949 + ], + "loc": { + "start": { + "line": 198, + "column": 6 + }, + "end": { + "line": 198, + "column": 26 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "fields", + "range": [ + 4960, + 4966 + ], + "loc": { + "start": { + "line": 198, + "column": 37 + }, + "end": { + "line": 198, + "column": 43 + } + } + }, + { + "type": "Identifier", + "name": "data", + "range": [ + 4968, + 4972 + ], + "loc": { + "start": { + "line": 198, + "column": 45 + }, + "end": { + "line": 198, + "column": 49 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 4974, + 4976 + ], + "loc": { + "start": { + "line": 198, + "column": 51 + }, + "end": { + "line": 198, + "column": 53 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "scanCb", + "range": [ + 4992, + 4998 + ], + "loc": { + "start": { + "line": 199, + "column": 12 + }, + "end": { + "line": 199, + "column": 18 + } + } + }, + "init": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "err", + "range": [ + 5010, + 5013 + ], + "loc": { + "start": { + "line": 199, + "column": 30 + }, + "end": { + "line": 199, + "column": 33 + } + } + }, + { + "type": "Identifier", + "name": "data", + "range": [ + 5015, + 5019 + ], + "loc": { + "start": { + "line": 199, + "column": 35 + }, + "end": { + "line": 199, + "column": 39 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "err", + "range": [ + 5037, + 5040 + ], + "loc": { + "start": { + "line": 200, + "column": 14 + }, + "end": { + "line": 200, + "column": 17 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 5063, + 5065 + ], + "loc": { + "start": { + "line": 201, + "column": 19 + }, + "end": { + "line": 201, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "err", + "range": [ + 5066, + 5069 + ], + "loc": { + "start": { + "line": 201, + "column": 22 + }, + "end": { + "line": 201, + "column": 25 + } + } + }, + { + "type": "Identifier", + "name": "data", + "range": [ + 5071, + 5075 + ], + "loc": { + "start": { + "line": 201, + "column": 27 + }, + "end": { + "line": 201, + "column": 31 + } + } + } + ], + "range": [ + 5063, + 5076 + ], + "loc": { + "start": { + "line": 201, + "column": 19 + }, + "end": { + "line": 201, + "column": 32 + } + } + }, + "range": [ + 5056, + 5077 + ], + "loc": { + "start": { + "line": 201, + "column": 12 + }, + "end": { + "line": 201, + "column": 33 + } + } + } + ], + "range": [ + 5042, + 5089 + ], + "loc": { + "start": { + "line": 200, + "column": 19 + }, + "end": { + "line": 202, + "column": 11 + } + } + }, + "alternate": null, + "range": [ + 5033, + 5089 + ], + "loc": { + "start": { + "line": 200, + "column": 10 + }, + "end": { + "line": 202, + "column": 11 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "data", + "range": [ + 5105, + 5109 + ], + "loc": { + "start": { + "line": 204, + "column": 14 + }, + "end": { + "line": 204, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "Count", + "range": [ + 5110, + 5115 + ], + "loc": { + "start": { + "line": 204, + "column": 19 + }, + "end": { + "line": 204, + "column": 24 + } + } + }, + "range": [ + 5105, + 5115 + ], + "loc": { + "start": { + "line": 204, + "column": 14 + }, + "end": { + "line": 204, + "column": 24 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 5138, + 5140 + ], + "loc": { + "start": { + "line": 205, + "column": 19 + }, + "end": { + "line": 205, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Item like ", + "cooked": "Item like " + }, + "tail": false, + "range": [ + 5141, + 5154 + ], + "loc": { + "start": { + "line": 205, + "column": 22 + }, + "end": { + "line": 205, + "column": 35 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " already exists", + "cooked": " already exists" + }, + "tail": true, + "range": [ + 5158, + 5175 + ], + "loc": { + "start": { + "line": 205, + "column": 39 + }, + "end": { + "line": 205, + "column": 56 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "data", + "range": [ + 5154, + 5158 + ], + "loc": { + "start": { + "line": 205, + "column": 35 + }, + "end": { + "line": 205, + "column": 39 + } + } + } + ], + "range": [ + 5141, + 5175 + ], + "loc": { + "start": { + "line": 205, + "column": 22 + }, + "end": { + "line": 205, + "column": 56 + } + } + } + ], + "range": [ + 5138, + 5176 + ], + "loc": { + "start": { + "line": 205, + "column": 19 + }, + "end": { + "line": 205, + "column": 57 + } + } + }, + "range": [ + 5131, + 5177 + ], + "loc": { + "start": { + "line": 205, + "column": 12 + }, + "end": { + "line": 205, + "column": 58 + } + } + } + ], + "range": [ + 5117, + 5189 + ], + "loc": { + "start": { + "line": 204, + "column": 26 + }, + "end": { + "line": 206, + "column": 11 + } + } + }, + "alternate": null, + "range": [ + 5101, + 5189 + ], + "loc": { + "start": { + "line": 204, + "column": 10 + }, + "end": { + "line": 206, + "column": 11 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 5208, + 5213 + ], + "loc": { + "start": { + "line": 208, + "column": 17 + }, + "end": { + "line": 208, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 5214, + 5219 + ], + "loc": { + "start": { + "line": 208, + "column": 23 + }, + "end": { + "line": 208, + "column": 28 + } + } + }, + "range": [ + 5208, + 5219 + ], + "loc": { + "start": { + "line": 208, + "column": 17 + }, + "end": { + "line": 208, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "create", + "range": [ + 5220, + 5226 + ], + "loc": { + "start": { + "line": 208, + "column": 29 + }, + "end": { + "line": 208, + "column": 35 + } + } + }, + "range": [ + 5208, + 5226 + ], + "loc": { + "start": { + "line": 208, + "column": 17 + }, + "end": { + "line": 208, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "data", + "range": [ + 5227, + 5231 + ], + "loc": { + "start": { + "line": 208, + "column": 36 + }, + "end": { + "line": 208, + "column": 40 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 5233, + 5235 + ], + "loc": { + "start": { + "line": 208, + "column": 42 + }, + "end": { + "line": 208, + "column": 44 + } + } + } + ], + "range": [ + 5208, + 5236 + ], + "loc": { + "start": { + "line": 208, + "column": 17 + }, + "end": { + "line": 208, + "column": 45 + } + } + }, + "range": [ + 5201, + 5237 + ], + "loc": { + "start": { + "line": 208, + "column": 10 + }, + "end": { + "line": 208, + "column": 46 + } + } + } + ], + "range": [ + 5021, + 5247 + ], + "loc": { + "start": { + "line": 199, + "column": 41 + }, + "end": { + "line": 209, + "column": 9 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 5001, + 5247 + ], + "loc": { + "start": { + "line": 199, + "column": 21 + }, + "end": { + "line": 209, + "column": 9 + } + } + }, + "range": [ + 4992, + 5247 + ], + "loc": { + "start": { + "line": 199, + "column": 12 + }, + "end": { + "line": 209, + "column": 9 + } + } + } + ], + "kind": "let", + "range": [ + 4988, + 5248 + ], + "loc": { + "start": { + "line": 199, + "column": 8 + }, + "end": { + "line": 209, + "column": 10 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 5262, + 5272 + ], + "loc": { + "start": { + "line": 211, + "column": 12 + }, + "end": { + "line": 211, + "column": 22 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 5275, + 5277 + ], + "loc": { + "start": { + "line": 211, + "column": 25 + }, + "end": { + "line": 211, + "column": 27 + } + } + }, + "range": [ + 5262, + 5277 + ], + "loc": { + "start": { + "line": 211, + "column": 12 + }, + "end": { + "line": 211, + "column": 27 + } + } + } + ], + "kind": "let", + "range": [ + 5258, + 5278 + ], + "loc": { + "start": { + "line": 211, + "column": 8 + }, + "end": { + "line": 211, + "column": 28 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "fieldKey", + "range": [ + 5296, + 5304 + ], + "loc": { + "start": { + "line": 212, + "column": 17 + }, + "end": { + "line": 212, + "column": 25 + } + } + }, + "init": null, + "range": [ + 5296, + 5304 + ], + "loc": { + "start": { + "line": 212, + "column": 17 + }, + "end": { + "line": 212, + "column": 25 + } + } + } + ], + "kind": "let", + "range": [ + 5292, + 5304 + ], + "loc": { + "start": { + "line": 212, + "column": 13 + }, + "end": { + "line": 212, + "column": 25 + } + } + }, + "right": { + "type": "Identifier", + "name": "fields", + "range": [ + 5308, + 5314 + ], + "loc": { + "start": { + "line": 212, + "column": 29 + }, + "end": { + "line": 212, + "column": 35 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "fields", + "range": [ + 5333, + 5339 + ], + "loc": { + "start": { + "line": 213, + "column": 15 + }, + "end": { + "line": 213, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 5340, + 5354 + ], + "loc": { + "start": { + "line": 213, + "column": 22 + }, + "end": { + "line": 213, + "column": 36 + } + } + }, + "range": [ + 5333, + 5354 + ], + "loc": { + "start": { + "line": 213, + "column": 15 + }, + "end": { + "line": 213, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "fieldKey", + "range": [ + 5355, + 5363 + ], + "loc": { + "start": { + "line": 213, + "column": 37 + }, + "end": { + "line": 213, + "column": 45 + } + } + } + ], + "range": [ + 5333, + 5364 + ], + "loc": { + "start": { + "line": 213, + "column": 15 + }, + "end": { + "line": 213, + "column": 46 + } + } + }, + "prefix": true, + "range": [ + 5332, + 5364 + ], + "loc": { + "start": { + "line": 213, + "column": 14 + }, + "end": { + "line": 213, + "column": 46 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 5380, + 5389 + ], + "loc": { + "start": { + "line": 214, + "column": 12 + }, + "end": { + "line": 214, + "column": 21 + } + } + } + ], + "range": [ + 5366, + 5401 + ], + "loc": { + "start": { + "line": 213, + "column": 48 + }, + "end": { + "line": 215, + "column": 11 + } + } + }, + "alternate": null, + "range": [ + 5328, + 5401 + ], + "loc": { + "start": { + "line": 213, + "column": 10 + }, + "end": { + "line": 215, + "column": 11 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "field", + "range": [ + 5417, + 5422 + ], + "loc": { + "start": { + "line": 217, + "column": 14 + }, + "end": { + "line": 217, + "column": 19 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "fields", + "range": [ + 5425, + 5431 + ], + "loc": { + "start": { + "line": 217, + "column": 22 + }, + "end": { + "line": 217, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "fieldKey", + "range": [ + 5432, + 5440 + ], + "loc": { + "start": { + "line": 217, + "column": 29 + }, + "end": { + "line": 217, + "column": 37 + } + } + }, + "range": [ + 5425, + 5441 + ], + "loc": { + "start": { + "line": 217, + "column": 22 + }, + "end": { + "line": 217, + "column": 38 + } + } + }, + "range": [ + 5417, + 5441 + ], + "loc": { + "start": { + "line": 217, + "column": 14 + }, + "end": { + "line": 217, + "column": 38 + } + } + } + ], + "kind": "let", + "range": [ + 5413, + 5442 + ], + "loc": { + "start": { + "line": 217, + "column": 10 + }, + "end": { + "line": 217, + "column": 39 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 5454, + 5464 + ], + "loc": { + "start": { + "line": 219, + "column": 10 + }, + "end": { + "line": 219, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "field", + "range": [ + 5465, + 5470 + ], + "loc": { + "start": { + "line": 219, + "column": 21 + }, + "end": { + "line": 219, + "column": 26 + } + } + }, + "range": [ + 5454, + 5471 + ], + "loc": { + "start": { + "line": 219, + "column": 10 + }, + "end": { + "line": 219, + "column": 27 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "data", + "range": [ + 5474, + 5478 + ], + "loc": { + "start": { + "line": 219, + "column": 30 + }, + "end": { + "line": 219, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "field", + "range": [ + 5479, + 5484 + ], + "loc": { + "start": { + "line": 219, + "column": 35 + }, + "end": { + "line": 219, + "column": 40 + } + } + }, + "range": [ + 5474, + 5485 + ], + "loc": { + "start": { + "line": 219, + "column": 30 + }, + "end": { + "line": 219, + "column": 41 + } + } + }, + "range": [ + 5454, + 5485 + ], + "loc": { + "start": { + "line": 219, + "column": 10 + }, + "end": { + "line": 219, + "column": 41 + } + } + }, + "range": [ + 5454, + 5486 + ], + "loc": { + "start": { + "line": 219, + "column": 10 + }, + "end": { + "line": 219, + "column": 42 + } + } + } + ], + "range": [ + 5316, + 5496 + ], + "loc": { + "start": { + "line": 212, + "column": 37 + }, + "end": { + "line": 220, + "column": 9 + } + } + }, + "each": false, + "range": [ + 5287, + 5496 + ], + "loc": { + "start": { + "line": 212, + "column": 8 + }, + "end": { + "line": 220, + "column": 9 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 5506, + 5516 + ], + "loc": { + "start": { + "line": 222, + "column": 8 + }, + "end": { + "line": 222, + "column": 18 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "ExtendModel", + "range": [ + 5519, + 5530 + ], + "loc": { + "start": { + "line": 222, + "column": 21 + }, + "end": { + "line": 222, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "buildScanParameters", + "range": [ + 5531, + 5550 + ], + "loc": { + "start": { + "line": 222, + "column": 33 + }, + "end": { + "line": 222, + "column": 52 + } + } + }, + "range": [ + 5519, + 5550 + ], + "loc": { + "start": { + "line": 222, + "column": 21 + }, + "end": { + "line": 222, + "column": 52 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "scanParams", + "range": [ + 5551, + 5561 + ], + "loc": { + "start": { + "line": 222, + "column": 53 + }, + "end": { + "line": 222, + "column": 63 + } + } + } + ], + "range": [ + 5519, + 5562 + ], + "loc": { + "start": { + "line": 222, + "column": 21 + }, + "end": { + "line": 222, + "column": 64 + } + } + }, + "range": [ + 5506, + 5562 + ], + "loc": { + "start": { + "line": 222, + "column": 8 + }, + "end": { + "line": 222, + "column": 64 + } + } + }, + "range": [ + 5506, + 5563 + ], + "loc": { + "start": { + "line": 222, + "column": 8 + }, + "end": { + "line": 222, + "column": 65 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 5580, + 5585 + ], + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 224, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 5586, + 5591 + ], + "loc": { + "start": { + "line": 224, + "column": 21 + }, + "end": { + "line": 224, + "column": 26 + } + } + }, + "range": [ + 5580, + 5591 + ], + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 224, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "scan", + "range": [ + 5603, + 5607 + ], + "loc": { + "start": { + "line": 225, + "column": 11 + }, + "end": { + "line": 225, + "column": 15 + } + } + }, + "range": [ + 5580, + 5607 + ], + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 225, + "column": 15 + } + } + }, + "arguments": [], + "range": [ + 5580, + 5609 + ], + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 225, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 5621, + 5637 + ], + "loc": { + "start": { + "line": 226, + "column": 11 + }, + "end": { + "line": 226, + "column": 27 + } + } + }, + "range": [ + 5580, + 5637 + ], + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 226, + "column": 27 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 5638, + 5648 + ], + "loc": { + "start": { + "line": 226, + "column": 28 + }, + "end": { + "line": 226, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpression", + "range": [ + 5649, + 5665 + ], + "loc": { + "start": { + "line": 226, + "column": 39 + }, + "end": { + "line": 226, + "column": 55 + } + } + }, + "range": [ + 5638, + 5665 + ], + "loc": { + "start": { + "line": 226, + "column": 28 + }, + "end": { + "line": 226, + "column": 55 + } + } + } + ], + "range": [ + 5580, + 5666 + ], + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 226, + "column": 56 + } + } + }, + "property": { + "type": "Identifier", + "name": "expressionAttributeValues", + "range": [ + 5678, + 5703 + ], + "loc": { + "start": { + "line": 227, + "column": 11 + }, + "end": { + "line": 227, + "column": 36 + } + } + }, + "range": [ + 5580, + 5703 + ], + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 227, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 5704, + 5714 + ], + "loc": { + "start": { + "line": 227, + "column": 37 + }, + "end": { + "line": 227, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpressionValues", + "range": [ + 5715, + 5737 + ], + "loc": { + "start": { + "line": 227, + "column": 48 + }, + "end": { + "line": 227, + "column": 70 + } + } + }, + "range": [ + 5704, + 5737 + ], + "loc": { + "start": { + "line": 227, + "column": 37 + }, + "end": { + "line": 227, + "column": 70 + } + } + } + ], + "range": [ + 5580, + 5738 + ], + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 227, + "column": 71 + } + } + }, + "property": { + "type": "Identifier", + "name": "expressionAttributeNames", + "range": [ + 5750, + 5774 + ], + "loc": { + "start": { + "line": 228, + "column": 11 + }, + "end": { + "line": 228, + "column": 35 + } + } + }, + "range": [ + 5580, + 5774 + ], + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 228, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "scanParams", + "range": [ + 5775, + 5785 + ], + "loc": { + "start": { + "line": 228, + "column": 36 + }, + "end": { + "line": 228, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "filterExpressionNames", + "range": [ + 5786, + 5807 + ], + "loc": { + "start": { + "line": 228, + "column": 47 + }, + "end": { + "line": 228, + "column": 68 + } + } + }, + "range": [ + 5775, + 5807 + ], + "loc": { + "start": { + "line": 228, + "column": 36 + }, + "end": { + "line": 228, + "column": 68 + } + } + } + ], + "range": [ + 5580, + 5808 + ], + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 228, + "column": 69 + } + } + }, + "property": { + "type": "Identifier", + "name": "limit", + "range": [ + 5820, + 5825 + ], + "loc": { + "start": { + "line": 229, + "column": 11 + }, + "end": { + "line": 229, + "column": 16 + } + } + }, + "range": [ + 5580, + 5825 + ], + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 229, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 5826, + 5827 + ], + "loc": { + "start": { + "line": 229, + "column": 17 + }, + "end": { + "line": 229, + "column": 18 + } + } + } + ], + "range": [ + 5580, + 5828 + ], + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 229, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "exec", + "range": [ + 5840, + 5844 + ], + "loc": { + "start": { + "line": 230, + "column": 11 + }, + "end": { + "line": 230, + "column": 15 + } + } + }, + "range": [ + 5580, + 5844 + ], + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 230, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "scanCb", + "range": [ + 5845, + 5851 + ], + "loc": { + "start": { + "line": 230, + "column": 16 + }, + "end": { + "line": 230, + "column": 22 + } + } + } + ], + "range": [ + 5580, + 5852 + ], + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 230, + "column": 23 + } + } + }, + "range": [ + 5573, + 5853 + ], + "loc": { + "start": { + "line": 224, + "column": 8 + }, + "end": { + "line": 230, + "column": 24 + } + } + } + ], + "range": [ + 4978, + 5861 + ], + "loc": { + "start": { + "line": 198, + "column": 55 + }, + "end": { + "line": 231, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4951, + 5861 + ], + "loc": { + "start": { + "line": 198, + "column": 28 + }, + "end": { + "line": 231, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 4929, + 5861 + ], + "loc": { + "start": { + "line": 198, + "column": 6 + }, + "end": { + "line": 231, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "updateItem", + "range": [ + 5870, + 5880 + ], + "loc": { + "start": { + "line": 233, + "column": 6 + }, + "end": { + "line": 233, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "id", + "range": [ + 5891, + 5893 + ], + "loc": { + "start": { + "line": 233, + "column": 27 + }, + "end": { + "line": 233, + "column": 29 + } + } + }, + { + "type": "Identifier", + "name": "data", + "range": [ + 5895, + 5899 + ], + "loc": { + "start": { + "line": 233, + "column": 31 + }, + "end": { + "line": 233, + "column": 35 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 5901, + 5903 + ], + "loc": { + "start": { + "line": 233, + "column": 37 + }, + "end": { + "line": 233, + "column": 39 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "data", + "range": [ + 5915, + 5919 + ], + "loc": { + "start": { + "line": 234, + "column": 8 + }, + "end": { + "line": 234, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "Id", + "range": [ + 5920, + 5922 + ], + "loc": { + "start": { + "line": 234, + "column": 13 + }, + "end": { + "line": 234, + "column": 15 + } + } + }, + "range": [ + 5915, + 5922 + ], + "loc": { + "start": { + "line": 234, + "column": 8 + }, + "end": { + "line": 234, + "column": 15 + } + } + }, + "right": { + "type": "Identifier", + "name": "id", + "range": [ + 5925, + 5927 + ], + "loc": { + "start": { + "line": 234, + "column": 18 + }, + "end": { + "line": 234, + "column": 20 + } + } + }, + "range": [ + 5915, + 5927 + ], + "loc": { + "start": { + "line": 234, + "column": 8 + }, + "end": { + "line": 234, + "column": 20 + } + } + }, + "range": [ + 5915, + 5928 + ], + "loc": { + "start": { + "line": 234, + "column": 8 + }, + "end": { + "line": 234, + "column": 21 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 5945, + 5950 + ], + "loc": { + "start": { + "line": 236, + "column": 15 + }, + "end": { + "line": 236, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 5951, + 5956 + ], + "loc": { + "start": { + "line": 236, + "column": 21 + }, + "end": { + "line": 236, + "column": 26 + } + } + }, + "range": [ + 5945, + 5956 + ], + "loc": { + "start": { + "line": 236, + "column": 15 + }, + "end": { + "line": 236, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "update", + "range": [ + 5957, + 5963 + ], + "loc": { + "start": { + "line": 236, + "column": 27 + }, + "end": { + "line": 236, + "column": 33 + } + } + }, + "range": [ + 5945, + 5963 + ], + "loc": { + "start": { + "line": 236, + "column": 15 + }, + "end": { + "line": 236, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "data", + "range": [ + 5964, + 5968 + ], + "loc": { + "start": { + "line": 236, + "column": 34 + }, + "end": { + "line": 236, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 5970, + 5972 + ], + "loc": { + "start": { + "line": 236, + "column": 40 + }, + "end": { + "line": 236, + "column": 42 + } + } + } + ], + "range": [ + 5945, + 5973 + ], + "loc": { + "start": { + "line": 236, + "column": 15 + }, + "end": { + "line": 236, + "column": 43 + } + } + }, + "range": [ + 5938, + 5974 + ], + "loc": { + "start": { + "line": 236, + "column": 8 + }, + "end": { + "line": 236, + "column": 44 + } + } + } + ], + "range": [ + 5905, + 5982 + ], + "loc": { + "start": { + "line": 233, + "column": 41 + }, + "end": { + "line": 237, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 5882, + 5982 + ], + "loc": { + "start": { + "line": 233, + "column": 18 + }, + "end": { + "line": 237, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 5870, + 5982 + ], + "loc": { + "start": { + "line": 233, + "column": 6 + }, + "end": { + "line": 237, + "column": 7 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "updateItemConditional", + "range": [ + 5991, + 6012 + ], + "loc": { + "start": { + "line": 239, + "column": 6 + }, + "end": { + "line": 239, + "column": 27 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "id", + "range": [ + 6023, + 6025 + ], + "loc": { + "start": { + "line": 239, + "column": 38 + }, + "end": { + "line": 239, + "column": 40 + } + } + }, + { + "type": "Identifier", + "name": "data", + "range": [ + 6027, + 6031 + ], + "loc": { + "start": { + "line": 239, + "column": 42 + }, + "end": { + "line": 239, + "column": 46 + } + } + }, + { + "type": "Identifier", + "name": "condition", + "range": [ + 6033, + 6042 + ], + "loc": { + "start": { + "line": 239, + "column": 48 + }, + "end": { + "line": 239, + "column": 57 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 6044, + 6046 + ], + "loc": { + "start": { + "line": 239, + "column": 59 + }, + "end": { + "line": 239, + "column": 61 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "data", + "range": [ + 6058, + 6062 + ], + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "Id", + "range": [ + 6063, + 6065 + ], + "loc": { + "start": { + "line": 240, + "column": 13 + }, + "end": { + "line": 240, + "column": 15 + } + } + }, + "range": [ + 6058, + 6065 + ], + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 15 + } + } + }, + "right": { + "type": "Identifier", + "name": "id", + "range": [ + 6068, + 6070 + ], + "loc": { + "start": { + "line": 240, + "column": 18 + }, + "end": { + "line": 240, + "column": 20 + } + } + }, + "range": [ + 6058, + 6070 + ], + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 20 + } + } + }, + "range": [ + 6058, + 6071 + ], + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 21 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "_this", + "range": [ + 6088, + 6093 + ], + "loc": { + "start": { + "line": 242, + "column": 15 + }, + "end": { + "line": 242, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "model", + "range": [ + 6094, + 6099 + ], + "loc": { + "start": { + "line": 242, + "column": 21 + }, + "end": { + "line": 242, + "column": 26 + } + } + }, + "range": [ + 6088, + 6099 + ], + "loc": { + "start": { + "line": 242, + "column": 15 + }, + "end": { + "line": 242, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "update", + "range": [ + 6100, + 6106 + ], + "loc": { + "start": { + "line": 242, + "column": 27 + }, + "end": { + "line": 242, + "column": 33 + } + } + }, + "range": [ + 6088, + 6106 + ], + "loc": { + "start": { + "line": 242, + "column": 15 + }, + "end": { + "line": 242, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "data", + "range": [ + 6107, + 6111 + ], + "loc": { + "start": { + "line": 242, + "column": 34 + }, + "end": { + "line": 242, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "condition", + "range": [ + 6113, + 6122 + ], + "loc": { + "start": { + "line": 242, + "column": 40 + }, + "end": { + "line": 242, + "column": 49 + } + } + }, + { + "type": "Identifier", + "name": "cb", + "range": [ + 6124, + 6126 + ], + "loc": { + "start": { + "line": 242, + "column": 51 + }, + "end": { + "line": 242, + "column": 53 + } + } + } + ], + "range": [ + 6088, + 6127 + ], + "loc": { + "start": { + "line": 242, + "column": 15 + }, + "end": { + "line": 242, + "column": 54 + } + } + }, + "range": [ + 6081, + 6128 + ], + "loc": { + "start": { + "line": 242, + "column": 8 + }, + "end": { + "line": 242, + "column": 55 + } + } + } + ], + "range": [ + 6048, + 6136 + ], + "loc": { + "start": { + "line": 239, + "column": 63 + }, + "end": { + "line": 243, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 6014, + 6136 + ], + "loc": { + "start": { + "line": 239, + "column": 29 + }, + "end": { + "line": 243, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 5991, + 6136 + ], + "loc": { + "start": { + "line": 239, + "column": 6 + }, + "end": { + "line": 243, + "column": 7 + } + } + } + ], + "range": [ + 1666, + 6143 + ], + "loc": { + "start": { + "line": 87, + "column": 11 + }, + "end": { + "line": 244, + "column": 5 + } + } + }, + "range": [ + 1659, + 6144 + ], + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 244, + "column": 6 + } + } + } + ], + "range": [ + 1630, + 6148 + ], + "loc": { + "start": { + "line": 84, + "column": 16 + }, + "end": { + "line": 245, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1627, + 6148 + ], + "loc": { + "start": { + "line": 84, + "column": 13 + }, + "end": { + "line": 245, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1616, + 6148 + ], + "loc": { + "start": { + "line": 84, + "column": 2 + }, + "end": { + "line": 245, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1581, + 1613 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Injects the specified methods or all\n *\n * @param {Array} methods\n ", + "range": [ + 6152, + 6236 + ], + "loc": { + "start": { + "line": 247, + "column": 2 + }, + "end": { + "line": 251, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "inject", + "range": [ + 6239, + 6245 + ], + "loc": { + "start": { + "line": 252, + "column": 2 + }, + "end": { + "line": 252, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "methods", + "range": [ + 6246, + 6253 + ], + "loc": { + "start": { + "line": 252, + "column": 9 + }, + "end": { + "line": 252, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 6256, + 6260 + ], + "loc": { + "start": { + "line": 252, + "column": 19 + }, + "end": { + "line": 252, + "column": 23 + } + } + }, + "range": [ + 6246, + 6260 + ], + "loc": { + "start": { + "line": 252, + "column": 9 + }, + "end": { + "line": 252, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "predefinedMethods", + "range": [ + 6272, + 6289 + ], + "loc": { + "start": { + "line": 253, + "column": 8 + }, + "end": { + "line": 253, + "column": 25 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 6292, + 6296 + ], + "loc": { + "start": { + "line": 253, + "column": 28 + }, + "end": { + "line": 253, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "methods", + "range": [ + 6297, + 6304 + ], + "loc": { + "start": { + "line": 253, + "column": 33 + }, + "end": { + "line": 253, + "column": 40 + } + } + }, + "range": [ + 6292, + 6304 + ], + "loc": { + "start": { + "line": 253, + "column": 28 + }, + "end": { + "line": 253, + "column": 40 + } + } + }, + "range": [ + 6272, + 6304 + ], + "loc": { + "start": { + "line": 253, + "column": 8 + }, + "end": { + "line": 253, + "column": 40 + } + } + } + ], + "kind": "let", + "range": [ + 6268, + 6305 + ], + "loc": { + "start": { + "line": 253, + "column": 4 + }, + "end": { + "line": 253, + "column": 41 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "predefinedMethodsNames", + "range": [ + 6314, + 6336 + ], + "loc": { + "start": { + "line": 254, + "column": 8 + }, + "end": { + "line": 254, + "column": 30 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Object", + "range": [ + 6339, + 6345 + ], + "loc": { + "start": { + "line": 254, + "column": 33 + }, + "end": { + "line": 254, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "keys", + "range": [ + 6346, + 6350 + ], + "loc": { + "start": { + "line": 254, + "column": 40 + }, + "end": { + "line": 254, + "column": 44 + } + } + }, + "range": [ + 6339, + 6350 + ], + "loc": { + "start": { + "line": 254, + "column": 33 + }, + "end": { + "line": 254, + "column": 44 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "predefinedMethods", + "range": [ + 6351, + 6368 + ], + "loc": { + "start": { + "line": 254, + "column": 45 + }, + "end": { + "line": 254, + "column": 62 + } + } + } + ], + "range": [ + 6339, + 6369 + ], + "loc": { + "start": { + "line": 254, + "column": 33 + }, + "end": { + "line": 254, + "column": 63 + } + } + }, + "range": [ + 6314, + 6369 + ], + "loc": { + "start": { + "line": 254, + "column": 8 + }, + "end": { + "line": 254, + "column": 63 + } + } + } + ], + "kind": "let", + "range": [ + 6310, + 6370 + ], + "loc": { + "start": { + "line": 254, + "column": 4 + }, + "end": { + "line": 254, + "column": 64 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "methods", + "range": [ + 6376, + 6383 + ], + "loc": { + "start": { + "line": 256, + "column": 4 + }, + "end": { + "line": 256, + "column": 11 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "Identifier", + "name": "methods", + "range": [ + 6386, + 6393 + ], + "loc": { + "start": { + "line": 256, + "column": 14 + }, + "end": { + "line": 256, + "column": 21 + } + } + }, + "right": { + "type": "Identifier", + "name": "predefinedMethodsNames", + "range": [ + 6397, + 6419 + ], + "loc": { + "start": { + "line": 256, + "column": 25 + }, + "end": { + "line": 256, + "column": 47 + } + } + }, + "range": [ + 6386, + 6419 + ], + "loc": { + "start": { + "line": 256, + "column": 14 + }, + "end": { + "line": 256, + "column": 47 + } + } + }, + "range": [ + 6376, + 6419 + ], + "loc": { + "start": { + "line": 256, + "column": 4 + }, + "end": { + "line": 256, + "column": 47 + } + } + }, + "range": [ + 6376, + 6420 + ], + "loc": { + "start": { + "line": 256, + "column": 4 + }, + "end": { + "line": 256, + "column": 48 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "methodKey", + "range": [ + 6435, + 6444 + ], + "loc": { + "start": { + "line": 258, + "column": 13 + }, + "end": { + "line": 258, + "column": 22 + } + } + }, + "init": null, + "range": [ + 6435, + 6444 + ], + "loc": { + "start": { + "line": 258, + "column": 13 + }, + "end": { + "line": 258, + "column": 22 + } + } + } + ], + "kind": "let", + "range": [ + 6431, + 6444 + ], + "loc": { + "start": { + "line": 258, + "column": 9 + }, + "end": { + "line": 258, + "column": 22 + } + } + }, + "right": { + "type": "Identifier", + "name": "methods", + "range": [ + 6448, + 6455 + ], + "loc": { + "start": { + "line": 258, + "column": 26 + }, + "end": { + "line": 258, + "column": 33 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "methods", + "range": [ + 6470, + 6477 + ], + "loc": { + "start": { + "line": 259, + "column": 11 + }, + "end": { + "line": 259, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 6478, + 6492 + ], + "loc": { + "start": { + "line": 259, + "column": 19 + }, + "end": { + "line": 259, + "column": 33 + } + } + }, + "range": [ + 6470, + 6492 + ], + "loc": { + "start": { + "line": 259, + "column": 11 + }, + "end": { + "line": 259, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "methodKey", + "range": [ + 6493, + 6502 + ], + "loc": { + "start": { + "line": 259, + "column": 34 + }, + "end": { + "line": 259, + "column": 43 + } + } + } + ], + "range": [ + 6470, + 6503 + ], + "loc": { + "start": { + "line": 259, + "column": 11 + }, + "end": { + "line": 259, + "column": 44 + } + } + }, + "prefix": true, + "range": [ + 6469, + 6503 + ], + "loc": { + "start": { + "line": 259, + "column": 10 + }, + "end": { + "line": 259, + "column": 44 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 6515, + 6524 + ], + "loc": { + "start": { + "line": 260, + "column": 8 + }, + "end": { + "line": 260, + "column": 17 + } + } + } + ], + "range": [ + 6505, + 6532 + ], + "loc": { + "start": { + "line": 259, + "column": 46 + }, + "end": { + "line": 261, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 6465, + 6532 + ], + "loc": { + "start": { + "line": 259, + "column": 6 + }, + "end": { + "line": 261, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "methodName", + "range": [ + 6544, + 6554 + ], + "loc": { + "start": { + "line": 263, + "column": 10 + }, + "end": { + "line": 263, + "column": 20 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "methods", + "range": [ + 6557, + 6564 + ], + "loc": { + "start": { + "line": 263, + "column": 23 + }, + "end": { + "line": 263, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "methodKey", + "range": [ + 6565, + 6574 + ], + "loc": { + "start": { + "line": 263, + "column": 31 + }, + "end": { + "line": 263, + "column": 40 + } + } + }, + "range": [ + 6557, + 6575 + ], + "loc": { + "start": { + "line": 263, + "column": 23 + }, + "end": { + "line": 263, + "column": 41 + } + } + }, + "range": [ + 6544, + 6575 + ], + "loc": { + "start": { + "line": 263, + "column": 10 + }, + "end": { + "line": 263, + "column": 41 + } + } + } + ], + "kind": "let", + "range": [ + 6540, + 6576 + ], + "loc": { + "start": { + "line": 263, + "column": 6 + }, + "end": { + "line": 263, + "column": 42 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "predefinedMethods", + "range": [ + 6589, + 6606 + ], + "loc": { + "start": { + "line": 265, + "column": 11 + }, + "end": { + "line": 265, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 6607, + 6621 + ], + "loc": { + "start": { + "line": 265, + "column": 29 + }, + "end": { + "line": 265, + "column": 43 + } + } + }, + "range": [ + 6589, + 6621 + ], + "loc": { + "start": { + "line": 265, + "column": 11 + }, + "end": { + "line": 265, + "column": 43 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "methodName", + "range": [ + 6622, + 6632 + ], + "loc": { + "start": { + "line": 265, + "column": 44 + }, + "end": { + "line": 265, + "column": 54 + } + } + } + ], + "range": [ + 6589, + 6633 + ], + "loc": { + "start": { + "line": 265, + "column": 11 + }, + "end": { + "line": 265, + "column": 55 + } + } + }, + "prefix": true, + "range": [ + 6588, + 6633 + ], + "loc": { + "start": { + "line": 265, + "column": 10 + }, + "end": { + "line": 265, + "column": 55 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "UndefinedMethodException", + "range": [ + 6655, + 6679 + ], + "loc": { + "start": { + "line": 266, + "column": 18 + }, + "end": { + "line": 266, + "column": 42 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "methodName", + "range": [ + 6680, + 6690 + ], + "loc": { + "start": { + "line": 266, + "column": 43 + }, + "end": { + "line": 266, + "column": 53 + } + } + }, + { + "type": "Identifier", + "name": "predefinedMethodsNames", + "range": [ + 6692, + 6714 + ], + "loc": { + "start": { + "line": 266, + "column": 55 + }, + "end": { + "line": 266, + "column": 77 + } + } + } + ], + "range": [ + 6651, + 6715 + ], + "loc": { + "start": { + "line": 266, + "column": 14 + }, + "end": { + "line": 266, + "column": 78 + } + } + }, + "range": [ + 6645, + 6716 + ], + "loc": { + "start": { + "line": 266, + "column": 8 + }, + "end": { + "line": 266, + "column": 79 + } + } + } + ], + "range": [ + 6635, + 6724 + ], + "loc": { + "start": { + "line": 265, + "column": 57 + }, + "end": { + "line": 267, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 6584, + 6724 + ], + "loc": { + "start": { + "line": 265, + "column": 6 + }, + "end": { + "line": 267, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 6732, + 6736 + ], + "loc": { + "start": { + "line": 269, + "column": 6 + }, + "end": { + "line": 269, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_model", + "range": [ + 6737, + 6743 + ], + "loc": { + "start": { + "line": 269, + "column": 11 + }, + "end": { + "line": 269, + "column": 17 + } + } + }, + "range": [ + 6732, + 6743 + ], + "loc": { + "start": { + "line": 269, + "column": 6 + }, + "end": { + "line": 269, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "methodName", + "range": [ + 6744, + 6754 + ], + "loc": { + "start": { + "line": 269, + "column": 18 + }, + "end": { + "line": 269, + "column": 28 + } + } + }, + "range": [ + 6732, + 6755 + ], + "loc": { + "start": { + "line": 269, + "column": 6 + }, + "end": { + "line": 269, + "column": 29 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "predefinedMethods", + "range": [ + 6758, + 6775 + ], + "loc": { + "start": { + "line": 269, + "column": 32 + }, + "end": { + "line": 269, + "column": 49 + } + } + }, + "property": { + "type": "Identifier", + "name": "methodName", + "range": [ + 6776, + 6786 + ], + "loc": { + "start": { + "line": 269, + "column": 50 + }, + "end": { + "line": 269, + "column": 60 + } + } + }, + "range": [ + 6758, + 6787 + ], + "loc": { + "start": { + "line": 269, + "column": 32 + }, + "end": { + "line": 269, + "column": 61 + } + } + }, + "range": [ + 6732, + 6787 + ], + "loc": { + "start": { + "line": 269, + "column": 6 + }, + "end": { + "line": 269, + "column": 61 + } + } + }, + "range": [ + 6732, + 6788 + ], + "loc": { + "start": { + "line": 269, + "column": 6 + }, + "end": { + "line": 269, + "column": 62 + } + } + } + ], + "range": [ + 6457, + 6794 + ], + "loc": { + "start": { + "line": 258, + "column": 35 + }, + "end": { + "line": 270, + "column": 5 + } + } + }, + "each": false, + "range": [ + 6426, + 6794 + ], + "loc": { + "start": { + "line": 258, + "column": 4 + }, + "end": { + "line": 270, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 6807, + 6811 + ], + "loc": { + "start": { + "line": 272, + "column": 11 + }, + "end": { + "line": 272, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_model", + "range": [ + 6812, + 6818 + ], + "loc": { + "start": { + "line": 272, + "column": 16 + }, + "end": { + "line": 272, + "column": 22 + } + } + }, + "range": [ + 6807, + 6818 + ], + "loc": { + "start": { + "line": 272, + "column": 11 + }, + "end": { + "line": 272, + "column": 22 + } + } + }, + "range": [ + 6800, + 6819 + ], + "loc": { + "start": { + "line": 272, + "column": 4 + }, + "end": { + "line": 272, + "column": 23 + } + } + } + ], + "range": [ + 6262, + 6823 + ], + "loc": { + "start": { + "line": 252, + "column": 25 + }, + "end": { + "line": 273, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 6245, + 6823 + ], + "loc": { + "start": { + "line": 252, + "column": 8 + }, + "end": { + "line": 273, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 6239, + 6823 + ], + "loc": { + "start": { + "line": 252, + "column": 2 + }, + "end": { + "line": 273, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Injects the specified methods or all\n *\n * @param {Array} methods\n ", + "range": [ + 6152, + 6236 + ], + "loc": { + "start": { + "line": 247, + "column": 2 + }, + "end": { + "line": 251, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 211, + 6825 + ], + "loc": { + "start": { + "line": 12, + "column": 25 + }, + "end": { + "line": 274, + "column": 1 + } + } + }, + "range": [ + 193, + 6825 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 274, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Extends standard Vogels models\n ", + "range": [ + 144, + 185 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 186, + 6825 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 274, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Extends standard Vogels models\n ", + "range": [ + 144, + 185 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 50, + 6825 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 274, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by Stefan Hariton on 6/26/15.\n ", + "range": [ + 0, + 48 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Extends standard Vogels models\n ", + "range": [ + 144, + 185 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} model\n ", + "range": [ + 215, + 251 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 307, + 339 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 387, + 419 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {number}\n ", + "range": [ + 473, + 505 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Makes filterExpression, filtersExpressionValues and filterExpressionNames from an object, that are used to make\n * a DynamoDb scan\n *\n * @param {Object} params\n * @returns {Object}\n ", + "range": [ + 568, + 771 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1581, + 1613 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Injects the specified methods or all\n *\n * @param {Array} methods\n ", + "range": [ + 6152, + 6236 + ], + "loc": { + "start": { + "line": 247, + "column": 2 + }, + "end": { + "line": 251, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/ast/source/bootstrap.js.json b/docs-api/deep-db/ast/source/bootstrap.js.json new file mode 100644 index 00000000..6049d687 --- /dev/null +++ b/docs-api/deep-db/ast/source/bootstrap.js.json @@ -0,0 +1,332 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 89, + 101 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + "range": [ + 89, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "DB", + "range": [ + 112, + 114 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 10 + } + } + }, + "imported": { + "type": "Identifier", + "name": "DB", + "range": [ + 112, + 114 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 10 + } + } + }, + "range": [ + 112, + 114 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 10 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./DB", + "raw": "'./DB'", + "range": [ + 121, + 127 + ], + "loc": { + "start": { + "line": 9, + "column": 17 + }, + "end": { + "line": 9, + "column": 23 + } + } + }, + "range": [ + 104, + 128 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 24 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "exports", + "range": [ + 134, + 141 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + "init": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "module", + "range": [ + 144, + 150 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exports", + "range": [ + 151, + 158 + ], + "loc": { + "start": { + "line": 11, + "column": 21 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "range": [ + 144, + 158 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "right": { + "type": "Identifier", + "name": "DB", + "range": [ + 161, + 163 + ], + "loc": { + "start": { + "line": 11, + "column": 31 + }, + "end": { + "line": 11, + "column": 33 + } + } + }, + "range": [ + 144, + 163 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 33 + } + } + }, + "range": [ + 134, + 163 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 33 + } + } + } + ], + "kind": "let", + "range": [ + 130, + 164 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 34 + } + } + } + ], + "sourceType": "module", + "range": [ + 89, + 164 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 11, + "column": 34 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-db/badge.svg b/docs-api/deep-db/badge.svg new file mode 100644 index 00000000..a21dd51f --- /dev/null +++ b/docs-api/deep-db/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 85% + 85% + + diff --git a/docs-api/deep-db/class/lib/DB.js~DB.html b/docs-api/deep-db/class/lib/DB.js~DB.html new file mode 100644 index 00000000..fb1f01bf --- /dev/null +++ b/docs-api/deep-db/class/lib/DB.js~DB.html @@ -0,0 +1,1111 @@ + + + + + + DB | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {DB} from 'deep-db/lib/DB.js'
    + public + class + + + + | source +
    + +
    +

    DB

    + + + + + +

    Extends:

    deep-kernel~Kernel.ContainerAware → DB
    + + + + + + + + + +

    Vogels wrapper

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

    Static Member Summary

    + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + LOCAL_DB_PORT: Number: * +

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

    Static Method Summary

    + + + + + + + + + +
    Static Public Methods
    + public + static + + + + +
    +

    + startLocalDynamoDBServer(callback: Function, driver: String, tts: Number) +

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(models: Array, tablesNames: Object) +

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

    Member Summary

    + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + models: Vogels[]: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + validation: Validation: * +

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

    Method Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + assureTable(modelName: String, callback: Function, options: Object): DB +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + assureTables(callback: Function, options: Object): DB +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + boot(kernel: Kernel, callback: Function) +

    +
    +
    + + +
    Booting a certain service
    +
    +
    + + +
    + public + + + + + +
    +

    + get(modelName: String): Vogels +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + has(modelName: String): Boolean +

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

    Static Public Members

    + +
    +

    + public + static + get + + + DEFAULT_TABLE_OPTIONS: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + LOCAL_DB_PORT: Number: * + + + + source + +

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

    Return:

    + + + + + +
    Number
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Static Public Methods

    + +
    +

    + public + static + + + + startLocalDynamoDBServer(callback: Function, driver: String, tts: Number) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    callbackFunction
    driverString
    ttsNumber
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Constructors

    + +
    +

    + public + + + + + constructor(models: Array, tablesNames: Object) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    modelsArray
    tablesNamesObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + models: Vogels[]: * + + + + source + +

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

    Return:

    + + + + + +
    Vogels[]
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + validation: Validation: * + + + + source + +

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

    Return:

    + + + + + +
    Validation
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + assureTable(modelName: String, callback: Function, options: Object): DB + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    modelNameString
    callbackFunction
    optionsObject
    +
    +
    + +
    +

    Return:

    + + + + + +
    DB
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + assureTables(callback: Function, options: Object): DB + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    callbackFunction
    optionsObject
    +
    +
    + +
    +

    Return:

    + + + + + +
    DB
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + boot(kernel: Kernel, callback: Function) + + + + source + +

    + + + + +

    Booting a certain service

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    kernelKernel
    callbackFunction
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    + public + + + + + get(modelName: String): Vogels + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    modelNameString
    +
    +
    + +
    +

    Return:

    + + + + + +
    Vogels
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + has(modelName: String): Boolean + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    modelNameString
    +
    +
    + +
    +

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Exception/Exception.js~Exception.html b/docs-api/deep-db/class/lib/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..99b8cbb7 --- /dev/null +++ b/docs-api/deep-db/class/lib/Exception/Exception.js~Exception.html @@ -0,0 +1,210 @@ + + + + + + Exception | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Exception} from 'deep-db/lib/Exception/Exception.js'
    + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    deep-core~Core.Exception.Exception → Exception
    + + + + + + + + + +

    Thrown when any exception occurs

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Exception/FailedToCreateTableException.js~FailedToCreateTableException.html b/docs-api/deep-db/class/lib/Exception/FailedToCreateTableException.js~FailedToCreateTableException.html new file mode 100644 index 00000000..74e24e3b --- /dev/null +++ b/docs-api/deep-db/class/lib/Exception/FailedToCreateTableException.js~FailedToCreateTableException.html @@ -0,0 +1,209 @@ + + + + + + FailedToCreateTableException | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {FailedToCreateTableException} from 'deep-db/lib/Exception/FailedToCreateTableException.js'
    + public + class + + + + | source +
    + +
    +

    FailedToCreateTableException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → FailedToCreateTableException
    + + + + + + + + + + + + + + + + + + +
    + + + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(tableName: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(tableName: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    tableNameString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Exception/FailedToCreateTablesException.js~FailedToCreateTablesException.html b/docs-api/deep-db/class/lib/Exception/FailedToCreateTablesException.js~FailedToCreateTablesException.html new file mode 100644 index 00000000..6d2a4104 --- /dev/null +++ b/docs-api/deep-db/class/lib/Exception/FailedToCreateTablesException.js~FailedToCreateTablesException.html @@ -0,0 +1,215 @@ + + + + + + FailedToCreateTablesException | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {FailedToCreateTablesException} from 'deep-db/lib/Exception/FailedToCreateTablesException.js'
    + public + class + + + + | source +
    + +
    +

    FailedToCreateTablesException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → FailedToCreateTablesException
    + + + + + + + + + + + + + + + + + + +
    + + + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(tablesNames: Array, error: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(tablesNames: Array, error: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    tablesNamesArray
    errorString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Exception/ModelNotFoundException.js~ModelNotFoundException.html b/docs-api/deep-db/class/lib/Exception/ModelNotFoundException.js~ModelNotFoundException.html new file mode 100644 index 00000000..49a334cf --- /dev/null +++ b/docs-api/deep-db/class/lib/Exception/ModelNotFoundException.js~ModelNotFoundException.html @@ -0,0 +1,210 @@ + + + + + + ModelNotFoundException | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {ModelNotFoundException} from 'deep-db/lib/Exception/ModelNotFoundException.js'
    + public + class + + + + | source +
    + +
    +

    ModelNotFoundException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → ModelNotFoundException
    + + + + + + + + + +

    Thrown when missing requested model

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(modelName: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(modelName: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    modelNameString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Local/DBServer.js~DBServer.html b/docs-api/deep-db/class/lib/Local/DBServer.js~DBServer.html new file mode 100644 index 00000000..a498c096 --- /dev/null +++ b/docs-api/deep-db/class/lib/Local/DBServer.js~DBServer.html @@ -0,0 +1,383 @@ + + + + + + DBServer | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {DBServer} from 'deep-db/lib/Local/DBServer.js'
    + public + class + + + + | source +
    + +
    +

    DBServer

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

    Static Member Summary

    + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + +
    +

    + DEFAULT_DRIVER: Function: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + DRIVERS: Function[]: * +

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

    Static Method Summary

    + + + + + + + + + +
    Static Public Methods
    + public + static + + + + +
    +

    + create(driver: Function | String, args: *): Function +

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

    Static Public Members

    + +
    +

    + public + static + get + + + DEFAULT_DRIVER: Function: * + + + + source + +

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

    Return:

    + + + + + +
    Function
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + DRIVERS: Function[]: * + + + + source + +

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

    Return:

    + + + + + +
    Function[]
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Static Public Methods

    + +
    +

    + public + static + + + + create(driver: Function | String, args: *): Function + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    driverFunction | String
    args*
    +
    +
    + +
    +

    Return:

    + + + + + +
    Function
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Local/Driver/AbstractDriver.js~AbstractDriver.html b/docs-api/deep-db/class/lib/Local/Driver/AbstractDriver.js~AbstractDriver.html new file mode 100644 index 00000000..7b16d2ce --- /dev/null +++ b/docs-api/deep-db/class/lib/Local/Driver/AbstractDriver.js~AbstractDriver.html @@ -0,0 +1,877 @@ + + + + + + AbstractDriver | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {AbstractDriver} from 'deep-db/lib/Local/Driver/AbstractDriver.js'
    + public + class + + + + | source +
    + +
    +

    AbstractDriver

    + + + + + +

    Extends:

    deep-core~Core.OOP.Interface → AbstractDriver
    + + + + + + + + + + + + + + + + + + +
    + +

    Static Member Summary

    + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    +
    + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(port: Number) +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + port: Number: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + port(port: Number): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + running: Boolean: * +

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

    Method Summary

    + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + + +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + start(cb: Function, tts: Number): AbstractDriver +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + stop(cb: Function): AbstractDriver +

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

    Static Public Members

    + +
    +

    + public + static + get + + + DEFAULT_PORT: Number: number + + + + source + +

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

    Return:

    + + + + + +
    Number
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + DEFAULT_TTS: Number: number + + + + source + +

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

    Return:

    + + + + + +
    Number
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +

    Public Constructors

    + +
    +

    + public + + + + + constructor(port: Number) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    portNumber
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + port: Number: * + + + + source + +

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

    Return:

    + + + + + +
    Number
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + port(port: Number): * + + + + source + +

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

    + public + + get + + + running: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + restart(cb: Function): AbstractDriver + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    cbFunction
    +
    +
    + +
    +

    Return:

    + + + + + +
    AbstractDriver
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + start(cb: Function, tts: Number): AbstractDriver + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    cbFunction
    ttsNumber
    +
    +
    + +
    +

    Return:

    + + + + + +
    AbstractDriver
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + stop(cb: Function): AbstractDriver + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    cbFunction
    +
    +
    + +
    +

    Return:

    + + + + + +
    AbstractDriver
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Local/Driver/Dynalite.js~Dynalite.html b/docs-api/deep-db/class/lib/Local/Driver/Dynalite.js~Dynalite.html new file mode 100644 index 00000000..9735ce3d --- /dev/null +++ b/docs-api/deep-db/class/lib/Local/Driver/Dynalite.js~Dynalite.html @@ -0,0 +1,387 @@ + + + + + + Dynalite | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Dynalite} from 'deep-db/lib/Local/Driver/Dynalite.js'
    + public + class + + + + | source +
    + +
    +

    Dynalite

    + + + + + +

    Extends:

    lib/Local/Driver/PathAwareDriver~PathAwareDriver → Dynalite
    + + + + + + + + + + + + + + + + + + +
    + +

    Static Member Summary

    + + + + + + + + + +
    Static Public Members
    + public + static + get + + + +
    +

    + DEFAULT_OPTIONS: Object: * +

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(options: Object, path: String, port: Number) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + options: Object: * +

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

    Static Public Members

    + +
    +

    + public + static + get + + + DEFAULT_OPTIONS: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +

    Public Constructors

    + +
    +

    + public + + + + + constructor(options: Object, path: String, port: Number) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    optionsObject
    pathString
    portNumber
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + options: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Local/Driver/Exception/Exception.js~Exception.html b/docs-api/deep-db/class/lib/Local/Driver/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..665d2310 --- /dev/null +++ b/docs-api/deep-db/class/lib/Local/Driver/Exception/Exception.js~Exception.html @@ -0,0 +1,210 @@ + + + + + + Exception | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    deep-core~Core.Exception.Exception → Exception
    + + + + + + + + + +

    Thrown when any exception occurs

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Local/Driver/Exception/FailedToStartServerException.js~FailedToStartServerException.html b/docs-api/deep-db/class/lib/Local/Driver/Exception/FailedToStartServerException.js~FailedToStartServerException.html new file mode 100644 index 00000000..43bccf0e --- /dev/null +++ b/docs-api/deep-db/class/lib/Local/Driver/Exception/FailedToStartServerException.js~FailedToStartServerException.html @@ -0,0 +1,215 @@ + + + + + + FailedToStartServerException | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {FailedToStartServerException} from 'deep-db/lib/Local/Driver/Exception/FailedToStartServerException.js'
    + public + class + + + + | source +
    + +
    +

    FailedToStartServerException

    + + + + + +

    Extends:

    lib/Local/Driver/Exception/Exception~Exception → FailedToStartServerException
    + + + + + + + + + + + + + + + + + + +
    + + + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(driver: Object, error: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(driver: Object, error: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    driverObject
    errorString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Local/Driver/Exception/ServerAlreadyRunningException.js~ServerAlreadyRunningException.html b/docs-api/deep-db/class/lib/Local/Driver/Exception/ServerAlreadyRunningException.js~ServerAlreadyRunningException.html new file mode 100644 index 00000000..5c56f75d --- /dev/null +++ b/docs-api/deep-db/class/lib/Local/Driver/Exception/ServerAlreadyRunningException.js~ServerAlreadyRunningException.html @@ -0,0 +1,209 @@ + + + + + + ServerAlreadyRunningException | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {ServerAlreadyRunningException} from 'deep-db/lib/Local/Driver/Exception/ServerAlreadyRunningException.js'
    + public + class + + + + | source +
    + +
    +

    ServerAlreadyRunningException

    + + + + + +

    Extends:

    lib/Local/Driver/Exception/Exception~Exception → ServerAlreadyRunningException
    + + + + + + + + + + + + + + + + + + +
    + + + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(driver: Object) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(driver: Object) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    driverObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Local/Driver/Exception/ServerTtsExceededException.js~ServerTtsExceededException.html b/docs-api/deep-db/class/lib/Local/Driver/Exception/ServerTtsExceededException.js~ServerTtsExceededException.html new file mode 100644 index 00000000..a06b5b6e --- /dev/null +++ b/docs-api/deep-db/class/lib/Local/Driver/Exception/ServerTtsExceededException.js~ServerTtsExceededException.html @@ -0,0 +1,215 @@ + + + + + + ServerTtsExceededException | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {ServerTtsExceededException} from 'deep-db/lib/Local/Driver/Exception/ServerTtsExceededException.js'
    + public + class + + + + | source +
    + +
    +

    ServerTtsExceededException

    + + + + + +

    Extends:

    lib/Local/Driver/Exception/Exception~Exception → ServerTtsExceededException
    + + + + + + + + + + + + + + + + + + +
    + + + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(driver: Object, tts: Number) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(driver: Object, tts: Number) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    driverObject
    ttsNumber
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Local/Driver/LocalDynamo.js~LocalDynamo.html b/docs-api/deep-db/class/lib/Local/Driver/LocalDynamo.js~LocalDynamo.html new file mode 100644 index 00000000..3f7c9c67 --- /dev/null +++ b/docs-api/deep-db/class/lib/Local/Driver/LocalDynamo.js~LocalDynamo.html @@ -0,0 +1,387 @@ + + + + + + LocalDynamo | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {LocalDynamo} from 'deep-db/lib/Local/Driver/LocalDynamo.js'
    + public + class + + + + | source +
    + +
    +

    LocalDynamo

    + + + + + +

    Extends:

    lib/Local/Driver/PathAwareDriver~PathAwareDriver → LocalDynamo
    + + + + + + + + + + + + + + + + + + +
    + +

    Static Member Summary

    + + + + + + + + + +
    Static Public Members
    + public + static + get + + + +
    +

    + DEFAULT_OPTIONS: Object: * +

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(options: Object, path: String, port: Number) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + options: Object: * +

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

    Static Public Members

    + +
    +

    + public + static + get + + + DEFAULT_OPTIONS: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +

    Public Constructors

    + +
    +

    + public + + + + + constructor(options: Object, path: String, port: Number) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    optionsObject
    pathString
    portNumber
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + options: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Local/Driver/PathAwareDriver.js~PathAwareDriver.html b/docs-api/deep-db/class/lib/Local/Driver/PathAwareDriver.js~PathAwareDriver.html new file mode 100644 index 00000000..0d67b014 --- /dev/null +++ b/docs-api/deep-db/class/lib/Local/Driver/PathAwareDriver.js~PathAwareDriver.html @@ -0,0 +1,446 @@ + + + + + + PathAwareDriver | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {PathAwareDriver} from 'deep-db/lib/Local/Driver/PathAwareDriver.js'
    + public + class + + + + | source +
    + +
    +

    PathAwareDriver

    + + + + + +

    Extends:

    lib/Local/Driver/AbstractDriver~AbstractDriver → PathAwareDriver
    + + + + + + + + + + + + + + + + + + +
    + +

    Static Member Summary

    + + + + + + + + + +
    Static Public Members
    + public + static + get + + + +
    +

    + DBPath: String: * +

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(path: String, port: Number) +

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

    Member Summary

    + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + path: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + path(path: String): * +

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

    Static Public Members

    + +
    +

    + public + static + get + + + DBPath: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +

    Public Constructors

    + +
    +

    + public + + + + + constructor(path: String, port: Number) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    pathString
    portNumber
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + path: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + path(path: String): * + + + + source + +

    + + + + + + + + +
    +
    + + + + + + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Vogels/Exceptions/Exception.js~Exception.html b/docs-api/deep-db/class/lib/Vogels/Exceptions/Exception.js~Exception.html new file mode 100644 index 00000000..2e6dac4c --- /dev/null +++ b/docs-api/deep-db/class/lib/Vogels/Exceptions/Exception.js~Exception.html @@ -0,0 +1,210 @@ + + + + + + Exception | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    lib/Exception/Exception~BaseException → Exception
    + + + + + + + + + +

    Base exception

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Vogels/Exceptions/InvalidArgumentException.js~InvalidArgumentException.html b/docs-api/deep-db/class/lib/Vogels/Exceptions/InvalidArgumentException.js~InvalidArgumentException.html new file mode 100644 index 00000000..792219ac --- /dev/null +++ b/docs-api/deep-db/class/lib/Vogels/Exceptions/InvalidArgumentException.js~InvalidArgumentException.html @@ -0,0 +1,216 @@ + + + + + + InvalidArgumentException | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {InvalidArgumentException} from 'deep-db/lib/Vogels/Exceptions/InvalidArgumentException.js'
    + public + class + + + + | source +
    + +
    +

    InvalidArgumentException

    + + + + + +

    Extends:

    lib/Vogels/Exceptions/Exception~Exception → InvalidArgumentException
    + + + + + + + + + +

    Thrown when invalid argument provided

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(argument: *, meantType: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(argument: *, meantType: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argument*
    meantTypeString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Vogels/Exceptions/UndefinedMethodException.js~UndefinedMethodException.html b/docs-api/deep-db/class/lib/Vogels/Exceptions/UndefinedMethodException.js~UndefinedMethodException.html new file mode 100644 index 00000000..b8641148 --- /dev/null +++ b/docs-api/deep-db/class/lib/Vogels/Exceptions/UndefinedMethodException.js~UndefinedMethodException.html @@ -0,0 +1,216 @@ + + + + + + UndefinedMethodException | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {UndefinedMethodException} from 'deep-db/lib/Vogels/Exceptions/UndefinedMethodException.js'
    + public + class + + + + | source +
    + +
    +

    UndefinedMethodException

    + + + + + +

    Extends:

    lib/Vogels/Exceptions/Exception~Exception → UndefinedMethodException
    + + + + + + + + + +

    Thrown when undefined method is requested

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(name: *, availableMethods: *) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(name: *, availableMethods: *) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    name*
    availableMethods*
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/class/lib/Vogels/ExtendModel.js~ExtendModel.html b/docs-api/deep-db/class/lib/Vogels/ExtendModel.js~ExtendModel.html new file mode 100644 index 00000000..954e610b --- /dev/null +++ b/docs-api/deep-db/class/lib/Vogels/ExtendModel.js~ExtendModel.html @@ -0,0 +1,728 @@ + + + + + + ExtendModel | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {ExtendModel} from 'deep-db/lib/Vogels/ExtendModel.js'
    + public + class + + + + | source +
    + +
    +

    ExtendModel

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

    Extends standard Vogels models

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

    Static Member Summary

    + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    +
    +

    Static Method Summary

    + + + + + + + + + +
    Static Public Methods
    + public + static + + + + +
    +

    + buildScanParameters(params: Object): Object +

    +
    +
    + + +
    Makes filterExpression, filtersExpressionValues and filterExpressionNames from an object, that are used to make +a DynamoDb scan
    +
    +
    + + +
    +
    +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(model: Object) +

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

    Member Summary

    + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + methods: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + model: Object: * +

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

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + inject(methods: Array): * +

    +
    +
    + + +
    Injects the specified methods or all
    +
    +
    + + +
    +
    + + + +

    Static Public Members

    + +
    +

    + public + static + get + + + DEFAULT_LIMIT: Number: number + + + + source + +

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

    Return:

    + + + + + +
    Number
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + DEFAULT_SEGMENTS_NUMBER: number: number + + + + source + +

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

    Return:

    + + + + + +
    number
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Static Public Methods

    + +
    +

    + public + static + + + + buildScanParameters(params: Object): Object + + + + source + +

    + + + + +

    Makes filterExpression, filtersExpressionValues and filterExpressionNames from an object, that are used to make +a DynamoDb scan

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    paramsObject
    +
    +
    + +
    +

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Constructors

    + +
    +

    + public + + + + + constructor(model: Object) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    modelObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + methods: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + model: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + inject(methods: Array): * + + + + source + +

    + + + + +

    Injects the specified methods or all

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    methodsArray
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/coverage.json b/docs-api/deep-db/coverage.json new file mode 100644 index 00000000..5ea32056 --- /dev/null +++ b/docs-api/deep-db/coverage.json @@ -0,0 +1,117 @@ +{ + "coverage": "85.5%", + "expectCount": 69, + "actualCount": 59, + "files": { + "lib/Local/Driver/AbstractDriver.js": { + "expectCount": 10, + "actualCount": 9, + "undocumentLines": [ + 11 + ] + }, + "lib/DB.js": { + "expectCount": 12, + "actualCount": 12, + "undocumentLines": [] + }, + "lib/Local/Driver/PathAwareDriver.js": { + "expectCount": 5, + "actualCount": 4, + "undocumentLines": [ + 12 + ] + }, + "lib/Local/DBServer.js": { + "expectCount": 4, + "actualCount": 3, + "undocumentLines": [ + 10 + ] + }, + "lib/Vogels/ExtendModel.js": { + "expectCount": 8, + "actualCount": 8, + "undocumentLines": [] + }, + "lib/Local/Driver/LocalDynamo.js": { + "expectCount": 4, + "actualCount": 3, + "undocumentLines": [ + 11 + ] + }, + "lib/Local/Driver/Dynalite.js": { + "expectCount": 4, + "actualCount": 3, + "undocumentLines": [ + 11 + ] + }, + "lib/Vogels/Exceptions/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Local/Driver/Exception/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Exception/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Exception/FailedToCreateTableException.js": { + "expectCount": 2, + "actualCount": 1, + "undocumentLines": [ + 9 + ] + }, + "lib/Exception/FailedToCreateTablesException.js": { + "expectCount": 2, + "actualCount": 1, + "undocumentLines": [ + 9 + ] + }, + "lib/Local/Driver/Exception/FailedToStartServerException.js": { + "expectCount": 2, + "actualCount": 1, + "undocumentLines": [ + 9 + ] + }, + "lib/Vogels/Exceptions/InvalidArgumentException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Exception/ModelNotFoundException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Local/Driver/Exception/ServerAlreadyRunningException.js": { + "expectCount": 2, + "actualCount": 1, + "undocumentLines": [ + 9 + ] + }, + "lib/Local/Driver/Exception/ServerTtsExceededException.js": { + "expectCount": 2, + "actualCount": 1, + "undocumentLines": [ + 9 + ] + }, + "lib/Vogels/Exceptions/UndefinedMethodException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/docs-api/deep-db/css/prettify-tomorrow.css b/docs-api/deep-db/css/prettify-tomorrow.css new file mode 100644 index 00000000..b6f92a78 --- /dev/null +++ b/docs-api/deep-db/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs-api/deep-db/css/style.css b/docs-api/deep-db/css/style.css new file mode 100644 index 00000000..4dc99a1b --- /dev/null +++ b/docs-api/deep-db/css/style.css @@ -0,0 +1,862 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Roboto', sans-serif; + overflow: auto; + font-size: 14px; + /*color: #4d4e53;*/ + color: rgba(0, 0, 0, .68); + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + background-color: #E2E2E2; + padding: 4px; + font-weight: 300; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 19px; +} + +p > code { + background-color: #f5f5f5; + border-radius: 3px; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0 4px; + border-radius: 3px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: white; + top: 0; + border-bottom: solid 1px #E02130; +} +.layout-container > header > a{ + margin: 0 5px; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid rgba(0, 0, 0, 0.1); +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation .nav-dir-path { + margin-top: 0.7em; + margin-bottom: 0.25em; + font-size: 0.8em; + color: #aaa; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #999; + color: white; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +pre.source-code { + background: #f5f5f5; + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150); +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #999; + color: white; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} + +table.test-summary thead { + background: #999; + color: white; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-describe .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; +} + +table.test-summary tr.test-describe .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-describe .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} + +.inner-link-active { + background: rgb(255, 255, 150); +} + +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + +/* coverage badge */ +.esdoc-coverage { + display: inline-block; + height: 20px; + vertical-align: top; +} + +h1 .esdoc-coverage { + position: relative; + top: -4px; +} + +.esdoc-coverage-wrap { + color: white; + font-size: 12px; + font-weight: 500; +} + +.esdoc-coverage-label { + padding: 3px 4px 3px 6px; + background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%); + border-radius: 4px 0 0 4px; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-ratio { + padding: 3px 6px 3px 4px; + border-radius: 0 4px 4px 0; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-low { + background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%); +} + +.esdoc-coverage-middle { + background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%); +} + +.esdoc-coverage-high { + background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%); +} + +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; + background-color: transparent; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} diff --git a/docs-api/deep-db/dump.json b/docs-api/deep-db/dump.json new file mode 100644 index 00000000..140a3e44 --- /dev/null +++ b/docs-api/deep-db/dump.json @@ -0,0 +1,3669 @@ +[ + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/DB.js", + "memberof": null, + "longname": "lib/DB.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/15/15.\n */\n\n'use strict';\n\nimport Kernel from 'deep-kernel';\nimport Vogels from 'vogels';\nimport {ExtendModel} from './Vogels/ExtendModel';\nimport {ModelNotFoundException} from './Exception/ModelNotFoundException';\nimport Validation from 'deep-validation';\nimport Utils from 'util';\nimport {FailedToCreateTableException} from './Exception/FailedToCreateTableException';\nimport {FailedToCreateTablesException} from './Exception/FailedToCreateTablesException';\nimport {AbstractDriver} from './Local/Driver/AbstractDriver';\n\n/**\n * Vogels wrapper\n */\nexport class DB extends Kernel.ContainerAware {\n /**\n * @param {Array} models\n * @param {Object} tablesNames\n */\n constructor(models = [], tablesNames = {}) {\n super();\n\n // @todo: set retries in a smarter way...\n Vogels.AWS.config.maxRetries = 3;\n\n this._tablesNames = tablesNames;\n this._validation = new Validation(models);\n this._models = this._rawModelsToVogels(models);\n\n // @todo: remove?\n this._localDbProcess = null;\n }\n\n /**\n * @returns {Validation}\n */\n get validation() {\n return this._validation;\n }\n\n /**\n * @returns {Vogels[]}\n */\n get models() {\n return this._models;\n }\n\n /**\n * @param {String} modelName\n * @returns {Boolean}\n */\n has(modelName) {\n return typeof this._models[modelName] !== 'undefined';\n }\n\n /**\n * @param {String} modelName\n * @returns {Vogels}\n */\n get(modelName) {\n if (!this.has(modelName)) {\n throw new ModelNotFoundException(modelName);\n }\n\n return this._models[modelName];\n }\n\n /**\n * @param {String} modelName\n * @param {Function} callback\n * @param {Object} options\n * @returns {DB}\n */\n assureTable(modelName, callback, options = {}) {\n if (!this.has(modelName)) {\n throw new ModelNotFoundException(modelName);\n }\n\n options = Utils._extend(DB.DEFAULT_TABLE_OPTIONS, options);\n options[modelName] = options;\n\n Vogels.createTables(options, function(error) {\n if (error) {\n throw new FailedToCreateTableException(modelName);\n }\n\n callback();\n }.bind(this));\n\n return this;\n }\n\n /**\n * @param {Function} callback\n * @param {Object} options\n * @returns {DB}\n */\n assureTables(callback, options = {}) {\n let allModelsOptions = {};\n let allModelNames = [];\n\n for (let modelName in this._models) {\n if (!this._models.hasOwnProperty(modelName)) {\n continue;\n }\n\n allModelsOptions[modelName] = Utils._extend(DB.DEFAULT_TABLE_OPTIONS, options);\n allModelNames.push(modelName);\n }\n\n Vogels.createTables(allModelsOptions, function(error) {\n if (error) {\n throw new FailedToCreateTablesException(allModelNames, error);\n }\n\n callback();\n }.bind(this));\n\n return this;\n }\n\n /**\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n */\n boot(kernel, callback) {\n this._validation.boot(kernel, function() {\n this._validation.immutable = true;\n\n this._tablesNames = kernel.config.tablesNames;\n this._models = this._rawModelsToVogels(kernel.config.models);\n\n if (this._localBackend) {\n this._enableLocalDB(callback);\n } else {\n callback();\n }\n }.bind(this));\n }\n\n /**\n * @param {Object} driver\n * @returns {DB}\n * @private\n */\n _setVogelsDriver(driver) {\n Vogels.dynamoDriver(driver);\n\n return this;\n }\n\n /**\n * @param {Function} callback\n * @param {String} driver\n * @param {Number} tts\n */\n static startLocalDynamoDBServer(callback, driver = 'LocalDynamo', tts = AbstractDriver.DEFAULT_TTS) {\n let LocalDBServer = require('./Local/DBServer').DBServer;\n\n let server = LocalDBServer.create(driver);\n\n server.start(callback, tts);\n }\n\n /**\n * @param {Function} callback\n * @private\n */\n _enableLocalDB(callback) {\n this._setVogelsDriver(\n new Vogels.AWS.DynamoDB({\n endpoint: new Vogels.AWS.Endpoint(`http://localhost:${DB.LOCAL_DB_PORT}`),\n accessKeyId: 'fake',\n secretAccessKey: 'fake',\n region: 'us-east-1',\n })\n );\n\n this.assureTables(callback);\n }\n\n /**\n * @returns {Object}\n */\n static get DEFAULT_TABLE_OPTIONS() {\n return {\n readCapacity: 5,\n writeCapacity: 5,\n };\n }\n\n /**\n * @param {Array} rawModels\n * @returns {Object}\n */\n _rawModelsToVogels(rawModels) {\n let models = {};\n\n for (let modelKey in rawModels) {\n if (!rawModels.hasOwnProperty(modelKey)) {\n continue;\n }\n\n let backendModels = rawModels[modelKey];\n\n for (let modelName in backendModels) {\n if (!backendModels.hasOwnProperty(modelName)) {\n continue;\n }\n\n models[modelName] = new ExtendModel(Vogels.define(\n modelName,\n this._wrapModelSchema(modelName)\n )).inject();\n }\n }\n\n return models;\n }\n\n /**\n * @param {String} name\n * @returns {Object}\n * @private\n */\n _wrapModelSchema(name) {\n return {\n hashKey: 'Id',\n timestamps: true,\n tableName: this._tablesNames[name],\n schema: this._validation.get(name),\n };\n }\n\n /**\n * @returns {Number}\n */\n static get LOCAL_DB_PORT() {\n return AbstractDriver.DEFAULT_PORT;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "DB", + "memberof": "lib/DB.js", + "longname": "lib/DB.js~DB", + "access": null, + "export": true, + "importPath": "deep-db/lib/DB.js", + "importStyle": "{DB}", + "description": "Vogels wrapper", + "lineNumber": 20, + "interface": false, + "extends": [ + "deep-kernel~Kernel.ContainerAware" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#constructor", + "access": null, + "description": null, + "lineNumber": 25, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "models", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "tablesNames", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_tablesNames", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#_tablesNames", + "access": null, + "description": null, + "lineNumber": 31, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_validation", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#_validation", + "access": null, + "description": null, + "lineNumber": 32, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_models", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#_models", + "access": null, + "description": null, + "lineNumber": 33, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_localDbProcess", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#_localDbProcess", + "access": null, + "description": null, + "lineNumber": 36, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "validation", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#validation", + "access": null, + "description": null, + "lineNumber": 42, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Validation}" + } + ], + "return": { + "nullable": null, + "types": [ + "Validation" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "models", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#models", + "access": null, + "description": null, + "lineNumber": 49, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Vogels[]}" + } + ], + "return": { + "nullable": null, + "types": [ + "Vogels[]" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "has", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#has", + "access": null, + "description": null, + "lineNumber": 57, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "modelName", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "get", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#get", + "access": null, + "description": null, + "lineNumber": 65, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Vogels}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "modelName", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Vogels" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "assureTable", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#assureTable", + "access": null, + "description": null, + "lineNumber": 79, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{DB}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "modelName", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "options", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "DB" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "assureTables", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#assureTables", + "access": null, + "description": null, + "lineNumber": 103, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{DB}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "options", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "DB" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "boot", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#boot", + "access": null, + "description": "Booting a certain service", + "lineNumber": 133, + "params": [ + { + "nullable": null, + "types": [ + "Kernel" + ], + "spread": false, + "optional": false, + "name": "kernel", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_tablesNames", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#_tablesNames", + "access": null, + "description": null, + "lineNumber": 137, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_models", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#_models", + "access": null, + "description": null, + "lineNumber": 138, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_setVogelsDriver", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#_setVogelsDriver", + "access": "private", + "description": null, + "lineNumber": 153, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{DB}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "driver", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "DB" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "startLocalDynamoDBServer", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB.startLocalDynamoDBServer", + "access": null, + "description": null, + "lineNumber": 164, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "driver", + "description": "" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "tts", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_enableLocalDB", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#_enableLocalDB", + "access": "private", + "description": null, + "lineNumber": 176, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "DEFAULT_TABLE_OPTIONS", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB.DEFAULT_TABLE_OPTIONS", + "access": null, + "description": null, + "lineNumber": 192, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_rawModelsToVogels", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#_rawModelsToVogels", + "access": null, + "description": null, + "lineNumber": 203, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "rawModels", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_wrapModelSchema", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB#_wrapModelSchema", + "access": "private", + "description": null, + "lineNumber": 233, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "LOCAL_DB_PORT", + "memberof": "lib/DB.js~DB", + "longname": "lib/DB.js~DB.LOCAL_DB_PORT", + "access": null, + "description": null, + "lineNumber": 245, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/Exception.js", + "memberof": null, + "longname": "lib/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\n\n/**\n * Thrown when any exception occurs\n */\nexport class Exception extends Core.Exception.Exception {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Exception/Exception.js", + "longname": "lib/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-db/lib/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Thrown when any exception occurs", + "lineNumber": 12, + "interface": false, + "extends": [ + "deep-core~Core.Exception.Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/Exception.js~Exception", + "longname": "lib/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/FailedToCreateTableException.js", + "memberof": null, + "longname": "lib/Exception/FailedToCreateTableException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/25/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\nexport class FailedToCreateTableException extends Exception {\n /**\n * @param {String} tableName\n */\n constructor(tableName) {\n super(`Failed to create table for model ${tableName}`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "FailedToCreateTableException", + "memberof": "lib/Exception/FailedToCreateTableException.js", + "longname": "lib/Exception/FailedToCreateTableException.js~FailedToCreateTableException", + "access": null, + "export": true, + "importPath": "deep-db/lib/Exception/FailedToCreateTableException.js", + "importStyle": "{FailedToCreateTableException}", + "description": null, + "lineNumber": 9, + "undocument": true, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/FailedToCreateTableException.js~FailedToCreateTableException", + "longname": "lib/Exception/FailedToCreateTableException.js~FailedToCreateTableException#constructor", + "access": null, + "description": null, + "lineNumber": 13, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "tableName", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/FailedToCreateTablesException.js", + "memberof": null, + "longname": "lib/Exception/FailedToCreateTablesException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 6/25/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\nexport class FailedToCreateTablesException extends Exception {\n /**\n * @param {Array} tablesNames\n * @param {String} error\n */\n constructor(tablesNames, error) {\n super(`Failed to create ${tablesNames} tables. ${error}`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "FailedToCreateTablesException", + "memberof": "lib/Exception/FailedToCreateTablesException.js", + "longname": "lib/Exception/FailedToCreateTablesException.js~FailedToCreateTablesException", + "access": null, + "export": true, + "importPath": "deep-db/lib/Exception/FailedToCreateTablesException.js", + "importStyle": "{FailedToCreateTablesException}", + "description": null, + "lineNumber": 9, + "undocument": true, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/FailedToCreateTablesException.js~FailedToCreateTablesException", + "longname": "lib/Exception/FailedToCreateTablesException.js~FailedToCreateTablesException#constructor", + "access": null, + "description": null, + "lineNumber": 14, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "tablesNames", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "error", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/ModelNotFoundException.js", + "memberof": null, + "longname": "lib/Exception/ModelNotFoundException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/15/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when missing requested model\n */\nexport class ModelNotFoundException extends Exception {\n /**\n * @param {String} modelName\n */\n constructor(modelName) {\n super(`Model ${modelName} was not found`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "ModelNotFoundException", + "memberof": "lib/Exception/ModelNotFoundException.js", + "longname": "lib/Exception/ModelNotFoundException.js~ModelNotFoundException", + "access": null, + "export": true, + "importPath": "deep-db/lib/Exception/ModelNotFoundException.js", + "importStyle": "{ModelNotFoundException}", + "description": "Thrown when missing requested model", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/ModelNotFoundException.js~ModelNotFoundException", + "longname": "lib/Exception/ModelNotFoundException.js~ModelNotFoundException#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "modelName", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Local/DBServer.js", + "memberof": null, + "longname": "lib/Local/DBServer.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 9/23/15.\n */\n\n'use strict';\n\nimport {LocalDynamo} from './Driver/LocalDynamo';\nimport {Dynalite} from './Driver/Dynalite';\n\nexport class DBServer {\n /**\n * @param {Function|String} driver\n * @param {*} args\n * @returns {Function}\n */\n static create(driver = DBServer.DEFAULT_DRIVER, ...args) {\n let DriverProto = typeof driver === 'string'\n ? DBServer._findDriverPrototype(driver)\n : driver;\n\n if (!DriverProto) {\n throw new Error(`Missing DB server driver ${driver}`);\n }\n\n return new DriverProto(...args);\n }\n\n /**\n * @param {String} name\n * @returns {Function}\n * @private\n */\n static _findDriverPrototype(name) {\n for (let driverProtoKey in DBServer.DRIVERS) {\n if (!DBServer.DRIVERS.hasOwnProperty(driverProtoKey)) {\n continue;\n }\n\n let driverProto = DBServer.DRIVERS[driverProtoKey];\n\n if (driverProto.name === name) {\n return driverProto;\n }\n }\n\n return null;\n }\n\n /**\n * @returns {Function[]}\n */\n static get DRIVERS() {\n return [\n LocalDynamo,\n Dynalite,\n ];\n }\n\n /**\n * @returns {Function}\n */\n static get DEFAULT_DRIVER() {\n return DBServer.DRIVERS[0];\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "DBServer", + "memberof": "lib/Local/DBServer.js", + "longname": "lib/Local/DBServer.js~DBServer", + "access": null, + "export": true, + "importPath": "deep-db/lib/Local/DBServer.js", + "importStyle": "{DBServer}", + "description": null, + "lineNumber": 10, + "undocument": true, + "interface": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "create", + "memberof": "lib/Local/DBServer.js~DBServer", + "longname": "lib/Local/DBServer.js~DBServer.create", + "access": null, + "description": null, + "lineNumber": 16, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function", + "String" + ], + "spread": false, + "optional": false, + "name": "driver", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "_findDriverPrototype", + "memberof": "lib/Local/DBServer.js~DBServer", + "longname": "lib/Local/DBServer.js~DBServer._findDriverPrototype", + "access": "private", + "description": null, + "lineNumber": 33, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "DRIVERS", + "memberof": "lib/Local/DBServer.js~DBServer", + "longname": "lib/Local/DBServer.js~DBServer.DRIVERS", + "access": null, + "description": null, + "lineNumber": 52, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function[]}" + } + ], + "return": { + "nullable": null, + "types": [ + "Function[]" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "DEFAULT_DRIVER", + "memberof": "lib/Local/DBServer.js~DBServer", + "longname": "lib/Local/DBServer.js~DBServer.DEFAULT_DRIVER", + "access": null, + "description": null, + "lineNumber": 62, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Function}" + } + ], + "return": { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Local/Driver/AbstractDriver.js", + "memberof": null, + "longname": "lib/Local/Driver/AbstractDriver.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 9/23/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\nimport {ServerAlreadyRunningException} from './Exception/ServerAlreadyRunningException';\nimport {ServerTtsExceededException} from './Exception/ServerTtsExceededException';\n\nexport class AbstractDriver extends Core.OOP.Interface {\n /**\n * @param {Number} port\n */\n constructor(port = AbstractDriver.DEFAULT_PORT) {\n super('_start', '_stop');\n\n this._running = false;\n this._port = port;\n this._teardownHook = false;\n }\n\n /**\n * @returns {Number}\n */\n get port() {\n return this._port;\n }\n\n /**\n * @param {Number} port\n */\n set port(port) {\n this._port = port;\n }\n\n /**\n * @returns {Boolean}\n */\n get running() {\n return this._running;\n }\n\n /**\n * @returns {AbstractDriver}\n * @private\n */\n _registerTeardownHook() {\n if (this._teardownHook) {\n return this;\n }\n\n this._teardownHook = true;\n\n process.once('uncaughtException', (error) => {\n this.stop(() => '');\n\n throw error;\n });\n\n process.once('exit', () => {\n this.stop(() => '');\n });\n\n return this;\n }\n\n /**\n * @todo: better way to control the timeout of server startup...\n *\n * @param {Number} tts\n * @param {Function} cb\n * @private\n */\n _triggerOnTtsExpired(tts, cb) {\n setTimeout(() => {\n if (!this._running) {\n cb();\n }\n }, tts * 1000);\n }\n\n /**\n * @param {Function} cb\n * @param {Number} tts\n * @returns {AbstractDriver}\n */\n start(cb, tts = AbstractDriver.DEFAULT_TTS) {\n if (this._running) {\n cb(new ServerAlreadyRunningException(this));\n\n return this;\n }\n\n let _cbTriggered = false;\n\n this._start((error, ...args) => {\n _cbTriggered = true;\n\n if (!error) {\n this._running = true;\n this._registerTeardownHook();\n }\n\n cb(error, ...args);\n });\n\n this._triggerOnTtsExpired(tts, () => {\n if (!_cbTriggered) {\n _cbTriggered = true;\n\n cb(new ServerTtsExceededException(this, tts));\n }\n });\n\n return this;\n }\n\n /**\n * @param {Function} cb\n * @returns {AbstractDriver}\n */\n stop(cb) {\n if (!this._running) {\n cb(null);\n\n return this;\n }\n\n this._stop((error, ...args) => {\n if (!error) {\n this._running = false;\n }\n\n cb(error, ...args);\n });\n\n return this;\n }\n\n /**\n * @param {Function} cb\n * @returns {AbstractDriver}\n */\n restart(cb) {\n this.stop((error) => {\n if (error) {\n cb(error);\n\n return;\n }\n\n this.start(cb);\n });\n\n return this;\n }\n\n /**\n * @returns {Number}\n */\n static get DEFAULT_TTS() {\n return 10;\n }\n\n /**\n * @returns {Number}\n */\n static get DEFAULT_PORT() {\n return 8877;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "AbstractDriver", + "memberof": "lib/Local/Driver/AbstractDriver.js", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "access": null, + "export": true, + "importPath": "deep-db/lib/Local/Driver/AbstractDriver.js", + "importStyle": "{AbstractDriver}", + "description": null, + "lineNumber": 11, + "undocument": true, + "interface": false, + "extends": [ + "deep-core~Core.OOP.Interface" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#constructor", + "access": null, + "description": null, + "lineNumber": 15, + "params": [ + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "port", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_running", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#_running", + "access": null, + "description": null, + "lineNumber": 18, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_port", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#_port", + "access": null, + "description": null, + "lineNumber": 19, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_teardownHook", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#_teardownHook", + "access": null, + "description": null, + "lineNumber": 20, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "port", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#port", + "access": null, + "description": null, + "lineNumber": 26, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "port", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#port", + "access": null, + "description": null, + "lineNumber": 33, + "params": [ + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "port", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_port", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#_port", + "access": null, + "description": null, + "lineNumber": 34, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "running", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#running", + "access": null, + "description": null, + "lineNumber": 40, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_registerTeardownHook", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#_registerTeardownHook", + "access": "private", + "description": null, + "lineNumber": 48, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{AbstractDriver}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_teardownHook", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#_teardownHook", + "access": null, + "description": null, + "lineNumber": 53, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_triggerOnTtsExpired", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#_triggerOnTtsExpired", + "access": "private", + "description": null, + "lineNumber": 75, + "unknown": [ + { + "tagName": "@todo: better way to control the timeout of server startup...\n\n", + "tagValue": "" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "tts", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "cb", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "start", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#start", + "access": null, + "description": null, + "lineNumber": 88, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{AbstractDriver}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "cb", + "description": "" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "tts", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_running", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#_running", + "access": null, + "description": null, + "lineNumber": 101, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "stop", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#stop", + "access": null, + "description": null, + "lineNumber": 123, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{AbstractDriver}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "cb", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_running", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#_running", + "access": null, + "description": null, + "lineNumber": 132, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "restart", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver#restart", + "access": null, + "description": null, + "lineNumber": 145, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{AbstractDriver}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "cb", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "DEFAULT_TTS", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver.DEFAULT_TTS", + "access": null, + "description": null, + "lineNumber": 162, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "number" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "DEFAULT_PORT", + "memberof": "lib/Local/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Local/Driver/AbstractDriver.js~AbstractDriver.DEFAULT_PORT", + "access": null, + "description": null, + "lineNumber": 169, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "number" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Local/Driver/Dynalite.js", + "memberof": null, + "longname": "lib/Local/Driver/Dynalite.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 9/23/15.\n */\n\n'use strict';\n\nimport {PathAwareDriver} from './PathAwareDriver';\nimport DynaliteServer from 'dynalite';\nimport {FailedToStartServerException} from './Exception/FailedToStartServerException';\n\nexport class Dynalite extends PathAwareDriver {\n /**\n * @param {Object} options\n * @param {String} path\n * @param {Number} port\n */\n constructor(options = Dynalite.DEFAULT_OPTIONS, path = Dynalite.DBPath, port = Dynalite.DEFAULT_PORT) {\n super(path, port);\n\n this._options = options;\n this._server = null;\n }\n\n /**\n * @returns {Object}\n */\n get options() {\n return this._options;\n }\n\n /**\n * @param {Function} cb\n * @private\n */\n _start(cb) {\n this._options.path = this.path;\n\n this._server = DynaliteServer(this._options);\n\n this._server.listen(this.port, (error) => {\n if (error) {\n cb(new FailedToStartServerException(this, error));\n return;\n }\n\n cb(null);\n });\n }\n\n /**\n * @param {Function} cb\n * @private\n */\n _stop(cb) {\n if (this._server) {\n this._server.close(cb);\n this._server = null;\n\n return;\n }\n\n cb(null);\n }\n\n /**\n * @returns {Object}\n */\n static get DEFAULT_OPTIONS() {\n return {\n createTableMs: 0,\n deleteTableMs: 0,\n updateTableMs: 0,\n };\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Dynalite", + "memberof": "lib/Local/Driver/Dynalite.js", + "longname": "lib/Local/Driver/Dynalite.js~Dynalite", + "access": null, + "export": true, + "importPath": "deep-db/lib/Local/Driver/Dynalite.js", + "importStyle": "{Dynalite}", + "description": null, + "lineNumber": 11, + "undocument": true, + "interface": false, + "extends": [ + "lib/Local/Driver/PathAwareDriver~PathAwareDriver" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Local/Driver/Dynalite.js~Dynalite", + "longname": "lib/Local/Driver/Dynalite.js~Dynalite#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "options", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "path", + "description": "" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "port", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_options", + "memberof": "lib/Local/Driver/Dynalite.js~Dynalite", + "longname": "lib/Local/Driver/Dynalite.js~Dynalite#_options", + "access": null, + "description": null, + "lineNumber": 20, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_server", + "memberof": "lib/Local/Driver/Dynalite.js~Dynalite", + "longname": "lib/Local/Driver/Dynalite.js~Dynalite#_server", + "access": null, + "description": null, + "lineNumber": 21, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "options", + "memberof": "lib/Local/Driver/Dynalite.js~Dynalite", + "longname": "lib/Local/Driver/Dynalite.js~Dynalite#options", + "access": null, + "description": null, + "lineNumber": 27, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_start", + "memberof": "lib/Local/Driver/Dynalite.js~Dynalite", + "longname": "lib/Local/Driver/Dynalite.js~Dynalite#_start", + "access": "private", + "description": null, + "lineNumber": 35, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "cb", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_server", + "memberof": "lib/Local/Driver/Dynalite.js~Dynalite", + "longname": "lib/Local/Driver/Dynalite.js~Dynalite#_server", + "access": null, + "description": null, + "lineNumber": 38, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_stop", + "memberof": "lib/Local/Driver/Dynalite.js~Dynalite", + "longname": "lib/Local/Driver/Dynalite.js~Dynalite#_stop", + "access": "private", + "description": null, + "lineNumber": 54, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "cb", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_server", + "memberof": "lib/Local/Driver/Dynalite.js~Dynalite", + "longname": "lib/Local/Driver/Dynalite.js~Dynalite#_server", + "access": null, + "description": null, + "lineNumber": 57, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "DEFAULT_OPTIONS", + "memberof": "lib/Local/Driver/Dynalite.js~Dynalite", + "longname": "lib/Local/Driver/Dynalite.js~Dynalite.DEFAULT_OPTIONS", + "access": null, + "description": null, + "lineNumber": 68, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Local/Driver/Exception/Exception.js", + "memberof": null, + "longname": "lib/Local/Driver/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\n\n/**\n * Thrown when any exception occurs\n */\nexport class Exception extends Core.Exception.Exception {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Local/Driver/Exception/Exception.js", + "longname": "lib/Local/Driver/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-db/lib/Local/Driver/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Thrown when any exception occurs", + "lineNumber": 12, + "interface": false, + "extends": [ + "deep-core~Core.Exception.Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Local/Driver/Exception/Exception.js~Exception", + "longname": "lib/Local/Driver/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Local/Driver/Exception/FailedToStartServerException.js", + "memberof": null, + "longname": "lib/Local/Driver/Exception/FailedToStartServerException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 9/23/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\nexport class FailedToStartServerException extends Exception {\n /**\n * @param {Object} driver\n * @param {String} error\n */\n constructor(driver, error) {\n super(`Failed to start DB server ${driver.constructor.name} on port ${driver.port}: ${error}`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "FailedToStartServerException", + "memberof": "lib/Local/Driver/Exception/FailedToStartServerException.js", + "longname": "lib/Local/Driver/Exception/FailedToStartServerException.js~FailedToStartServerException", + "access": null, + "export": true, + "importPath": "deep-db/lib/Local/Driver/Exception/FailedToStartServerException.js", + "importStyle": "{FailedToStartServerException}", + "description": null, + "lineNumber": 9, + "undocument": true, + "interface": false, + "extends": [ + "lib/Local/Driver/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Local/Driver/Exception/FailedToStartServerException.js~FailedToStartServerException", + "longname": "lib/Local/Driver/Exception/FailedToStartServerException.js~FailedToStartServerException#constructor", + "access": null, + "description": null, + "lineNumber": 14, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "driver", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "error", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Local/Driver/Exception/ServerAlreadyRunningException.js", + "memberof": null, + "longname": "lib/Local/Driver/Exception/ServerAlreadyRunningException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 9/23/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\nexport class ServerAlreadyRunningException extends Exception {\n /**\n * @param {Object} driver\n */\n constructor(driver) {\n super(`The DB server ${driver.constructor.name} on port ${driver.port} is already running`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "ServerAlreadyRunningException", + "memberof": "lib/Local/Driver/Exception/ServerAlreadyRunningException.js", + "longname": "lib/Local/Driver/Exception/ServerAlreadyRunningException.js~ServerAlreadyRunningException", + "access": null, + "export": true, + "importPath": "deep-db/lib/Local/Driver/Exception/ServerAlreadyRunningException.js", + "importStyle": "{ServerAlreadyRunningException}", + "description": null, + "lineNumber": 9, + "undocument": true, + "interface": false, + "extends": [ + "lib/Local/Driver/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Local/Driver/Exception/ServerAlreadyRunningException.js~ServerAlreadyRunningException", + "longname": "lib/Local/Driver/Exception/ServerAlreadyRunningException.js~ServerAlreadyRunningException#constructor", + "access": null, + "description": null, + "lineNumber": 13, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "driver", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Local/Driver/Exception/ServerTtsExceededException.js", + "memberof": null, + "longname": "lib/Local/Driver/Exception/ServerTtsExceededException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 9/23/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\nexport class ServerTtsExceededException extends Exception {\n /**\n * @param {Object} driver\n * @param {Number} tts\n */\n constructor(driver, tts) {\n super(`The DB server's ${driver.constructor.name} tts of ${tts} seconds exceeded`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "ServerTtsExceededException", + "memberof": "lib/Local/Driver/Exception/ServerTtsExceededException.js", + "longname": "lib/Local/Driver/Exception/ServerTtsExceededException.js~ServerTtsExceededException", + "access": null, + "export": true, + "importPath": "deep-db/lib/Local/Driver/Exception/ServerTtsExceededException.js", + "importStyle": "{ServerTtsExceededException}", + "description": null, + "lineNumber": 9, + "undocument": true, + "interface": false, + "extends": [ + "lib/Local/Driver/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Local/Driver/Exception/ServerTtsExceededException.js~ServerTtsExceededException", + "longname": "lib/Local/Driver/Exception/ServerTtsExceededException.js~ServerTtsExceededException#constructor", + "access": null, + "description": null, + "lineNumber": 14, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "driver", + "description": "" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "tts", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Local/Driver/LocalDynamo.js", + "memberof": null, + "longname": "lib/Local/Driver/LocalDynamo.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 9/23/15.\n */\n\n'use strict';\n\nimport {PathAwareDriver} from './PathAwareDriver';\nimport LocalDynamoServer from 'local-dynamo';\nimport {FailedToStartServerException} from './Exception/FailedToStartServerException';\n\nexport class LocalDynamo extends PathAwareDriver {\n /**\n * @param {Object} options\n * @param {String} path\n * @param {Number} port\n */\n constructor(options = LocalDynamo.DEFAULT_OPTIONS, path = LocalDynamo.DBPath, port = LocalDynamo.DEFAULT_PORT) {\n super(path, port);\n\n this._options = options;\n this._process = null;\n }\n\n /**\n * @returns {Object}\n */\n get options() {\n return this._options;\n }\n\n /**\n * @param {Function} cb\n * @private\n */\n _start(cb) {\n let cbTriggered = false;\n\n this._options.dir = this.path;\n\n this._process = LocalDynamoServer.launch(this._options, this.port);\n\n // This hook fixes DynamoDB startup delay by waiting an empty stdout dataset\n // @todo: remove this hook after fixing issue!\n this._process.stdout.on('data', (data) => {\n if (!data.toString().replace(/\\s+/, '') && !cbTriggered) {\n cbTriggered = true;\n cb(null);\n }\n });\n\n let onError = (error) => {\n this._stop(() => '');\n\n if (!cbTriggered) {\n cbTriggered = true;\n cb(new FailedToStartServerException(this, error));\n }\n };\n\n this._process.on('uncaughtException', onError);\n this._process.on('error', onError);\n this._process.on('exit', () => {\n this.stop(() => '');\n });\n }\n\n /**\n * @param {Function} cb\n * @private\n */\n _stop(cb) {\n if (this._process) {\n this._process.kill();\n this._process = null;\n }\n\n cb(null);\n }\n\n /**\n * @returns {Object}\n */\n static get DEFAULT_OPTIONS() {\n return {\n stdio: 'pipe',\n };\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "LocalDynamo", + "memberof": "lib/Local/Driver/LocalDynamo.js", + "longname": "lib/Local/Driver/LocalDynamo.js~LocalDynamo", + "access": null, + "export": true, + "importPath": "deep-db/lib/Local/Driver/LocalDynamo.js", + "importStyle": "{LocalDynamo}", + "description": null, + "lineNumber": 11, + "undocument": true, + "interface": false, + "extends": [ + "lib/Local/Driver/PathAwareDriver~PathAwareDriver" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Local/Driver/LocalDynamo.js~LocalDynamo", + "longname": "lib/Local/Driver/LocalDynamo.js~LocalDynamo#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "options", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "path", + "description": "" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "port", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_options", + "memberof": "lib/Local/Driver/LocalDynamo.js~LocalDynamo", + "longname": "lib/Local/Driver/LocalDynamo.js~LocalDynamo#_options", + "access": null, + "description": null, + "lineNumber": 20, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_process", + "memberof": "lib/Local/Driver/LocalDynamo.js~LocalDynamo", + "longname": "lib/Local/Driver/LocalDynamo.js~LocalDynamo#_process", + "access": null, + "description": null, + "lineNumber": 21, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "options", + "memberof": "lib/Local/Driver/LocalDynamo.js~LocalDynamo", + "longname": "lib/Local/Driver/LocalDynamo.js~LocalDynamo#options", + "access": null, + "description": null, + "lineNumber": 27, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_start", + "memberof": "lib/Local/Driver/LocalDynamo.js~LocalDynamo", + "longname": "lib/Local/Driver/LocalDynamo.js~LocalDynamo#_start", + "access": "private", + "description": null, + "lineNumber": 35, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "cb", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_process", + "memberof": "lib/Local/Driver/LocalDynamo.js~LocalDynamo", + "longname": "lib/Local/Driver/LocalDynamo.js~LocalDynamo#_process", + "access": null, + "description": null, + "lineNumber": 40, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_stop", + "memberof": "lib/Local/Driver/LocalDynamo.js~LocalDynamo", + "longname": "lib/Local/Driver/LocalDynamo.js~LocalDynamo#_stop", + "access": "private", + "description": null, + "lineNumber": 71, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "cb", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_process", + "memberof": "lib/Local/Driver/LocalDynamo.js~LocalDynamo", + "longname": "lib/Local/Driver/LocalDynamo.js~LocalDynamo#_process", + "access": null, + "description": null, + "lineNumber": 74, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "DEFAULT_OPTIONS", + "memberof": "lib/Local/Driver/LocalDynamo.js~LocalDynamo", + "longname": "lib/Local/Driver/LocalDynamo.js~LocalDynamo.DEFAULT_OPTIONS", + "access": null, + "description": null, + "lineNumber": 83, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Local/Driver/PathAwareDriver.js", + "memberof": null, + "longname": "lib/Local/Driver/PathAwareDriver.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 9/23/15.\n */\n\n'use strict';\n\nimport OS from 'os';\nimport FileSystem from 'fs';\nimport Path from 'path';\nimport {AbstractDriver} from './AbstractDriver';\n\nexport class PathAwareDriver extends AbstractDriver {\n /**\n * @param {String} path\n * @param {Number} port\n */\n constructor(path = PathAwareDriver.DBPath, port = PathAwareDriver.DEFAULT_PORT) {\n super(port);\n\n this._path = path;\n }\n\n /**\n * @returns {String}\n */\n get path() {\n return this._path;\n }\n\n /**\n * @param {String} path\n */\n set path(path) {\n this._path = path;\n }\n\n /**\n * @returns {String}\n */\n static get DBPath() {\n let dir = Path.join(OS.tmpdir(), this.name);\n\n // @todo: do it async!\n if (!FileSystem.existsSync(dir)) {\n FileSystem.mkdirSync(dir);\n }\n\n return dir;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "PathAwareDriver", + "memberof": "lib/Local/Driver/PathAwareDriver.js", + "longname": "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver", + "access": null, + "export": true, + "importPath": "deep-db/lib/Local/Driver/PathAwareDriver.js", + "importStyle": "{PathAwareDriver}", + "description": null, + "lineNumber": 12, + "undocument": true, + "interface": false, + "extends": [ + "lib/Local/Driver/AbstractDriver~AbstractDriver" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver", + "longname": "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "path", + "description": "" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "port", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_path", + "memberof": "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver", + "longname": "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver#_path", + "access": null, + "description": null, + "lineNumber": 20, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "path", + "memberof": "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver", + "longname": "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver#path", + "access": null, + "description": null, + "lineNumber": 26, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "path", + "memberof": "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver", + "longname": "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver#path", + "access": null, + "description": null, + "lineNumber": 33, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "path", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_path", + "memberof": "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver", + "longname": "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver#_path", + "access": null, + "description": null, + "lineNumber": 34, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "DBPath", + "memberof": "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver", + "longname": "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver.DBPath", + "access": null, + "description": null, + "lineNumber": 40, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Vogels/Exceptions/Exception.js", + "memberof": null, + "longname": "lib/Vogels/Exceptions/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by Stefan Hariton on 6/25/15.\n */\n\n'use strict';\n\nimport {Exception as BaseException} from '../../Exception/Exception';\n\n/**\n * Base exception\n */\nexport class Exception extends BaseException {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Vogels/Exceptions/Exception.js", + "longname": "lib/Vogels/Exceptions/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-db/lib/Vogels/Exceptions/Exception.js", + "importStyle": "{Exception}", + "description": "Base exception", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~BaseException" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Vogels/Exceptions/Exception.js~Exception", + "longname": "lib/Vogels/Exceptions/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Vogels/Exceptions/InvalidArgumentException.js", + "memberof": null, + "longname": "lib/Vogels/Exceptions/InvalidArgumentException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by Stefan Hariton on 6/26/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when invalid argument provided\n */\nexport class InvalidArgumentException extends Exception {\n /**\n * @param {*} argument\n * @param {String} meantType\n */\n constructor(argument, meantType) {\n let argumentType = typeof argument;\n\n super(`Invalid argument ${argument} of type ${argumentType} provided (meant ${meantType}).`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "InvalidArgumentException", + "memberof": "lib/Vogels/Exceptions/InvalidArgumentException.js", + "longname": "lib/Vogels/Exceptions/InvalidArgumentException.js~InvalidArgumentException", + "access": null, + "export": true, + "importPath": "deep-db/lib/Vogels/Exceptions/InvalidArgumentException.js", + "importStyle": "{InvalidArgumentException}", + "description": "Thrown when invalid argument provided", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Vogels/Exceptions/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Vogels/Exceptions/InvalidArgumentException.js~InvalidArgumentException", + "longname": "lib/Vogels/Exceptions/InvalidArgumentException.js~InvalidArgumentException#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "argument", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "meantType", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Vogels/Exceptions/UndefinedMethodException.js", + "memberof": null, + "longname": "lib/Vogels/Exceptions/UndefinedMethodException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by Stefan Hariton on 6/26/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when undefined method is requested\n */\nexport class UndefinedMethodException extends Exception {\n /**\n * @param name\n * @param availableMethods\n */\n constructor(name, availableMethods) {\n super(`Method: ${name} does not exist. Available methods:${availableMethods}).`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "UndefinedMethodException", + "memberof": "lib/Vogels/Exceptions/UndefinedMethodException.js", + "longname": "lib/Vogels/Exceptions/UndefinedMethodException.js~UndefinedMethodException", + "access": null, + "export": true, + "importPath": "deep-db/lib/Vogels/Exceptions/UndefinedMethodException.js", + "importStyle": "{UndefinedMethodException}", + "description": "Thrown when undefined method is requested", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Vogels/Exceptions/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Vogels/Exceptions/UndefinedMethodException.js~UndefinedMethodException", + "longname": "lib/Vogels/Exceptions/UndefinedMethodException.js~UndefinedMethodException#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "availableMethods", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Vogels/ExtendModel.js", + "memberof": null, + "longname": "lib/Vogels/ExtendModel.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by Stefan Hariton on 6/26/15.\n */\n\n'use strict';\n\nimport UndefinedMethodException from './Exceptions/UndefinedMethodException';\n\n/**\n * Extends standard Vogels models\n */\nexport class ExtendModel {\n /**\n * @param {Object} model\n */\n constructor(model) {\n this._model = model;\n }\n\n /**\n * @returns {Object}\n */\n get model() {\n return this._model;\n }\n\n /**\n * @returns {Number}\n */\n static get DEFAULT_LIMIT() {\n return 10;\n }\n\n /**\n * @returns {number}\n */\n static get DEFAULT_SEGMENTS_NUMBER() {\n return 4;\n }\n\n /**\n * Makes filterExpression, filtersExpressionValues and filterExpressionNames from an object, that are used to make\n * a DynamoDb scan\n *\n * @param {Object} params\n * @returns {Object}\n */\n static buildScanParameters(params) {\n let filterExpression = '';\n let filterExpressionValues = {};\n let filterExpressionNames = {};\n let first = true;\n\n for (let key in params) {\n if (!params.hasOwnProperty(key)) {\n continue;\n }\n\n let fieldValue = params[key];\n\n let fieldName = `#${key}`;\n let fieldValueName = `:${key}`;\n\n if (!first) {\n filterExpression += ' AND ';\n }\n\n filterExpression += `${fieldName} = ${fieldValueName}`;\n filterExpressionValues[fieldValueName] = fieldValue;\n filterExpressionNames[fieldName] = key;\n first = false;\n }\n\n return {\n filterExpression: filterExpression,\n filterExpressionValues: filterExpressionValues,\n filterExpressionNames: filterExpressionNames,\n };\n }\n\n /**\n * @returns {Object}\n */\n get methods() {\n let _this = this;\n\n return {\n findAll: function(cb) {\n return _this.model.scan().loadAll().exec(cb);\n },\n\n findAllPaginated: function(startKey, limit, cb) {\n return _this.model\n .scan()\n .startKey(startKey)\n .limit(limit)\n .exec(cb);\n },\n\n findOneById: function(id, cb) {\n return _this.model.get(id, cb);\n },\n\n findOneBy: function(fieldName, value, cb) {\n return _this.model\n .scan()\n .where(fieldName).equals(value)\n .limit(1)\n .exec(cb);\n },\n\n findBy: function(fieldName, value, cb, limit = ExtendModel.DEFAULT_LIMIT) {\n return _this.model\n .scan()\n .where(fieldName).equals(value)\n .limit(limit)\n .exec(cb);\n },\n\n findAllBy: function(fieldName, value, cb) {\n return _this.model\n .scan()\n .where(fieldName).equals(value)\n .loadAll()\n .exec(cb);\n },\n\n findAllByPaginated: function(fieldName, value, startKey, limit, cb) {\n return _this.model\n .scan()\n .where(fieldName).equals(value)\n .startKey(startKey)\n .limit(limit)\n .exec(cb);\n },\n\n findMatching: function(params, cb, limit = ExtendModel.DEFAULT_LIMIT) {\n let scanParams = ExtendModel.buildScanParameters(params);\n\n return _this.model\n .scan()\n .filterExpression(scanParams.filterExpression)\n .expressionAttributeValues(scanParams.filterExpressionValues)\n .expressionAttributeNames(scanParams.filterExpressionNames)\n .limit(limit)\n .exec(cb);\n },\n\n findOneMatching: function(params, cb) {\n let scanParams = ExtendModel.buildScanParameters(params);\n\n return _this.model\n .scan()\n .filterExpression(scanParams.filterExpression)\n .expressionAttributeValues(scanParams.filterExpressionValues)\n .expressionAttributeNames(scanParams.filterExpressionNames)\n .limit(1)\n .exec(cb);\n },\n\n findAllMatching: function(params, cb) {\n let scanParams = ExtendModel.buildScanParameters(params);\n\n return _this.model\n .scan()\n .filterExpression(scanParams.filterExpression)\n .expressionAttributeValues(scanParams.filterExpressionValues)\n .expressionAttributeNames(scanParams.filterExpressionNames)\n .loadAll()\n .exec(cb);\n },\n\n findAllMatchingPaginated: function(params, startKey, limit, cb) {\n let scanParams = ExtendModel.buildScanParameters(params);\n\n return _this.model\n .scan()\n .filterExpression(scanParams.filterExpression)\n .expressionAttributeValues(scanParams.filterExpressionValues)\n .expressionAttributeNames(scanParams.filterExpressionNames)\n .startKey(startKey)\n .limit(limit)\n .exec(cb);\n },\n\n deleteById: function(id, cb) {\n return _this.model.destroy(id, cb);\n },\n\n deleteByIdConditional: function(id, condition, cb) {\n return _this.model.destroy(id, condition, cb);\n },\n\n createItem: function(data, cb) {\n return _this.model.create(data, cb);\n },\n\n createUniqueOnFields: function(fields, data, cb) {\n let scanCb = function(err, data) {\n if (err) {\n return cb(err, data);\n }\n\n if (data.Count) {\n return cb(`Item like ${data} already exists`);\n }\n\n return _this.model.create(data, cb);\n };\n\n let scanParams = {};\n for (let fieldKey in fields) {\n if (!fields.hasOwnProperty(fieldKey)) {\n continue;\n }\n\n let field = fields[fieldKey];\n\n scanParams[field] = data[field];\n }\n\n scanParams = ExtendModel.buildScanParameters(scanParams);\n\n return _this.model\n .scan()\n .filterExpression(scanParams.filterExpression)\n .expressionAttributeValues(scanParams.filterExpressionValues)\n .expressionAttributeNames(scanParams.filterExpressionNames)\n .limit(1)\n .exec(scanCb);\n },\n\n updateItem: function(id, data, cb) {\n data.Id = id;\n\n return _this.model.update(data, cb);\n },\n\n updateItemConditional: function(id, data, condition, cb) {\n data.Id = id;\n\n return _this.model.update(data, condition, cb);\n },\n };\n }\n\n /**\n * Injects the specified methods or all\n *\n * @param {Array} methods\n */\n inject(methods = null) {\n let predefinedMethods = this.methods;\n let predefinedMethodsNames = Object.keys(predefinedMethods);\n\n methods = methods || predefinedMethodsNames;\n\n for (let methodKey in methods) {\n if (!methods.hasOwnProperty(methodKey)) {\n continue;\n }\n\n let methodName = methods[methodKey];\n\n if (!predefinedMethods.hasOwnProperty(methodName)) {\n throw new UndefinedMethodException(methodName, predefinedMethodsNames);\n }\n\n this._model[methodName] = predefinedMethods[methodName];\n }\n\n return this._model;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "ExtendModel", + "memberof": "lib/Vogels/ExtendModel.js", + "longname": "lib/Vogels/ExtendModel.js~ExtendModel", + "access": null, + "export": true, + "importPath": "deep-db/lib/Vogels/ExtendModel.js", + "importStyle": "{ExtendModel}", + "description": "Extends standard Vogels models", + "lineNumber": 12, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Vogels/ExtendModel.js~ExtendModel", + "longname": "lib/Vogels/ExtendModel.js~ExtendModel#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "model", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_model", + "memberof": "lib/Vogels/ExtendModel.js~ExtendModel", + "longname": "lib/Vogels/ExtendModel.js~ExtendModel#_model", + "access": null, + "description": null, + "lineNumber": 17, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "model", + "memberof": "lib/Vogels/ExtendModel.js~ExtendModel", + "longname": "lib/Vogels/ExtendModel.js~ExtendModel#model", + "access": null, + "description": null, + "lineNumber": 23, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "DEFAULT_LIMIT", + "memberof": "lib/Vogels/ExtendModel.js~ExtendModel", + "longname": "lib/Vogels/ExtendModel.js~ExtendModel.DEFAULT_LIMIT", + "access": null, + "description": null, + "lineNumber": 30, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "number" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "DEFAULT_SEGMENTS_NUMBER", + "memberof": "lib/Vogels/ExtendModel.js~ExtendModel", + "longname": "lib/Vogels/ExtendModel.js~ExtendModel.DEFAULT_SEGMENTS_NUMBER", + "access": null, + "description": null, + "lineNumber": 37, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{number}" + } + ], + "return": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "number" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "buildScanParameters", + "memberof": "lib/Vogels/ExtendModel.js~ExtendModel", + "longname": "lib/Vogels/ExtendModel.js~ExtendModel.buildScanParameters", + "access": null, + "description": "Makes filterExpression, filtersExpressionValues and filterExpressionNames from an object, that are used to make\na DynamoDb scan", + "lineNumber": 48, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "params", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "methods", + "memberof": "lib/Vogels/ExtendModel.js~ExtendModel", + "longname": "lib/Vogels/ExtendModel.js~ExtendModel#methods", + "access": null, + "description": null, + "lineNumber": 84, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "inject", + "memberof": "lib/Vogels/ExtendModel.js~ExtendModel", + "longname": "lib/Vogels/ExtendModel.js~ExtendModel#inject", + "access": null, + "description": "Injects the specified methods or all", + "lineNumber": 252, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "methods", + "description": "" + } + ], + "return": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/bootstrap.js", + "memberof": null, + "longname": "lib/bootstrap.js", + "access": null, + "description": null, + "lineNumber": 7, + "content": "/**\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n */\n\n'use strict';\n\nimport {DB} from './DB';\n\nlet exports = module.exports = DB;\n" + }, + { + "kind": "variable", + "static": true, + "variation": null, + "name": "exports", + "memberof": "lib/bootstrap.js", + "longname": "lib/bootstrap.js~exports", + "access": null, + "export": false, + "importPath": "deep-db/lib/bootstrap.js", + "importStyle": null, + "description": null, + "lineNumber": 11, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~null", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Error", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Date", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~String", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~string", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Map", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Set", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "CanvasRenderingContext2D", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DocumentFragment", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Element", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Element", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Event", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Event", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Node", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Node", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NodeList", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~NodeList", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "XMLHttpRequest", + "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "access": null, + "description": null, + "builtinExternal": true + } +] \ No newline at end of file diff --git a/docs-api/deep-db/file/lib/DB.js.html b/docs-api/deep-db/file/lib/DB.js.html new file mode 100644 index 00000000..b850620b --- /dev/null +++ b/docs-api/deep-db/file/lib/DB.js.html @@ -0,0 +1,320 @@ + + + + + + lib/DB.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/DB.js

    +
    /**
    + * Created by AlexanderC on 6/15/15.
    + */
    +
    +'use strict';
    +
    +import Kernel from 'deep-kernel';
    +import Vogels from 'vogels';
    +import {ExtendModel} from './Vogels/ExtendModel';
    +import {ModelNotFoundException} from './Exception/ModelNotFoundException';
    +import Validation from 'deep-validation';
    +import Utils from 'util';
    +import {FailedToCreateTableException} from './Exception/FailedToCreateTableException';
    +import {FailedToCreateTablesException} from './Exception/FailedToCreateTablesException';
    +import {AbstractDriver} from './Local/Driver/AbstractDriver';
    +
    +/**
    + * Vogels wrapper
    + */
    +export class DB extends Kernel.ContainerAware {
    +  /**
    +   * @param {Array} models
    +   * @param {Object} tablesNames
    +   */
    +  constructor(models = [], tablesNames = {}) {
    +    super();
    +
    +    // @todo: set retries in a smarter way...
    +    Vogels.AWS.config.maxRetries = 3;
    +
    +    this._tablesNames = tablesNames;
    +    this._validation = new Validation(models);
    +    this._models = this._rawModelsToVogels(models);
    +
    +    // @todo: remove?
    +    this._localDbProcess = null;
    +  }
    +
    +  /**
    +   * @returns {Validation}
    +   */
    +  get validation() {
    +    return this._validation;
    +  }
    +
    +  /**
    +   * @returns {Vogels[]}
    +   */
    +  get models() {
    +    return this._models;
    +  }
    +
    +  /**
    +   * @param {String} modelName
    +   * @returns {Boolean}
    +   */
    +  has(modelName) {
    +    return typeof this._models[modelName] !== 'undefined';
    +  }
    +
    +  /**
    +   * @param {String} modelName
    +   * @returns {Vogels}
    +   */
    +  get(modelName) {
    +    if (!this.has(modelName)) {
    +      throw new ModelNotFoundException(modelName);
    +    }
    +
    +    return this._models[modelName];
    +  }
    +
    +  /**
    +   * @param {String} modelName
    +   * @param {Function} callback
    +   * @param {Object} options
    +   * @returns {DB}
    +   */
    +  assureTable(modelName, callback, options = {}) {
    +    if (!this.has(modelName)) {
    +      throw new ModelNotFoundException(modelName);
    +    }
    +
    +    options = Utils._extend(DB.DEFAULT_TABLE_OPTIONS, options);
    +    options[modelName] = options;
    +
    +    Vogels.createTables(options, function(error) {
    +      if (error) {
    +        throw new FailedToCreateTableException(modelName);
    +      }
    +
    +      callback();
    +    }.bind(this));
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   * @param {Object} options
    +   * @returns {DB}
    +   */
    +  assureTables(callback, options = {}) {
    +    let allModelsOptions = {};
    +    let allModelNames = [];
    +
    +    for (let modelName in this._models) {
    +      if (!this._models.hasOwnProperty(modelName)) {
    +        continue;
    +      }
    +
    +      allModelsOptions[modelName] = Utils._extend(DB.DEFAULT_TABLE_OPTIONS, options);
    +      allModelNames.push(modelName);
    +    }
    +
    +    Vogels.createTables(allModelsOptions, function(error) {
    +      if (error) {
    +        throw new FailedToCreateTablesException(allModelNames, error);
    +      }
    +
    +      callback();
    +    }.bind(this));
    +
    +    return this;
    +  }
    +
    +  /**
    +   * Booting a certain service
    +   *
    +   * @param {Kernel} kernel
    +   * @param {Function} callback
    +   */
    +  boot(kernel, callback) {
    +    this._validation.boot(kernel, function() {
    +      this._validation.immutable = true;
    +
    +      this._tablesNames = kernel.config.tablesNames;
    +      this._models = this._rawModelsToVogels(kernel.config.models);
    +
    +      if (this._localBackend) {
    +        this._enableLocalDB(callback);
    +      } else {
    +        callback();
    +      }
    +    }.bind(this));
    +  }
    +
    +  /**
    +   * @param {Object} driver
    +   * @returns {DB}
    +   * @private
    +   */
    +  _setVogelsDriver(driver) {
    +    Vogels.dynamoDriver(driver);
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   * @param {String} driver
    +   * @param {Number} tts
    +   */
    +  static startLocalDynamoDBServer(callback, driver = 'LocalDynamo', tts = AbstractDriver.DEFAULT_TTS) {
    +    let LocalDBServer = require('./Local/DBServer').DBServer;
    +
    +    let server = LocalDBServer.create(driver);
    +
    +    server.start(callback, tts);
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   * @private
    +   */
    +  _enableLocalDB(callback) {
    +    this._setVogelsDriver(
    +      new Vogels.AWS.DynamoDB({
    +        endpoint: new Vogels.AWS.Endpoint(`http://localhost:${DB.LOCAL_DB_PORT}`),
    +        accessKeyId: 'fake',
    +        secretAccessKey: 'fake',
    +        region: 'us-east-1',
    +      })
    +    );
    +
    +    this.assureTables(callback);
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  static get DEFAULT_TABLE_OPTIONS() {
    +    return {
    +      readCapacity: 5,
    +      writeCapacity: 5,
    +    };
    +  }
    +
    +  /**
    +   * @param {Array} rawModels
    +   * @returns {Object}
    +   */
    +  _rawModelsToVogels(rawModels) {
    +    let models = {};
    +
    +    for (let modelKey in rawModels) {
    +      if (!rawModels.hasOwnProperty(modelKey)) {
    +        continue;
    +      }
    +
    +      let backendModels = rawModels[modelKey];
    +
    +      for (let modelName in backendModels) {
    +        if (!backendModels.hasOwnProperty(modelName)) {
    +          continue;
    +        }
    +
    +        models[modelName] = new ExtendModel(Vogels.define(
    +          modelName,
    +          this._wrapModelSchema(modelName)
    +        )).inject();
    +      }
    +    }
    +
    +    return models;
    +  }
    +
    +  /**
    +   * @param {String} name
    +   * @returns {Object}
    +   * @private
    +   */
    +  _wrapModelSchema(name) {
    +    return {
    +      hashKey: 'Id',
    +      timestamps: true,
    +      tableName: this._tablesNames[name],
    +      schema: this._validation.get(name),
    +    };
    +  }
    +
    +  /**
    +   * @returns {Number}
    +   */
    +  static get LOCAL_DB_PORT() {
    +    return AbstractDriver.DEFAULT_PORT;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Exception/Exception.js.html b/docs-api/deep-db/file/lib/Exception/Exception.js.html new file mode 100644 index 00000000..8afd85c4 --- /dev/null +++ b/docs-api/deep-db/file/lib/Exception/Exception.js.html @@ -0,0 +1,91 @@ + + + + + + lib/Exception/Exception.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/Exception.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +
    +/**
    + * Thrown when any exception occurs
    + */
    +export class Exception extends Core.Exception.Exception {
    +  /**
    +   * @param {Array} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Exception/FailedToCreateTableException.js.html b/docs-api/deep-db/file/lib/Exception/FailedToCreateTableException.js.html new file mode 100644 index 00000000..75dfd932 --- /dev/null +++ b/docs-api/deep-db/file/lib/Exception/FailedToCreateTableException.js.html @@ -0,0 +1,88 @@ + + + + + + lib/Exception/FailedToCreateTableException.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/FailedToCreateTableException.js

    +
    /**
    + * Created by AlexanderC on 6/25/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +export class FailedToCreateTableException extends Exception {
    +  /**
    +   * @param {String} tableName
    +   */
    +  constructor(tableName) {
    +    super(`Failed to create table for model ${tableName}`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Exception/FailedToCreateTablesException.js.html b/docs-api/deep-db/file/lib/Exception/FailedToCreateTablesException.js.html new file mode 100644 index 00000000..08df8870 --- /dev/null +++ b/docs-api/deep-db/file/lib/Exception/FailedToCreateTablesException.js.html @@ -0,0 +1,89 @@ + + + + + + lib/Exception/FailedToCreateTablesException.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/FailedToCreateTablesException.js

    +
    /**
    + * Created by mgoria on 6/25/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +export class FailedToCreateTablesException extends Exception {
    +  /**
    +   * @param {Array} tablesNames
    +   * @param {String} error
    +   */
    +  constructor(tablesNames, error) {
    +    super(`Failed to create ${tablesNames} tables. ${error}`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Exception/ModelNotFoundException.js.html b/docs-api/deep-db/file/lib/Exception/ModelNotFoundException.js.html new file mode 100644 index 00000000..bc92d74a --- /dev/null +++ b/docs-api/deep-db/file/lib/Exception/ModelNotFoundException.js.html @@ -0,0 +1,91 @@ + + + + + + lib/Exception/ModelNotFoundException.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/ModelNotFoundException.js

    +
    /**
    + * Created by AlexanderC on 6/15/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when missing requested model
    + */
    +export class ModelNotFoundException extends Exception {
    +  /**
    +   * @param {String} modelName
    +   */
    +  constructor(modelName) {
    +    super(`Model ${modelName} was not found`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Local/DBServer.js.html b/docs-api/deep-db/file/lib/Local/DBServer.js.html new file mode 100644 index 00000000..18d70c9e --- /dev/null +++ b/docs-api/deep-db/file/lib/Local/DBServer.js.html @@ -0,0 +1,137 @@ + + + + + + lib/Local/DBServer.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Local/DBServer.js

    +
    /**
    + * Created by AlexanderC on 9/23/15.
    + */
    +
    +'use strict';
    +
    +import {LocalDynamo} from './Driver/LocalDynamo';
    +import {Dynalite} from './Driver/Dynalite';
    +
    +export class DBServer {
    +  /**
    +   * @param {Function|String} driver
    +   * @param {*} args
    +   * @returns {Function}
    +   */
    +  static create(driver = DBServer.DEFAULT_DRIVER, ...args) {
    +    let DriverProto = typeof driver === 'string'
    +      ? DBServer._findDriverPrototype(driver)
    +      : driver;
    +
    +    if (!DriverProto) {
    +      throw new Error(`Missing DB server driver ${driver}`);
    +    }
    +
    +    return new DriverProto(...args);
    +  }
    +
    +  /**
    +   * @param {String} name
    +   * @returns {Function}
    +   * @private
    +   */
    +  static _findDriverPrototype(name) {
    +    for (let driverProtoKey in DBServer.DRIVERS) {
    +      if (!DBServer.DRIVERS.hasOwnProperty(driverProtoKey)) {
    +        continue;
    +      }
    +
    +      let driverProto = DBServer.DRIVERS[driverProtoKey];
    +
    +      if (driverProto.name === name) {
    +        return driverProto;
    +      }
    +    }
    +
    +    return null;
    +  }
    +
    +  /**
    +   * @returns {Function[]}
    +   */
    +  static get DRIVERS() {
    +    return [
    +      LocalDynamo,
    +      Dynalite,
    +    ];
    +  }
    +
    +  /**
    +   * @returns {Function}
    +   */
    +  static get DEFAULT_DRIVER() {
    +    return DBServer.DRIVERS[0];
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Local/Driver/AbstractDriver.js.html b/docs-api/deep-db/file/lib/Local/Driver/AbstractDriver.js.html new file mode 100644 index 00000000..4f2bba9c --- /dev/null +++ b/docs-api/deep-db/file/lib/Local/Driver/AbstractDriver.js.html @@ -0,0 +1,244 @@ + + + + + + lib/Local/Driver/AbstractDriver.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Local/Driver/AbstractDriver.js

    +
    /**
    + * Created by AlexanderC on 9/23/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +import {ServerAlreadyRunningException} from './Exception/ServerAlreadyRunningException';
    +import {ServerTtsExceededException} from './Exception/ServerTtsExceededException';
    +
    +export class AbstractDriver extends Core.OOP.Interface {
    +  /**
    +   * @param {Number} port
    +   */
    +  constructor(port = AbstractDriver.DEFAULT_PORT) {
    +    super('_start', '_stop');
    +
    +    this._running = false;
    +    this._port = port;
    +    this._teardownHook = false;
    +  }
    +
    +  /**
    +   * @returns {Number}
    +   */
    +  get port() {
    +    return this._port;
    +  }
    +
    +  /**
    +   * @param {Number} port
    +   */
    +  set port(port) {
    +    this._port = port;
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get running() {
    +    return this._running;
    +  }
    +
    +  /**
    +   * @returns {AbstractDriver}
    +   * @private
    +   */
    +  _registerTeardownHook() {
    +    if (this._teardownHook) {
    +      return this;
    +    }
    +
    +    this._teardownHook = true;
    +
    +    process.once('uncaughtException', (error) => {
    +      this.stop(() => '');
    +
    +      throw error;
    +    });
    +
    +    process.once('exit', () => {
    +      this.stop(() => '');
    +    });
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @todo: better way to control the timeout of server startup...
    +   *
    +   * @param {Number} tts
    +   * @param {Function} cb
    +   * @private
    +   */
    +  _triggerOnTtsExpired(tts, cb) {
    +    setTimeout(() => {
    +      if (!this._running) {
    +        cb();
    +      }
    +    }, tts * 1000);
    +  }
    +
    +  /**
    +   * @param {Function} cb
    +   * @param {Number} tts
    +   * @returns {AbstractDriver}
    +   */
    +  start(cb, tts = AbstractDriver.DEFAULT_TTS) {
    +    if (this._running) {
    +      cb(new ServerAlreadyRunningException(this));
    +
    +      return this;
    +    }
    +
    +    let _cbTriggered = false;
    +
    +    this._start((error, ...args) => {
    +      _cbTriggered = true;
    +
    +      if (!error) {
    +        this._running = true;
    +        this._registerTeardownHook();
    +      }
    +
    +      cb(error, ...args);
    +    });
    +
    +    this._triggerOnTtsExpired(tts, () => {
    +      if (!_cbTriggered) {
    +        _cbTriggered = true;
    +
    +        cb(new ServerTtsExceededException(this, tts));
    +      }
    +    });
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {Function} cb
    +   * @returns {AbstractDriver}
    +   */
    +  stop(cb) {
    +    if (!this._running) {
    +      cb(null);
    +
    +      return this;
    +    }
    +
    +    this._stop((error, ...args) => {
    +      if (!error) {
    +        this._running = false;
    +      }
    +
    +      cb(error, ...args);
    +    });
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {Function} cb
    +   * @returns {AbstractDriver}
    +   */
    +  restart(cb) {
    +    this.stop((error) => {
    +      if (error) {
    +        cb(error);
    +
    +        return;
    +      }
    +
    +      this.start(cb);
    +    });
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @returns {Number}
    +   */
    +  static get DEFAULT_TTS() {
    +    return 10;
    +  }
    +
    +  /**
    +   * @returns {Number}
    +   */
    +  static get DEFAULT_PORT() {
    +    return 8877;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Local/Driver/Dynalite.js.html b/docs-api/deep-db/file/lib/Local/Driver/Dynalite.js.html new file mode 100644 index 00000000..dccb93fa --- /dev/null +++ b/docs-api/deep-db/file/lib/Local/Driver/Dynalite.js.html @@ -0,0 +1,147 @@ + + + + + + lib/Local/Driver/Dynalite.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Local/Driver/Dynalite.js

    +
    /**
    + * Created by AlexanderC on 9/23/15.
    + */
    +
    +'use strict';
    +
    +import {PathAwareDriver} from './PathAwareDriver';
    +import DynaliteServer from 'dynalite';
    +import {FailedToStartServerException} from './Exception/FailedToStartServerException';
    +
    +export class Dynalite extends PathAwareDriver {
    +  /**
    +   * @param {Object} options
    +   * @param {String} path
    +   * @param {Number} port
    +   */
    +  constructor(options = Dynalite.DEFAULT_OPTIONS, path = Dynalite.DBPath, port = Dynalite.DEFAULT_PORT) {
    +    super(path, port);
    +
    +    this._options = options;
    +    this._server = null;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get options() {
    +    return this._options;
    +  }
    +
    +  /**
    +   * @param {Function} cb
    +   * @private
    +   */
    +  _start(cb) {
    +    this._options.path = this.path;
    +
    +    this._server = DynaliteServer(this._options);
    +
    +    this._server.listen(this.port, (error) => {
    +      if (error) {
    +        cb(new FailedToStartServerException(this, error));
    +        return;
    +      }
    +
    +      cb(null);
    +    });
    +  }
    +
    +  /**
    +   * @param {Function} cb
    +   * @private
    +   */
    +  _stop(cb) {
    +    if (this._server) {
    +      this._server.close(cb);
    +      this._server = null;
    +
    +      return;
    +    }
    +
    +    cb(null);
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  static get DEFAULT_OPTIONS() {
    +    return {
    +      createTableMs: 0,
    +      deleteTableMs: 0,
    +      updateTableMs: 0,
    +    };
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Local/Driver/Exception/Exception.js.html b/docs-api/deep-db/file/lib/Local/Driver/Exception/Exception.js.html new file mode 100644 index 00000000..d35ba30f --- /dev/null +++ b/docs-api/deep-db/file/lib/Local/Driver/Exception/Exception.js.html @@ -0,0 +1,91 @@ + + + + + + lib/Local/Driver/Exception/Exception.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Local/Driver/Exception/Exception.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +
    +/**
    + * Thrown when any exception occurs
    + */
    +export class Exception extends Core.Exception.Exception {
    +  /**
    +   * @param {Array} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Local/Driver/Exception/FailedToStartServerException.js.html b/docs-api/deep-db/file/lib/Local/Driver/Exception/FailedToStartServerException.js.html new file mode 100644 index 00000000..a533382f --- /dev/null +++ b/docs-api/deep-db/file/lib/Local/Driver/Exception/FailedToStartServerException.js.html @@ -0,0 +1,89 @@ + + + + + + lib/Local/Driver/Exception/FailedToStartServerException.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Local/Driver/Exception/FailedToStartServerException.js

    +
    /**
    + * Created by AlexanderC on 9/23/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +export class FailedToStartServerException extends Exception {
    +  /**
    +   * @param {Object} driver
    +   * @param {String} error
    +   */
    +  constructor(driver, error) {
    +    super(`Failed to start DB server ${driver.constructor.name} on port ${driver.port}: ${error}`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Local/Driver/Exception/ServerAlreadyRunningException.js.html b/docs-api/deep-db/file/lib/Local/Driver/Exception/ServerAlreadyRunningException.js.html new file mode 100644 index 00000000..9f538eb7 --- /dev/null +++ b/docs-api/deep-db/file/lib/Local/Driver/Exception/ServerAlreadyRunningException.js.html @@ -0,0 +1,88 @@ + + + + + + lib/Local/Driver/Exception/ServerAlreadyRunningException.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Local/Driver/Exception/ServerAlreadyRunningException.js

    +
    /**
    + * Created by AlexanderC on 9/23/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +export class ServerAlreadyRunningException extends Exception {
    +  /**
    +   * @param {Object} driver
    +   */
    +  constructor(driver) {
    +    super(`The DB server ${driver.constructor.name} on port ${driver.port} is already running`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Local/Driver/Exception/ServerTtsExceededException.js.html b/docs-api/deep-db/file/lib/Local/Driver/Exception/ServerTtsExceededException.js.html new file mode 100644 index 00000000..5a7b25c8 --- /dev/null +++ b/docs-api/deep-db/file/lib/Local/Driver/Exception/ServerTtsExceededException.js.html @@ -0,0 +1,89 @@ + + + + + + lib/Local/Driver/Exception/ServerTtsExceededException.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Local/Driver/Exception/ServerTtsExceededException.js

    +
    /**
    + * Created by AlexanderC on 9/23/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +export class ServerTtsExceededException extends Exception {
    +  /**
    +   * @param {Object} driver
    +   * @param {Number} tts
    +   */
    +  constructor(driver, tts) {
    +    super(`The DB server's ${driver.constructor.name} tts of ${tts} seconds exceeded`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Local/Driver/LocalDynamo.js.html b/docs-api/deep-db/file/lib/Local/Driver/LocalDynamo.js.html new file mode 100644 index 00000000..66f13f6c --- /dev/null +++ b/docs-api/deep-db/file/lib/Local/Driver/LocalDynamo.js.html @@ -0,0 +1,160 @@ + + + + + + lib/Local/Driver/LocalDynamo.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Local/Driver/LocalDynamo.js

    +
    /**
    + * Created by AlexanderC on 9/23/15.
    + */
    +
    +'use strict';
    +
    +import {PathAwareDriver} from './PathAwareDriver';
    +import LocalDynamoServer from 'local-dynamo';
    +import {FailedToStartServerException} from './Exception/FailedToStartServerException';
    +
    +export class LocalDynamo extends PathAwareDriver {
    +  /**
    +   * @param {Object} options
    +   * @param {String} path
    +   * @param {Number} port
    +   */
    +  constructor(options = LocalDynamo.DEFAULT_OPTIONS, path = LocalDynamo.DBPath, port = LocalDynamo.DEFAULT_PORT) {
    +    super(path, port);
    +
    +    this._options = options;
    +    this._process = null;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get options() {
    +    return this._options;
    +  }
    +
    +  /**
    +   * @param {Function} cb
    +   * @private
    +   */
    +  _start(cb) {
    +    let cbTriggered = false;
    +
    +    this._options.dir = this.path;
    +
    +    this._process = LocalDynamoServer.launch(this._options, this.port);
    +
    +    // This hook fixes DynamoDB startup delay by waiting an empty stdout dataset
    +    // @todo: remove this hook after fixing issue!
    +    this._process.stdout.on('data', (data) => {
    +      if (!data.toString().replace(/\s+/, '') && !cbTriggered) {
    +        cbTriggered = true;
    +        cb(null);
    +      }
    +    });
    +
    +    let onError = (error) => {
    +      this._stop(() => '');
    +
    +      if (!cbTriggered) {
    +        cbTriggered = true;
    +        cb(new FailedToStartServerException(this, error));
    +      }
    +    };
    +
    +    this._process.on('uncaughtException', onError);
    +    this._process.on('error', onError);
    +    this._process.on('exit', () => {
    +      this.stop(() => '');
    +    });
    +  }
    +
    +  /**
    +   * @param {Function} cb
    +   * @private
    +   */
    +  _stop(cb) {
    +    if (this._process) {
    +      this._process.kill();
    +      this._process = null;
    +    }
    +
    +    cb(null);
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  static get DEFAULT_OPTIONS() {
    +    return {
    +      stdio: 'pipe',
    +    };
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Local/Driver/PathAwareDriver.js.html b/docs-api/deep-db/file/lib/Local/Driver/PathAwareDriver.js.html new file mode 100644 index 00000000..7efa3b12 --- /dev/null +++ b/docs-api/deep-db/file/lib/Local/Driver/PathAwareDriver.js.html @@ -0,0 +1,122 @@ + + + + + + lib/Local/Driver/PathAwareDriver.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Local/Driver/PathAwareDriver.js

    +
    /**
    + * Created by AlexanderC on 9/23/15.
    + */
    +
    +'use strict';
    +
    +import OS from 'os';
    +import FileSystem from 'fs';
    +import Path from 'path';
    +import {AbstractDriver} from './AbstractDriver';
    +
    +export class PathAwareDriver extends AbstractDriver {
    +  /**
    +   * @param {String} path
    +   * @param {Number} port
    +   */
    +  constructor(path = PathAwareDriver.DBPath, port = PathAwareDriver.DEFAULT_PORT) {
    +    super(port);
    +
    +    this._path = path;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get path() {
    +    return this._path;
    +  }
    +
    +  /**
    +   * @param {String} path
    +   */
    +  set path(path) {
    +    this._path = path;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get DBPath() {
    +    let dir = Path.join(OS.tmpdir(), this.name);
    +
    +    // @todo: do it async!
    +    if (!FileSystem.existsSync(dir)) {
    +      FileSystem.mkdirSync(dir);
    +    }
    +
    +    return dir;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Vogels/Exceptions/Exception.js.html b/docs-api/deep-db/file/lib/Vogels/Exceptions/Exception.js.html new file mode 100644 index 00000000..d1b2829c --- /dev/null +++ b/docs-api/deep-db/file/lib/Vogels/Exceptions/Exception.js.html @@ -0,0 +1,91 @@ + + + + + + lib/Vogels/Exceptions/Exception.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Vogels/Exceptions/Exception.js

    +
    /**
    + * Created by Stefan Hariton on 6/25/15.
    + */
    +
    +'use strict';
    +
    +import {Exception as BaseException} from '../../Exception/Exception';
    +
    +/**
    + * Base exception
    + */
    +export class Exception extends BaseException {
    +  /**
    +   * @param {Array} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Vogels/Exceptions/InvalidArgumentException.js.html b/docs-api/deep-db/file/lib/Vogels/Exceptions/InvalidArgumentException.js.html new file mode 100644 index 00000000..755e1c47 --- /dev/null +++ b/docs-api/deep-db/file/lib/Vogels/Exceptions/InvalidArgumentException.js.html @@ -0,0 +1,94 @@ + + + + + + lib/Vogels/Exceptions/InvalidArgumentException.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Vogels/Exceptions/InvalidArgumentException.js

    +
    /**
    + * Created by Stefan Hariton on 6/26/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when invalid argument provided
    + */
    +export class InvalidArgumentException extends Exception {
    +  /**
    +   * @param {*} argument
    +   * @param {String} meantType
    +   */
    +  constructor(argument, meantType) {
    +    let argumentType = typeof argument;
    +
    +    super(`Invalid argument ${argument} of type ${argumentType} provided (meant ${meantType}).`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Vogels/Exceptions/UndefinedMethodException.js.html b/docs-api/deep-db/file/lib/Vogels/Exceptions/UndefinedMethodException.js.html new file mode 100644 index 00000000..f7f64fd1 --- /dev/null +++ b/docs-api/deep-db/file/lib/Vogels/Exceptions/UndefinedMethodException.js.html @@ -0,0 +1,92 @@ + + + + + + lib/Vogels/Exceptions/UndefinedMethodException.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Vogels/Exceptions/UndefinedMethodException.js

    +
    /**
    + * Created by Stefan Hariton on 6/26/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when undefined method is requested
    + */
    +export class UndefinedMethodException extends Exception {
    +  /**
    +   * @param name
    +   * @param availableMethods
    +   */
    +  constructor(name, availableMethods) {
    +    super(`Method: ${name} does not exist. Available methods:${availableMethods}).`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/Vogels/ExtendModel.js.html b/docs-api/deep-db/file/lib/Vogels/ExtendModel.js.html new file mode 100644 index 00000000..89b76684 --- /dev/null +++ b/docs-api/deep-db/file/lib/Vogels/ExtendModel.js.html @@ -0,0 +1,346 @@ + + + + + + lib/Vogels/ExtendModel.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Vogels/ExtendModel.js

    +
    /**
    + * Created by Stefan Hariton on 6/26/15.
    + */
    +
    +'use strict';
    +
    +import UndefinedMethodException from './Exceptions/UndefinedMethodException';
    +
    +/**
    + * Extends standard Vogels models
    + */
    +export class ExtendModel {
    +  /**
    +   * @param {Object} model
    +   */
    +  constructor(model) {
    +    this._model = model;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get model() {
    +    return this._model;
    +  }
    +
    +  /**
    +   * @returns {Number}
    +   */
    +  static get DEFAULT_LIMIT() {
    +    return 10;
    +  }
    +
    +  /**
    +   * @returns {number}
    +   */
    +  static get DEFAULT_SEGMENTS_NUMBER() {
    +    return 4;
    +  }
    +
    +  /**
    +   * Makes filterExpression, filtersExpressionValues and filterExpressionNames from an object, that are used to make
    +   * a DynamoDb scan
    +   *
    +   * @param {Object} params
    +   * @returns {Object}
    +   */
    +  static buildScanParameters(params) {
    +    let filterExpression = '';
    +    let filterExpressionValues = {};
    +    let filterExpressionNames = {};
    +    let first = true;
    +
    +    for (let key in params) {
    +      if (!params.hasOwnProperty(key)) {
    +        continue;
    +      }
    +
    +      let fieldValue = params[key];
    +
    +      let fieldName = `#${key}`;
    +      let fieldValueName = `:${key}`;
    +
    +      if (!first) {
    +        filterExpression += ' AND ';
    +      }
    +
    +      filterExpression += `${fieldName} = ${fieldValueName}`;
    +      filterExpressionValues[fieldValueName] = fieldValue;
    +      filterExpressionNames[fieldName] = key;
    +      first = false;
    +    }
    +
    +    return {
    +      filterExpression: filterExpression,
    +      filterExpressionValues: filterExpressionValues,
    +      filterExpressionNames: filterExpressionNames,
    +    };
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get methods() {
    +    let _this = this;
    +
    +    return {
    +      findAll: function(cb) {
    +        return _this.model.scan().loadAll().exec(cb);
    +      },
    +
    +      findAllPaginated: function(startKey, limit, cb) {
    +        return _this.model
    +          .scan()
    +          .startKey(startKey)
    +          .limit(limit)
    +          .exec(cb);
    +      },
    +
    +      findOneById: function(id, cb) {
    +        return _this.model.get(id, cb);
    +      },
    +
    +      findOneBy: function(fieldName, value, cb) {
    +        return _this.model
    +          .scan()
    +          .where(fieldName).equals(value)
    +          .limit(1)
    +          .exec(cb);
    +      },
    +
    +      findBy: function(fieldName, value, cb, limit = ExtendModel.DEFAULT_LIMIT) {
    +        return _this.model
    +          .scan()
    +          .where(fieldName).equals(value)
    +          .limit(limit)
    +          .exec(cb);
    +      },
    +
    +      findAllBy: function(fieldName, value, cb) {
    +        return _this.model
    +          .scan()
    +          .where(fieldName).equals(value)
    +          .loadAll()
    +          .exec(cb);
    +      },
    +
    +      findAllByPaginated: function(fieldName, value, startKey, limit, cb) {
    +        return _this.model
    +          .scan()
    +          .where(fieldName).equals(value)
    +          .startKey(startKey)
    +          .limit(limit)
    +          .exec(cb);
    +      },
    +
    +      findMatching: function(params, cb, limit = ExtendModel.DEFAULT_LIMIT) {
    +        let scanParams = ExtendModel.buildScanParameters(params);
    +
    +        return _this.model
    +          .scan()
    +          .filterExpression(scanParams.filterExpression)
    +          .expressionAttributeValues(scanParams.filterExpressionValues)
    +          .expressionAttributeNames(scanParams.filterExpressionNames)
    +          .limit(limit)
    +          .exec(cb);
    +      },
    +
    +      findOneMatching: function(params, cb) {
    +        let scanParams = ExtendModel.buildScanParameters(params);
    +
    +        return _this.model
    +          .scan()
    +          .filterExpression(scanParams.filterExpression)
    +          .expressionAttributeValues(scanParams.filterExpressionValues)
    +          .expressionAttributeNames(scanParams.filterExpressionNames)
    +          .limit(1)
    +          .exec(cb);
    +      },
    +
    +      findAllMatching: function(params, cb) {
    +        let scanParams = ExtendModel.buildScanParameters(params);
    +
    +        return _this.model
    +          .scan()
    +          .filterExpression(scanParams.filterExpression)
    +          .expressionAttributeValues(scanParams.filterExpressionValues)
    +          .expressionAttributeNames(scanParams.filterExpressionNames)
    +          .loadAll()
    +          .exec(cb);
    +      },
    +
    +      findAllMatchingPaginated: function(params, startKey, limit, cb) {
    +        let scanParams = ExtendModel.buildScanParameters(params);
    +
    +        return _this.model
    +          .scan()
    +          .filterExpression(scanParams.filterExpression)
    +          .expressionAttributeValues(scanParams.filterExpressionValues)
    +          .expressionAttributeNames(scanParams.filterExpressionNames)
    +          .startKey(startKey)
    +          .limit(limit)
    +          .exec(cb);
    +      },
    +
    +      deleteById: function(id, cb) {
    +        return _this.model.destroy(id, cb);
    +      },
    +
    +      deleteByIdConditional: function(id, condition, cb) {
    +        return _this.model.destroy(id, condition, cb);
    +      },
    +
    +      createItem: function(data, cb) {
    +        return _this.model.create(data, cb);
    +      },
    +
    +      createUniqueOnFields: function(fields, data, cb) {
    +        let scanCb = function(err, data) {
    +          if (err) {
    +            return cb(err, data);
    +          }
    +
    +          if (data.Count) {
    +            return cb(`Item like ${data} already exists`);
    +          }
    +
    +          return _this.model.create(data, cb);
    +        };
    +
    +        let scanParams = {};
    +        for (let fieldKey in fields) {
    +          if (!fields.hasOwnProperty(fieldKey)) {
    +            continue;
    +          }
    +
    +          let field = fields[fieldKey];
    +
    +          scanParams[field] = data[field];
    +        }
    +
    +        scanParams = ExtendModel.buildScanParameters(scanParams);
    +
    +        return _this.model
    +          .scan()
    +          .filterExpression(scanParams.filterExpression)
    +          .expressionAttributeValues(scanParams.filterExpressionValues)
    +          .expressionAttributeNames(scanParams.filterExpressionNames)
    +          .limit(1)
    +          .exec(scanCb);
    +      },
    +
    +      updateItem: function(id, data, cb) {
    +        data.Id = id;
    +
    +        return _this.model.update(data, cb);
    +      },
    +
    +      updateItemConditional: function(id, data, condition, cb) {
    +        data.Id = id;
    +
    +        return _this.model.update(data, condition, cb);
    +      },
    +    };
    +  }
    +
    +  /**
    +   * Injects the specified methods or all
    +   *
    +   * @param {Array} methods
    +   */
    +  inject(methods = null) {
    +    let predefinedMethods = this.methods;
    +    let predefinedMethodsNames = Object.keys(predefinedMethods);
    +
    +    methods = methods || predefinedMethodsNames;
    +
    +    for (let methodKey in methods) {
    +      if (!methods.hasOwnProperty(methodKey)) {
    +        continue;
    +      }
    +
    +      let methodName = methods[methodKey];
    +
    +      if (!predefinedMethods.hasOwnProperty(methodName)) {
    +        throw new UndefinedMethodException(methodName, predefinedMethodsNames);
    +      }
    +
    +      this._model[methodName] = predefinedMethods[methodName];
    +    }
    +
    +    return this._model;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/file/lib/bootstrap.js.html b/docs-api/deep-db/file/lib/bootstrap.js.html new file mode 100644 index 00000000..c2c86541 --- /dev/null +++ b/docs-api/deep-db/file/lib/bootstrap.js.html @@ -0,0 +1,83 @@ + + + + + + lib/bootstrap.js | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/bootstrap.js

    +
    /**
    + * Created by AlexanderC on 5/22/15.
    + *
    + * Bootstrap file loaded by npm as main
    + */
    +
    +'use strict';
    +
    +import {DB} from './DB';
    +
    +let exports = module.exports = DB;
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/identifiers.html b/docs-api/deep-db/identifiers.html new file mode 100644 index 00000000..d1b6d200 --- /dev/null +++ b/docs-api/deep-db/identifiers.html @@ -0,0 +1,531 @@ + + + + + + Index | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Identifier

    +

    Class Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Class Summary
    + public + + + + + +
    +

    + AbstractDriver +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + DB +

    +
    +
    + + +
    Vogels wrapper
    +
    +
    + + +
    + public + + + + + +
    +

    + DBServer +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + Dynalite +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Base exception
    +
    +
    + + +
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Thrown when any exception occurs
    +
    +
    + + +
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Thrown when any exception occurs
    +
    +
    + + +
    + public + + + + + +
    +

    + ExtendModel +

    +
    +
    + + +
    Extends standard Vogels models
    +
    +
    + + +
    + public + + + + + + +
    + + + +
    +
    + + +
    + public + + + + + + +
    + + + +
    +
    + + +
    + public + + + + + + +
    + + + +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when invalid argument provided
    +
    +
    + + +
    + public + + + + + +
    +

    + LocalDynamo +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when missing requested model
    +
    +
    + + +
    + public + + + + + +
    +

    + PathAwareDriver +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + + +
    + + + +
    +
    + + +
    + public + + + + + + +
    + + + +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when undefined method is requested
    +
    +
    + + +
    +
    + + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/image/badge.svg b/docs-api/deep-db/image/badge.svg new file mode 100644 index 00000000..324db4c5 --- /dev/null +++ b/docs-api/deep-db/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/docs-api/deep-db/image/github.png b/docs-api/deep-db/image/github.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/docs-api/deep-db/image/github.png differ diff --git a/docs-api/deep-db/image/search.png b/docs-api/deep-db/image/search.png new file mode 100644 index 00000000..f5d84b69 Binary files /dev/null and b/docs-api/deep-db/image/search.png differ diff --git a/docs-api/deep-db/index.html b/docs-api/deep-db/index.html new file mode 100644 index 00000000..3ed93b0e --- /dev/null +++ b/docs-api/deep-db/index.html @@ -0,0 +1,204 @@ + + + + + + DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    deep-db

    +

    NPM Version +Build Status +Coverage Status +Codacy Badge +API Docs

    +

    deep-db is a node.js library, part of DEEP Framework.

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less.

    +

    DEEP for Businesses Join char on gitter.im

    +

    User Guide Documentation (to be updated later)

    +

    DEEP is enabling small and medium businesses, as well as enterprises to:

    +
      +
    • Rent applications on a monthly basis by needed functionality from DEEP Marketplace
    • +
    • Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS
    • +
    • Pay only for subscribed applications and stop paying when unsubscribing and not using anymore
    • +
    • Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences
    • +
    • Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability
    • +
    +
    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP for Developers Join char on gitter.im

    +

    API Guide Documentation

    +

    Developer Guide Documentation

    +

    DEEP is enabling developers and architects to:

    +
      +
    • Design microservices architecture on top of serverless environments from cloud providers like AWS
    • +
    • Build distributed software that combines and manages hardware and software in the same microservice
    • +
    • Use the framework's abstracted approach to build applications that could be cloud agnostic
    • +
    • Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same DEEP Microservice
    • +
    • Run in the cloud the software that was built by distributed teams and served self-service in large organizations
    • +
    • Monetize their work of art by uploading microservices to DEEP Marketplace
    • +
    +
    +

    DEEP Microservice is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with DEEP Microservices HelloWorld or DEEP Microservices ToDo App, as well as DEEP CLI (aka deepify).

    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP Architecture on AWS Join char on gitter.im

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    DEEP is using microservices architecture on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DEEP Abstracted LibraryDescriptionAWS Abstracted Service(s)
    deep-assetAssets Management LibraryAmazon S3
    deep-cacheCache Management LibraryAmazon ElastiCache
    deep-coreCore Management Library-
    deep-dbDatabase Management LibraryAmazon DynamoDB, Amazon SQS
    deep-diDependency Injection Management Library-
    deep-eventEvents Management LibraryAmazon Kinesis
    deep-fsFile System Management LibraryAmazon S3
    deep-kernelKernel Management Library-
    deep-logLogs Management LibraryAmazon CloudWatch Logs
    deep-notificationNotifications Management LibraryAmazon SNS
    deep-resourceResouces Management LibraryAWS Lambda, Amazon API Gateway
    deep-securitySecurity Management LibraryAWS IAM, Amazon Cognito
    deep-validationValidation Management Library-
    +

    Feedback

    +

    We are eager to get your feedback, so please use whatever communication channel you prefer:

    + +

    License

    +

    This repository can be used under the MIT license.

    +
    +

    See LICENSE for more details.

    +
    +

    Sponsors

    +

    This repository is being sponsored by:

    +
    +

    Mitoc Group

    +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-db/package.json b/docs-api/deep-db/package.json new file mode 100644 index 00000000..0506e07e --- /dev/null +++ b/docs-api/deep-db/package.json @@ -0,0 +1,76 @@ +{ + "name": "deep-db", + "version": "0.0.77", + "description": "DEEP Database Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "DB", + "NoSQL", + "Database" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Stefan Hariton", + "email": "shariton@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "*", + "deep-core": "*", + "deep-validation": "*", + "vogels": "2.0.0-rc10", + "joi": "6.6.*" + }, + "devDependencies": { + "aws-sdk": "2.1.*", + "local-dynamo": "MitocGroup/local-dynamo", + "dynalite": "0.16.*", + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/docs-api/deep-db/script/inherited-summary.js b/docs-api/deep-db/script/inherited-summary.js new file mode 100644 index 00000000..0a35b6df --- /dev/null +++ b/docs-api/deep-db/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/docs-api/deep-db/script/inner-link.js b/docs-api/deep-db/script/inner-link.js new file mode 100644 index 00000000..99d76273 --- /dev/null +++ b/docs-api/deep-db/script/inner-link.js @@ -0,0 +1,29 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + var el = document.querySelector(location.hash); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = location.href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/docs-api/deep-db/script/patch-for-local.js b/docs-api/deep-db/script/patch-for-local.js new file mode 100644 index 00000000..5756d135 --- /dev/null +++ b/docs-api/deep-db/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/docs-api/deep-db/script/prettify/Apache-License-2.0.txt b/docs-api/deep-db/script/prettify/Apache-License-2.0.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/docs-api/deep-db/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs-api/deep-db/script/prettify/prettify.js b/docs-api/deep-db/script/prettify/prettify.js new file mode 100644 index 00000000..eef5ad7e --- /dev/null +++ b/docs-api/deep-db/script/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/docs-api/deep-db/script/search_index.js b/docs-api/deep-db/script/search_index.js new file mode 100644 index 00000000..47365477 --- /dev/null +++ b/docs-api/deep-db/script/search_index.js @@ -0,0 +1,854 @@ +window.esdocSearchIndex = [ + [ + "deep-db/lib/local/driver/abstractdriver.js~abstractdriver", + "class/lib/Local/Driver/AbstractDriver.js~AbstractDriver.html", + "AbstractDriver deep-db/lib/Local/Driver/AbstractDriver.js", + "class" + ], + [ + "deep-db/lib/db.js~db", + "class/lib/DB.js~DB.html", + "DB deep-db/lib/DB.js", + "class" + ], + [ + "deep-db/lib/local/dbserver.js~dbserver", + "class/lib/Local/DBServer.js~DBServer.html", + "DBServer deep-db/lib/Local/DBServer.js", + "class" + ], + [ + "deep-db/lib/local/driver/dynalite.js~dynalite", + "class/lib/Local/Driver/Dynalite.js~Dynalite.html", + "Dynalite deep-db/lib/Local/Driver/Dynalite.js", + "class" + ], + [ + "deep-db/lib/exception/exception.js~exception", + "class/lib/Exception/Exception.js~Exception.html", + "Exception deep-db/lib/Exception/Exception.js", + "class" + ], + [ + "deep-db/lib/local/driver/exception/exception.js~exception", + "class/lib/Local/Driver/Exception/Exception.js~Exception.html", + "Exception deep-db/lib/Local/Driver/Exception/Exception.js", + "class" + ], + [ + "deep-db/lib/vogels/exceptions/exception.js~exception", + "class/lib/Vogels/Exceptions/Exception.js~Exception.html", + "Exception deep-db/lib/Vogels/Exceptions/Exception.js", + "class" + ], + [ + "deep-db/lib/vogels/extendmodel.js~extendmodel", + "class/lib/Vogels/ExtendModel.js~ExtendModel.html", + "ExtendModel deep-db/lib/Vogels/ExtendModel.js", + "class" + ], + [ + "deep-db/lib/exception/failedtocreatetableexception.js~failedtocreatetableexception", + "class/lib/Exception/FailedToCreateTableException.js~FailedToCreateTableException.html", + "FailedToCreateTableException deep-db/lib/Exception/FailedToCreateTableException.js", + "class" + ], + [ + "deep-db/lib/exception/failedtocreatetablesexception.js~failedtocreatetablesexception", + "class/lib/Exception/FailedToCreateTablesException.js~FailedToCreateTablesException.html", + "FailedToCreateTablesException deep-db/lib/Exception/FailedToCreateTablesException.js", + "class" + ], + [ + "deep-db/lib/local/driver/exception/failedtostartserverexception.js~failedtostartserverexception", + "class/lib/Local/Driver/Exception/FailedToStartServerException.js~FailedToStartServerException.html", + "FailedToStartServerException deep-db/lib/Local/Driver/Exception/FailedToStartServerException.js", + "class" + ], + [ + "deep-db/lib/vogels/exceptions/invalidargumentexception.js~invalidargumentexception", + "class/lib/Vogels/Exceptions/InvalidArgumentException.js~InvalidArgumentException.html", + "InvalidArgumentException deep-db/lib/Vogels/Exceptions/InvalidArgumentException.js", + "class" + ], + [ + "deep-db/lib/local/driver/localdynamo.js~localdynamo", + "class/lib/Local/Driver/LocalDynamo.js~LocalDynamo.html", + "LocalDynamo deep-db/lib/Local/Driver/LocalDynamo.js", + "class" + ], + [ + "deep-db/lib/exception/modelnotfoundexception.js~modelnotfoundexception", + "class/lib/Exception/ModelNotFoundException.js~ModelNotFoundException.html", + "ModelNotFoundException deep-db/lib/Exception/ModelNotFoundException.js", + "class" + ], + [ + "deep-db/lib/local/driver/pathawaredriver.js~pathawaredriver", + "class/lib/Local/Driver/PathAwareDriver.js~PathAwareDriver.html", + "PathAwareDriver deep-db/lib/Local/Driver/PathAwareDriver.js", + "class" + ], + [ + "deep-db/lib/local/driver/exception/serveralreadyrunningexception.js~serveralreadyrunningexception", + "class/lib/Local/Driver/Exception/ServerAlreadyRunningException.js~ServerAlreadyRunningException.html", + "ServerAlreadyRunningException deep-db/lib/Local/Driver/Exception/ServerAlreadyRunningException.js", + "class" + ], + [ + "deep-db/lib/local/driver/exception/serverttsexceededexception.js~serverttsexceededexception", + "class/lib/Local/Driver/Exception/ServerTtsExceededException.js~ServerTtsExceededException.html", + "ServerTtsExceededException deep-db/lib/Local/Driver/Exception/ServerTtsExceededException.js", + "class" + ], + [ + "deep-db/lib/vogels/exceptions/undefinedmethodexception.js~undefinedmethodexception", + "class/lib/Vogels/Exceptions/UndefinedMethodException.js~UndefinedMethodException.html", + "UndefinedMethodException deep-db/lib/Vogels/Exceptions/UndefinedMethodException.js", + "class" + ], + [ + "builtinexternal/ecmascriptexternal.js~array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~arraybuffer", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~dataview", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~DataView", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~date", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Date", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~error", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Error", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~evalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float64array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generator", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Generator", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generatorfunction", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~infinity", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~internalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~json", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~JSON", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~map", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Map", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~nan", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~NaN", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~promise", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Promise", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~proxy", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~rangeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~referenceerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~reflect", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~regexp", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~set", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Set", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~String", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~symbol", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~syntaxerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~typeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~urierror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~URIError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8clampedarray", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakmap", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakset", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~null", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~null", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~string", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~undefined", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~undefined", + "external" + ], + [ + "builtinexternal/webapiexternal.js~canvasrenderingcontext2d", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "external" + ], + [ + "builtinexternal/webapiexternal.js~documentfragment", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "external" + ], + [ + "builtinexternal/webapiexternal.js~element", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Element", + "external" + ], + [ + "builtinexternal/webapiexternal.js~event", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Event", + "external" + ], + [ + "builtinexternal/webapiexternal.js~node", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Node", + "external" + ], + [ + "builtinexternal/webapiexternal.js~nodelist", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~NodeList", + "external" + ], + [ + "builtinexternal/webapiexternal.js~xmlhttprequest", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "external" + ], + [ + "lib/db.js", + "file/lib/DB.js.html", + "lib/DB.js", + "file" + ], + [ + "lib/db.js~db#assuretable", + "class/lib/DB.js~DB.html#instance-method-assureTable", + "lib/DB.js~DB#assureTable", + "method" + ], + [ + "lib/db.js~db#assuretables", + "class/lib/DB.js~DB.html#instance-method-assureTables", + "lib/DB.js~DB#assureTables", + "method" + ], + [ + "lib/db.js~db#boot", + "class/lib/DB.js~DB.html#instance-method-boot", + "lib/DB.js~DB#boot", + "method" + ], + [ + "lib/db.js~db#constructor", + "class/lib/DB.js~DB.html#instance-constructor-constructor", + "lib/DB.js~DB#constructor", + "method" + ], + [ + "lib/db.js~db#get", + "class/lib/DB.js~DB.html#instance-method-get", + "lib/DB.js~DB#get", + "method" + ], + [ + "lib/db.js~db#has", + "class/lib/DB.js~DB.html#instance-method-has", + "lib/DB.js~DB#has", + "method" + ], + [ + "lib/db.js~db#models", + "class/lib/DB.js~DB.html#instance-get-models", + "lib/DB.js~DB#models", + "member" + ], + [ + "lib/db.js~db#validation", + "class/lib/DB.js~DB.html#instance-get-validation", + "lib/DB.js~DB#validation", + "member" + ], + [ + "lib/db.js~db.default_table_options", + "class/lib/DB.js~DB.html#static-get-DEFAULT_TABLE_OPTIONS", + "lib/DB.js~DB.DEFAULT_TABLE_OPTIONS", + "member" + ], + [ + "lib/db.js~db.local_db_port", + "class/lib/DB.js~DB.html#static-get-LOCAL_DB_PORT", + "lib/DB.js~DB.LOCAL_DB_PORT", + "member" + ], + [ + "lib/db.js~db.startlocaldynamodbserver", + "class/lib/DB.js~DB.html#static-method-startLocalDynamoDBServer", + "lib/DB.js~DB.startLocalDynamoDBServer", + "method" + ], + [ + "lib/exception/exception.js", + "file/lib/Exception/Exception.js.html", + "lib/Exception/Exception.js", + "file" + ], + [ + "lib/exception/exception.js~exception#constructor", + "class/lib/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/exception/failedtocreatetableexception.js", + "file/lib/Exception/FailedToCreateTableException.js.html", + "lib/Exception/FailedToCreateTableException.js", + "file" + ], + [ + "lib/exception/failedtocreatetableexception.js~failedtocreatetableexception#constructor", + "class/lib/Exception/FailedToCreateTableException.js~FailedToCreateTableException.html#instance-constructor-constructor", + "lib/Exception/FailedToCreateTableException.js~FailedToCreateTableException#constructor", + "method" + ], + [ + "lib/exception/failedtocreatetablesexception.js", + "file/lib/Exception/FailedToCreateTablesException.js.html", + "lib/Exception/FailedToCreateTablesException.js", + "file" + ], + [ + "lib/exception/failedtocreatetablesexception.js~failedtocreatetablesexception#constructor", + "class/lib/Exception/FailedToCreateTablesException.js~FailedToCreateTablesException.html#instance-constructor-constructor", + "lib/Exception/FailedToCreateTablesException.js~FailedToCreateTablesException#constructor", + "method" + ], + [ + "lib/exception/modelnotfoundexception.js", + "file/lib/Exception/ModelNotFoundException.js.html", + "lib/Exception/ModelNotFoundException.js", + "file" + ], + [ + "lib/exception/modelnotfoundexception.js~modelnotfoundexception#constructor", + "class/lib/Exception/ModelNotFoundException.js~ModelNotFoundException.html#instance-constructor-constructor", + "lib/Exception/ModelNotFoundException.js~ModelNotFoundException#constructor", + "method" + ], + [ + "lib/local/dbserver.js", + "file/lib/Local/DBServer.js.html", + "lib/Local/DBServer.js", + "file" + ], + [ + "lib/local/dbserver.js~dbserver.default_driver", + "class/lib/Local/DBServer.js~DBServer.html#static-get-DEFAULT_DRIVER", + "lib/Local/DBServer.js~DBServer.DEFAULT_DRIVER", + "member" + ], + [ + "lib/local/dbserver.js~dbserver.drivers", + "class/lib/Local/DBServer.js~DBServer.html#static-get-DRIVERS", + "lib/Local/DBServer.js~DBServer.DRIVERS", + "member" + ], + [ + "lib/local/dbserver.js~dbserver.create", + "class/lib/Local/DBServer.js~DBServer.html#static-method-create", + "lib/Local/DBServer.js~DBServer.create", + "method" + ], + [ + "lib/local/driver/abstractdriver.js", + "file/lib/Local/Driver/AbstractDriver.js.html", + "lib/Local/Driver/AbstractDriver.js", + "file" + ], + [ + "lib/local/driver/abstractdriver.js~abstractdriver#constructor", + "class/lib/Local/Driver/AbstractDriver.js~AbstractDriver.html#instance-constructor-constructor", + "lib/Local/Driver/AbstractDriver.js~AbstractDriver#constructor", + "method" + ], + [ + "lib/local/driver/abstractdriver.js~abstractdriver#port", + "class/lib/Local/Driver/AbstractDriver.js~AbstractDriver.html#instance-set-port", + "lib/Local/Driver/AbstractDriver.js~AbstractDriver#port", + "member" + ], + [ + "lib/local/driver/abstractdriver.js~abstractdriver#port", + "class/lib/Local/Driver/AbstractDriver.js~AbstractDriver.html#instance-get-port", + "lib/Local/Driver/AbstractDriver.js~AbstractDriver#port", + "member" + ], + [ + "lib/local/driver/abstractdriver.js~abstractdriver#restart", + "class/lib/Local/Driver/AbstractDriver.js~AbstractDriver.html#instance-method-restart", + "lib/Local/Driver/AbstractDriver.js~AbstractDriver#restart", + "method" + ], + [ + "lib/local/driver/abstractdriver.js~abstractdriver#running", + "class/lib/Local/Driver/AbstractDriver.js~AbstractDriver.html#instance-get-running", + "lib/Local/Driver/AbstractDriver.js~AbstractDriver#running", + "member" + ], + [ + "lib/local/driver/abstractdriver.js~abstractdriver#start", + "class/lib/Local/Driver/AbstractDriver.js~AbstractDriver.html#instance-method-start", + "lib/Local/Driver/AbstractDriver.js~AbstractDriver#start", + "method" + ], + [ + "lib/local/driver/abstractdriver.js~abstractdriver#stop", + "class/lib/Local/Driver/AbstractDriver.js~AbstractDriver.html#instance-method-stop", + "lib/Local/Driver/AbstractDriver.js~AbstractDriver#stop", + "method" + ], + [ + "lib/local/driver/abstractdriver.js~abstractdriver.default_port", + "class/lib/Local/Driver/AbstractDriver.js~AbstractDriver.html#static-get-DEFAULT_PORT", + "lib/Local/Driver/AbstractDriver.js~AbstractDriver.DEFAULT_PORT", + "member" + ], + [ + "lib/local/driver/abstractdriver.js~abstractdriver.default_tts", + "class/lib/Local/Driver/AbstractDriver.js~AbstractDriver.html#static-get-DEFAULT_TTS", + "lib/Local/Driver/AbstractDriver.js~AbstractDriver.DEFAULT_TTS", + "member" + ], + [ + "lib/local/driver/dynalite.js", + "file/lib/Local/Driver/Dynalite.js.html", + "lib/Local/Driver/Dynalite.js", + "file" + ], + [ + "lib/local/driver/dynalite.js~dynalite#constructor", + "class/lib/Local/Driver/Dynalite.js~Dynalite.html#instance-constructor-constructor", + "lib/Local/Driver/Dynalite.js~Dynalite#constructor", + "method" + ], + [ + "lib/local/driver/dynalite.js~dynalite#options", + "class/lib/Local/Driver/Dynalite.js~Dynalite.html#instance-get-options", + "lib/Local/Driver/Dynalite.js~Dynalite#options", + "member" + ], + [ + "lib/local/driver/dynalite.js~dynalite.default_options", + "class/lib/Local/Driver/Dynalite.js~Dynalite.html#static-get-DEFAULT_OPTIONS", + "lib/Local/Driver/Dynalite.js~Dynalite.DEFAULT_OPTIONS", + "member" + ], + [ + "lib/local/driver/exception/exception.js", + "file/lib/Local/Driver/Exception/Exception.js.html", + "lib/Local/Driver/Exception/Exception.js", + "file" + ], + [ + "lib/local/driver/exception/exception.js~exception#constructor", + "class/lib/Local/Driver/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Local/Driver/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/local/driver/exception/failedtostartserverexception.js", + "file/lib/Local/Driver/Exception/FailedToStartServerException.js.html", + "lib/Local/Driver/Exception/FailedToStartServerException.js", + "file" + ], + [ + "lib/local/driver/exception/failedtostartserverexception.js~failedtostartserverexception#constructor", + "class/lib/Local/Driver/Exception/FailedToStartServerException.js~FailedToStartServerException.html#instance-constructor-constructor", + "lib/Local/Driver/Exception/FailedToStartServerException.js~FailedToStartServerException#constructor", + "method" + ], + [ + "lib/local/driver/exception/serveralreadyrunningexception.js", + "file/lib/Local/Driver/Exception/ServerAlreadyRunningException.js.html", + "lib/Local/Driver/Exception/ServerAlreadyRunningException.js", + "file" + ], + [ + "lib/local/driver/exception/serveralreadyrunningexception.js~serveralreadyrunningexception#constructor", + "class/lib/Local/Driver/Exception/ServerAlreadyRunningException.js~ServerAlreadyRunningException.html#instance-constructor-constructor", + "lib/Local/Driver/Exception/ServerAlreadyRunningException.js~ServerAlreadyRunningException#constructor", + "method" + ], + [ + "lib/local/driver/exception/serverttsexceededexception.js", + "file/lib/Local/Driver/Exception/ServerTtsExceededException.js.html", + "lib/Local/Driver/Exception/ServerTtsExceededException.js", + "file" + ], + [ + "lib/local/driver/exception/serverttsexceededexception.js~serverttsexceededexception#constructor", + "class/lib/Local/Driver/Exception/ServerTtsExceededException.js~ServerTtsExceededException.html#instance-constructor-constructor", + "lib/Local/Driver/Exception/ServerTtsExceededException.js~ServerTtsExceededException#constructor", + "method" + ], + [ + "lib/local/driver/localdynamo.js", + "file/lib/Local/Driver/LocalDynamo.js.html", + "lib/Local/Driver/LocalDynamo.js", + "file" + ], + [ + "lib/local/driver/localdynamo.js~localdynamo#constructor", + "class/lib/Local/Driver/LocalDynamo.js~LocalDynamo.html#instance-constructor-constructor", + "lib/Local/Driver/LocalDynamo.js~LocalDynamo#constructor", + "method" + ], + [ + "lib/local/driver/localdynamo.js~localdynamo#options", + "class/lib/Local/Driver/LocalDynamo.js~LocalDynamo.html#instance-get-options", + "lib/Local/Driver/LocalDynamo.js~LocalDynamo#options", + "member" + ], + [ + "lib/local/driver/localdynamo.js~localdynamo.default_options", + "class/lib/Local/Driver/LocalDynamo.js~LocalDynamo.html#static-get-DEFAULT_OPTIONS", + "lib/Local/Driver/LocalDynamo.js~LocalDynamo.DEFAULT_OPTIONS", + "member" + ], + [ + "lib/local/driver/pathawaredriver.js", + "file/lib/Local/Driver/PathAwareDriver.js.html", + "lib/Local/Driver/PathAwareDriver.js", + "file" + ], + [ + "lib/local/driver/pathawaredriver.js~pathawaredriver#constructor", + "class/lib/Local/Driver/PathAwareDriver.js~PathAwareDriver.html#instance-constructor-constructor", + "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver#constructor", + "method" + ], + [ + "lib/local/driver/pathawaredriver.js~pathawaredriver#path", + "class/lib/Local/Driver/PathAwareDriver.js~PathAwareDriver.html#instance-set-path", + "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver#path", + "member" + ], + [ + "lib/local/driver/pathawaredriver.js~pathawaredriver#path", + "class/lib/Local/Driver/PathAwareDriver.js~PathAwareDriver.html#instance-get-path", + "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver#path", + "member" + ], + [ + "lib/local/driver/pathawaredriver.js~pathawaredriver.dbpath", + "class/lib/Local/Driver/PathAwareDriver.js~PathAwareDriver.html#static-get-DBPath", + "lib/Local/Driver/PathAwareDriver.js~PathAwareDriver.DBPath", + "member" + ], + [ + "lib/vogels/exceptions/exception.js", + "file/lib/Vogels/Exceptions/Exception.js.html", + "lib/Vogels/Exceptions/Exception.js", + "file" + ], + [ + "lib/vogels/exceptions/exception.js~exception#constructor", + "class/lib/Vogels/Exceptions/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Vogels/Exceptions/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/vogels/exceptions/invalidargumentexception.js", + "file/lib/Vogels/Exceptions/InvalidArgumentException.js.html", + "lib/Vogels/Exceptions/InvalidArgumentException.js", + "file" + ], + [ + "lib/vogels/exceptions/invalidargumentexception.js~invalidargumentexception#constructor", + "class/lib/Vogels/Exceptions/InvalidArgumentException.js~InvalidArgumentException.html#instance-constructor-constructor", + "lib/Vogels/Exceptions/InvalidArgumentException.js~InvalidArgumentException#constructor", + "method" + ], + [ + "lib/vogels/exceptions/undefinedmethodexception.js", + "file/lib/Vogels/Exceptions/UndefinedMethodException.js.html", + "lib/Vogels/Exceptions/UndefinedMethodException.js", + "file" + ], + [ + "lib/vogels/exceptions/undefinedmethodexception.js~undefinedmethodexception#constructor", + "class/lib/Vogels/Exceptions/UndefinedMethodException.js~UndefinedMethodException.html#instance-constructor-constructor", + "lib/Vogels/Exceptions/UndefinedMethodException.js~UndefinedMethodException#constructor", + "method" + ], + [ + "lib/vogels/extendmodel.js", + "file/lib/Vogels/ExtendModel.js.html", + "lib/Vogels/ExtendModel.js", + "file" + ], + [ + "lib/vogels/extendmodel.js~extendmodel#constructor", + "class/lib/Vogels/ExtendModel.js~ExtendModel.html#instance-constructor-constructor", + "lib/Vogels/ExtendModel.js~ExtendModel#constructor", + "method" + ], + [ + "lib/vogels/extendmodel.js~extendmodel#inject", + "class/lib/Vogels/ExtendModel.js~ExtendModel.html#instance-method-inject", + "lib/Vogels/ExtendModel.js~ExtendModel#inject", + "method" + ], + [ + "lib/vogels/extendmodel.js~extendmodel#methods", + "class/lib/Vogels/ExtendModel.js~ExtendModel.html#instance-get-methods", + "lib/Vogels/ExtendModel.js~ExtendModel#methods", + "member" + ], + [ + "lib/vogels/extendmodel.js~extendmodel#model", + "class/lib/Vogels/ExtendModel.js~ExtendModel.html#instance-get-model", + "lib/Vogels/ExtendModel.js~ExtendModel#model", + "member" + ], + [ + "lib/vogels/extendmodel.js~extendmodel.default_limit", + "class/lib/Vogels/ExtendModel.js~ExtendModel.html#static-get-DEFAULT_LIMIT", + "lib/Vogels/ExtendModel.js~ExtendModel.DEFAULT_LIMIT", + "member" + ], + [ + "lib/vogels/extendmodel.js~extendmodel.default_segments_number", + "class/lib/Vogels/ExtendModel.js~ExtendModel.html#static-get-DEFAULT_SEGMENTS_NUMBER", + "lib/Vogels/ExtendModel.js~ExtendModel.DEFAULT_SEGMENTS_NUMBER", + "member" + ], + [ + "lib/vogels/extendmodel.js~extendmodel.buildscanparameters", + "class/lib/Vogels/ExtendModel.js~ExtendModel.html#static-method-buildScanParameters", + "lib/Vogels/ExtendModel.js~ExtendModel.buildScanParameters", + "method" + ], + [ + "lib/bootstrap.js", + "file/lib/bootstrap.js.html", + "lib/bootstrap.js", + "file" + ] +] \ No newline at end of file diff --git a/docs-api/deep-db/script/test-summary.js b/docs-api/deep-db/script/test-summary.js new file mode 100644 index 00000000..2f32cb00 --- /dev/null +++ b/docs-api/deep-db/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-describe')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-describe .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/docs-api/deep-db/source.html b/docs-api/deep-db/source.html new file mode 100644 index 00000000..0c785c39 --- /dev/null +++ b/docs-api/deep-db/source.html @@ -0,0 +1,238 @@ + + + + + + Source | DEEP Database Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Source 59/69

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    lib/DB.jsDB100 %12/125293 byte2482015-10-07 19:56:07 (UTC)
    lib/Exception/Exception.jsException100 %2/2282 byte192015-10-07 19:56:07 (UTC)
    lib/Exception/FailedToCreateTableException.jsFailedToCreateTableException50 %1/2299 byte162015-09-04 12:52:16 (UTC)
    lib/Exception/FailedToCreateTablesException.jsFailedToCreateTablesException50 %1/2336 byte172015-09-04 12:52:16 (UTC)
    lib/Exception/ModelNotFoundException.jsModelNotFoundException100 %2/2327 byte192015-09-04 12:52:16 (UTC)
    lib/Local/DBServer.jsDBServer75 %3/41231 byte652015-09-05 11:34:30 (UTC)
    lib/Local/Driver/AbstractDriver.jsAbstractDriver90 %9/102803 byte1722015-10-07 19:56:07 (UTC)
    lib/Local/Driver/Dynalite.jsDynalite75 %3/41342 byte752015-09-06 11:48:20 (UTC)
    lib/Local/Driver/Exception/Exception.jsException100 %2/2282 byte192015-10-07 19:56:07 (UTC)
    lib/Local/Driver/Exception/FailedToStartServerException.jsFailedToStartServerException50 %1/2367 byte172015-09-04 12:48:20 (UTC)
    lib/Local/Driver/Exception/ServerAlreadyRunningException.jsServerAlreadyRunningException50 %1/2331 byte162015-09-04 12:48:20 (UTC)
    lib/Local/Driver/Exception/ServerTtsExceededException.jsServerTtsExceededException50 %1/2349 byte172015-09-04 12:48:20 (UTC)
    lib/Local/Driver/LocalDynamo.jsLocalDynamo75 %3/41833 byte882015-09-06 11:48:03 (UTC)
    lib/Local/Driver/PathAwareDriver.jsPathAwareDriver80 %4/5834 byte502015-09-06 12:02:24 (UTC)
    lib/Vogels/Exceptions/Exception.jsException100 %2/2297 byte192015-09-04 12:52:16 (UTC)
    lib/Vogels/Exceptions/InvalidArgumentException.jsInvalidArgumentException100 %2/2462 byte222015-09-04 12:52:16 (UTC)
    lib/Vogels/Exceptions/UndefinedMethodException.jsUndefinedMethodException100 %2/2406 byte202015-09-04 12:52:16 (UTC)
    lib/Vogels/ExtendModel.jsExtendModel100 %8/86826 byte2742015-09-04 11:51:00 (UTC)
    lib/bootstrap.js--165 byte112015-09-04 12:52:16 (UTC)
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-di/ast/source/DI.js.json b/docs-api/deep-di/ast/source/DI.js.json new file mode 100644 index 00000000..efa446bf --- /dev/null +++ b/docs-api/deep-di/ast/source/DI.js.json @@ -0,0 +1,3347 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 43, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 43, + 56 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 5/26/2015\n ", + "range": [ + 0, + 41 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Bottle", + "range": [ + 65, + 71 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + }, + "range": [ + 65, + 71 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "bottlejs", + "raw": "'bottlejs'", + "range": [ + 77, + 87 + ], + "loc": { + "start": { + "line": 7, + "column": 19 + }, + "end": { + "line": 7, + "column": 29 + } + } + }, + "range": [ + 58, + 88 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 30 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "MissingServiceException", + "range": [ + 97, + 120 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 31 + } + } + }, + "imported": { + "type": "Identifier", + "name": "MissingServiceException", + "range": [ + 97, + 120 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 31 + } + } + }, + "range": [ + 97, + 120 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 31 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/MissingServiceException", + "raw": "'./Exception/MissingServiceException'", + "range": [ + 127, + 164 + ], + "loc": { + "start": { + "line": 8, + "column": 38 + }, + "end": { + "line": 8, + "column": 75 + } + } + }, + "range": [ + 89, + 165 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 76 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 173, + 177 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 11 + } + } + }, + "range": [ + 173, + 177 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 183, + 194 + ], + "loc": { + "start": { + "line": 9, + "column": 17 + }, + "end": { + "line": 9, + "column": 28 + } + } + }, + "range": [ + 166, + 195 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Deep dependency injection module\n ", + "range": [ + 197, + 240 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "DI", + "range": [ + 254, + 256 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 15 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 261, + 272 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 15, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 281, + 285 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_bottle", + "range": [ + 286, + 293 + ], + "loc": { + "start": { + "line": 16, + "column": 9 + }, + "end": { + "line": 16, + "column": 16 + } + } + }, + "range": [ + 281, + 293 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 16 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Bottle", + "range": [ + 300, + 306 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 16, + "column": 29 + } + } + }, + "arguments": [], + "range": [ + 296, + 308 + ], + "loc": { + "start": { + "line": 16, + "column": 19 + }, + "end": { + "line": 16, + "column": 31 + } + } + }, + "range": [ + 281, + 308 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 31 + } + } + }, + "range": [ + 281, + 309 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 32 + } + } + } + ], + "range": [ + 275, + 313 + ], + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 17, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 272, + 313 + ], + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 17, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 261, + 313 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 17, + "column": 3 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Registers a service to container\n *\n * @param {String} serviceName\n * @param {Object} serviceClass\n * @param {String[]} dependencies\n ", + "range": [ + 317, + 472 + ], + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "register", + "range": [ + 475, + 483 + ], + "loc": { + "start": { + "line": 26, + "column": 2 + }, + "end": { + "line": 26, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "serviceName", + "range": [ + 484, + 495 + ], + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 22 + } + } + }, + { + "type": "Identifier", + "name": "serviceClass", + "range": [ + 497, + 509 + ], + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 36 + } + } + }, + { + "type": "Identifier", + "name": "dependencies", + "range": [ + 511, + 523 + ], + "loc": { + "start": { + "line": 26, + "column": 38 + }, + "end": { + "line": 26, + "column": 50 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "args", + "range": [ + 535, + 539 + ], + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 12 + } + } + }, + "init": { + "type": "ArrayExpression", + "elements": [ + { + "type": "Identifier", + "name": "serviceName", + "range": [ + 543, + 554 + ], + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 27 + } + } + }, + { + "type": "Identifier", + "name": "serviceClass", + "range": [ + 556, + 568 + ], + "loc": { + "start": { + "line": 27, + "column": 29 + }, + "end": { + "line": 27, + "column": 41 + } + } + } + ], + "range": [ + 542, + 569 + ], + "loc": { + "start": { + "line": 27, + "column": 15 + }, + "end": { + "line": 27, + "column": 42 + } + } + }, + "range": [ + 535, + 569 + ], + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 42 + } + } + } + ], + "kind": "var", + "range": [ + 531, + 570 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 43 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "dependencies", + "range": [ + 580, + 592 + ], + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 20 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "args", + "range": [ + 602, + 606 + ], + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 10 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "args", + "range": [ + 609, + 613 + ], + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "concat", + "range": [ + 614, + 620 + ], + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 24 + } + } + }, + "range": [ + 609, + 620 + ], + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "dependencies", + "range": [ + 621, + 633 + ], + "loc": { + "start": { + "line": 30, + "column": 25 + }, + "end": { + "line": 30, + "column": 37 + } + } + } + ], + "range": [ + 609, + 634 + ], + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 38 + } + } + }, + "range": [ + 602, + 634 + ], + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 38 + } + } + }, + "range": [ + 602, + 635 + ], + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 39 + } + } + } + ], + "range": [ + 594, + 641 + ], + "loc": { + "start": { + "line": 29, + "column": 22 + }, + "end": { + "line": 31, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 576, + 641 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 31, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 647, + 651 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_bottle", + "range": [ + 652, + 659 + ], + "loc": { + "start": { + "line": 33, + "column": 9 + }, + "end": { + "line": 33, + "column": 16 + } + } + }, + "range": [ + 647, + 659 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "service", + "range": [ + 660, + 667 + ], + "loc": { + "start": { + "line": 33, + "column": 17 + }, + "end": { + "line": 33, + "column": 24 + } + } + }, + "range": [ + 647, + 667 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "apply", + "range": [ + 668, + 673 + ], + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 30 + } + } + }, + "range": [ + 647, + 673 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 674, + 678 + ], + "loc": { + "start": { + "line": 33, + "column": 31 + }, + "end": { + "line": 33, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "_bottle", + "range": [ + 679, + 686 + ], + "loc": { + "start": { + "line": 33, + "column": 36 + }, + "end": { + "line": 33, + "column": 43 + } + } + }, + "range": [ + 674, + 686 + ], + "loc": { + "start": { + "line": 33, + "column": 31 + }, + "end": { + "line": 33, + "column": 43 + } + } + }, + { + "type": "Identifier", + "name": "args", + "range": [ + 688, + 692 + ], + "loc": { + "start": { + "line": 33, + "column": 45 + }, + "end": { + "line": 33, + "column": 49 + } + } + } + ], + "range": [ + 647, + 693 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 50 + } + } + }, + "range": [ + 647, + 694 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 51 + } + } + } + ], + "range": [ + 525, + 698 + ], + "loc": { + "start": { + "line": 26, + "column": 52 + }, + "end": { + "line": 34, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 483, + 698 + ], + "loc": { + "start": { + "line": 26, + "column": 10 + }, + "end": { + "line": 34, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 475, + 698 + ], + "loc": { + "start": { + "line": 26, + "column": 2 + }, + "end": { + "line": 34, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Registers a service to container\n *\n * @param {String} serviceName\n * @param {Object} serviceClass\n * @param {String[]} dependencies\n ", + "range": [ + 317, + 472 + ], + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Defines a factory method to create a service\n *\n * @param {String} serviceName\n * @param {Object} factoryClass\n ", + "range": [ + 702, + 833 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "factory", + "range": [ + 836, + 843 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 42, + "column": 9 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "serviceName", + "range": [ + 844, + 855 + ], + "loc": { + "start": { + "line": 42, + "column": 10 + }, + "end": { + "line": 42, + "column": 21 + } + } + }, + { + "type": "Identifier", + "name": "factoryClass", + "range": [ + 857, + 869 + ], + "loc": { + "start": { + "line": 42, + "column": 23 + }, + "end": { + "line": 42, + "column": 35 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 877, + 881 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_bottle", + "range": [ + 882, + 889 + ], + "loc": { + "start": { + "line": 43, + "column": 9 + }, + "end": { + "line": 43, + "column": 16 + } + } + }, + "range": [ + 877, + 889 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "factory", + "range": [ + 890, + 897 + ], + "loc": { + "start": { + "line": 43, + "column": 17 + }, + "end": { + "line": 43, + "column": 24 + } + } + }, + "range": [ + 877, + 897 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "serviceName", + "range": [ + 898, + 909 + ], + "loc": { + "start": { + "line": 43, + "column": 25 + }, + "end": { + "line": 43, + "column": 36 + } + } + }, + { + "type": "Identifier", + "name": "factoryClass", + "range": [ + 911, + 923 + ], + "loc": { + "start": { + "line": 43, + "column": 38 + }, + "end": { + "line": 43, + "column": 50 + } + } + } + ], + "range": [ + 877, + 924 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 51 + } + } + }, + "range": [ + 877, + 925 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 52 + } + } + } + ], + "range": [ + 871, + 929 + ], + "loc": { + "start": { + "line": 42, + "column": 37 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 843, + 929 + ], + "loc": { + "start": { + "line": 42, + "column": 9 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 836, + 929 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Defines a factory method to create a service\n *\n * @param {String} serviceName\n * @param {Object} factoryClass\n ", + "range": [ + 702, + 833 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Adds a parameter into container\n *\n * @param {String} name\n * @param {*} value\n ", + "range": [ + 933, + 1032 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 51, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "addParameter", + "range": [ + 1035, + 1047 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 52, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1048, + 1052 + ], + "loc": { + "start": { + "line": 52, + "column": 15 + }, + "end": { + "line": 52, + "column": 19 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 1054, + 1059 + ], + "loc": { + "start": { + "line": 52, + "column": 21 + }, + "end": { + "line": 52, + "column": 26 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1067, + 1071 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_bottle", + "range": [ + 1072, + 1079 + ], + "loc": { + "start": { + "line": 53, + "column": 9 + }, + "end": { + "line": 53, + "column": 16 + } + } + }, + "range": [ + 1067, + 1079 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "value", + "range": [ + 1080, + 1085 + ], + "loc": { + "start": { + "line": 53, + "column": 17 + }, + "end": { + "line": 53, + "column": 22 + } + } + }, + "range": [ + 1067, + 1085 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1086, + 1090 + ], + "loc": { + "start": { + "line": 53, + "column": 23 + }, + "end": { + "line": 53, + "column": 27 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 1092, + 1097 + ], + "loc": { + "start": { + "line": 53, + "column": 29 + }, + "end": { + "line": 53, + "column": 34 + } + } + } + ], + "range": [ + 1067, + 1098 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 35 + } + } + }, + "range": [ + 1067, + 1099 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 36 + } + } + } + ], + "range": [ + 1061, + 1103 + ], + "loc": { + "start": { + "line": 52, + "column": 28 + }, + "end": { + "line": 54, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1047, + 1103 + ], + "loc": { + "start": { + "line": 52, + "column": 14 + }, + "end": { + "line": 54, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1035, + 1103 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 54, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Adds a parameter into container\n *\n * @param {String} name\n * @param {*} value\n ", + "range": [ + 933, + 1032 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 51, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Adds an instantiated service into container\n *\n * @param {String} name\n * @param {Object} value\n ", + "range": [ + 1107, + 1223 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 61, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "addService", + "range": [ + 1226, + 1236 + ], + "loc": { + "start": { + "line": 62, + "column": 2 + }, + "end": { + "line": 62, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1237, + 1241 + ], + "loc": { + "start": { + "line": 62, + "column": 13 + }, + "end": { + "line": 62, + "column": 17 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 1243, + 1248 + ], + "loc": { + "start": { + "line": 62, + "column": 19 + }, + "end": { + "line": 62, + "column": 24 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "Identifier", + "name": "value", + "range": [ + 1262, + 1267 + ], + "loc": { + "start": { + "line": 63, + "column": 10 + }, + "end": { + "line": 63, + "column": 15 + } + } + }, + "right": { + "type": "Identifier", + "name": "Object", + "range": [ + 1279, + 1285 + ], + "loc": { + "start": { + "line": 63, + "column": 27 + }, + "end": { + "line": 63, + "column": 33 + } + } + }, + "range": [ + 1262, + 1285 + ], + "loc": { + "start": { + "line": 63, + "column": 10 + }, + "end": { + "line": 63, + "column": 33 + } + } + }, + "prefix": true, + "range": [ + 1260, + 1286 + ], + "loc": { + "start": { + "line": 63, + "column": 8 + }, + "end": { + "line": 63, + "column": 34 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 1306, + 1310 + ], + "loc": { + "start": { + "line": 64, + "column": 16 + }, + "end": { + "line": 64, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 1311, + 1320 + ], + "loc": { + "start": { + "line": 64, + "column": 21 + }, + "end": { + "line": 64, + "column": 30 + } + } + }, + "range": [ + 1306, + 1320 + ], + "loc": { + "start": { + "line": 64, + "column": 16 + }, + "end": { + "line": 64, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 1321, + 1345 + ], + "loc": { + "start": { + "line": 64, + "column": 31 + }, + "end": { + "line": 64, + "column": 55 + } + } + }, + "range": [ + 1306, + 1345 + ], + "loc": { + "start": { + "line": 64, + "column": 16 + }, + "end": { + "line": 64, + "column": 55 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "value", + "range": [ + 1346, + 1351 + ], + "loc": { + "start": { + "line": 64, + "column": 56 + }, + "end": { + "line": 64, + "column": 61 + } + } + }, + { + "type": "Literal", + "value": "Object", + "raw": "'Object'", + "range": [ + 1353, + 1361 + ], + "loc": { + "start": { + "line": 64, + "column": 63 + }, + "end": { + "line": 64, + "column": 71 + } + } + } + ], + "range": [ + 1302, + 1362 + ], + "loc": { + "start": { + "line": 64, + "column": 12 + }, + "end": { + "line": 64, + "column": 72 + } + } + }, + "range": [ + 1296, + 1363 + ], + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 73 + } + } + } + ], + "range": [ + 1288, + 1369 + ], + "loc": { + "start": { + "line": 63, + "column": 36 + }, + "end": { + "line": 65, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1256, + 1369 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 65, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1375, + 1379 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_bottle", + "range": [ + 1380, + 1387 + ], + "loc": { + "start": { + "line": 67, + "column": 9 + }, + "end": { + "line": 67, + "column": 16 + } + } + }, + "range": [ + 1375, + 1387 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "value", + "range": [ + 1388, + 1393 + ], + "loc": { + "start": { + "line": 67, + "column": 17 + }, + "end": { + "line": 67, + "column": 22 + } + } + }, + "range": [ + 1375, + 1393 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1394, + 1398 + ], + "loc": { + "start": { + "line": 67, + "column": 23 + }, + "end": { + "line": 67, + "column": 27 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 1400, + 1405 + ], + "loc": { + "start": { + "line": 67, + "column": 29 + }, + "end": { + "line": 67, + "column": 34 + } + } + } + ], + "range": [ + 1375, + 1406 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 35 + } + } + }, + "range": [ + 1375, + 1407 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 36 + } + } + } + ], + "range": [ + 1250, + 1411 + ], + "loc": { + "start": { + "line": 62, + "column": 26 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1236, + 1411 + ], + "loc": { + "start": { + "line": 62, + "column": 12 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1226, + 1411 + ], + "loc": { + "start": { + "line": 62, + "column": 2 + }, + "end": { + "line": 68, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Adds an instantiated service into container\n *\n * @param {String} name\n * @param {Object} value\n ", + "range": [ + 1107, + 1223 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 61, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Returns a service / parameter from container\n *\n * @returns {Object}\n ", + "range": [ + 1415, + 1502 + ], + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "get", + "range": [ + 1505, + 1508 + ], + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 75, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1509, + 1512 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 9 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1531, + 1535 + ], + "loc": { + "start": { + "line": 76, + "column": 15 + }, + "end": { + "line": 76, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "_bottle", + "range": [ + 1536, + 1543 + ], + "loc": { + "start": { + "line": 76, + "column": 20 + }, + "end": { + "line": 76, + "column": 27 + } + } + }, + "range": [ + 1531, + 1543 + ], + "loc": { + "start": { + "line": 76, + "column": 15 + }, + "end": { + "line": 76, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "container", + "range": [ + 1544, + 1553 + ], + "loc": { + "start": { + "line": 76, + "column": 28 + }, + "end": { + "line": 76, + "column": 37 + } + } + }, + "range": [ + 1531, + 1553 + ], + "loc": { + "start": { + "line": 76, + "column": 15 + }, + "end": { + "line": 76, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 1554, + 1557 + ], + "loc": { + "start": { + "line": 76, + "column": 38 + }, + "end": { + "line": 76, + "column": 41 + } + } + }, + "range": [ + 1531, + 1558 + ], + "loc": { + "start": { + "line": 76, + "column": 15 + }, + "end": { + "line": 76, + "column": 42 + } + } + }, + "prefix": true, + "range": [ + 1524, + 1558 + ], + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 42 + } + } + }, + "right": { + "type": "Literal", + "value": "undefined", + "raw": "'undefined'", + "range": [ + 1563, + 1574 + ], + "loc": { + "start": { + "line": 76, + "column": 47 + }, + "end": { + "line": 76, + "column": 58 + } + } + }, + "range": [ + 1524, + 1574 + ], + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 58 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "MissingServiceException", + "range": [ + 1594, + 1617 + ], + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 39 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Unregistered service or parameter \"", + "cooked": "Unregistered service or parameter \"" + }, + "tail": false, + "range": [ + 1618, + 1656 + ], + "loc": { + "start": { + "line": 77, + "column": 40 + }, + "end": { + "line": 77, + "column": 78 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "\"", + "cooked": "\"" + }, + "tail": true, + "range": [ + 1659, + 1662 + ], + "loc": { + "start": { + "line": 77, + "column": 81 + }, + "end": { + "line": 77, + "column": 84 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1656, + 1659 + ], + "loc": { + "start": { + "line": 77, + "column": 78 + }, + "end": { + "line": 77, + "column": 81 + } + } + } + ], + "range": [ + 1618, + 1662 + ], + "loc": { + "start": { + "line": 77, + "column": 40 + }, + "end": { + "line": 77, + "column": 84 + } + } + } + ], + "range": [ + 1590, + 1663 + ], + "loc": { + "start": { + "line": 77, + "column": 12 + }, + "end": { + "line": 77, + "column": 85 + } + } + }, + "range": [ + 1584, + 1664 + ], + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 77, + "column": 86 + } + } + } + ], + "range": [ + 1576, + 1670 + ], + "loc": { + "start": { + "line": 76, + "column": 60 + }, + "end": { + "line": 78, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1520, + 1670 + ], + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 78, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1683, + 1687 + ], + "loc": { + "start": { + "line": 80, + "column": 11 + }, + "end": { + "line": 80, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_bottle", + "range": [ + 1688, + 1695 + ], + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 80, + "column": 23 + } + } + }, + "range": [ + 1683, + 1695 + ], + "loc": { + "start": { + "line": 80, + "column": 11 + }, + "end": { + "line": 80, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "container", + "range": [ + 1696, + 1705 + ], + "loc": { + "start": { + "line": 80, + "column": 24 + }, + "end": { + "line": 80, + "column": 33 + } + } + }, + "range": [ + 1683, + 1705 + ], + "loc": { + "start": { + "line": 80, + "column": 11 + }, + "end": { + "line": 80, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 1706, + 1709 + ], + "loc": { + "start": { + "line": 80, + "column": 34 + }, + "end": { + "line": 80, + "column": 37 + } + } + }, + "range": [ + 1683, + 1710 + ], + "loc": { + "start": { + "line": 80, + "column": 11 + }, + "end": { + "line": 80, + "column": 38 + } + } + }, + "range": [ + 1676, + 1711 + ], + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 39 + } + } + } + ], + "range": [ + 1514, + 1715 + ], + "loc": { + "start": { + "line": 75, + "column": 11 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1508, + 1715 + ], + "loc": { + "start": { + "line": 75, + "column": 5 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1505, + 1715 + ], + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 81, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Returns a service / parameter from container\n *\n * @returns {Object}\n ", + "range": [ + 1415, + 1502 + ], + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 257, + 1717 + ], + "loc": { + "start": { + "line": 14, + "column": 16 + }, + "end": { + "line": 82, + "column": 1 + } + } + }, + "range": [ + 248, + 1717 + ], + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 82, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Deep dependency injection module\n ", + "range": [ + 197, + 240 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 241, + 1717 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 82, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Deep dependency injection module\n ", + "range": [ + 197, + 240 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 43, + 1717 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 82, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 5/26/2015\n ", + "range": [ + 0, + 41 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Deep dependency injection module\n ", + "range": [ + 197, + 240 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Registers a service to container\n *\n * @param {String} serviceName\n * @param {Object} serviceClass\n * @param {String[]} dependencies\n ", + "range": [ + 317, + 472 + ], + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 25, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Defines a factory method to create a service\n *\n * @param {String} serviceName\n * @param {Object} factoryClass\n ", + "range": [ + 702, + 833 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Adds a parameter into container\n *\n * @param {String} name\n * @param {*} value\n ", + "range": [ + 933, + 1032 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 51, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Adds an instantiated service into container\n *\n * @param {String} name\n * @param {Object} value\n ", + "range": [ + 1107, + 1223 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 61, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Returns a service / parameter from container\n *\n * @returns {Object}\n ", + "range": [ + 1415, + 1502 + ], + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-di/ast/source/Exception/Exception.js.json b/docs-api/deep-di/ast/source/Exception/Exception.js.json new file mode 100644 index 00000000..a5724794 --- /dev/null +++ b/docs-api/deep-di/ast/source/Exception/Exception.js.json @@ -0,0 +1,651 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 149, + 158 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 167, + 171 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 172, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "range": [ + 167, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 182, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "range": [ + 167, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 233, + 244 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 248, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 245, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 260, + 265 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 269, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 266, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 260, + 274 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 260, + 275 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 254, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 244, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 233, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 192, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 143, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 136, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 281 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-di/ast/source/Exception/MissingServiceException.js.json b/docs-api/deep-di/ast/source/Exception/MissingServiceException.js.json new file mode 100644 index 00000000..01273cad --- /dev/null +++ b/docs-api/deep-di/ast/source/Exception/MissingServiceException.js.json @@ -0,0 +1,628 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested service is missing\n ", + "range": [ + 101, + 152 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "MissingServiceException", + "range": [ + 166, + 189 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 36 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 198, + 207 + ], + "loc": { + "start": { + "line": 12, + "column": 45 + }, + "end": { + "line": 12, + "column": 54 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 257, + 268 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "serviceName", + "range": [ + 269, + 280 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 288, + 293 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Missing service ", + "cooked": "Missing service " + }, + "tail": false, + "range": [ + 294, + 313 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 29 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " in deep-kernel", + "cooked": " in deep-kernel" + }, + "tail": true, + "range": [ + 324, + 341 + ], + "loc": { + "start": { + "line": 17, + "column": 40 + }, + "end": { + "line": 17, + "column": 57 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "serviceName", + "range": [ + 313, + 324 + ], + "loc": { + "start": { + "line": 17, + "column": 29 + }, + "end": { + "line": 17, + "column": 40 + } + } + } + ], + "range": [ + 294, + 341 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 57 + } + } + } + ], + "range": [ + 288, + 342 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 58 + } + } + }, + "range": [ + 288, + 343 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 59 + } + } + } + ], + "range": [ + 282, + 347 + ], + "loc": { + "start": { + "line": 16, + "column": 27 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 268, + 347 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 257, + 347 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} serviceName\n ", + "range": [ + 212, + 254 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 208, + 349 + ], + "loc": { + "start": { + "line": 12, + "column": 55 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 160, + 349 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested service is missing\n ", + "range": [ + 101, + 152 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 153, + 349 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested service is missing\n ", + "range": [ + 101, + 152 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 349 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when requested service is missing\n ", + "range": [ + 101, + 152 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} serviceName\n ", + "range": [ + 212, + 254 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-di/ast/source/bootstrap.js.json b/docs-api/deep-di/ast/source/bootstrap.js.json new file mode 100644 index 00000000..37b15a82 --- /dev/null +++ b/docs-api/deep-di/ast/source/bootstrap.js.json @@ -0,0 +1,332 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 89, + 101 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + "range": [ + 89, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "DI", + "range": [ + 112, + 114 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 10 + } + } + }, + "imported": { + "type": "Identifier", + "name": "DI", + "range": [ + 112, + 114 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 10 + } + } + }, + "range": [ + 112, + 114 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 10 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./DI", + "raw": "'./DI'", + "range": [ + 121, + 127 + ], + "loc": { + "start": { + "line": 9, + "column": 17 + }, + "end": { + "line": 9, + "column": 23 + } + } + }, + "range": [ + 104, + 128 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 24 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "exports", + "range": [ + 134, + 141 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + "init": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "module", + "range": [ + 144, + 150 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exports", + "range": [ + 151, + 158 + ], + "loc": { + "start": { + "line": 11, + "column": 21 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "range": [ + 144, + 158 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "right": { + "type": "Identifier", + "name": "DI", + "range": [ + 161, + 163 + ], + "loc": { + "start": { + "line": 11, + "column": 31 + }, + "end": { + "line": 11, + "column": 33 + } + } + }, + "range": [ + 144, + 163 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 33 + } + } + }, + "range": [ + 134, + 163 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 33 + } + } + } + ], + "kind": "let", + "range": [ + 130, + 164 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 34 + } + } + } + ], + "sourceType": "module", + "range": [ + 89, + 164 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 11, + "column": 34 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-di/badge.svg b/docs-api/deep-di/badge.svg new file mode 100644 index 00000000..7d3502ee --- /dev/null +++ b/docs-api/deep-di/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 90% + 90% + + diff --git a/docs-api/deep-di/class/lib/DI.js~DI.html b/docs-api/deep-di/class/lib/DI.js~DI.html new file mode 100644 index 00000000..fdabaeaf --- /dev/null +++ b/docs-api/deep-di/class/lib/DI.js~DI.html @@ -0,0 +1,637 @@ + + + + + + DI | DEEP Dependency Injection Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {DI} from 'deep-di/lib/DI.js'
    + public + class + + + + | source +
    + +
    +

    DI

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

    Deep dependency injection module

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Method Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + addParameter(name: String, value: *) +

    +
    +
    + + +
    Adds a parameter into container
    +
    +
    + + +
    + public + + + + + +
    +

    + addService(name: String, value: Object) +

    +
    +
    + + +
    Adds an instantiated service into container
    +
    +
    + + +
    + public + + + + + +
    +

    + factory(serviceName: String, factoryClass: Object) +

    +
    +
    + + +
    Defines a factory method to create a service
    +
    +
    + + +
    + public + + + + + +
    +

    + get(key: *): Object +

    +
    +
    + + +
    Returns a service / parameter from container
    +
    +
    + + +
    + public + + + + + +
    +

    + register(serviceName: String, serviceClass: Object, dependencies: String[]) +

    +
    +
    + + +
    Registers a service to container
    +
    +
    + + +
    +
    + + + + + +

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

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

    Public Methods

    + +
    +

    + public + + + + + addParameter(name: String, value: *) + + + + source + +

    + + + + +

    Adds a parameter into container

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    nameString
    value*
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    + public + + + + + addService(name: String, value: Object) + + + + source + +

    + + + + +

    Adds an instantiated service into container

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    nameString
    valueObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    + public + + + + + factory(serviceName: String, factoryClass: Object) + + + + source + +

    + + + + +

    Defines a factory method to create a service

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    serviceNameString
    factoryClassObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    + public + + + + + get(key: *): Object + + + + source + +

    + + + + +

    Returns a service / parameter from container

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    key*
    +
    +
    + +
    +

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + register(serviceName: String, serviceClass: Object, dependencies: String[]) + + + + source + +

    + + + + +

    Registers a service to container

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    serviceNameString
    serviceClassObject
    dependenciesString[]
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-di/class/lib/Exception/Exception.js~Exception.html b/docs-api/deep-di/class/lib/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..601cfa10 --- /dev/null +++ b/docs-api/deep-di/class/lib/Exception/Exception.js~Exception.html @@ -0,0 +1,195 @@ + + + + + + Exception | DEEP Dependency Injection Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Exception} from 'deep-di/lib/Exception/Exception.js'
    + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    deep-core~Core.Exception.Exception → Exception
    + + + + + + + + + +

    Thrown when any exception occurs

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-di/class/lib/Exception/MissingServiceException.js~MissingServiceException.html b/docs-api/deep-di/class/lib/Exception/MissingServiceException.js~MissingServiceException.html new file mode 100644 index 00000000..a2afbc89 --- /dev/null +++ b/docs-api/deep-di/class/lib/Exception/MissingServiceException.js~MissingServiceException.html @@ -0,0 +1,195 @@ + + + + + + MissingServiceException | DEEP Dependency Injection Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {MissingServiceException} from 'deep-di/lib/Exception/MissingServiceException.js'
    + public + class + + + + | source +
    + +
    +

    MissingServiceException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → MissingServiceException
    + + + + + + + + + +

    Thrown when requested service is missing

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(serviceName: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(serviceName: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    serviceNameString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-di/coverage.json b/docs-api/deep-di/coverage.json new file mode 100644 index 00000000..0a8306ac --- /dev/null +++ b/docs-api/deep-di/coverage.json @@ -0,0 +1,24 @@ +{ + "coverage": "90.9%", + "expectCount": 11, + "actualCount": 10, + "files": { + "lib/DI.js": { + "expectCount": 7, + "actualCount": 6, + "undocumentLines": [ + 15 + ] + }, + "lib/Exception/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Exception/MissingServiceException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/docs-api/deep-di/css/prettify-tomorrow.css b/docs-api/deep-di/css/prettify-tomorrow.css new file mode 100644 index 00000000..b6f92a78 --- /dev/null +++ b/docs-api/deep-di/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs-api/deep-di/css/style.css b/docs-api/deep-di/css/style.css new file mode 100644 index 00000000..4dc99a1b --- /dev/null +++ b/docs-api/deep-di/css/style.css @@ -0,0 +1,862 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Roboto', sans-serif; + overflow: auto; + font-size: 14px; + /*color: #4d4e53;*/ + color: rgba(0, 0, 0, .68); + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + background-color: #E2E2E2; + padding: 4px; + font-weight: 300; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 19px; +} + +p > code { + background-color: #f5f5f5; + border-radius: 3px; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0 4px; + border-radius: 3px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: white; + top: 0; + border-bottom: solid 1px #E02130; +} +.layout-container > header > a{ + margin: 0 5px; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid rgba(0, 0, 0, 0.1); +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation .nav-dir-path { + margin-top: 0.7em; + margin-bottom: 0.25em; + font-size: 0.8em; + color: #aaa; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #999; + color: white; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +pre.source-code { + background: #f5f5f5; + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150); +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #999; + color: white; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} + +table.test-summary thead { + background: #999; + color: white; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-describe .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; +} + +table.test-summary tr.test-describe .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-describe .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} + +.inner-link-active { + background: rgb(255, 255, 150); +} + +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + +/* coverage badge */ +.esdoc-coverage { + display: inline-block; + height: 20px; + vertical-align: top; +} + +h1 .esdoc-coverage { + position: relative; + top: -4px; +} + +.esdoc-coverage-wrap { + color: white; + font-size: 12px; + font-weight: 500; +} + +.esdoc-coverage-label { + padding: 3px 4px 3px 6px; + background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%); + border-radius: 4px 0 0 4px; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-ratio { + padding: 3px 6px 3px 4px; + border-radius: 0 4px 4px 0; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-low { + background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%); +} + +.esdoc-coverage-middle { + background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%); +} + +.esdoc-coverage-high { + background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%); +} + +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; + background-color: transparent; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} diff --git a/docs-api/deep-di/dump.json b/docs-api/deep-di/dump.json new file mode 100644 index 00000000..dac31e9b --- /dev/null +++ b/docs-api/deep-di/dump.json @@ -0,0 +1,1028 @@ +[ + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/DI.js", + "memberof": null, + "longname": "lib/DI.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 5/26/2015\n */\n\n'use strict';\n\nimport Bottle from 'bottlejs';\nimport {MissingServiceException} from './Exception/MissingServiceException';\nimport Core from 'deep-core';\n\n/**\n * Deep dependency injection module\n */\nexport class DI {\n constructor() {\n this._bottle = new Bottle();\n }\n\n /**\n * Registers a service to container\n *\n * @param {String} serviceName\n * @param {Object} serviceClass\n * @param {String[]} dependencies\n */\n register(serviceName, serviceClass, dependencies) {\n var args = [serviceName, serviceClass];\n\n if (dependencies) {\n args = args.concat(dependencies);\n }\n\n this._bottle.service.apply(this._bottle, args);\n }\n\n /**\n * Defines a factory method to create a service\n *\n * @param {String} serviceName\n * @param {Object} factoryClass\n */\n factory(serviceName, factoryClass) {\n this._bottle.factory(serviceName, factoryClass);\n }\n\n /**\n * Adds a parameter into container\n *\n * @param {String} name\n * @param {*} value\n */\n addParameter(name, value) {\n this._bottle.value(name, value);\n }\n\n /**\n * Adds an instantiated service into container\n *\n * @param {String} name\n * @param {Object} value\n */\n addService(name, value) {\n if (!(value instanceof Object)) {\n throw new Core.Exception.InvalidArgumentException(value, 'Object');\n }\n\n this._bottle.value(name, value);\n }\n\n /**\n * Returns a service / parameter from container\n *\n * @returns {Object}\n */\n get(key) {\n if (typeof this._bottle.container[key] === 'undefined') {\n throw new MissingServiceException(`Unregistered service or parameter \"${key}\"`);\n }\n\n return this._bottle.container[key];\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "DI", + "memberof": "lib/DI.js", + "longname": "lib/DI.js~DI", + "access": null, + "export": true, + "importPath": "deep-di/lib/DI.js", + "importStyle": "{DI}", + "description": "Deep dependency injection module", + "lineNumber": 14, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/DI.js~DI", + "longname": "lib/DI.js~DI#constructor", + "access": null, + "description": null, + "lineNumber": 15, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_bottle", + "memberof": "lib/DI.js~DI", + "longname": "lib/DI.js~DI#_bottle", + "access": null, + "description": null, + "lineNumber": 16, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "register", + "memberof": "lib/DI.js~DI", + "longname": "lib/DI.js~DI#register", + "access": null, + "description": "Registers a service to container", + "lineNumber": 26, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "serviceName", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "serviceClass", + "description": "" + }, + { + "nullable": null, + "types": [ + "String[]" + ], + "spread": false, + "optional": false, + "name": "dependencies", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "factory", + "memberof": "lib/DI.js~DI", + "longname": "lib/DI.js~DI#factory", + "access": null, + "description": "Defines a factory method to create a service", + "lineNumber": 42, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "serviceName", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "factoryClass", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "addParameter", + "memberof": "lib/DI.js~DI", + "longname": "lib/DI.js~DI#addParameter", + "access": null, + "description": "Adds a parameter into container", + "lineNumber": 52, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "value", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "addService", + "memberof": "lib/DI.js~DI", + "longname": "lib/DI.js~DI#addService", + "access": null, + "description": "Adds an instantiated service into container", + "lineNumber": 62, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "value", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "get", + "memberof": "lib/DI.js~DI", + "longname": "lib/DI.js~DI#get", + "access": null, + "description": "Returns a service / parameter from container", + "lineNumber": 75, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [ + { + "name": "key", + "types": [ + "*" + ] + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/Exception.js", + "memberof": null, + "longname": "lib/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\n\n/**\n * Thrown when any exception occurs\n */\nexport class Exception extends Core.Exception.Exception {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Exception/Exception.js", + "longname": "lib/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-di/lib/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Thrown when any exception occurs", + "lineNumber": 12, + "interface": false, + "extends": [ + "deep-core~Core.Exception.Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/Exception.js~Exception", + "longname": "lib/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/MissingServiceException.js", + "memberof": null, + "longname": "lib/Exception/MissingServiceException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when requested service is missing\n */\nexport class MissingServiceException extends Exception {\n /**\n * @param {String} serviceName\n */\n constructor(serviceName) {\n super(`Missing service ${serviceName} in deep-kernel`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "MissingServiceException", + "memberof": "lib/Exception/MissingServiceException.js", + "longname": "lib/Exception/MissingServiceException.js~MissingServiceException", + "access": null, + "export": true, + "importPath": "deep-di/lib/Exception/MissingServiceException.js", + "importStyle": "{MissingServiceException}", + "description": "Thrown when requested service is missing", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/MissingServiceException.js~MissingServiceException", + "longname": "lib/Exception/MissingServiceException.js~MissingServiceException#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "serviceName", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/bootstrap.js", + "memberof": null, + "longname": "lib/bootstrap.js", + "access": null, + "description": null, + "lineNumber": 7, + "content": "/**\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n */\n\n'use strict';\n\nimport {DI} from './DI';\n\nlet exports = module.exports = DI;\n" + }, + { + "kind": "variable", + "static": true, + "variation": null, + "name": "exports", + "memberof": "lib/bootstrap.js", + "longname": "lib/bootstrap.js~exports", + "access": null, + "export": false, + "importPath": "deep-di/lib/bootstrap.js", + "importStyle": null, + "description": null, + "lineNumber": 11, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~null", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Error", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Date", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~String", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~string", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Map", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Set", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "CanvasRenderingContext2D", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DocumentFragment", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Element", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Element", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Event", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Event", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Node", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Node", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NodeList", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~NodeList", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "XMLHttpRequest", + "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "access": null, + "description": null, + "builtinExternal": true + } +] \ No newline at end of file diff --git a/docs-api/deep-di/file/lib/DI.js.html b/docs-api/deep-di/file/lib/DI.js.html new file mode 100644 index 00000000..c184c0ff --- /dev/null +++ b/docs-api/deep-di/file/lib/DI.js.html @@ -0,0 +1,139 @@ + + + + + + lib/DI.js | DEEP Dependency Injection Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/DI.js

    +
    /**
    + * Created by mgoria on 5/26/2015
    + */
    +
    +'use strict';
    +
    +import Bottle from 'bottlejs';
    +import {MissingServiceException} from './Exception/MissingServiceException';
    +import Core from 'deep-core';
    +
    +/**
    + * Deep dependency injection module
    + */
    +export class DI {
    +  constructor() {
    +    this._bottle = new Bottle();
    +  }
    +
    +  /**
    +   * Registers a service to container
    +   *
    +   * @param {String} serviceName
    +   * @param {Object} serviceClass
    +   * @param {String[]} dependencies
    +   */
    +  register(serviceName, serviceClass, dependencies) {
    +    var args = [serviceName, serviceClass];
    +
    +    if (dependencies) {
    +      args = args.concat(dependencies);
    +    }
    +
    +    this._bottle.service.apply(this._bottle, args);
    +  }
    +
    +  /**
    +   * Defines a factory method to create a service
    +   *
    +   * @param {String} serviceName
    +   * @param {Object} factoryClass
    +   */
    +  factory(serviceName, factoryClass) {
    +    this._bottle.factory(serviceName, factoryClass);
    +  }
    +
    +  /**
    +   * Adds a parameter into container
    +   *
    +   * @param {String} name
    +   * @param {*} value
    +   */
    +  addParameter(name, value) {
    +    this._bottle.value(name, value);
    +  }
    +
    +  /**
    +   * Adds an instantiated service into container
    +   *
    +   * @param {String} name
    +   * @param {Object} value
    +   */
    +  addService(name, value) {
    +    if (!(value instanceof Object)) {
    +      throw new Core.Exception.InvalidArgumentException(value, 'Object');
    +    }
    +
    +    this._bottle.value(name, value);
    +  }
    +
    +  /**
    +   * Returns a service / parameter from container
    +   *
    +   * @returns {Object}
    +   */
    +  get(key) {
    +    if (typeof this._bottle.container[key] === 'undefined') {
    +      throw new MissingServiceException(`Unregistered service or parameter "${key}"`);
    +    }
    +
    +    return this._bottle.container[key];
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-di/file/lib/Exception/Exception.js.html b/docs-api/deep-di/file/lib/Exception/Exception.js.html new file mode 100644 index 00000000..cd9753d0 --- /dev/null +++ b/docs-api/deep-di/file/lib/Exception/Exception.js.html @@ -0,0 +1,76 @@ + + + + + + lib/Exception/Exception.js | DEEP Dependency Injection Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/Exception.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +
    +/**
    + * Thrown when any exception occurs
    + */
    +export class Exception extends Core.Exception.Exception {
    +  /**
    +   * @param {Array} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-di/file/lib/Exception/MissingServiceException.js.html b/docs-api/deep-di/file/lib/Exception/MissingServiceException.js.html new file mode 100644 index 00000000..ff02e89b --- /dev/null +++ b/docs-api/deep-di/file/lib/Exception/MissingServiceException.js.html @@ -0,0 +1,76 @@ + + + + + + lib/Exception/MissingServiceException.js | DEEP Dependency Injection Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/MissingServiceException.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when requested service is missing
    + */
    +export class MissingServiceException extends Exception {
    +  /**
    +   * @param {String} serviceName
    +   */
    +  constructor(serviceName) {
    +    super(`Missing service ${serviceName} in deep-kernel`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-di/file/lib/bootstrap.js.html b/docs-api/deep-di/file/lib/bootstrap.js.html new file mode 100644 index 00000000..a2f4c819 --- /dev/null +++ b/docs-api/deep-di/file/lib/bootstrap.js.html @@ -0,0 +1,68 @@ + + + + + + lib/bootstrap.js | DEEP Dependency Injection Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/bootstrap.js

    +
    /**
    + * Created by AlexanderC on 5/22/15.
    + *
    + * Bootstrap file loaded by npm as main
    + */
    +
    +'use strict';
    +
    +import {DI} from './DI';
    +
    +let exports = module.exports = DI;
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-di/identifiers.html b/docs-api/deep-di/identifiers.html new file mode 100644 index 00000000..47b0fbd5 --- /dev/null +++ b/docs-api/deep-di/identifiers.html @@ -0,0 +1,141 @@ + + + + + + Index | DEEP Dependency Injection Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Identifier

    +

    Class Summary

    + + + + + + + + + + + + + + + + + + + +
    Static Public Class Summary
    + public + + + + + +
    +

    + DI +

    +
    +
    + + +
    Deep dependency injection module
    +
    +
    + + +
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Thrown when any exception occurs
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when requested service is missing
    +
    +
    + + +
    +
    + + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-di/image/badge.svg b/docs-api/deep-di/image/badge.svg new file mode 100644 index 00000000..324db4c5 --- /dev/null +++ b/docs-api/deep-di/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/docs-api/deep-di/image/github.png b/docs-api/deep-di/image/github.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/docs-api/deep-di/image/github.png differ diff --git a/docs-api/deep-di/image/search.png b/docs-api/deep-di/image/search.png new file mode 100644 index 00000000..f5d84b69 Binary files /dev/null and b/docs-api/deep-di/image/search.png differ diff --git a/docs-api/deep-di/index.html b/docs-api/deep-di/index.html new file mode 100644 index 00000000..bb52d97c --- /dev/null +++ b/docs-api/deep-di/index.html @@ -0,0 +1,189 @@ + + + + + + DEEP Dependency Injection Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    deep-di

    +

    NPM Version +Build Status +Coverage Status +Codacy Badge +API Docs

    +

    deep-di is a node.js library, part of DEEP Framework.

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less.

    +

    DEEP for Businesses Join char on gitter.im

    +

    User Guide Documentation (to be updated later)

    +

    DEEP is enabling small and medium businesses, as well as enterprises to:

    +
      +
    • Rent applications on a monthly basis by needed functionality from DEEP Marketplace
    • +
    • Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS
    • +
    • Pay only for subscribed applications and stop paying when unsubscribing and not using anymore
    • +
    • Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences
    • +
    • Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability
    • +
    +
    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP for Developers Join char on gitter.im

    +

    API Guide Documentation

    +

    Developer Guide Documentation

    +

    DEEP is enabling developers and architects to:

    +
      +
    • Design microservices architecture on top of serverless environments from cloud providers like AWS
    • +
    • Build distributed software that combines and manages hardware and software in the same microservice
    • +
    • Use the framework's abstracted approach to build applications that could be cloud agnostic
    • +
    • Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same DEEP Microservice
    • +
    • Run in the cloud the software that was built by distributed teams and served self-service in large organizations
    • +
    • Monetize their work of art by uploading microservices to DEEP Marketplace
    • +
    +
    +

    DEEP Microservice is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with DEEP Microservices HelloWorld or DEEP Microservices ToDo App, as well as DEEP CLI (aka deepify).

    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP Architecture on AWS Join char on gitter.im

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    DEEP is using microservices architecture on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DEEP Abstracted LibraryDescriptionAWS Abstracted Service(s)
    deep-assetAssets Management LibraryAmazon S3
    deep-cacheCache Management LibraryAmazon ElastiCache
    deep-coreCore Management Library-
    deep-dbDatabase Management LibraryAmazon DynamoDB, Amazon SQS
    deep-diDependency Injection Management Library-
    deep-eventEvents Management LibraryAmazon Kinesis
    deep-fsFile System Management LibraryAmazon S3
    deep-kernelKernel Management Library-
    deep-logLogs Management LibraryAmazon CloudWatch Logs
    deep-notificationNotifications Management LibraryAmazon SNS
    deep-resourceResouces Management LibraryAWS Lambda, Amazon API Gateway
    deep-securitySecurity Management LibraryAWS IAM, Amazon Cognito
    deep-validationValidation Management Library-
    +

    Feedback

    +

    We are eager to get your feedback, so please use whatever communication channel you prefer:

    + +

    License

    +

    This repository can be used under the MIT license.

    +
    +

    See LICENSE for more details.

    +
    +

    Sponsors

    +

    This repository is being sponsored by:

    +
    +

    Mitoc Group

    +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-di/package.json b/docs-api/deep-di/package.json new file mode 100644 index 00000000..b710232c --- /dev/null +++ b/docs-api/deep-di/package.json @@ -0,0 +1,68 @@ +{ + "name": "deep-di", + "version": "0.0.39", + "description": "DEEP Dependency Injection Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "DI", + "Dependency Injection", + "IOC", + "Inversion of Control", + "Container" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "bottlejs": "1.0.*", + "deep-core": "*" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/docs-api/deep-di/script/inherited-summary.js b/docs-api/deep-di/script/inherited-summary.js new file mode 100644 index 00000000..0a35b6df --- /dev/null +++ b/docs-api/deep-di/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/docs-api/deep-di/script/inner-link.js b/docs-api/deep-di/script/inner-link.js new file mode 100644 index 00000000..99d76273 --- /dev/null +++ b/docs-api/deep-di/script/inner-link.js @@ -0,0 +1,29 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + var el = document.querySelector(location.hash); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = location.href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/docs-api/deep-di/script/patch-for-local.js b/docs-api/deep-di/script/patch-for-local.js new file mode 100644 index 00000000..5756d135 --- /dev/null +++ b/docs-api/deep-di/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/docs-api/deep-di/script/prettify/Apache-License-2.0.txt b/docs-api/deep-di/script/prettify/Apache-License-2.0.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/docs-api/deep-di/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs-api/deep-di/script/prettify/prettify.js b/docs-api/deep-di/script/prettify/prettify.js new file mode 100644 index 00000000..eef5ad7e --- /dev/null +++ b/docs-api/deep-di/script/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/docs-api/deep-di/script/search_index.js b/docs-api/deep-di/script/search_index.js new file mode 100644 index 00000000..988f5b8f --- /dev/null +++ b/docs-api/deep-di/script/search_index.js @@ -0,0 +1,416 @@ +window.esdocSearchIndex = [ + [ + "deep-di/lib/di.js~di", + "class/lib/DI.js~DI.html", + "DI deep-di/lib/DI.js", + "class" + ], + [ + "deep-di/lib/exception/exception.js~exception", + "class/lib/Exception/Exception.js~Exception.html", + "Exception deep-di/lib/Exception/Exception.js", + "class" + ], + [ + "deep-di/lib/exception/missingserviceexception.js~missingserviceexception", + "class/lib/Exception/MissingServiceException.js~MissingServiceException.html", + "MissingServiceException deep-di/lib/Exception/MissingServiceException.js", + "class" + ], + [ + "builtinexternal/ecmascriptexternal.js~array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~arraybuffer", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~dataview", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~DataView", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~date", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Date", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~error", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Error", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~evalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float64array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generator", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Generator", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generatorfunction", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~infinity", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~internalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~json", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~JSON", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~map", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Map", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~nan", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~NaN", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~promise", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Promise", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~proxy", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~rangeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~referenceerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~reflect", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~regexp", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~set", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Set", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~String", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~symbol", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~syntaxerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~typeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~urierror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~URIError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8clampedarray", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakmap", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakset", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~null", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~null", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~string", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~undefined", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~undefined", + "external" + ], + [ + "builtinexternal/webapiexternal.js~canvasrenderingcontext2d", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "external" + ], + [ + "builtinexternal/webapiexternal.js~documentfragment", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "external" + ], + [ + "builtinexternal/webapiexternal.js~element", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Element", + "external" + ], + [ + "builtinexternal/webapiexternal.js~event", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Event", + "external" + ], + [ + "builtinexternal/webapiexternal.js~node", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Node", + "external" + ], + [ + "builtinexternal/webapiexternal.js~nodelist", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~NodeList", + "external" + ], + [ + "builtinexternal/webapiexternal.js~xmlhttprequest", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "external" + ], + [ + "lib/di.js", + "file/lib/DI.js.html", + "lib/DI.js", + "file" + ], + [ + "lib/di.js~di#addparameter", + "class/lib/DI.js~DI.html#instance-method-addParameter", + "lib/DI.js~DI#addParameter", + "method" + ], + [ + "lib/di.js~di#addservice", + "class/lib/DI.js~DI.html#instance-method-addService", + "lib/DI.js~DI#addService", + "method" + ], + [ + "lib/di.js~di#constructor", + "class/lib/DI.js~DI.html#instance-constructor-constructor", + "lib/DI.js~DI#constructor", + "method" + ], + [ + "lib/di.js~di#factory", + "class/lib/DI.js~DI.html#instance-method-factory", + "lib/DI.js~DI#factory", + "method" + ], + [ + "lib/di.js~di#get", + "class/lib/DI.js~DI.html#instance-method-get", + "lib/DI.js~DI#get", + "method" + ], + [ + "lib/di.js~di#register", + "class/lib/DI.js~DI.html#instance-method-register", + "lib/DI.js~DI#register", + "method" + ], + [ + "lib/exception/exception.js", + "file/lib/Exception/Exception.js.html", + "lib/Exception/Exception.js", + "file" + ], + [ + "lib/exception/exception.js~exception#constructor", + "class/lib/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/exception/missingserviceexception.js", + "file/lib/Exception/MissingServiceException.js.html", + "lib/Exception/MissingServiceException.js", + "file" + ], + [ + "lib/exception/missingserviceexception.js~missingserviceexception#constructor", + "class/lib/Exception/MissingServiceException.js~MissingServiceException.html#instance-constructor-constructor", + "lib/Exception/MissingServiceException.js~MissingServiceException#constructor", + "method" + ], + [ + "lib/bootstrap.js", + "file/lib/bootstrap.js.html", + "lib/bootstrap.js", + "file" + ] +] \ No newline at end of file diff --git a/docs-api/deep-di/script/test-summary.js b/docs-api/deep-di/script/test-summary.js new file mode 100644 index 00000000..2f32cb00 --- /dev/null +++ b/docs-api/deep-di/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-describe')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-describe .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/docs-api/deep-di/source.html b/docs-api/deep-di/source.html new file mode 100644 index 00000000..1d8e5465 --- /dev/null +++ b/docs-api/deep-di/source.html @@ -0,0 +1,103 @@ + + + + + + Source | DEEP Dependency Injection Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Source 10/11

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    lib/DI.jsDI85 %6/71718 byte822015-10-07 19:56:07 (UTC)
    lib/Exception/Exception.jsException100 %2/2282 byte192015-10-07 19:56:07 (UTC)
    lib/Exception/MissingServiceException.jsMissingServiceException100 %2/2350 byte192015-09-04 12:52:17 (UTC)
    lib/bootstrap.js--165 byte112015-09-04 12:52:17 (UTC)
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-event/ast/source/Exception/Exception.js.json b/docs-api/deep-event/ast/source/Exception/Exception.js.json new file mode 100644 index 00000000..a5724794 --- /dev/null +++ b/docs-api/deep-event/ast/source/Exception/Exception.js.json @@ -0,0 +1,651 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 149, + 158 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 167, + 171 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 172, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "range": [ + 167, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 182, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "range": [ + 167, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 233, + 244 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 248, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 245, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 260, + 265 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 269, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 266, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 260, + 274 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 260, + 275 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 254, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 244, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 233, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 192, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 143, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 136, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 281 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-event/ast/source/bootstrap.js.json b/docs-api/deep-event/ast/source/bootstrap.js.json new file mode 100644 index 00000000..255c8245 --- /dev/null +++ b/docs-api/deep-event/ast/source/bootstrap.js.json @@ -0,0 +1,241 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 89, + 101 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + "range": [ + 89, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "exports", + "range": [ + 108, + 115 + ], + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 11 + } + } + }, + "init": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "module", + "range": [ + 118, + 124 + ], + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exports", + "range": [ + 125, + 132 + ], + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 28 + } + } + }, + "range": [ + 118, + 132 + ], + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 28 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 135, + 137 + ], + "loc": { + "start": { + "line": 9, + "column": 31 + }, + "end": { + "line": 9, + "column": 33 + } + } + }, + "range": [ + 118, + 137 + ], + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 33 + } + } + }, + "range": [ + 108, + 137 + ], + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 33 + } + } + } + ], + "kind": "let", + "range": [ + 104, + 138 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 34 + } + } + } + ], + "sourceType": "module", + "range": [ + 89, + 138 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 34 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-event/badge.svg b/docs-api/deep-event/badge.svg new file mode 100644 index 00000000..e24552c4 --- /dev/null +++ b/docs-api/deep-event/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 100% + 100% + + diff --git a/docs-api/deep-event/class/lib/Exception/Exception.js~Exception.html b/docs-api/deep-event/class/lib/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..d88ac11f --- /dev/null +++ b/docs-api/deep-event/class/lib/Exception/Exception.js~Exception.html @@ -0,0 +1,193 @@ + + + + + + Exception | DEEP Event Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Exception} from 'deep-event/lib/Exception/Exception.js'
    + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    deep-core~Core.Exception.Exception → Exception
    + + + + + + + + + +

    Thrown when any exception occurs

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-event/coverage.json b/docs-api/deep-event/coverage.json new file mode 100644 index 00000000..c1190246 --- /dev/null +++ b/docs-api/deep-event/coverage.json @@ -0,0 +1,12 @@ +{ + "coverage": "100%", + "expectCount": 2, + "actualCount": 2, + "files": { + "lib/Exception/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/docs-api/deep-event/css/prettify-tomorrow.css b/docs-api/deep-event/css/prettify-tomorrow.css new file mode 100644 index 00000000..b6f92a78 --- /dev/null +++ b/docs-api/deep-event/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs-api/deep-event/css/style.css b/docs-api/deep-event/css/style.css new file mode 100644 index 00000000..4dc99a1b --- /dev/null +++ b/docs-api/deep-event/css/style.css @@ -0,0 +1,862 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Roboto', sans-serif; + overflow: auto; + font-size: 14px; + /*color: #4d4e53;*/ + color: rgba(0, 0, 0, .68); + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + background-color: #E2E2E2; + padding: 4px; + font-weight: 300; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 19px; +} + +p > code { + background-color: #f5f5f5; + border-radius: 3px; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0 4px; + border-radius: 3px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: white; + top: 0; + border-bottom: solid 1px #E02130; +} +.layout-container > header > a{ + margin: 0 5px; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid rgba(0, 0, 0, 0.1); +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation .nav-dir-path { + margin-top: 0.7em; + margin-bottom: 0.25em; + font-size: 0.8em; + color: #aaa; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #999; + color: white; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +pre.source-code { + background: #f5f5f5; + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150); +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #999; + color: white; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} + +table.test-summary thead { + background: #999; + color: white; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-describe .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; +} + +table.test-summary tr.test-describe .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-describe .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} + +.inner-link-active { + background: rgb(255, 255, 150); +} + +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + +/* coverage badge */ +.esdoc-coverage { + display: inline-block; + height: 20px; + vertical-align: top; +} + +h1 .esdoc-coverage { + position: relative; + top: -4px; +} + +.esdoc-coverage-wrap { + color: white; + font-size: 12px; + font-weight: 500; +} + +.esdoc-coverage-label { + padding: 3px 4px 3px 6px; + background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%); + border-radius: 4px 0 0 4px; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-ratio { + padding: 3px 6px 3px 4px; + border-radius: 0 4px 4px 0; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-low { + background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%); +} + +.esdoc-coverage-middle { + background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%); +} + +.esdoc-coverage-high { + background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%); +} + +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; + background-color: transparent; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} diff --git a/docs-api/deep-event/dump.json b/docs-api/deep-event/dump.json new file mode 100644 index 00000000..1d826972 --- /dev/null +++ b/docs-api/deep-event/dump.json @@ -0,0 +1,736 @@ +[ + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/Exception.js", + "memberof": null, + "longname": "lib/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\n\n/**\n * Thrown when any exception occurs\n */\nexport class Exception extends Core.Exception.Exception {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Exception/Exception.js", + "longname": "lib/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-event/lib/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Thrown when any exception occurs", + "lineNumber": 12, + "interface": false, + "extends": [ + "deep-core~Core.Exception.Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/Exception.js~Exception", + "longname": "lib/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/bootstrap.js", + "memberof": null, + "longname": "lib/bootstrap.js", + "access": null, + "description": null, + "lineNumber": 7, + "content": "/**\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n */\n\n'use strict';\n\nlet exports = module.exports = {};\n" + }, + { + "kind": "variable", + "static": true, + "variation": null, + "name": "exports", + "memberof": "lib/bootstrap.js", + "longname": "lib/bootstrap.js~exports", + "access": null, + "export": false, + "importPath": "deep-event/lib/bootstrap.js", + "importStyle": null, + "description": null, + "lineNumber": 9, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~null", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Error", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Date", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~String", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~string", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Map", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Set", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "CanvasRenderingContext2D", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DocumentFragment", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Element", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Element", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Event", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Event", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Node", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Node", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NodeList", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~NodeList", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "XMLHttpRequest", + "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "access": null, + "description": null, + "builtinExternal": true + } +] \ No newline at end of file diff --git a/docs-api/deep-event/file/lib/Exception/Exception.js.html b/docs-api/deep-event/file/lib/Exception/Exception.js.html new file mode 100644 index 00000000..af87fb1e --- /dev/null +++ b/docs-api/deep-event/file/lib/Exception/Exception.js.html @@ -0,0 +1,74 @@ + + + + + + lib/Exception/Exception.js | DEEP Event Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/Exception.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +
    +/**
    + * Thrown when any exception occurs
    + */
    +export class Exception extends Core.Exception.Exception {
    +  /**
    +   * @param {Array} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-event/file/lib/bootstrap.js.html b/docs-api/deep-event/file/lib/bootstrap.js.html new file mode 100644 index 00000000..030ef783 --- /dev/null +++ b/docs-api/deep-event/file/lib/bootstrap.js.html @@ -0,0 +1,64 @@ + + + + + + lib/bootstrap.js | DEEP Event Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/bootstrap.js

    +
    /**
    + * Created by AlexanderC on 5/22/15.
    + *
    + * Bootstrap file loaded by npm as main
    + */
    +
    +'use strict';
    +
    +let exports = module.exports = {};
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-event/identifiers.html b/docs-api/deep-event/identifiers.html new file mode 100644 index 00000000..d0da17c6 --- /dev/null +++ b/docs-api/deep-event/identifiers.html @@ -0,0 +1,89 @@ + + + + + + Index | DEEP Event Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Identifier

    +

    Class Summary

    + + + + + + + + + +
    Static Public Class Summary
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Thrown when any exception occurs
    +
    +
    + + +
    +
    + + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-event/image/badge.svg b/docs-api/deep-event/image/badge.svg new file mode 100644 index 00000000..324db4c5 --- /dev/null +++ b/docs-api/deep-event/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/docs-api/deep-event/image/github.png b/docs-api/deep-event/image/github.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/docs-api/deep-event/image/github.png differ diff --git a/docs-api/deep-event/image/search.png b/docs-api/deep-event/image/search.png new file mode 100644 index 00000000..f5d84b69 Binary files /dev/null and b/docs-api/deep-event/image/search.png differ diff --git a/docs-api/deep-event/index.html b/docs-api/deep-event/index.html new file mode 100644 index 00000000..83d0cc73 --- /dev/null +++ b/docs-api/deep-event/index.html @@ -0,0 +1,187 @@ + + + + + + DEEP Event Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    deep-event

    +

    NPM Version +Build Status +Coverage Status +Codacy Badge +API Docs

    +

    deep-event is a node.js library, part of DEEP Framework.

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less.

    +

    DEEP for Businesses Join char on gitter.im

    +

    User Guide Documentation (to be updated later)

    +

    DEEP is enabling small and medium businesses, as well as enterprises to:

    +
      +
    • Rent applications on a monthly basis by needed functionality from DEEP Marketplace
    • +
    • Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS
    • +
    • Pay only for subscribed applications and stop paying when unsubscribing and not using anymore
    • +
    • Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences
    • +
    • Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability
    • +
    +
    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP for Developers Join char on gitter.im

    +

    API Guide Documentation

    +

    Developer Guide Documentation

    +

    DEEP is enabling developers and architects to:

    +
      +
    • Design microservices architecture on top of serverless environments from cloud providers like AWS
    • +
    • Build distributed software that combines and manages hardware and software in the same microservice
    • +
    • Use the framework's abstracted approach to build applications that could be cloud agnostic
    • +
    • Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same DEEP Microservice
    • +
    • Run in the cloud the software that was built by distributed teams and served self-service in large organizations
    • +
    • Monetize their work of art by uploading microservices to DEEP Marketplace
    • +
    +
    +

    DEEP Microservice is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with DEEP Microservices HelloWorld or DEEP Microservices ToDo App, as well as DEEP CLI (aka deepify).

    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP Architecture on AWS Join char on gitter.im

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    DEEP is using microservices architecture on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DEEP Abstracted LibraryDescriptionAWS Abstracted Service(s)
    deep-assetAssets Management LibraryAmazon S3
    deep-cacheCache Management LibraryAmazon ElastiCache
    deep-coreCore Management Library-
    deep-dbDatabase Management LibraryAmazon DynamoDB, Amazon SQS
    deep-diDependency Injection Management Library-
    deep-eventEvents Management LibraryAmazon Kinesis
    deep-fsFile System Management LibraryAmazon S3
    deep-kernelKernel Management Library-
    deep-logLogs Management LibraryAmazon CloudWatch Logs
    deep-notificationNotifications Management LibraryAmazon SNS
    deep-resourceResouces Management LibraryAWS Lambda, Amazon API Gateway
    deep-securitySecurity Management LibraryAWS IAM, Amazon Cognito
    deep-validationValidation Management Library-
    +

    Feedback

    +

    We are eager to get your feedback, so please use whatever communication channel you prefer:

    + +

    License

    +

    This repository can be used under the MIT license.

    +
    +

    See LICENSE for more details.

    +
    +

    Sponsors

    +

    This repository is being sponsored by:

    +
    +

    Mitoc Group

    +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-event/package.json b/docs-api/deep-event/package.json new file mode 100644 index 00000000..a4db6317 --- /dev/null +++ b/docs-api/deep-event/package.json @@ -0,0 +1,64 @@ +{ + "name": "deep-event", + "version": "0.0.39", + "description": "DEEP Event Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Event" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcovonly _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "*", + "deep-core": "*" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/docs-api/deep-event/script/inherited-summary.js b/docs-api/deep-event/script/inherited-summary.js new file mode 100644 index 00000000..0a35b6df --- /dev/null +++ b/docs-api/deep-event/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/docs-api/deep-event/script/inner-link.js b/docs-api/deep-event/script/inner-link.js new file mode 100644 index 00000000..99d76273 --- /dev/null +++ b/docs-api/deep-event/script/inner-link.js @@ -0,0 +1,29 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + var el = document.querySelector(location.hash); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = location.href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/docs-api/deep-event/script/patch-for-local.js b/docs-api/deep-event/script/patch-for-local.js new file mode 100644 index 00000000..5756d135 --- /dev/null +++ b/docs-api/deep-event/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/docs-api/deep-event/script/prettify/Apache-License-2.0.txt b/docs-api/deep-event/script/prettify/Apache-License-2.0.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/docs-api/deep-event/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs-api/deep-event/script/prettify/prettify.js b/docs-api/deep-event/script/prettify/prettify.js new file mode 100644 index 00000000..eef5ad7e --- /dev/null +++ b/docs-api/deep-event/script/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/docs-api/deep-event/script/search_index.js b/docs-api/deep-event/script/search_index.js new file mode 100644 index 00000000..52da79b7 --- /dev/null +++ b/docs-api/deep-event/script/search_index.js @@ -0,0 +1,350 @@ +window.esdocSearchIndex = [ + [ + "deep-event/lib/exception/exception.js~exception", + "class/lib/Exception/Exception.js~Exception.html", + "Exception deep-event/lib/Exception/Exception.js", + "class" + ], + [ + "builtinexternal/ecmascriptexternal.js~array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~arraybuffer", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~dataview", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~DataView", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~date", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Date", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~error", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Error", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~evalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float64array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generator", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Generator", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generatorfunction", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~infinity", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~internalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~json", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~JSON", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~map", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Map", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~nan", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~NaN", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~promise", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Promise", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~proxy", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~rangeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~referenceerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~reflect", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~regexp", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~set", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Set", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~String", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~symbol", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~syntaxerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~typeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~urierror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~URIError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8clampedarray", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakmap", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakset", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~null", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~null", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~string", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~undefined", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~undefined", + "external" + ], + [ + "builtinexternal/webapiexternal.js~canvasrenderingcontext2d", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "external" + ], + [ + "builtinexternal/webapiexternal.js~documentfragment", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "external" + ], + [ + "builtinexternal/webapiexternal.js~element", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Element", + "external" + ], + [ + "builtinexternal/webapiexternal.js~event", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Event", + "external" + ], + [ + "builtinexternal/webapiexternal.js~node", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Node", + "external" + ], + [ + "builtinexternal/webapiexternal.js~nodelist", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~NodeList", + "external" + ], + [ + "builtinexternal/webapiexternal.js~xmlhttprequest", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "external" + ], + [ + "lib/exception/exception.js", + "file/lib/Exception/Exception.js.html", + "lib/Exception/Exception.js", + "file" + ], + [ + "lib/exception/exception.js~exception#constructor", + "class/lib/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/bootstrap.js", + "file/lib/bootstrap.js.html", + "lib/bootstrap.js", + "file" + ] +] \ No newline at end of file diff --git a/docs-api/deep-event/script/test-summary.js b/docs-api/deep-event/script/test-summary.js new file mode 100644 index 00000000..2f32cb00 --- /dev/null +++ b/docs-api/deep-event/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-describe')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-describe .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/docs-api/deep-event/source.html b/docs-api/deep-event/source.html new file mode 100644 index 00000000..8d0845d2 --- /dev/null +++ b/docs-api/deep-event/source.html @@ -0,0 +1,85 @@ + + + + + + Source | DEEP Event Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Source 2/2

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    lib/Exception/Exception.jsException100 %2/2282 byte192015-10-07 19:56:07 (UTC)
    lib/bootstrap.js--139 byte92015-09-04 12:52:17 (UTC)
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-fs/ast/source/Exception/Exception.js.json b/docs-api/deep-fs/ast/source/Exception/Exception.js.json new file mode 100644 index 00000000..a5724794 --- /dev/null +++ b/docs-api/deep-fs/ast/source/Exception/Exception.js.json @@ -0,0 +1,651 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 149, + 158 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 167, + 171 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 172, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "range": [ + 167, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 182, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "range": [ + 167, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 233, + 244 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 248, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 245, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 260, + 265 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 269, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 266, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 260, + 274 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 260, + 275 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 254, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 244, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 233, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 192, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 143, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 136, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 281 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-fs/ast/source/Exception/UnknownFolderException.js.json b/docs-api/deep-fs/ast/source/Exception/UnknownFolderException.js.json new file mode 100644 index 00000000..781af1e8 --- /dev/null +++ b/docs-api/deep-fs/ast/source/Exception/UnknownFolderException.js.json @@ -0,0 +1,760 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 42, + 54 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 42, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 6/10/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 81, + 94 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 57, + 95 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when unknown FS folder is requested\n ", + "range": [ + 97, + 150 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "UnknownFolderException", + "range": [ + 164, + 186 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 195, + 204 + ], + "loc": { + "start": { + "line": 12, + "column": 44 + }, + "end": { + "line": 12, + "column": 53 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 281, + 292 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "folderName", + "range": [ + 293, + 303 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 24 + } + } + }, + { + "type": "Identifier", + "name": "folders", + "range": [ + 305, + 312 + ], + "loc": { + "start": { + "line": 17, + "column": 26 + }, + "end": { + "line": 17, + "column": 33 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 320, + 325 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Unknown folder \"", + "cooked": "Unknown folder \"" + }, + "tail": false, + "range": [ + 326, + 345 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 29 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "\". Defined folders are \"", + "cooked": "\". Defined folders are \"" + }, + "tail": false, + "range": [ + 355, + 382 + ], + "loc": { + "start": { + "line": 18, + "column": 39 + }, + "end": { + "line": 18, + "column": 66 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "\"", + "cooked": "\"" + }, + "tail": true, + "range": [ + 400, + 403 + ], + "loc": { + "start": { + "line": 18, + "column": 84 + }, + "end": { + "line": 18, + "column": 87 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "folderName", + "range": [ + 345, + 355 + ], + "loc": { + "start": { + "line": 18, + "column": 29 + }, + "end": { + "line": 18, + "column": 39 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "folders", + "range": [ + 382, + 389 + ], + "loc": { + "start": { + "line": 18, + "column": 66 + }, + "end": { + "line": 18, + "column": 73 + } + } + }, + "property": { + "type": "Identifier", + "name": "join", + "range": [ + 390, + 394 + ], + "loc": { + "start": { + "line": 18, + "column": 74 + }, + "end": { + "line": 18, + "column": 78 + } + } + }, + "range": [ + 382, + 394 + ], + "loc": { + "start": { + "line": 18, + "column": 66 + }, + "end": { + "line": 18, + "column": 78 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": ", ", + "raw": "', '", + "range": [ + 395, + 399 + ], + "loc": { + "start": { + "line": 18, + "column": 79 + }, + "end": { + "line": 18, + "column": 83 + } + } + } + ], + "range": [ + 382, + 400 + ], + "loc": { + "start": { + "line": 18, + "column": 66 + }, + "end": { + "line": 18, + "column": 84 + } + } + } + ], + "range": [ + 326, + 403 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 87 + } + } + } + ], + "range": [ + 320, + 404 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 88 + } + } + }, + "range": [ + 320, + 405 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 89 + } + } + } + ], + "range": [ + 314, + 409 + ], + "loc": { + "start": { + "line": 17, + "column": 35 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 292, + 409 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 281, + 409 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} folderName\n * @param {Array} folders\n ", + "range": [ + 209, + 278 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 205, + 411 + ], + "loc": { + "start": { + "line": 12, + "column": 54 + }, + "end": { + "line": 20, + "column": 1 + } + } + }, + "range": [ + 158, + 411 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when unknown FS folder is requested\n ", + "range": [ + 97, + 150 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 151, + 411 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when unknown FS folder is requested\n ", + "range": [ + 97, + 150 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 42, + 411 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 6/10/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when unknown FS folder is requested\n ", + "range": [ + 97, + 150 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} folderName\n * @param {Array} folders\n ", + "range": [ + 209, + 278 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-fs/ast/source/FS.js.json b/docs-api/deep-fs/ast/source/FS.js.json new file mode 100644 index 00000000..3c15e0f5 --- /dev/null +++ b/docs-api/deep-fs/ast/source/FS.js.json @@ -0,0 +1,7349 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 42, + 54 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 42, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 5/28/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "S3FS", + "range": [ + 64, + 68 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 64, + 68 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "s3fs", + "raw": "'s3fs'", + "range": [ + 74, + 80 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 23 + } + } + }, + "range": [ + 57, + 81 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 24 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 89, + 95 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 13 + } + } + }, + "range": [ + 89, + 95 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-kernel", + "raw": "'deep-kernel'", + "range": [ + 101, + 114 + ], + "loc": { + "start": { + "line": 8, + "column": 19 + }, + "end": { + "line": 8, + "column": 32 + } + } + }, + "range": [ + 82, + 115 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 33 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "UnknownFolderException", + "range": [ + 124, + 146 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 30 + } + } + }, + "imported": { + "type": "Identifier", + "name": "UnknownFolderException", + "range": [ + 124, + 146 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 30 + } + } + }, + "range": [ + 124, + 146 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 30 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/UnknownFolderException", + "raw": "'./Exception/UnknownFolderException'", + "range": [ + 153, + 189 + ], + "loc": { + "start": { + "line": 9, + "column": 37 + }, + "end": { + "line": 9, + "column": 73 + } + } + }, + "range": [ + 116, + 190 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 74 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "OS", + "range": [ + 198, + 200 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 9 + } + } + }, + "range": [ + 198, + 200 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 9 + } + } + } + ], + "source": { + "type": "Literal", + "value": "os", + "raw": "'os'", + "range": [ + 206, + 210 + ], + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 10, + "column": 19 + } + } + }, + "range": [ + 191, + 211 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 20 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Path", + "range": [ + 219, + 223 + ], + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + "range": [ + 219, + 223 + ], + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "path", + "raw": "'path'", + "range": [ + 229, + 235 + ], + "loc": { + "start": { + "line": 11, + "column": 17 + }, + "end": { + "line": 11, + "column": 23 + } + } + }, + "range": [ + 212, + 236 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 24 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Deep FS implementation\n ", + "range": [ + 238, + 271 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "FS", + "range": [ + 285, + 287 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 15 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 296, + 302 + ], + "loc": { + "start": { + "line": 16, + "column": 24 + }, + "end": { + "line": 16, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "ContainerAware", + "range": [ + 303, + 317 + ], + "loc": { + "start": { + "line": 16, + "column": 31 + }, + "end": { + "line": 16, + "column": 45 + } + } + }, + "range": [ + 296, + 317 + ], + "loc": { + "start": { + "line": 16, + "column": 24 + }, + "end": { + "line": 16, + "column": 45 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 486, + 497 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "tmpFsBucket", + "range": [ + 498, + 509 + ], + "loc": { + "start": { + "line": 24, + "column": 14 + }, + "end": { + "line": 24, + "column": 25 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 512, + 516 + ], + "loc": { + "start": { + "line": 24, + "column": 28 + }, + "end": { + "line": 24, + "column": 32 + } + } + }, + "range": [ + 498, + 516 + ], + "loc": { + "start": { + "line": 24, + "column": 14 + }, + "end": { + "line": 24, + "column": 32 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "publicFsBucket", + "range": [ + 518, + 532 + ], + "loc": { + "start": { + "line": 24, + "column": 34 + }, + "end": { + "line": 24, + "column": 48 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 535, + 539 + ], + "loc": { + "start": { + "line": 24, + "column": 51 + }, + "end": { + "line": 24, + "column": 55 + } + } + }, + "range": [ + 518, + 539 + ], + "loc": { + "start": { + "line": 24, + "column": 34 + }, + "end": { + "line": 24, + "column": 55 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "systemFsBucket", + "range": [ + 541, + 555 + ], + "loc": { + "start": { + "line": 24, + "column": 57 + }, + "end": { + "line": 24, + "column": 71 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 558, + 562 + ], + "loc": { + "start": { + "line": 24, + "column": 74 + }, + "end": { + "line": 24, + "column": 78 + } + } + }, + "range": [ + 541, + 562 + ], + "loc": { + "start": { + "line": 24, + "column": 57 + }, + "end": { + "line": 24, + "column": 78 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 570, + 575 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 570, + 577 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 11 + } + } + }, + "range": [ + 570, + 578 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 584, + 588 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_mountedFolders", + "range": [ + 589, + 604 + ], + "loc": { + "start": { + "line": 27, + "column": 9 + }, + "end": { + "line": 27, + "column": 24 + } + } + }, + "range": [ + 584, + 604 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 24 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 607, + 609 + ], + "loc": { + "start": { + "line": 27, + "column": 27 + }, + "end": { + "line": 27, + "column": 29 + } + } + }, + "range": [ + 584, + 609 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 29 + } + } + }, + "range": [ + 584, + 610 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 30 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 615, + 619 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buckets", + "range": [ + 620, + 628 + ], + "loc": { + "start": { + "line": 28, + "column": 9 + }, + "end": { + "line": 28, + "column": 17 + } + } + }, + "range": [ + 615, + 628 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 17 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 631, + 633 + ], + "loc": { + "start": { + "line": 28, + "column": 20 + }, + "end": { + "line": 28, + "column": 22 + } + } + }, + "range": [ + 615, + 633 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 22 + } + } + }, + "range": [ + 615, + 634 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 23 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 640, + 644 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buckets", + "range": [ + 645, + 653 + ], + "loc": { + "start": { + "line": 30, + "column": 9 + }, + "end": { + "line": 30, + "column": 17 + } + } + }, + "range": [ + 640, + 653 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 17 + } + } + }, + "property": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 654, + 656 + ], + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "TMP", + "range": [ + 657, + 660 + ], + "loc": { + "start": { + "line": 30, + "column": 21 + }, + "end": { + "line": 30, + "column": 24 + } + } + }, + "range": [ + 654, + 660 + ], + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 24 + } + } + }, + "range": [ + 640, + 661 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 25 + } + } + }, + "right": { + "type": "Identifier", + "name": "tmpFsBucket", + "range": [ + 664, + 675 + ], + "loc": { + "start": { + "line": 30, + "column": 28 + }, + "end": { + "line": 30, + "column": 39 + } + } + }, + "range": [ + 640, + 675 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 39 + } + } + }, + "range": [ + 640, + 676 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 40 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 681, + 685 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buckets", + "range": [ + 686, + 694 + ], + "loc": { + "start": { + "line": 31, + "column": 9 + }, + "end": { + "line": 31, + "column": 17 + } + } + }, + "range": [ + 681, + 694 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 17 + } + } + }, + "property": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 695, + 697 + ], + "loc": { + "start": { + "line": 31, + "column": 18 + }, + "end": { + "line": 31, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "PUBLIC", + "range": [ + 698, + 704 + ], + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 27 + } + } + }, + "range": [ + 695, + 704 + ], + "loc": { + "start": { + "line": 31, + "column": 18 + }, + "end": { + "line": 31, + "column": 27 + } + } + }, + "range": [ + 681, + 705 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 28 + } + } + }, + "right": { + "type": "Identifier", + "name": "publicFsBucket", + "range": [ + 708, + 722 + ], + "loc": { + "start": { + "line": 31, + "column": 31 + }, + "end": { + "line": 31, + "column": 45 + } + } + }, + "range": [ + 681, + 722 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 45 + } + } + }, + "range": [ + 681, + 723 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 46 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 728, + 732 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buckets", + "range": [ + 733, + 741 + ], + "loc": { + "start": { + "line": 32, + "column": 9 + }, + "end": { + "line": 32, + "column": 17 + } + } + }, + "range": [ + 728, + 741 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 17 + } + } + }, + "property": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 742, + 744 + ], + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "SYSTEM", + "range": [ + 745, + 751 + ], + "loc": { + "start": { + "line": 32, + "column": 21 + }, + "end": { + "line": 32, + "column": 27 + } + } + }, + "range": [ + 742, + 751 + ], + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 27 + } + } + }, + "range": [ + 728, + 752 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 28 + } + } + }, + "right": { + "type": "Identifier", + "name": "systemFsBucket", + "range": [ + 755, + 769 + ], + "loc": { + "start": { + "line": 32, + "column": 31 + }, + "end": { + "line": 32, + "column": 45 + } + } + }, + "range": [ + 728, + 769 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 45 + } + } + }, + "range": [ + 728, + 770 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 46 + } + } + } + ], + "range": [ + 564, + 774 + ], + "loc": { + "start": { + "line": 24, + "column": 80 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 497, + 774 + ], + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 486, + 774 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 33, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Defines all class private properties\n *\n * @param {String} tmpFsBucket\n * @param {String} publicFsBucket\n * @param {String} systemFsBucket\n ", + "range": [ + 322, + 483 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 778, + 810 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "TMP", + "range": [ + 824, + 827 + ], + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "temp", + "raw": "'temp'", + "range": [ + 843, + 849 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 17 + } + } + }, + "range": [ + 836, + 850 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 18 + } + } + } + ], + "range": [ + 830, + 854 + ], + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 827, + 854 + ], + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 813, + 854 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 40, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 778, + 810 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 858, + 890 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "PUBLIC", + "range": [ + 904, + 910 + ], + "loc": { + "start": { + "line": 45, + "column": 13 + }, + "end": { + "line": 45, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "public", + "raw": "'public'", + "range": [ + 926, + 934 + ], + "loc": { + "start": { + "line": 46, + "column": 11 + }, + "end": { + "line": 46, + "column": 19 + } + } + }, + "range": [ + 919, + 935 + ], + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 20 + } + } + } + ], + "range": [ + 913, + 939 + ], + "loc": { + "start": { + "line": 45, + "column": 22 + }, + "end": { + "line": 47, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 910, + 939 + ], + "loc": { + "start": { + "line": 45, + "column": 19 + }, + "end": { + "line": 47, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 893, + 939 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 47, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 858, + 890 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 943, + 975 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "SYSTEM", + "range": [ + 989, + 995 + ], + "loc": { + "start": { + "line": 52, + "column": 13 + }, + "end": { + "line": 52, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "system", + "raw": "'system'", + "range": [ + 1011, + 1019 + ], + "loc": { + "start": { + "line": 53, + "column": 11 + }, + "end": { + "line": 53, + "column": 19 + } + } + }, + "range": [ + 1004, + 1020 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 20 + } + } + } + ], + "range": [ + 998, + 1024 + ], + "loc": { + "start": { + "line": 52, + "column": 22 + }, + "end": { + "line": 54, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 995, + 1024 + ], + "loc": { + "start": { + "line": 52, + "column": 19 + }, + "end": { + "line": 54, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 978, + 1024 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 54, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 943, + 975 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1028, + 1059 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 58, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "FOLDERS", + "range": [ + 1073, + 1080 + ], + "loc": { + "start": { + "line": 59, + "column": 13 + }, + "end": { + "line": 59, + "column": 20 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ArrayExpression", + "elements": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 1104, + 1106 + ], + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 61, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "TMP", + "range": [ + 1107, + 1110 + ], + "loc": { + "start": { + "line": 61, + "column": 9 + }, + "end": { + "line": 61, + "column": 12 + } + } + }, + "range": [ + 1104, + 1110 + ], + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 61, + "column": 12 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 1118, + 1120 + ], + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "PUBLIC", + "range": [ + 1121, + 1127 + ], + "loc": { + "start": { + "line": 62, + "column": 9 + }, + "end": { + "line": 62, + "column": 15 + } + } + }, + "range": [ + 1118, + 1127 + ], + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 15 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 1135, + 1137 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "SYSTEM", + "range": [ + 1138, + 1144 + ], + "loc": { + "start": { + "line": 63, + "column": 9 + }, + "end": { + "line": 63, + "column": 15 + } + } + }, + "range": [ + 1135, + 1144 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 15 + } + } + } + ], + "range": [ + 1096, + 1151 + ], + "loc": { + "start": { + "line": 60, + "column": 11 + }, + "end": { + "line": 64, + "column": 5 + } + } + }, + "range": [ + 1089, + 1152 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 64, + "column": 6 + } + } + } + ], + "range": [ + 1083, + 1156 + ], + "loc": { + "start": { + "line": 59, + "column": 23 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1080, + 1156 + ], + "loc": { + "start": { + "line": 59, + "column": 20 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1062, + 1156 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 65, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1028, + 1059 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 58, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 1160, + 1265 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 72, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "boot", + "range": [ + 1268, + 1272 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 73, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "kernel", + "range": [ + 1273, + 1279 + ], + "loc": { + "start": { + "line": 73, + "column": 7 + }, + "end": { + "line": 73, + "column": 13 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 1281, + 1289 + ], + "loc": { + "start": { + "line": 73, + "column": 15 + }, + "end": { + "line": 73, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "bucketsConfig", + "range": [ + 1301, + 1314 + ], + "loc": { + "start": { + "line": 74, + "column": 8 + }, + "end": { + "line": 74, + "column": 21 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 1317, + 1323 + ], + "loc": { + "start": { + "line": 74, + "column": 24 + }, + "end": { + "line": 74, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 1324, + 1330 + ], + "loc": { + "start": { + "line": 74, + "column": 31 + }, + "end": { + "line": 74, + "column": 37 + } + } + }, + "range": [ + 1317, + 1330 + ], + "loc": { + "start": { + "line": 74, + "column": 24 + }, + "end": { + "line": 74, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "buckets", + "range": [ + 1331, + 1338 + ], + "loc": { + "start": { + "line": 74, + "column": 38 + }, + "end": { + "line": 74, + "column": 45 + } + } + }, + "range": [ + 1317, + 1338 + ], + "loc": { + "start": { + "line": 74, + "column": 24 + }, + "end": { + "line": 74, + "column": 45 + } + } + }, + "range": [ + 1301, + 1338 + ], + "loc": { + "start": { + "line": 74, + "column": 8 + }, + "end": { + "line": 74, + "column": 45 + } + } + } + ], + "kind": "let", + "range": [ + 1297, + 1339 + ], + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 74, + "column": 46 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "folderKey", + "range": [ + 1354, + 1363 + ], + "loc": { + "start": { + "line": 76, + "column": 13 + }, + "end": { + "line": 76, + "column": 22 + } + } + }, + "init": null, + "range": [ + 1354, + 1363 + ], + "loc": { + "start": { + "line": 76, + "column": 13 + }, + "end": { + "line": 76, + "column": 22 + } + } + } + ], + "kind": "let", + "range": [ + 1350, + 1363 + ], + "loc": { + "start": { + "line": 76, + "column": 9 + }, + "end": { + "line": 76, + "column": 22 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 1367, + 1369 + ], + "loc": { + "start": { + "line": 76, + "column": 26 + }, + "end": { + "line": 76, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "FOLDERS", + "range": [ + 1370, + 1377 + ], + "loc": { + "start": { + "line": 76, + "column": 29 + }, + "end": { + "line": 76, + "column": 36 + } + } + }, + "range": [ + 1367, + 1377 + ], + "loc": { + "start": { + "line": 76, + "column": 26 + }, + "end": { + "line": 76, + "column": 36 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 1392, + 1394 + ], + "loc": { + "start": { + "line": 77, + "column": 11 + }, + "end": { + "line": 77, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "FOLDERS", + "range": [ + 1395, + 1402 + ], + "loc": { + "start": { + "line": 77, + "column": 14 + }, + "end": { + "line": 77, + "column": 21 + } + } + }, + "range": [ + 1392, + 1402 + ], + "loc": { + "start": { + "line": 77, + "column": 11 + }, + "end": { + "line": 77, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 1403, + 1417 + ], + "loc": { + "start": { + "line": 77, + "column": 22 + }, + "end": { + "line": 77, + "column": 36 + } + } + }, + "range": [ + 1392, + 1417 + ], + "loc": { + "start": { + "line": 77, + "column": 11 + }, + "end": { + "line": 77, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "folderKey", + "range": [ + 1418, + 1427 + ], + "loc": { + "start": { + "line": 77, + "column": 37 + }, + "end": { + "line": 77, + "column": 46 + } + } + } + ], + "range": [ + 1392, + 1428 + ], + "loc": { + "start": { + "line": 77, + "column": 11 + }, + "end": { + "line": 77, + "column": 47 + } + } + }, + "prefix": true, + "range": [ + 1391, + 1428 + ], + "loc": { + "start": { + "line": 77, + "column": 10 + }, + "end": { + "line": 77, + "column": 47 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 1440, + 1449 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 17 + } + } + } + ], + "range": [ + 1430, + 1457 + ], + "loc": { + "start": { + "line": 77, + "column": 49 + }, + "end": { + "line": 79, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1387, + 1457 + ], + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 79, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "folder", + "range": [ + 1469, + 1475 + ], + "loc": { + "start": { + "line": 81, + "column": 10 + }, + "end": { + "line": 81, + "column": 16 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 1478, + 1480 + ], + "loc": { + "start": { + "line": 81, + "column": 19 + }, + "end": { + "line": 81, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "FOLDERS", + "range": [ + 1481, + 1488 + ], + "loc": { + "start": { + "line": 81, + "column": 22 + }, + "end": { + "line": 81, + "column": 29 + } + } + }, + "range": [ + 1478, + 1488 + ], + "loc": { + "start": { + "line": 81, + "column": 19 + }, + "end": { + "line": 81, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "folderKey", + "range": [ + 1489, + 1498 + ], + "loc": { + "start": { + "line": 81, + "column": 30 + }, + "end": { + "line": 81, + "column": 39 + } + } + }, + "range": [ + 1478, + 1499 + ], + "loc": { + "start": { + "line": 81, + "column": 19 + }, + "end": { + "line": 81, + "column": 40 + } + } + }, + "range": [ + 1469, + 1499 + ], + "loc": { + "start": { + "line": 81, + "column": 10 + }, + "end": { + "line": 81, + "column": 40 + } + } + } + ], + "kind": "let", + "range": [ + 1465, + 1500 + ], + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 41 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1508, + 1512 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buckets", + "range": [ + 1513, + 1521 + ], + "loc": { + "start": { + "line": 83, + "column": 11 + }, + "end": { + "line": 83, + "column": 19 + } + } + }, + "range": [ + 1508, + 1521 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "folder", + "range": [ + 1522, + 1528 + ], + "loc": { + "start": { + "line": 83, + "column": 20 + }, + "end": { + "line": 83, + "column": 26 + } + } + }, + "range": [ + 1508, + 1529 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 27 + } + } + }, + "right": { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": false, + "range": [ + 1532, + 1535 + ], + "loc": { + "start": { + "line": 83, + "column": 30 + }, + "end": { + "line": 83, + "column": 33 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "/", + "cooked": "/" + }, + "tail": false, + "range": [ + 1561, + 1565 + ], + "loc": { + "start": { + "line": 83, + "column": 59 + }, + "end": { + "line": 83, + "column": 63 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 1597, + 1599 + ], + "loc": { + "start": { + "line": 83, + "column": 95 + }, + "end": { + "line": 83, + "column": 97 + } + } + } + ], + "expressions": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "bucketsConfig", + "range": [ + 1535, + 1548 + ], + "loc": { + "start": { + "line": 83, + "column": 33 + }, + "end": { + "line": 83, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "folder", + "range": [ + 1549, + 1555 + ], + "loc": { + "start": { + "line": 83, + "column": 47 + }, + "end": { + "line": 83, + "column": 53 + } + } + }, + "range": [ + 1535, + 1556 + ], + "loc": { + "start": { + "line": 83, + "column": 33 + }, + "end": { + "line": 83, + "column": 54 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 1557, + 1561 + ], + "loc": { + "start": { + "line": 83, + "column": 55 + }, + "end": { + "line": 83, + "column": 59 + } + } + }, + "range": [ + 1535, + 1561 + ], + "loc": { + "start": { + "line": 83, + "column": 33 + }, + "end": { + "line": 83, + "column": 59 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 1565, + 1571 + ], + "loc": { + "start": { + "line": 83, + "column": 63 + }, + "end": { + "line": 83, + "column": 69 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1572, + 1584 + ], + "loc": { + "start": { + "line": 83, + "column": 70 + }, + "end": { + "line": 83, + "column": 82 + } + } + }, + "range": [ + 1565, + 1584 + ], + "loc": { + "start": { + "line": 83, + "column": 63 + }, + "end": { + "line": 83, + "column": 82 + } + } + }, + "arguments": [], + "range": [ + 1565, + 1586 + ], + "loc": { + "start": { + "line": 83, + "column": 63 + }, + "end": { + "line": 83, + "column": 84 + } + } + }, + "property": { + "type": "Identifier", + "name": "identifier", + "range": [ + 1587, + 1597 + ], + "loc": { + "start": { + "line": 83, + "column": 85 + }, + "end": { + "line": 83, + "column": 95 + } + } + }, + "range": [ + 1565, + 1597 + ], + "loc": { + "start": { + "line": 83, + "column": 63 + }, + "end": { + "line": 83, + "column": 95 + } + } + } + ], + "range": [ + 1532, + 1599 + ], + "loc": { + "start": { + "line": 83, + "column": 30 + }, + "end": { + "line": 83, + "column": 97 + } + } + }, + "range": [ + 1508, + 1599 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 97 + } + } + }, + "range": [ + 1508, + 1600 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 98 + } + } + } + ], + "range": [ + 1379, + 1606 + ], + "loc": { + "start": { + "line": 76, + "column": 38 + }, + "end": { + "line": 84, + "column": 5 + } + } + }, + "each": false, + "range": [ + 1345, + 1606 + ], + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 84, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1612, + 1620 + ], + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 12 + } + } + }, + "arguments": [], + "range": [ + 1612, + 1622 + ], + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 14 + } + } + }, + "range": [ + 1612, + 1623 + ], + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 15 + } + } + } + ], + "range": [ + 1291, + 1627 + ], + "loc": { + "start": { + "line": 73, + "column": 25 + }, + "end": { + "line": 87, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1272, + 1627 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 87, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1268, + 1627 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 87, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 1160, + 1265 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 72, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Returns mounted file system folder (tmp, public or system)\n *\n * @param name\n * @returns {*}\n ", + "range": [ + 1631, + 1744 + ], + "loc": { + "start": { + "line": 89, + "column": 2 + }, + "end": { + "line": 94, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "getFolder", + "range": [ + 1747, + 1756 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 95, + "column": 11 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1757, + 1761 + ], + "loc": { + "start": { + "line": 95, + "column": 12 + }, + "end": { + "line": 95, + "column": 16 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 1773, + 1775 + ], + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 96, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "FOLDERS", + "range": [ + 1776, + 1783 + ], + "loc": { + "start": { + "line": 96, + "column": 11 + }, + "end": { + "line": 96, + "column": 18 + } + } + }, + "range": [ + 1773, + 1783 + ], + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 96, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "indexOf", + "range": [ + 1784, + 1791 + ], + "loc": { + "start": { + "line": 96, + "column": 19 + }, + "end": { + "line": 96, + "column": 26 + } + } + }, + "range": [ + 1773, + 1791 + ], + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 96, + "column": 26 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1792, + 1796 + ], + "loc": { + "start": { + "line": 96, + "column": 27 + }, + "end": { + "line": 96, + "column": 31 + } + } + } + ], + "range": [ + 1773, + 1797 + ], + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 96, + "column": 32 + } + } + }, + "right": { + "type": "UnaryExpression", + "operator": "-", + "argument": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 1803, + 1804 + ], + "loc": { + "start": { + "line": 96, + "column": 38 + }, + "end": { + "line": 96, + "column": 39 + } + } + }, + "prefix": true, + "range": [ + 1802, + 1804 + ], + "loc": { + "start": { + "line": 96, + "column": 37 + }, + "end": { + "line": 96, + "column": 39 + } + } + }, + "range": [ + 1773, + 1804 + ], + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 96, + "column": 39 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "UnknownFolderException", + "range": [ + 1824, + 1846 + ], + "loc": { + "start": { + "line": 97, + "column": 16 + }, + "end": { + "line": 97, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 1847, + 1851 + ], + "loc": { + "start": { + "line": 97, + "column": 39 + }, + "end": { + "line": 97, + "column": 43 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 1853, + 1855 + ], + "loc": { + "start": { + "line": 97, + "column": 45 + }, + "end": { + "line": 97, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "FOLDERS", + "range": [ + 1856, + 1863 + ], + "loc": { + "start": { + "line": 97, + "column": 48 + }, + "end": { + "line": 97, + "column": 55 + } + } + }, + "range": [ + 1853, + 1863 + ], + "loc": { + "start": { + "line": 97, + "column": 45 + }, + "end": { + "line": 97, + "column": 55 + } + } + } + ], + "range": [ + 1820, + 1864 + ], + "loc": { + "start": { + "line": 97, + "column": 12 + }, + "end": { + "line": 97, + "column": 56 + } + } + }, + "range": [ + 1814, + 1865 + ], + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 57 + } + } + } + ], + "range": [ + 1806, + 1871 + ], + "loc": { + "start": { + "line": 96, + "column": 41 + }, + "end": { + "line": 98, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1769, + 1871 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 98, + "column": 5 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1888, + 1892 + ], + "loc": { + "start": { + "line": 100, + "column": 15 + }, + "end": { + "line": 100, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "_mountedFolders", + "range": [ + 1893, + 1908 + ], + "loc": { + "start": { + "line": 100, + "column": 20 + }, + "end": { + "line": 100, + "column": 35 + } + } + }, + "range": [ + 1888, + 1908 + ], + "loc": { + "start": { + "line": 100, + "column": 15 + }, + "end": { + "line": 100, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 1909, + 1913 + ], + "loc": { + "start": { + "line": 100, + "column": 36 + }, + "end": { + "line": 100, + "column": 40 + } + } + }, + "range": [ + 1888, + 1914 + ], + "loc": { + "start": { + "line": 100, + "column": 15 + }, + "end": { + "line": 100, + "column": 41 + } + } + }, + "prefix": true, + "range": [ + 1881, + 1914 + ], + "loc": { + "start": { + "line": 100, + "column": 8 + }, + "end": { + "line": 100, + "column": 41 + } + } + }, + "right": { + "type": "Literal", + "value": "undefined", + "raw": "'undefined'", + "range": [ + 1919, + 1930 + ], + "loc": { + "start": { + "line": 100, + "column": 46 + }, + "end": { + "line": 100, + "column": 57 + } + } + }, + "range": [ + 1881, + 1930 + ], + "loc": { + "start": { + "line": 100, + "column": 8 + }, + "end": { + "line": 100, + "column": 57 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1944, + 1948 + ], + "loc": { + "start": { + "line": 101, + "column": 10 + }, + "end": { + "line": 101, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "_localBackend", + "range": [ + 1949, + 1962 + ], + "loc": { + "start": { + "line": 101, + "column": 15 + }, + "end": { + "line": 101, + "column": 28 + } + } + }, + "range": [ + 1944, + 1962 + ], + "loc": { + "start": { + "line": 101, + "column": 10 + }, + "end": { + "line": 101, + "column": 28 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "rootFolder", + "range": [ + 1978, + 1988 + ], + "loc": { + "start": { + "line": 102, + "column": 12 + }, + "end": { + "line": 102, + "column": 22 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 1991, + 1993 + ], + "loc": { + "start": { + "line": 102, + "column": 25 + }, + "end": { + "line": 102, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "_getTmpDir", + "range": [ + 1994, + 2004 + ], + "loc": { + "start": { + "line": 102, + "column": 28 + }, + "end": { + "line": 102, + "column": 38 + } + } + }, + "range": [ + 1991, + 2004 + ], + "loc": { + "start": { + "line": 102, + "column": 25 + }, + "end": { + "line": 102, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2005, + 2009 + ], + "loc": { + "start": { + "line": 102, + "column": 39 + }, + "end": { + "line": 102, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buckets", + "range": [ + 2010, + 2018 + ], + "loc": { + "start": { + "line": 102, + "column": 44 + }, + "end": { + "line": 102, + "column": 52 + } + } + }, + "range": [ + 2005, + 2018 + ], + "loc": { + "start": { + "line": 102, + "column": 39 + }, + "end": { + "line": 102, + "column": 52 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 2019, + 2023 + ], + "loc": { + "start": { + "line": 102, + "column": 53 + }, + "end": { + "line": 102, + "column": 57 + } + } + }, + "range": [ + 2005, + 2024 + ], + "loc": { + "start": { + "line": 102, + "column": 39 + }, + "end": { + "line": 102, + "column": 58 + } + } + } + ], + "range": [ + 1991, + 2025 + ], + "loc": { + "start": { + "line": 102, + "column": 25 + }, + "end": { + "line": 102, + "column": 59 + } + } + }, + "range": [ + 1978, + 2025 + ], + "loc": { + "start": { + "line": 102, + "column": 12 + }, + "end": { + "line": 102, + "column": 59 + } + } + } + ], + "kind": "let", + "range": [ + 1974, + 2026 + ], + "loc": { + "start": { + "line": 102, + "column": 8 + }, + "end": { + "line": 102, + "column": 60 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2036, + 2040 + ], + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_mountedFolders", + "range": [ + 2041, + 2056 + ], + "loc": { + "start": { + "line": 104, + "column": 13 + }, + "end": { + "line": 104, + "column": 28 + } + } + }, + "range": [ + 2036, + 2056 + ], + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 2057, + 2061 + ], + "loc": { + "start": { + "line": 104, + "column": 29 + }, + "end": { + "line": 104, + "column": 33 + } + } + }, + "range": [ + 2036, + 2062 + ], + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 34 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "require", + "range": [ + 2065, + 2072 + ], + "loc": { + "start": { + "line": 104, + "column": 37 + }, + "end": { + "line": 104, + "column": 44 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "relative-fs", + "raw": "'relative-fs'", + "range": [ + 2073, + 2086 + ], + "loc": { + "start": { + "line": 104, + "column": 45 + }, + "end": { + "line": 104, + "column": 58 + } + } + } + ], + "range": [ + 2065, + 2087 + ], + "loc": { + "start": { + "line": 104, + "column": 37 + }, + "end": { + "line": 104, + "column": 59 + } + } + }, + "property": { + "type": "Identifier", + "name": "relativeTo", + "range": [ + 2088, + 2098 + ], + "loc": { + "start": { + "line": 104, + "column": 60 + }, + "end": { + "line": 104, + "column": 70 + } + } + }, + "range": [ + 2065, + 2098 + ], + "loc": { + "start": { + "line": 104, + "column": 37 + }, + "end": { + "line": 104, + "column": 70 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "rootFolder", + "range": [ + 2099, + 2109 + ], + "loc": { + "start": { + "line": 104, + "column": 71 + }, + "end": { + "line": 104, + "column": 81 + } + } + } + ], + "range": [ + 2065, + 2110 + ], + "loc": { + "start": { + "line": 104, + "column": 37 + }, + "end": { + "line": 104, + "column": 82 + } + } + }, + "range": [ + 2036, + 2110 + ], + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 82 + } + } + }, + "range": [ + 2036, + 2111 + ], + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 83 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2121, + 2125 + ], + "loc": { + "start": { + "line": 106, + "column": 8 + }, + "end": { + "line": 106, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_mountedFolders", + "range": [ + 2126, + 2141 + ], + "loc": { + "start": { + "line": 106, + "column": 13 + }, + "end": { + "line": 106, + "column": 28 + } + } + }, + "range": [ + 2121, + 2141 + ], + "loc": { + "start": { + "line": 106, + "column": 8 + }, + "end": { + "line": 106, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 2142, + 2146 + ], + "loc": { + "start": { + "line": 106, + "column": 29 + }, + "end": { + "line": 106, + "column": 33 + } + } + }, + "range": [ + 2121, + 2147 + ], + "loc": { + "start": { + "line": 106, + "column": 8 + }, + "end": { + "line": 106, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rootFolder", + "range": [ + 2148, + 2159 + ], + "loc": { + "start": { + "line": 106, + "column": 35 + }, + "end": { + "line": 106, + "column": 46 + } + } + }, + "range": [ + 2121, + 2159 + ], + "loc": { + "start": { + "line": 106, + "column": 8 + }, + "end": { + "line": 106, + "column": 46 + } + } + }, + "right": { + "type": "Identifier", + "name": "rootFolder", + "range": [ + 2162, + 2172 + ], + "loc": { + "start": { + "line": 106, + "column": 49 + }, + "end": { + "line": 106, + "column": 59 + } + } + }, + "range": [ + 2121, + 2172 + ], + "loc": { + "start": { + "line": 106, + "column": 8 + }, + "end": { + "line": 106, + "column": 59 + } + } + }, + "range": [ + 2121, + 2173 + ], + "loc": { + "start": { + "line": 106, + "column": 8 + }, + "end": { + "line": 106, + "column": 60 + } + } + } + ], + "range": [ + 1964, + 2181 + ], + "loc": { + "start": { + "line": 101, + "column": 30 + }, + "end": { + "line": 107, + "column": 7 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "options", + "range": [ + 2201, + 2208 + ], + "loc": { + "start": { + "line": 108, + "column": 12 + }, + "end": { + "line": 108, + "column": 19 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "params", + "range": [ + 2223, + 2229 + ], + "loc": { + "start": { + "line": 109, + "column": 10 + }, + "end": { + "line": 109, + "column": 16 + } + } + }, + "value": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Bucket", + "range": [ + 2245, + 2251 + ], + "loc": { + "start": { + "line": 110, + "column": 12 + }, + "end": { + "line": 110, + "column": 18 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2253, + 2257 + ], + "loc": { + "start": { + "line": 110, + "column": 20 + }, + "end": { + "line": 110, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buckets", + "range": [ + 2258, + 2266 + ], + "loc": { + "start": { + "line": 110, + "column": 25 + }, + "end": { + "line": 110, + "column": 33 + } + } + }, + "range": [ + 2253, + 2266 + ], + "loc": { + "start": { + "line": 110, + "column": 20 + }, + "end": { + "line": 110, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 2267, + 2271 + ], + "loc": { + "start": { + "line": 110, + "column": 34 + }, + "end": { + "line": 110, + "column": 38 + } + } + }, + "range": [ + 2253, + 2272 + ], + "loc": { + "start": { + "line": 110, + "column": 20 + }, + "end": { + "line": 110, + "column": 39 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 2245, + 2272 + ], + "loc": { + "start": { + "line": 110, + "column": 12 + }, + "end": { + "line": 110, + "column": 39 + } + } + } + ], + "range": [ + 2231, + 2285 + ], + "loc": { + "start": { + "line": 109, + "column": 18 + }, + "end": { + "line": 111, + "column": 11 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 2223, + 2285 + ], + "loc": { + "start": { + "line": 109, + "column": 10 + }, + "end": { + "line": 111, + "column": 11 + } + } + } + ], + "range": [ + 2211, + 2296 + ], + "loc": { + "start": { + "line": 108, + "column": 22 + }, + "end": { + "line": 112, + "column": 9 + } + } + }, + "range": [ + 2201, + 2296 + ], + "loc": { + "start": { + "line": 108, + "column": 12 + }, + "end": { + "line": 112, + "column": 9 + } + } + } + ], + "kind": "let", + "range": [ + 2197, + 2297 + ], + "loc": { + "start": { + "line": 108, + "column": 8 + }, + "end": { + "line": 112, + "column": 10 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2307, + 2311 + ], + "loc": { + "start": { + "line": 114, + "column": 8 + }, + "end": { + "line": 114, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_mountedFolders", + "range": [ + 2312, + 2327 + ], + "loc": { + "start": { + "line": 114, + "column": 13 + }, + "end": { + "line": 114, + "column": 28 + } + } + }, + "range": [ + 2307, + 2327 + ], + "loc": { + "start": { + "line": 114, + "column": 8 + }, + "end": { + "line": 114, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 2328, + 2332 + ], + "loc": { + "start": { + "line": 114, + "column": 29 + }, + "end": { + "line": 114, + "column": 33 + } + } + }, + "range": [ + 2307, + 2333 + ], + "loc": { + "start": { + "line": 114, + "column": 8 + }, + "end": { + "line": 114, + "column": 34 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "S3FS", + "range": [ + 2340, + 2344 + ], + "loc": { + "start": { + "line": 114, + "column": 41 + }, + "end": { + "line": 114, + "column": 45 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2345, + 2349 + ], + "loc": { + "start": { + "line": 114, + "column": 46 + }, + "end": { + "line": 114, + "column": 50 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buckets", + "range": [ + 2350, + 2358 + ], + "loc": { + "start": { + "line": 114, + "column": 51 + }, + "end": { + "line": 114, + "column": 59 + } + } + }, + "range": [ + 2345, + 2358 + ], + "loc": { + "start": { + "line": 114, + "column": 46 + }, + "end": { + "line": 114, + "column": 59 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 2359, + 2363 + ], + "loc": { + "start": { + "line": 114, + "column": 60 + }, + "end": { + "line": 114, + "column": 64 + } + } + }, + "range": [ + 2345, + 2364 + ], + "loc": { + "start": { + "line": 114, + "column": 46 + }, + "end": { + "line": 114, + "column": 65 + } + } + }, + { + "type": "Identifier", + "name": "options", + "range": [ + 2366, + 2373 + ], + "loc": { + "start": { + "line": 114, + "column": 67 + }, + "end": { + "line": 114, + "column": 74 + } + } + } + ], + "range": [ + 2336, + 2374 + ], + "loc": { + "start": { + "line": 114, + "column": 37 + }, + "end": { + "line": 114, + "column": 75 + } + } + }, + "range": [ + 2307, + 2374 + ], + "loc": { + "start": { + "line": 114, + "column": 8 + }, + "end": { + "line": 114, + "column": 75 + } + } + }, + "range": [ + 2307, + 2375 + ], + "loc": { + "start": { + "line": 114, + "column": 8 + }, + "end": { + "line": 114, + "column": 76 + } + } + } + ], + "range": [ + 2187, + 2383 + ], + "loc": { + "start": { + "line": 107, + "column": 13 + }, + "end": { + "line": 115, + "column": 7 + } + } + }, + "range": [ + 1940, + 2383 + ], + "loc": { + "start": { + "line": 101, + "column": 6 + }, + "end": { + "line": 115, + "column": 7 + } + } + } + ], + "range": [ + 1932, + 2389 + ], + "loc": { + "start": { + "line": 100, + "column": 59 + }, + "end": { + "line": 116, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1877, + 2389 + ], + "loc": { + "start": { + "line": 100, + "column": 4 + }, + "end": { + "line": 116, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2402, + 2406 + ], + "loc": { + "start": { + "line": 118, + "column": 11 + }, + "end": { + "line": 118, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_mountedFolders", + "range": [ + 2407, + 2422 + ], + "loc": { + "start": { + "line": 118, + "column": 16 + }, + "end": { + "line": 118, + "column": 31 + } + } + }, + "range": [ + 2402, + 2422 + ], + "loc": { + "start": { + "line": 118, + "column": 11 + }, + "end": { + "line": 118, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 2423, + 2427 + ], + "loc": { + "start": { + "line": 118, + "column": 32 + }, + "end": { + "line": 118, + "column": 36 + } + } + }, + "range": [ + 2402, + 2428 + ], + "loc": { + "start": { + "line": 118, + "column": 11 + }, + "end": { + "line": 118, + "column": 37 + } + } + }, + "range": [ + 2395, + 2429 + ], + "loc": { + "start": { + "line": 118, + "column": 4 + }, + "end": { + "line": 118, + "column": 38 + } + } + } + ], + "range": [ + 1763, + 2433 + ], + "loc": { + "start": { + "line": 95, + "column": 18 + }, + "end": { + "line": 119, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1756, + 2433 + ], + "loc": { + "start": { + "line": 95, + "column": 11 + }, + "end": { + "line": 119, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1747, + 2433 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 119, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Returns mounted file system folder (tmp, public or system)\n *\n * @param name\n * @returns {*}\n ", + "range": [ + 1631, + 1744 + ], + "loc": { + "start": { + "line": 89, + "column": 2 + }, + "end": { + "line": 94, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} subpath\n * @returns {String}\n * @private\n ", + "range": [ + 2437, + 2512 + ], + "loc": { + "start": { + "line": 121, + "column": 2 + }, + "end": { + "line": 125, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_getTmpDir", + "range": [ + 2522, + 2532 + ], + "loc": { + "start": { + "line": 126, + "column": 9 + }, + "end": { + "line": 126, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "subpath", + "range": [ + 2533, + 2540 + ], + "loc": { + "start": { + "line": 126, + "column": 20 + }, + "end": { + "line": 126, + "column": 27 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "dir", + "range": [ + 2552, + 2555 + ], + "loc": { + "start": { + "line": 127, + "column": 8 + }, + "end": { + "line": 127, + "column": 11 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Path", + "range": [ + 2558, + 2562 + ], + "loc": { + "start": { + "line": 127, + "column": 14 + }, + "end": { + "line": 127, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "join", + "range": [ + 2563, + 2567 + ], + "loc": { + "start": { + "line": 127, + "column": 19 + }, + "end": { + "line": 127, + "column": 23 + } + } + }, + "range": [ + 2558, + 2567 + ], + "loc": { + "start": { + "line": 127, + "column": 14 + }, + "end": { + "line": 127, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "OS", + "range": [ + 2568, + 2570 + ], + "loc": { + "start": { + "line": 127, + "column": 24 + }, + "end": { + "line": 127, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "tmpdir", + "range": [ + 2571, + 2577 + ], + "loc": { + "start": { + "line": 127, + "column": 27 + }, + "end": { + "line": 127, + "column": 33 + } + } + }, + "range": [ + 2568, + 2577 + ], + "loc": { + "start": { + "line": 127, + "column": 24 + }, + "end": { + "line": 127, + "column": 33 + } + } + }, + "arguments": [], + "range": [ + 2568, + 2579 + ], + "loc": { + "start": { + "line": 127, + "column": 24 + }, + "end": { + "line": 127, + "column": 35 + } + } + }, + { + "type": "Identifier", + "name": "subpath", + "range": [ + 2581, + 2588 + ], + "loc": { + "start": { + "line": 127, + "column": 37 + }, + "end": { + "line": 127, + "column": 44 + } + } + } + ], + "range": [ + 2558, + 2589 + ], + "loc": { + "start": { + "line": 127, + "column": 14 + }, + "end": { + "line": 127, + "column": 45 + } + } + }, + "range": [ + 2552, + 2589 + ], + "loc": { + "start": { + "line": 127, + "column": 8 + }, + "end": { + "line": 127, + "column": 45 + } + } + } + ], + "kind": "let", + "range": [ + 2548, + 2590 + ], + "loc": { + "start": { + "line": 127, + "column": 4 + }, + "end": { + "line": 127, + "column": 46 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "require", + "range": [ + 2596, + 2603 + ], + "loc": { + "start": { + "line": 129, + "column": 4 + }, + "end": { + "line": 129, + "column": 11 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "fs-extra", + "raw": "'fs-extra'", + "range": [ + 2604, + 2614 + ], + "loc": { + "start": { + "line": 129, + "column": 12 + }, + "end": { + "line": 129, + "column": 22 + } + } + } + ], + "range": [ + 2596, + 2615 + ], + "loc": { + "start": { + "line": 129, + "column": 4 + }, + "end": { + "line": 129, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "mkdirpSync", + "range": [ + 2616, + 2626 + ], + "loc": { + "start": { + "line": 129, + "column": 24 + }, + "end": { + "line": 129, + "column": 34 + } + } + }, + "range": [ + 2596, + 2626 + ], + "loc": { + "start": { + "line": 129, + "column": 4 + }, + "end": { + "line": 129, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "dir", + "range": [ + 2627, + 2630 + ], + "loc": { + "start": { + "line": 129, + "column": 35 + }, + "end": { + "line": 129, + "column": 38 + } + } + } + ], + "range": [ + 2596, + 2631 + ], + "loc": { + "start": { + "line": 129, + "column": 4 + }, + "end": { + "line": 129, + "column": 39 + } + } + }, + "range": [ + 2596, + 2632 + ], + "loc": { + "start": { + "line": 129, + "column": 4 + }, + "end": { + "line": 129, + "column": 40 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "dir", + "range": [ + 2645, + 2648 + ], + "loc": { + "start": { + "line": 131, + "column": 11 + }, + "end": { + "line": 131, + "column": 14 + } + } + }, + "range": [ + 2638, + 2649 + ], + "loc": { + "start": { + "line": 131, + "column": 4 + }, + "end": { + "line": 131, + "column": 15 + } + } + } + ], + "range": [ + 2542, + 2653 + ], + "loc": { + "start": { + "line": 126, + "column": 29 + }, + "end": { + "line": 132, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2532, + 2653 + ], + "loc": { + "start": { + "line": 126, + "column": 19 + }, + "end": { + "line": 132, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2515, + 2653 + ], + "loc": { + "start": { + "line": 126, + "column": 2 + }, + "end": { + "line": 132, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} subpath\n * @returns {String}\n * @private\n ", + "range": [ + 2437, + 2512 + ], + "loc": { + "start": { + "line": 121, + "column": 2 + }, + "end": { + "line": 125, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Returns mounted tmp folder\n *\n * @returns {*}\n ", + "range": [ + 2657, + 2721 + ], + "loc": { + "start": { + "line": 134, + "column": 2 + }, + "end": { + "line": 138, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "tmp", + "range": [ + 2728, + 2731 + ], + "loc": { + "start": { + "line": 139, + "column": 6 + }, + "end": { + "line": 139, + "column": 9 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2747, + 2751 + ], + "loc": { + "start": { + "line": 140, + "column": 11 + }, + "end": { + "line": 140, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "getFolder", + "range": [ + 2752, + 2761 + ], + "loc": { + "start": { + "line": 140, + "column": 16 + }, + "end": { + "line": 140, + "column": 25 + } + } + }, + "range": [ + 2747, + 2761 + ], + "loc": { + "start": { + "line": 140, + "column": 11 + }, + "end": { + "line": 140, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 2762, + 2764 + ], + "loc": { + "start": { + "line": 140, + "column": 26 + }, + "end": { + "line": 140, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "TMP", + "range": [ + 2765, + 2768 + ], + "loc": { + "start": { + "line": 140, + "column": 29 + }, + "end": { + "line": 140, + "column": 32 + } + } + }, + "range": [ + 2762, + 2768 + ], + "loc": { + "start": { + "line": 140, + "column": 26 + }, + "end": { + "line": 140, + "column": 32 + } + } + } + ], + "range": [ + 2747, + 2769 + ], + "loc": { + "start": { + "line": 140, + "column": 11 + }, + "end": { + "line": 140, + "column": 33 + } + } + }, + "range": [ + 2740, + 2770 + ], + "loc": { + "start": { + "line": 140, + "column": 4 + }, + "end": { + "line": 140, + "column": 34 + } + } + } + ], + "range": [ + 2734, + 2774 + ], + "loc": { + "start": { + "line": 139, + "column": 12 + }, + "end": { + "line": 141, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2731, + 2774 + ], + "loc": { + "start": { + "line": 139, + "column": 9 + }, + "end": { + "line": 141, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2724, + 2774 + ], + "loc": { + "start": { + "line": 139, + "column": 2 + }, + "end": { + "line": 141, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Returns mounted tmp folder\n *\n * @returns {*}\n ", + "range": [ + 2657, + 2721 + ], + "loc": { + "start": { + "line": 134, + "column": 2 + }, + "end": { + "line": 138, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Returns mounted public folder\n *\n * @returns {*}\n ", + "range": [ + 2778, + 2845 + ], + "loc": { + "start": { + "line": 143, + "column": 2 + }, + "end": { + "line": 147, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "public", + "range": [ + 2852, + 2858 + ], + "loc": { + "start": { + "line": 148, + "column": 6 + }, + "end": { + "line": 148, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2874, + 2878 + ], + "loc": { + "start": { + "line": 149, + "column": 11 + }, + "end": { + "line": 149, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "getFolder", + "range": [ + 2879, + 2888 + ], + "loc": { + "start": { + "line": 149, + "column": 16 + }, + "end": { + "line": 149, + "column": 25 + } + } + }, + "range": [ + 2874, + 2888 + ], + "loc": { + "start": { + "line": 149, + "column": 11 + }, + "end": { + "line": 149, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 2889, + 2891 + ], + "loc": { + "start": { + "line": 149, + "column": 26 + }, + "end": { + "line": 149, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "PUBLIC", + "range": [ + 2892, + 2898 + ], + "loc": { + "start": { + "line": 149, + "column": 29 + }, + "end": { + "line": 149, + "column": 35 + } + } + }, + "range": [ + 2889, + 2898 + ], + "loc": { + "start": { + "line": 149, + "column": 26 + }, + "end": { + "line": 149, + "column": 35 + } + } + } + ], + "range": [ + 2874, + 2899 + ], + "loc": { + "start": { + "line": 149, + "column": 11 + }, + "end": { + "line": 149, + "column": 36 + } + } + }, + "range": [ + 2867, + 2900 + ], + "loc": { + "start": { + "line": 149, + "column": 4 + }, + "end": { + "line": 149, + "column": 37 + } + } + } + ], + "range": [ + 2861, + 2904 + ], + "loc": { + "start": { + "line": 148, + "column": 15 + }, + "end": { + "line": 150, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2858, + 2904 + ], + "loc": { + "start": { + "line": 148, + "column": 12 + }, + "end": { + "line": 150, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2848, + 2904 + ], + "loc": { + "start": { + "line": 148, + "column": 2 + }, + "end": { + "line": 150, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Returns mounted public folder\n *\n * @returns {*}\n ", + "range": [ + 2778, + 2845 + ], + "loc": { + "start": { + "line": 143, + "column": 2 + }, + "end": { + "line": 147, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Returns mounted sys folder\n *\n * @returns {*}\n ", + "range": [ + 2908, + 2972 + ], + "loc": { + "start": { + "line": 152, + "column": 2 + }, + "end": { + "line": 156, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "system", + "range": [ + 2979, + 2985 + ], + "loc": { + "start": { + "line": 157, + "column": 6 + }, + "end": { + "line": 157, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3001, + 3005 + ], + "loc": { + "start": { + "line": 158, + "column": 11 + }, + "end": { + "line": 158, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "getFolder", + "range": [ + 3006, + 3015 + ], + "loc": { + "start": { + "line": 158, + "column": 16 + }, + "end": { + "line": 158, + "column": 25 + } + } + }, + "range": [ + 3001, + 3015 + ], + "loc": { + "start": { + "line": 158, + "column": 11 + }, + "end": { + "line": 158, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FS", + "range": [ + 3016, + 3018 + ], + "loc": { + "start": { + "line": 158, + "column": 26 + }, + "end": { + "line": 158, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "SYSTEM", + "range": [ + 3019, + 3025 + ], + "loc": { + "start": { + "line": 158, + "column": 29 + }, + "end": { + "line": 158, + "column": 35 + } + } + }, + "range": [ + 3016, + 3025 + ], + "loc": { + "start": { + "line": 158, + "column": 26 + }, + "end": { + "line": 158, + "column": 35 + } + } + } + ], + "range": [ + 3001, + 3026 + ], + "loc": { + "start": { + "line": 158, + "column": 11 + }, + "end": { + "line": 158, + "column": 36 + } + } + }, + "range": [ + 2994, + 3027 + ], + "loc": { + "start": { + "line": 158, + "column": 4 + }, + "end": { + "line": 158, + "column": 37 + } + } + } + ], + "range": [ + 2988, + 3031 + ], + "loc": { + "start": { + "line": 157, + "column": 15 + }, + "end": { + "line": 159, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2985, + 3031 + ], + "loc": { + "start": { + "line": 157, + "column": 12 + }, + "end": { + "line": 159, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2975, + 3031 + ], + "loc": { + "start": { + "line": 157, + "column": 2 + }, + "end": { + "line": 159, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Returns mounted sys folder\n *\n * @returns {*}\n ", + "range": [ + 2908, + 2972 + ], + "loc": { + "start": { + "line": 152, + "column": 2 + }, + "end": { + "line": 156, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 318, + 3033 + ], + "loc": { + "start": { + "line": 16, + "column": 46 + }, + "end": { + "line": 160, + "column": 1 + } + } + }, + "range": [ + 279, + 3033 + ], + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 160, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Deep FS implementation\n ", + "range": [ + 238, + 271 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 272, + 3033 + ], + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 160, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Deep FS implementation\n ", + "range": [ + 238, + 271 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 42, + 3033 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 160, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 5/28/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Deep FS implementation\n ", + "range": [ + 238, + 271 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Defines all class private properties\n *\n * @param {String} tmpFsBucket\n * @param {String} publicFsBucket\n * @param {String} systemFsBucket\n ", + "range": [ + 322, + 483 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 778, + 810 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 858, + 890 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 943, + 975 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1028, + 1059 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 58, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 1160, + 1265 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 72, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Returns mounted file system folder (tmp, public or system)\n *\n * @param name\n * @returns {*}\n ", + "range": [ + 1631, + 1744 + ], + "loc": { + "start": { + "line": 89, + "column": 2 + }, + "end": { + "line": 94, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} subpath\n * @returns {String}\n * @private\n ", + "range": [ + 2437, + 2512 + ], + "loc": { + "start": { + "line": 121, + "column": 2 + }, + "end": { + "line": 125, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Returns mounted tmp folder\n *\n * @returns {*}\n ", + "range": [ + 2657, + 2721 + ], + "loc": { + "start": { + "line": 134, + "column": 2 + }, + "end": { + "line": 138, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Returns mounted public folder\n *\n * @returns {*}\n ", + "range": [ + 2778, + 2845 + ], + "loc": { + "start": { + "line": 143, + "column": 2 + }, + "end": { + "line": 147, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Returns mounted sys folder\n *\n * @returns {*}\n ", + "range": [ + 2908, + 2972 + ], + "loc": { + "start": { + "line": 152, + "column": 2 + }, + "end": { + "line": 156, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-fs/ast/source/bootstrap.js.json b/docs-api/deep-fs/ast/source/bootstrap.js.json new file mode 100644 index 00000000..6187cd99 --- /dev/null +++ b/docs-api/deep-fs/ast/source/bootstrap.js.json @@ -0,0 +1,332 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 43, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 43, + 56 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 5/28/2015\n ", + "range": [ + 0, + 41 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "FS", + "range": [ + 66, + 68 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 10 + } + } + }, + "imported": { + "type": "Identifier", + "name": "FS", + "range": [ + 66, + 68 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 10 + } + } + }, + "range": [ + 66, + 68 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 10 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./FS", + "raw": "'./FS'", + "range": [ + 75, + 81 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 23 + } + } + }, + "range": [ + 58, + 82 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 24 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "exports", + "range": [ + 88, + 95 + ], + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 11 + } + } + }, + "init": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "module", + "range": [ + 98, + 104 + ], + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exports", + "range": [ + 105, + 112 + ], + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 28 + } + } + }, + "range": [ + 98, + 112 + ], + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 28 + } + } + }, + "right": { + "type": "Identifier", + "name": "FS", + "range": [ + 115, + 117 + ], + "loc": { + "start": { + "line": 9, + "column": 31 + }, + "end": { + "line": 9, + "column": 33 + } + } + }, + "range": [ + 98, + 117 + ], + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 33 + } + } + }, + "range": [ + 88, + 117 + ], + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 33 + } + } + } + ], + "kind": "let", + "range": [ + 84, + 118 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 34 + } + } + } + ], + "sourceType": "module", + "range": [ + 43, + 118 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 9, + "column": 34 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 5/28/2015\n ", + "range": [ + 0, + 41 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-fs/badge.svg b/docs-api/deep-fs/badge.svg new file mode 100644 index 00000000..e24552c4 --- /dev/null +++ b/docs-api/deep-fs/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 100% + 100% + + diff --git a/docs-api/deep-fs/class/lib/Exception/Exception.js~Exception.html b/docs-api/deep-fs/class/lib/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..35677757 --- /dev/null +++ b/docs-api/deep-fs/class/lib/Exception/Exception.js~Exception.html @@ -0,0 +1,195 @@ + + + + + + Exception | DEEP File System Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Exception} from 'deep-fs/lib/Exception/Exception.js'
    + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    deep-core~Core.Exception.Exception → Exception
    + + + + + + + + + +

    Thrown when any exception occurs

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-fs/class/lib/Exception/UnknownFolderException.js~UnknownFolderException.html b/docs-api/deep-fs/class/lib/Exception/UnknownFolderException.js~UnknownFolderException.html new file mode 100644 index 00000000..49b5763a --- /dev/null +++ b/docs-api/deep-fs/class/lib/Exception/UnknownFolderException.js~UnknownFolderException.html @@ -0,0 +1,201 @@ + + + + + + UnknownFolderException | DEEP File System Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {UnknownFolderException} from 'deep-fs/lib/Exception/UnknownFolderException.js'
    + public + class + + + + | source +
    + +
    +

    UnknownFolderException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → UnknownFolderException
    + + + + + + + + + +

    Thrown when unknown FS folder is requested

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(folderName: String, folders: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(folderName: String, folders: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    folderNameString
    foldersArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-fs/class/lib/FS.js~FS.html b/docs-api/deep-fs/class/lib/FS.js~FS.html new file mode 100644 index 00000000..acdd9942 --- /dev/null +++ b/docs-api/deep-fs/class/lib/FS.js~FS.html @@ -0,0 +1,940 @@ + + + + + + FS | DEEP File System Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {FS} from 'deep-fs/lib/FS.js'
    + public + class + + + + | source +
    + +
    +

    FS

    + + + + + +

    Extends:

    deep-kernel~Kernel.ContainerAware → FS
    + + + + + + + + + +

    Deep FS implementation

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

    Static Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + +
    +

    + FOLDERS: Array: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + PUBLIC: string: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + SYSTEM: string: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + TMP: string: string +

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(tmpFsBucket: String, publicFsBucket: String, systemFsBucket: String) +

    +
    +
    + + +
    Defines all class private properties
    +
    +
    + + +
    +
    +

    Member Summary

    + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + public: *: * +

    +
    +
    + + +
    Returns mounted public folder
    +
    +
    + + +
    + public + + get + + + +
    +

    + system: *: * +

    +
    +
    + + +
    Returns mounted sys folder
    +
    +
    + + +
    + public + + get + + + +
    +

    + tmp: *: * +

    +
    +
    + + +
    Returns mounted tmp folder
    +
    +
    + + +
    +
    +

    Method Summary

    + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + boot(kernel: Kernel, callback: Function) +

    +
    +
    + + +
    Booting a certain service
    +
    +
    + + +
    + public + + + + + +
    +

    + getFolder(name: *): * +

    +
    +
    + + +
    Returns mounted file system folder (tmp, public or system)
    +
    +
    + + +
    +
    + + + +

    Static Public Members

    + +
    +

    + public + static + get + + + FOLDERS: Array: * + + + + source + +

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

    Return:

    + + + + + +
    Array
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + PUBLIC: string: string + + + + source + +

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

    Return:

    + + + + + +
    string
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + SYSTEM: string: string + + + + source + +

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

    Return:

    + + + + + +
    string
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + TMP: string: string + + + + source + +

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

    Return:

    + + + + + +
    string
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +

    Public Constructors

    + +
    +

    + public + + + + + constructor(tmpFsBucket: String, publicFsBucket: String, systemFsBucket: String) + + + + source + +

    + + + + +

    Defines all class private properties

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    tmpFsBucketString
    publicFsBucketString
    systemFsBucketString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + public: *: * + + + + source + +

    + + + + +

    Returns mounted public folder

    +
    + + + +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + system: *: * + + + + source + +

    + + + + +

    Returns mounted sys folder

    +
    + + + +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + tmp: *: * + + + + source + +

    + + + + +

    Returns mounted tmp folder

    +
    + + + +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + boot(kernel: Kernel, callback: Function) + + + + source + +

    + + + + +

    Booting a certain service

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    kernelKernel
    callbackFunction
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    + public + + + + + getFolder(name: *): * + + + + source + +

    + + + + +

    Returns mounted file system folder (tmp, public or system)

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    name*
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-fs/coverage.json b/docs-api/deep-fs/coverage.json new file mode 100644 index 00000000..538b3d85 --- /dev/null +++ b/docs-api/deep-fs/coverage.json @@ -0,0 +1,22 @@ +{ + "coverage": "100%", + "expectCount": 15, + "actualCount": 15, + "files": { + "lib/Exception/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/FS.js": { + "expectCount": 11, + "actualCount": 11, + "undocumentLines": [] + }, + "lib/Exception/UnknownFolderException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/docs-api/deep-fs/css/prettify-tomorrow.css b/docs-api/deep-fs/css/prettify-tomorrow.css new file mode 100644 index 00000000..b6f92a78 --- /dev/null +++ b/docs-api/deep-fs/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs-api/deep-fs/css/style.css b/docs-api/deep-fs/css/style.css new file mode 100644 index 00000000..4dc99a1b --- /dev/null +++ b/docs-api/deep-fs/css/style.css @@ -0,0 +1,862 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Roboto', sans-serif; + overflow: auto; + font-size: 14px; + /*color: #4d4e53;*/ + color: rgba(0, 0, 0, .68); + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + background-color: #E2E2E2; + padding: 4px; + font-weight: 300; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 19px; +} + +p > code { + background-color: #f5f5f5; + border-radius: 3px; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0 4px; + border-radius: 3px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: white; + top: 0; + border-bottom: solid 1px #E02130; +} +.layout-container > header > a{ + margin: 0 5px; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid rgba(0, 0, 0, 0.1); +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation .nav-dir-path { + margin-top: 0.7em; + margin-bottom: 0.25em; + font-size: 0.8em; + color: #aaa; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #999; + color: white; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +pre.source-code { + background: #f5f5f5; + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150); +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #999; + color: white; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} + +table.test-summary thead { + background: #999; + color: white; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-describe .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; +} + +table.test-summary tr.test-describe .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-describe .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} + +.inner-link-active { + background: rgb(255, 255, 150); +} + +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + +/* coverage badge */ +.esdoc-coverage { + display: inline-block; + height: 20px; + vertical-align: top; +} + +h1 .esdoc-coverage { + position: relative; + top: -4px; +} + +.esdoc-coverage-wrap { + color: white; + font-size: 12px; + font-weight: 500; +} + +.esdoc-coverage-label { + padding: 3px 4px 3px 6px; + background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%); + border-radius: 4px 0 0 4px; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-ratio { + padding: 3px 6px 3px 4px; + border-radius: 0 4px 4px 0; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-low { + background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%); +} + +.esdoc-coverage-middle { + background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%); +} + +.esdoc-coverage-high { + background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%); +} + +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; + background-color: transparent; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} diff --git a/docs-api/deep-fs/dump.json b/docs-api/deep-fs/dump.json new file mode 100644 index 00000000..f98d5092 --- /dev/null +++ b/docs-api/deep-fs/dump.json @@ -0,0 +1,1235 @@ +[ + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/Exception.js", + "memberof": null, + "longname": "lib/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\n\n/**\n * Thrown when any exception occurs\n */\nexport class Exception extends Core.Exception.Exception {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Exception/Exception.js", + "longname": "lib/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-fs/lib/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Thrown when any exception occurs", + "lineNumber": 12, + "interface": false, + "extends": [ + "deep-core~Core.Exception.Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/Exception.js~Exception", + "longname": "lib/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/UnknownFolderException.js", + "memberof": null, + "longname": "lib/Exception/UnknownFolderException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 6/10/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when unknown FS folder is requested\n */\nexport class UnknownFolderException extends Exception {\n /**\n * @param {String} folderName\n * @param {Array} folders\n */\n constructor(folderName, folders) {\n super(`Unknown folder \"${folderName}\". Defined folders are \"${folders.join(', ')}\"`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "UnknownFolderException", + "memberof": "lib/Exception/UnknownFolderException.js", + "longname": "lib/Exception/UnknownFolderException.js~UnknownFolderException", + "access": null, + "export": true, + "importPath": "deep-fs/lib/Exception/UnknownFolderException.js", + "importStyle": "{UnknownFolderException}", + "description": "Thrown when unknown FS folder is requested", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/UnknownFolderException.js~UnknownFolderException", + "longname": "lib/Exception/UnknownFolderException.js~UnknownFolderException#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "folderName", + "description": "" + }, + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "folders", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/FS.js", + "memberof": null, + "longname": "lib/FS.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 5/28/15.\n */\n\n'use strict';\n\nimport S3FS from 's3fs';\nimport Kernel from 'deep-kernel';\nimport {UnknownFolderException} from './Exception/UnknownFolderException';\nimport OS from 'os';\nimport Path from 'path';\n\n/**\n * Deep FS implementation\n */\nexport class FS extends Kernel.ContainerAware {\n /**\n * Defines all class private properties\n *\n * @param {String} tmpFsBucket\n * @param {String} publicFsBucket\n * @param {String} systemFsBucket\n */\n constructor(tmpFsBucket = null, publicFsBucket = null, systemFsBucket = null) {\n super();\n\n this._mountedFolders = {};\n this._buckets = {};\n\n this._buckets[FS.TMP] = tmpFsBucket;\n this._buckets[FS.PUBLIC] = publicFsBucket;\n this._buckets[FS.SYSTEM] = systemFsBucket;\n }\n\n /**\n * @returns {string}\n */\n static get TMP() {\n return 'temp';\n }\n\n /**\n * @returns {string}\n */\n static get PUBLIC() {\n return 'public';\n }\n\n /**\n * @returns {string}\n */\n static get SYSTEM() {\n return 'system';\n }\n\n /**\n * @returns {Array}\n */\n static get FOLDERS() {\n return [\n FS.TMP,\n FS.PUBLIC,\n FS.SYSTEM,\n ];\n }\n\n /**\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n */\n boot(kernel, callback) {\n let bucketsConfig = kernel.config.buckets;\n\n for (let folderKey in FS.FOLDERS) {\n if (!FS.FOLDERS.hasOwnProperty(folderKey)) {\n continue;\n }\n\n let folder = FS.FOLDERS[folderKey];\n\n this._buckets[folder] = `${bucketsConfig[folder].name}/${kernel.microservice().identifier}`;\n }\n\n callback();\n }\n\n /**\n * Returns mounted file system folder (tmp, public or system)\n *\n * @param name\n * @returns {*}\n */\n getFolder(name) {\n if (FS.FOLDERS.indexOf(name) === -1) {\n throw new UnknownFolderException(name, FS.FOLDERS);\n }\n\n if (typeof this._mountedFolders[name] === 'undefined') {\n if (this._localBackend) {\n let rootFolder = FS._getTmpDir(this._buckets[name]);\n\n this._mountedFolders[name] = require('relative-fs').relativeTo(rootFolder);\n\n this._mountedFolders[name]._rootFolder = rootFolder;\n } else {\n let options = {\n params: {\n Bucket: this._buckets[name],\n },\n };\n\n this._mountedFolders[name] = new S3FS(this._buckets[name], options);\n }\n }\n\n return this._mountedFolders[name];\n }\n\n /**\n * @param {String} subpath\n * @returns {String}\n * @private\n */\n static _getTmpDir(subpath) {\n let dir = Path.join(OS.tmpdir(), subpath);\n\n require('fs-extra').mkdirpSync(dir);\n\n return dir;\n }\n\n /**\n * Returns mounted tmp folder\n *\n * @returns {*}\n */\n get tmp() {\n return this.getFolder(FS.TMP);\n }\n\n /**\n * Returns mounted public folder\n *\n * @returns {*}\n */\n get public() {\n return this.getFolder(FS.PUBLIC);\n }\n\n /**\n * Returns mounted sys folder\n *\n * @returns {*}\n */\n get system() {\n return this.getFolder(FS.SYSTEM);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "FS", + "memberof": "lib/FS.js", + "longname": "lib/FS.js~FS", + "access": null, + "export": true, + "importPath": "deep-fs/lib/FS.js", + "importStyle": "{FS}", + "description": "Deep FS implementation", + "lineNumber": 16, + "interface": false, + "extends": [ + "deep-kernel~Kernel.ContainerAware" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/FS.js~FS", + "longname": "lib/FS.js~FS#constructor", + "access": null, + "description": "Defines all class private properties", + "lineNumber": 24, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "tmpFsBucket", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "publicFsBucket", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "systemFsBucket", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_mountedFolders", + "memberof": "lib/FS.js~FS", + "longname": "lib/FS.js~FS#_mountedFolders", + "access": null, + "description": null, + "lineNumber": 27, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_buckets", + "memberof": "lib/FS.js~FS", + "longname": "lib/FS.js~FS#_buckets", + "access": null, + "description": null, + "lineNumber": 28, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "TMP", + "memberof": "lib/FS.js~FS", + "longname": "lib/FS.js~FS.TMP", + "access": null, + "description": null, + "lineNumber": 38, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{string}" + } + ], + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "PUBLIC", + "memberof": "lib/FS.js~FS", + "longname": "lib/FS.js~FS.PUBLIC", + "access": null, + "description": null, + "lineNumber": 45, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{string}" + } + ], + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "SYSTEM", + "memberof": "lib/FS.js~FS", + "longname": "lib/FS.js~FS.SYSTEM", + "access": null, + "description": null, + "lineNumber": 52, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{string}" + } + ], + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "FOLDERS", + "memberof": "lib/FS.js~FS", + "longname": "lib/FS.js~FS.FOLDERS", + "access": null, + "description": null, + "lineNumber": 59, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Array}" + } + ], + "return": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "boot", + "memberof": "lib/FS.js~FS", + "longname": "lib/FS.js~FS#boot", + "access": null, + "description": "Booting a certain service", + "lineNumber": 73, + "params": [ + { + "nullable": null, + "types": [ + "Kernel" + ], + "spread": false, + "optional": false, + "name": "kernel", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "getFolder", + "memberof": "lib/FS.js~FS", + "longname": "lib/FS.js~FS#getFolder", + "access": null, + "description": "Returns mounted file system folder (tmp, public or system)", + "lineNumber": 95, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "_getTmpDir", + "memberof": "lib/FS.js~FS", + "longname": "lib/FS.js~FS._getTmpDir", + "access": "private", + "description": null, + "lineNumber": 126, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "subpath", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "tmp", + "memberof": "lib/FS.js~FS", + "longname": "lib/FS.js~FS#tmp", + "access": null, + "description": "Returns mounted tmp folder", + "lineNumber": 139, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "public", + "memberof": "lib/FS.js~FS", + "longname": "lib/FS.js~FS#public", + "access": null, + "description": "Returns mounted public folder", + "lineNumber": 148, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "system", + "memberof": "lib/FS.js~FS", + "longname": "lib/FS.js~FS#system", + "access": null, + "description": "Returns mounted sys folder", + "lineNumber": 157, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/bootstrap.js", + "memberof": null, + "longname": "lib/bootstrap.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 5/28/2015\n */\n\n'use strict';\n\nimport {FS} from './FS';\n\nlet exports = module.exports = FS;\n" + }, + { + "kind": "variable", + "static": true, + "variation": null, + "name": "exports", + "memberof": "lib/bootstrap.js", + "longname": "lib/bootstrap.js~exports", + "access": null, + "export": false, + "importPath": "deep-fs/lib/bootstrap.js", + "importStyle": null, + "description": null, + "lineNumber": 9, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~null", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Error", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Date", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~String", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~string", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Map", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Set", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "CanvasRenderingContext2D", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DocumentFragment", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Element", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Element", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Event", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Event", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Node", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Node", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NodeList", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~NodeList", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "XMLHttpRequest", + "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "access": null, + "description": null, + "builtinExternal": true + } +] \ No newline at end of file diff --git a/docs-api/deep-fs/file/lib/Exception/Exception.js.html b/docs-api/deep-fs/file/lib/Exception/Exception.js.html new file mode 100644 index 00000000..4f6da871 --- /dev/null +++ b/docs-api/deep-fs/file/lib/Exception/Exception.js.html @@ -0,0 +1,76 @@ + + + + + + lib/Exception/Exception.js | DEEP File System Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/Exception.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +
    +/**
    + * Thrown when any exception occurs
    + */
    +export class Exception extends Core.Exception.Exception {
    +  /**
    +   * @param {Array} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-fs/file/lib/Exception/UnknownFolderException.js.html b/docs-api/deep-fs/file/lib/Exception/UnknownFolderException.js.html new file mode 100644 index 00000000..dc537f3a --- /dev/null +++ b/docs-api/deep-fs/file/lib/Exception/UnknownFolderException.js.html @@ -0,0 +1,77 @@ + + + + + + lib/Exception/UnknownFolderException.js | DEEP File System Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/UnknownFolderException.js

    +
    /**
    + * Created by mgoria on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when unknown FS folder is requested
    + */
    +export class UnknownFolderException extends Exception {
    +  /**
    +   * @param {String} folderName
    +   * @param {Array} folders
    +   */
    +  constructor(folderName, folders) {
    +    super(`Unknown folder "${folderName}". Defined folders are "${folders.join(', ')}"`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-fs/file/lib/FS.js.html b/docs-api/deep-fs/file/lib/FS.js.html new file mode 100644 index 00000000..def15164 --- /dev/null +++ b/docs-api/deep-fs/file/lib/FS.js.html @@ -0,0 +1,217 @@ + + + + + + lib/FS.js | DEEP File System Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/FS.js

    +
    /**
    + * Created by mgoria on 5/28/15.
    + */
    +
    +'use strict';
    +
    +import S3FS from 's3fs';
    +import Kernel from 'deep-kernel';
    +import {UnknownFolderException} from './Exception/UnknownFolderException';
    +import OS from 'os';
    +import Path from 'path';
    +
    +/**
    + * Deep FS implementation
    + */
    +export class FS extends Kernel.ContainerAware {
    +  /**
    +   * Defines all class private properties
    +   *
    +   * @param {String} tmpFsBucket
    +   * @param {String} publicFsBucket
    +   * @param {String} systemFsBucket
    +   */
    +  constructor(tmpFsBucket = null, publicFsBucket = null, systemFsBucket = null) {
    +    super();
    +
    +    this._mountedFolders = {};
    +    this._buckets = {};
    +
    +    this._buckets[FS.TMP] = tmpFsBucket;
    +    this._buckets[FS.PUBLIC] = publicFsBucket;
    +    this._buckets[FS.SYSTEM] = systemFsBucket;
    +  }
    +
    +  /**
    +   * @returns {string}
    +   */
    +  static get TMP() {
    +    return 'temp';
    +  }
    +
    +  /**
    +   * @returns {string}
    +   */
    +  static get PUBLIC() {
    +    return 'public';
    +  }
    +
    +  /**
    +   * @returns {string}
    +   */
    +  static get SYSTEM() {
    +    return 'system';
    +  }
    +
    +  /**
    +   * @returns {Array}
    +   */
    +  static get FOLDERS() {
    +    return [
    +      FS.TMP,
    +      FS.PUBLIC,
    +      FS.SYSTEM,
    +    ];
    +  }
    +
    +  /**
    +   * Booting a certain service
    +   *
    +   * @param {Kernel} kernel
    +   * @param {Function} callback
    +   */
    +  boot(kernel, callback) {
    +    let bucketsConfig = kernel.config.buckets;
    +
    +    for (let folderKey in FS.FOLDERS) {
    +      if (!FS.FOLDERS.hasOwnProperty(folderKey)) {
    +        continue;
    +      }
    +
    +      let folder = FS.FOLDERS[folderKey];
    +
    +      this._buckets[folder] = `${bucketsConfig[folder].name}/${kernel.microservice().identifier}`;
    +    }
    +
    +    callback();
    +  }
    +
    +  /**
    +   * Returns mounted file system folder (tmp, public or system)
    +   *
    +   * @param name
    +   * @returns {*}
    +   */
    +  getFolder(name) {
    +    if (FS.FOLDERS.indexOf(name) === -1) {
    +      throw new UnknownFolderException(name, FS.FOLDERS);
    +    }
    +
    +    if (typeof this._mountedFolders[name] === 'undefined') {
    +      if (this._localBackend) {
    +        let rootFolder = FS._getTmpDir(this._buckets[name]);
    +
    +        this._mountedFolders[name] = require('relative-fs').relativeTo(rootFolder);
    +
    +        this._mountedFolders[name]._rootFolder = rootFolder;
    +      } else {
    +        let options = {
    +          params: {
    +            Bucket: this._buckets[name],
    +          },
    +        };
    +
    +        this._mountedFolders[name] = new S3FS(this._buckets[name], options);
    +      }
    +    }
    +
    +    return this._mountedFolders[name];
    +  }
    +
    +  /**
    +   * @param {String} subpath
    +   * @returns {String}
    +   * @private
    +   */
    +  static _getTmpDir(subpath) {
    +    let dir = Path.join(OS.tmpdir(), subpath);
    +
    +    require('fs-extra').mkdirpSync(dir);
    +
    +    return dir;
    +  }
    +
    +  /**
    +   * Returns mounted tmp folder
    +   *
    +   * @returns {*}
    +   */
    +  get tmp() {
    +    return this.getFolder(FS.TMP);
    +  }
    +
    +  /**
    +   * Returns mounted public folder
    +   *
    +   * @returns {*}
    +   */
    +  get public() {
    +    return this.getFolder(FS.PUBLIC);
    +  }
    +
    +  /**
    +   * Returns mounted sys folder
    +   *
    +   * @returns {*}
    +   */
    +  get system() {
    +    return this.getFolder(FS.SYSTEM);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-fs/file/lib/bootstrap.js.html b/docs-api/deep-fs/file/lib/bootstrap.js.html new file mode 100644 index 00000000..031d60f1 --- /dev/null +++ b/docs-api/deep-fs/file/lib/bootstrap.js.html @@ -0,0 +1,66 @@ + + + + + + lib/bootstrap.js | DEEP File System Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/bootstrap.js

    +
    /**
    + * Created by mgoria on 5/28/2015
    + */
    +
    +'use strict';
    +
    +import {FS} from './FS';
    +
    +let exports = module.exports = FS;
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-fs/identifiers.html b/docs-api/deep-fs/identifiers.html new file mode 100644 index 00000000..d3f99773 --- /dev/null +++ b/docs-api/deep-fs/identifiers.html @@ -0,0 +1,141 @@ + + + + + + Index | DEEP File System Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Identifier

    +

    Class Summary

    + + + + + + + + + + + + + + + + + + + +
    Static Public Class Summary
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Thrown when any exception occurs
    +
    +
    + + +
    + public + + + + + +
    +

    + FS +

    +
    +
    + + +
    Deep FS implementation
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when unknown FS folder is requested
    +
    +
    + + +
    +
    + + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-fs/image/badge.svg b/docs-api/deep-fs/image/badge.svg new file mode 100644 index 00000000..324db4c5 --- /dev/null +++ b/docs-api/deep-fs/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/docs-api/deep-fs/image/github.png b/docs-api/deep-fs/image/github.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/docs-api/deep-fs/image/github.png differ diff --git a/docs-api/deep-fs/image/search.png b/docs-api/deep-fs/image/search.png new file mode 100644 index 00000000..f5d84b69 Binary files /dev/null and b/docs-api/deep-fs/image/search.png differ diff --git a/docs-api/deep-fs/index.html b/docs-api/deep-fs/index.html new file mode 100644 index 00000000..930b82ce --- /dev/null +++ b/docs-api/deep-fs/index.html @@ -0,0 +1,189 @@ + + + + + + DEEP File System Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    deep-fs

    +

    NPM Version +Build Status +Coverage Status +Codacy Badge +API Docs

    +

    deep-fs is a node.js library, part of DEEP Framework.

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less.

    +

    DEEP for Businesses Join char on gitter.im

    +

    User Guide Documentation (to be updated later)

    +

    DEEP is enabling small and medium businesses, as well as enterprises to:

    +
      +
    • Rent applications on a monthly basis by needed functionality from DEEP Marketplace
    • +
    • Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS
    • +
    • Pay only for subscribed applications and stop paying when unsubscribing and not using anymore
    • +
    • Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences
    • +
    • Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability
    • +
    +
    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP for Developers Join char on gitter.im

    +

    API Guide Documentation

    +

    Developer Guide Documentation

    +

    DEEP is enabling developers and architects to:

    +
      +
    • Design microservices architecture on top of serverless environments from cloud providers like AWS
    • +
    • Build distributed software that combines and manages hardware and software in the same microservice
    • +
    • Use the framework's abstracted approach to build applications that could be cloud agnostic
    • +
    • Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same DEEP Microservice
    • +
    • Run in the cloud the software that was built by distributed teams and served self-service in large organizations
    • +
    • Monetize their work of art by uploading microservices to DEEP Marketplace
    • +
    +
    +

    DEEP Microservice is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with DEEP Microservices HelloWorld or DEEP Microservices ToDo App, as well as DEEP CLI (aka deepify).

    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP Architecture on AWS Join char on gitter.im

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    DEEP is using microservices architecture on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DEEP Abstracted LibraryDescriptionAWS Abstracted Service(s)
    deep-assetAssets Management LibraryAmazon S3
    deep-cacheCache Management LibraryAmazon ElastiCache
    deep-coreCore Management Library-
    deep-dbDatabase Management LibraryAmazon DynamoDB, Amazon SQS
    deep-diDependency Injection Management Library-
    deep-eventEvents Management LibraryAmazon Kinesis
    deep-fsFile System Management LibraryAmazon S3
    deep-kernelKernel Management Library-
    deep-logLogs Management LibraryAmazon CloudWatch Logs
    deep-notificationNotifications Management LibraryAmazon SNS
    deep-resourceResouces Management LibraryAWS Lambda, Amazon API Gateway
    deep-securitySecurity Management LibraryAWS IAM, Amazon Cognito
    deep-validationValidation Management Library-
    +

    Feedback

    +

    We are eager to get your feedback, so please use whatever communication channel you prefer:

    + +

    License

    +

    This repository can be used under the MIT license.

    +
    +

    See LICENSE for more details.

    +
    +

    Sponsors

    +

    This repository is being sponsored by:

    +
    +

    Mitoc Group

    +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-fs/package.json b/docs-api/deep-fs/package.json new file mode 100644 index 00000000..8dbcb9b0 --- /dev/null +++ b/docs-api/deep-fs/package.json @@ -0,0 +1,69 @@ +{ + "name": "deep-fs", + "version": "0.0.43", + "description": "DEEP File System Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "FS", + "File System", + "Storage" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "*", + "deep-core": "*", + "s3fs": "2.0.*" + }, + "devDependencies": { + "relative-fs": "0.0.*", + "fs-extra": "0.23.*", + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/docs-api/deep-fs/script/inherited-summary.js b/docs-api/deep-fs/script/inherited-summary.js new file mode 100644 index 00000000..0a35b6df --- /dev/null +++ b/docs-api/deep-fs/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/docs-api/deep-fs/script/inner-link.js b/docs-api/deep-fs/script/inner-link.js new file mode 100644 index 00000000..99d76273 --- /dev/null +++ b/docs-api/deep-fs/script/inner-link.js @@ -0,0 +1,29 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + var el = document.querySelector(location.hash); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = location.href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/docs-api/deep-fs/script/patch-for-local.js b/docs-api/deep-fs/script/patch-for-local.js new file mode 100644 index 00000000..5756d135 --- /dev/null +++ b/docs-api/deep-fs/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/docs-api/deep-fs/script/prettify/Apache-License-2.0.txt b/docs-api/deep-fs/script/prettify/Apache-License-2.0.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/docs-api/deep-fs/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs-api/deep-fs/script/prettify/prettify.js b/docs-api/deep-fs/script/prettify/prettify.js new file mode 100644 index 00000000..eef5ad7e --- /dev/null +++ b/docs-api/deep-fs/script/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/docs-api/deep-fs/script/search_index.js b/docs-api/deep-fs/script/search_index.js new file mode 100644 index 00000000..fd1db848 --- /dev/null +++ b/docs-api/deep-fs/script/search_index.js @@ -0,0 +1,440 @@ +window.esdocSearchIndex = [ + [ + "deep-fs/lib/exception/exception.js~exception", + "class/lib/Exception/Exception.js~Exception.html", + "Exception deep-fs/lib/Exception/Exception.js", + "class" + ], + [ + "deep-fs/lib/fs.js~fs", + "class/lib/FS.js~FS.html", + "FS deep-fs/lib/FS.js", + "class" + ], + [ + "deep-fs/lib/exception/unknownfolderexception.js~unknownfolderexception", + "class/lib/Exception/UnknownFolderException.js~UnknownFolderException.html", + "UnknownFolderException deep-fs/lib/Exception/UnknownFolderException.js", + "class" + ], + [ + "builtinexternal/ecmascriptexternal.js~array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~arraybuffer", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~dataview", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~DataView", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~date", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Date", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~error", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Error", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~evalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float64array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generator", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Generator", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generatorfunction", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~infinity", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~internalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~json", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~JSON", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~map", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Map", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~nan", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~NaN", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~promise", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Promise", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~proxy", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~rangeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~referenceerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~reflect", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~regexp", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~set", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Set", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~String", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~symbol", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~syntaxerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~typeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~urierror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~URIError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8clampedarray", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakmap", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakset", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~null", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~null", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~string", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~undefined", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~undefined", + "external" + ], + [ + "builtinexternal/webapiexternal.js~canvasrenderingcontext2d", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "external" + ], + [ + "builtinexternal/webapiexternal.js~documentfragment", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "external" + ], + [ + "builtinexternal/webapiexternal.js~element", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Element", + "external" + ], + [ + "builtinexternal/webapiexternal.js~event", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Event", + "external" + ], + [ + "builtinexternal/webapiexternal.js~node", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Node", + "external" + ], + [ + "builtinexternal/webapiexternal.js~nodelist", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~NodeList", + "external" + ], + [ + "builtinexternal/webapiexternal.js~xmlhttprequest", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "external" + ], + [ + "lib/exception/exception.js", + "file/lib/Exception/Exception.js.html", + "lib/Exception/Exception.js", + "file" + ], + [ + "lib/exception/exception.js~exception#constructor", + "class/lib/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/exception/unknownfolderexception.js", + "file/lib/Exception/UnknownFolderException.js.html", + "lib/Exception/UnknownFolderException.js", + "file" + ], + [ + "lib/exception/unknownfolderexception.js~unknownfolderexception#constructor", + "class/lib/Exception/UnknownFolderException.js~UnknownFolderException.html#instance-constructor-constructor", + "lib/Exception/UnknownFolderException.js~UnknownFolderException#constructor", + "method" + ], + [ + "lib/fs.js", + "file/lib/FS.js.html", + "lib/FS.js", + "file" + ], + [ + "lib/fs.js~fs#boot", + "class/lib/FS.js~FS.html#instance-method-boot", + "lib/FS.js~FS#boot", + "method" + ], + [ + "lib/fs.js~fs#constructor", + "class/lib/FS.js~FS.html#instance-constructor-constructor", + "lib/FS.js~FS#constructor", + "method" + ], + [ + "lib/fs.js~fs#getfolder", + "class/lib/FS.js~FS.html#instance-method-getFolder", + "lib/FS.js~FS#getFolder", + "method" + ], + [ + "lib/fs.js~fs#public", + "class/lib/FS.js~FS.html#instance-get-public", + "lib/FS.js~FS#public", + "member" + ], + [ + "lib/fs.js~fs#system", + "class/lib/FS.js~FS.html#instance-get-system", + "lib/FS.js~FS#system", + "member" + ], + [ + "lib/fs.js~fs#tmp", + "class/lib/FS.js~FS.html#instance-get-tmp", + "lib/FS.js~FS#tmp", + "member" + ], + [ + "lib/fs.js~fs.folders", + "class/lib/FS.js~FS.html#static-get-FOLDERS", + "lib/FS.js~FS.FOLDERS", + "member" + ], + [ + "lib/fs.js~fs.public", + "class/lib/FS.js~FS.html#static-get-PUBLIC", + "lib/FS.js~FS.PUBLIC", + "member" + ], + [ + "lib/fs.js~fs.system", + "class/lib/FS.js~FS.html#static-get-SYSTEM", + "lib/FS.js~FS.SYSTEM", + "member" + ], + [ + "lib/fs.js~fs.tmp", + "class/lib/FS.js~FS.html#static-get-TMP", + "lib/FS.js~FS.TMP", + "member" + ], + [ + "lib/bootstrap.js", + "file/lib/bootstrap.js.html", + "lib/bootstrap.js", + "file" + ] +] \ No newline at end of file diff --git a/docs-api/deep-fs/script/test-summary.js b/docs-api/deep-fs/script/test-summary.js new file mode 100644 index 00000000..2f32cb00 --- /dev/null +++ b/docs-api/deep-fs/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-describe')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-describe .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/docs-api/deep-fs/source.html b/docs-api/deep-fs/source.html new file mode 100644 index 00000000..b31750b9 --- /dev/null +++ b/docs-api/deep-fs/source.html @@ -0,0 +1,103 @@ + + + + + + Source | DEEP File System Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Source 15/15

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    lib/Exception/Exception.jsException100 %2/2282 byte192015-10-07 19:56:07 (UTC)
    lib/Exception/UnknownFolderException.jsUnknownFolderException100 %2/2412 byte202015-09-04 12:52:17 (UTC)
    lib/FS.jsFS100 %11/113034 byte1602015-10-07 19:56:07 (UTC)
    lib/bootstrap.js--119 byte92015-09-04 12:52:17 (UTC)
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/ast/source/ContainerAware.js.json b/docs-api/deep-kernel/ast/source/ContainerAware.js.json new file mode 100644 index 00000000..530f1598 --- /dev/null +++ b/docs-api/deep-kernel/ast/source/ContainerAware.js.json @@ -0,0 +1,4430 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "MicroserviceInjectable", + "range": [ + 83, + 105 + ], + "loc": { + "start": { + "line": 7, + "column": 22 + }, + "end": { + "line": 7, + "column": 44 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Injectable", + "range": [ + 69, + 79 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 18 + } + } + }, + "range": [ + 69, + 105 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 44 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Microservice/Injectable", + "raw": "'./Microservice/Injectable'", + "range": [ + 112, + 139 + ], + "loc": { + "start": { + "line": 7, + "column": 51 + }, + "end": { + "line": 7, + "column": 78 + } + } + }, + "range": [ + 61, + 140 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 79 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 149, + 155 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 14 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 149, + 155 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 14 + } + } + }, + "range": [ + 149, + 155 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 14 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Kernel", + "raw": "'./Kernel'", + "range": [ + 162, + 172 + ], + "loc": { + "start": { + "line": 8, + "column": 21 + }, + "end": { + "line": 8, + "column": 31 + } + } + }, + "range": [ + 141, + 173 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 32 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Container aware instance\n ", + "range": [ + 175, + 210 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "ContainerAware", + "range": [ + 224, + 238 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 27 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "MicroserviceInjectable", + "range": [ + 247, + 269 + ], + "loc": { + "start": { + "line": 13, + "column": 36 + }, + "end": { + "line": 13, + "column": 58 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 274, + 285 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 14, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 294, + 299 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 294, + 301 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 11 + } + } + }, + "range": [ + 294, + 302 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 308, + 312 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 313, + 323 + ], + "loc": { + "start": { + "line": 17, + "column": 9 + }, + "end": { + "line": 17, + "column": 19 + } + } + }, + "range": [ + 308, + 323 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 326, + 330 + ], + "loc": { + "start": { + "line": 17, + "column": 22 + }, + "end": { + "line": 17, + "column": 26 + } + } + }, + "range": [ + 308, + 330 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 26 + } + } + }, + "range": [ + 308, + 331 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 27 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 336, + 340 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_localBackend", + "range": [ + 341, + 354 + ], + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 22 + } + } + }, + "range": [ + 336, + 354 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 22 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 357, + 362 + ], + "loc": { + "start": { + "line": 18, + "column": 25 + }, + "end": { + "line": 18, + "column": 30 + } + } + }, + "range": [ + 336, + 362 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 30 + } + } + }, + "range": [ + 336, + 363 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 31 + } + } + } + ], + "range": [ + 288, + 367 + ], + "loc": { + "start": { + "line": 14, + "column": 16 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 285, + 367 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 274, + 367 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 371, + 404 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "localBackend", + "range": [ + 411, + 423 + ], + "loc": { + "start": { + "line": 24, + "column": 6 + }, + "end": { + "line": 24, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 439, + 443 + ], + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_localBackend", + "range": [ + 444, + 457 + ], + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 29 + } + } + }, + "range": [ + 439, + 457 + ], + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 29 + } + } + }, + "range": [ + 432, + 458 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 30 + } + } + } + ], + "range": [ + 426, + 462 + ], + "loc": { + "start": { + "line": 24, + "column": 21 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 423, + 462 + ], + "loc": { + "start": { + "line": 24, + "column": 18 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 407, + 462 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 371, + 404 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Boolean} state\n ", + "range": [ + 466, + 503 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "localBackend", + "range": [ + 510, + 522 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "state", + "range": [ + 523, + 528 + ], + "loc": { + "start": { + "line": 31, + "column": 19 + }, + "end": { + "line": 31, + "column": 24 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 536, + 540 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_localBackend", + "range": [ + 541, + 554 + ], + "loc": { + "start": { + "line": 32, + "column": 9 + }, + "end": { + "line": 32, + "column": 22 + } + } + }, + "range": [ + 536, + 554 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 22 + } + } + }, + "right": { + "type": "Identifier", + "name": "state", + "range": [ + 557, + 562 + ], + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 30 + } + } + }, + "range": [ + 536, + 562 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 30 + } + } + }, + "range": [ + 536, + 563 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 31 + } + } + } + ], + "range": [ + 530, + 567 + ], + "loc": { + "start": { + "line": 31, + "column": 26 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 522, + 567 + ], + "loc": { + "start": { + "line": 31, + "column": 18 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 506, + 567 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 33, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Boolean} state\n ", + "range": [ + 466, + 503 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 571, + 603 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "name", + "range": [ + 610, + 614 + ], + "loc": { + "start": { + "line": 38, + "column": 6 + }, + "end": { + "line": 38, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 630, + 634 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "constructor", + "range": [ + 635, + 646 + ], + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 27 + } + } + }, + "range": [ + 630, + 646 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 647, + 651 + ], + "loc": { + "start": { + "line": 39, + "column": 28 + }, + "end": { + "line": 39, + "column": 32 + } + } + }, + "range": [ + 630, + 651 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "toLowerCase", + "range": [ + 652, + 663 + ], + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 44 + } + } + }, + "range": [ + 630, + 663 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 44 + } + } + }, + "arguments": [], + "range": [ + 630, + 665 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 46 + } + } + }, + "range": [ + 623, + 666 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 47 + } + } + } + ], + "range": [ + 617, + 670 + ], + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 614, + 670 + ], + "loc": { + "start": { + "line": 38, + "column": 10 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 606, + 670 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 40, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 571, + 603 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 674, + 706 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "service", + "range": [ + 713, + 720 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 736, + 740 + ], + "loc": { + "start": { + "line": 46, + "column": 11 + }, + "end": { + "line": 46, + "column": 15 + } + } + }, + "range": [ + 729, + 741 + ], + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 16 + } + } + } + ], + "range": [ + 723, + 745 + ], + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 47, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 720, + 745 + ], + "loc": { + "start": { + "line": 45, + "column": 13 + }, + "end": { + "line": 47, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 709, + 745 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 47, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 674, + 706 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 749, + 854 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 54, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "boot", + "range": [ + 857, + 861 + ], + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 55, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "kernel", + "range": [ + 862, + 868 + ], + "loc": { + "start": { + "line": 55, + "column": 7 + }, + "end": { + "line": 55, + "column": 13 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 870, + 878 + ], + "loc": { + "start": { + "line": 55, + "column": 15 + }, + "end": { + "line": 55, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 926, + 934 + ], + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 12 + } + } + }, + "arguments": [], + "range": [ + 926, + 936 + ], + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 14 + } + } + }, + "range": [ + 926, + 937 + ], + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 15 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: override in child service", + "range": [ + 886, + 921 + ], + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 56, + "column": 39 + } + } + } + ] + } + ], + "range": [ + 880, + 941 + ], + "loc": { + "start": { + "line": 55, + "column": 25 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 861, + 941 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 857, + 941 + ], + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 58, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 749, + 854 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 54, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Instance} microservice\n * @returns {Injectable}\n ", + "range": [ + 945, + 1017 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 63, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "bind", + "range": [ + 1020, + 1024 + ], + "loc": { + "start": { + "line": 64, + "column": 2 + }, + "end": { + "line": 64, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "microservice", + "range": [ + 1025, + 1037 + ], + "loc": { + "start": { + "line": 64, + "column": 7 + }, + "end": { + "line": 64, + "column": 19 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1107, + 1119 + ], + "loc": { + "start": { + "line": 66, + "column": 15 + }, + "end": { + "line": 66, + "column": 27 + } + } + }, + "prefix": true, + "range": [ + 1100, + 1119 + ], + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 66, + "column": 27 + } + } + }, + "right": { + "type": "Literal", + "value": "string", + "raw": "'string'", + "range": [ + 1124, + 1132 + ], + "loc": { + "start": { + "line": 66, + "column": 32 + }, + "end": { + "line": 66, + "column": 40 + } + } + }, + "range": [ + 1100, + 1132 + ], + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 66, + "column": 40 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1142, + 1154 + ], + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 18 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1157, + 1161 + ], + "loc": { + "start": { + "line": 67, + "column": 21 + }, + "end": { + "line": 67, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 1162, + 1172 + ], + "loc": { + "start": { + "line": 67, + "column": 26 + }, + "end": { + "line": 67, + "column": 36 + } + } + }, + "range": [ + 1157, + 1172 + ], + "loc": { + "start": { + "line": 67, + "column": 21 + }, + "end": { + "line": 67, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 1173, + 1176 + ], + "loc": { + "start": { + "line": 67, + "column": 37 + }, + "end": { + "line": 67, + "column": 40 + } + } + }, + "range": [ + 1157, + 1176 + ], + "loc": { + "start": { + "line": 67, + "column": 21 + }, + "end": { + "line": 67, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 1177, + 1183 + ], + "loc": { + "start": { + "line": 67, + "column": 41 + }, + "end": { + "line": 67, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "KERNEL", + "range": [ + 1184, + 1190 + ], + "loc": { + "start": { + "line": 67, + "column": 48 + }, + "end": { + "line": 67, + "column": 54 + } + } + }, + "range": [ + 1177, + 1190 + ], + "loc": { + "start": { + "line": 67, + "column": 41 + }, + "end": { + "line": 67, + "column": 54 + } + } + } + ], + "range": [ + 1157, + 1191 + ], + "loc": { + "start": { + "line": 67, + "column": 21 + }, + "end": { + "line": 67, + "column": 55 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1192, + 1204 + ], + "loc": { + "start": { + "line": 67, + "column": 56 + }, + "end": { + "line": 67, + "column": 68 + } + } + }, + "range": [ + 1157, + 1204 + ], + "loc": { + "start": { + "line": 67, + "column": 21 + }, + "end": { + "line": 67, + "column": 68 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "microservice", + "range": [ + 1205, + 1217 + ], + "loc": { + "start": { + "line": 67, + "column": 69 + }, + "end": { + "line": 67, + "column": 81 + } + } + } + ], + "range": [ + 1157, + 1218 + ], + "loc": { + "start": { + "line": 67, + "column": 21 + }, + "end": { + "line": 67, + "column": 82 + } + } + }, + "range": [ + 1142, + 1218 + ], + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 82 + } + } + }, + "range": [ + 1142, + 1219 + ], + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 83 + } + } + } + ], + "range": [ + 1134, + 1225 + ], + "loc": { + "start": { + "line": 66, + "column": 42 + }, + "end": { + "line": 68, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1096, + 1225 + ], + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 68, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: find more smart way of doing this...", + "range": [ + 1045, + 1091 + ], + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 65, + "column": 50 + } + } + } + ] + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Super", + "range": [ + 1238, + 1243 + ], + "loc": { + "start": { + "line": 70, + "column": 11 + }, + "end": { + "line": 70, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 1244, + 1248 + ], + "loc": { + "start": { + "line": 70, + "column": 17 + }, + "end": { + "line": 70, + "column": 21 + } + } + }, + "range": [ + 1238, + 1248 + ], + "loc": { + "start": { + "line": 70, + "column": 11 + }, + "end": { + "line": 70, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "microservice", + "range": [ + 1249, + 1261 + ], + "loc": { + "start": { + "line": 70, + "column": 22 + }, + "end": { + "line": 70, + "column": 34 + } + } + } + ], + "range": [ + 1238, + 1262 + ], + "loc": { + "start": { + "line": 70, + "column": 11 + }, + "end": { + "line": 70, + "column": 35 + } + } + }, + "range": [ + 1231, + 1263 + ], + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 70, + "column": 36 + } + } + } + ], + "range": [ + 1039, + 1267 + ], + "loc": { + "start": { + "line": 64, + "column": 21 + }, + "end": { + "line": 71, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1024, + 1267 + ], + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 71, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1020, + 1267 + ], + "loc": { + "start": { + "line": 64, + "column": 2 + }, + "end": { + "line": 71, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Instance} microservice\n * @returns {Injectable}\n ", + "range": [ + 945, + 1017 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 63, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} object\n * @returns {String}\n * @private\n ", + "range": [ + 1271, + 1345 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 77, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_resolvePath", + "range": [ + 1348, + 1360 + ], + "loc": { + "start": { + "line": 78, + "column": 2 + }, + "end": { + "line": 78, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "object", + "range": [ + 1361, + 1367 + ], + "loc": { + "start": { + "line": 78, + "column": 15 + }, + "end": { + "line": 78, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "Identifier", + "name": "object", + "range": [ + 1386, + 1392 + ], + "loc": { + "start": { + "line": 79, + "column": 15 + }, + "end": { + "line": 79, + "column": 21 + } + } + }, + "prefix": true, + "range": [ + 1379, + 1392 + ], + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 21 + } + } + }, + "right": { + "type": "Literal", + "value": "string", + "raw": "'string'", + "range": [ + 1397, + 1405 + ], + "loc": { + "start": { + "line": 79, + "column": 26 + }, + "end": { + "line": 79, + "column": 34 + } + } + }, + "range": [ + 1379, + 1405 + ], + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 34 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "object", + "range": [ + 1409, + 1415 + ], + "loc": { + "start": { + "line": 79, + "column": 38 + }, + "end": { + "line": 79, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "indexOf", + "range": [ + 1416, + 1423 + ], + "loc": { + "start": { + "line": 79, + "column": 45 + }, + "end": { + "line": 79, + "column": 52 + } + } + }, + "range": [ + 1409, + 1423 + ], + "loc": { + "start": { + "line": 79, + "column": 38 + }, + "end": { + "line": 79, + "column": 52 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "@", + "raw": "'@'", + "range": [ + 1424, + 1427 + ], + "loc": { + "start": { + "line": 79, + "column": 53 + }, + "end": { + "line": 79, + "column": 56 + } + } + } + ], + "range": [ + 1409, + 1428 + ], + "loc": { + "start": { + "line": 79, + "column": 38 + }, + "end": { + "line": 79, + "column": 57 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1433, + 1434 + ], + "loc": { + "start": { + "line": 79, + "column": 62 + }, + "end": { + "line": 79, + "column": 63 + } + } + }, + "range": [ + 1409, + 1434 + ], + "loc": { + "start": { + "line": 79, + "column": 38 + }, + "end": { + "line": 79, + "column": 63 + } + } + }, + "range": [ + 1379, + 1434 + ], + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 63 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "parts", + "range": [ + 1448, + 1453 + ], + "loc": { + "start": { + "line": 80, + "column": 10 + }, + "end": { + "line": 80, + "column": 15 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "object", + "range": [ + 1456, + 1462 + ], + "loc": { + "start": { + "line": 80, + "column": 18 + }, + "end": { + "line": 80, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "match", + "range": [ + 1463, + 1468 + ], + "loc": { + "start": { + "line": 80, + "column": 25 + }, + "end": { + "line": 80, + "column": 30 + } + } + }, + "range": [ + 1456, + 1468 + ], + "loc": { + "start": { + "line": 80, + "column": 18 + }, + "end": { + "line": 80, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": {}, + "raw": "/^@\\s*([^:]+)\\s*:\\s*([^\\s]+)\\s*$/", + "regex": { + "pattern": "^@\\s*([^:]+)\\s*:\\s*([^\\s]+)\\s*$", + "flags": "" + }, + "range": [ + 1469, + 1502 + ], + "loc": { + "start": { + "line": 80, + "column": 31 + }, + "end": { + "line": 80, + "column": 64 + } + } + } + ], + "range": [ + 1456, + 1503 + ], + "loc": { + "start": { + "line": 80, + "column": 18 + }, + "end": { + "line": 80, + "column": 65 + } + } + }, + "range": [ + 1448, + 1503 + ], + "loc": { + "start": { + "line": 80, + "column": 10 + }, + "end": { + "line": 80, + "column": 65 + } + } + } + ], + "kind": "let", + "range": [ + 1444, + 1504 + ], + "loc": { + "start": { + "line": 80, + "column": 6 + }, + "end": { + "line": 80, + "column": 66 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "parts", + "range": [ + 1516, + 1521 + ], + "loc": { + "start": { + "line": 82, + "column": 10 + }, + "end": { + "line": 82, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 1522, + 1528 + ], + "loc": { + "start": { + "line": 82, + "column": 16 + }, + "end": { + "line": 82, + "column": 22 + } + } + }, + "range": [ + 1516, + 1528 + ], + "loc": { + "start": { + "line": 82, + "column": 10 + }, + "end": { + "line": 82, + "column": 22 + } + } + }, + "right": { + "type": "Literal", + "value": 3, + "raw": "3", + "range": [ + 1533, + 1534 + ], + "loc": { + "start": { + "line": 82, + "column": 27 + }, + "end": { + "line": 82, + "column": 28 + } + } + }, + "range": [ + 1516, + 1534 + ], + "loc": { + "start": { + "line": 82, + "column": 10 + }, + "end": { + "line": 82, + "column": 28 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1546, + 1550 + ], + "loc": { + "start": { + "line": 83, + "column": 8 + }, + "end": { + "line": 83, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 1551, + 1555 + ], + "loc": { + "start": { + "line": 83, + "column": 13 + }, + "end": { + "line": 83, + "column": 17 + } + } + }, + "range": [ + 1546, + 1555 + ], + "loc": { + "start": { + "line": 83, + "column": 8 + }, + "end": { + "line": 83, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "parts", + "range": [ + 1556, + 1561 + ], + "loc": { + "start": { + "line": 83, + "column": 18 + }, + "end": { + "line": 83, + "column": 23 + } + } + }, + "property": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 1562, + 1563 + ], + "loc": { + "start": { + "line": 83, + "column": 24 + }, + "end": { + "line": 83, + "column": 25 + } + } + }, + "range": [ + 1556, + 1564 + ], + "loc": { + "start": { + "line": 83, + "column": 18 + }, + "end": { + "line": 83, + "column": 26 + } + } + } + ], + "range": [ + 1546, + 1565 + ], + "loc": { + "start": { + "line": 83, + "column": 8 + }, + "end": { + "line": 83, + "column": 27 + } + } + }, + "range": [ + 1546, + 1566 + ], + "loc": { + "start": { + "line": 83, + "column": 8 + }, + "end": { + "line": 83, + "column": 28 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "parts", + "range": [ + 1583, + 1588 + ], + "loc": { + "start": { + "line": 85, + "column": 15 + }, + "end": { + "line": 85, + "column": 20 + } + } + }, + "property": { + "type": "Literal", + "value": 2, + "raw": "2", + "range": [ + 1589, + 1590 + ], + "loc": { + "start": { + "line": 85, + "column": 21 + }, + "end": { + "line": 85, + "column": 22 + } + } + }, + "range": [ + 1583, + 1591 + ], + "loc": { + "start": { + "line": 85, + "column": 15 + }, + "end": { + "line": 85, + "column": 23 + } + } + }, + "range": [ + 1576, + 1592 + ], + "loc": { + "start": { + "line": 85, + "column": 8 + }, + "end": { + "line": 85, + "column": 24 + } + } + } + ], + "range": [ + 1536, + 1600 + ], + "loc": { + "start": { + "line": 82, + "column": 30 + }, + "end": { + "line": 86, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1512, + 1600 + ], + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 86, + "column": 7 + } + } + } + ], + "range": [ + 1436, + 1606 + ], + "loc": { + "start": { + "line": 79, + "column": 65 + }, + "end": { + "line": 87, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1375, + 1606 + ], + "loc": { + "start": { + "line": 79, + "column": 4 + }, + "end": { + "line": 87, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "object", + "range": [ + 1619, + 1625 + ], + "loc": { + "start": { + "line": 89, + "column": 11 + }, + "end": { + "line": 89, + "column": 17 + } + } + }, + "range": [ + 1612, + 1626 + ], + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 89, + "column": 18 + } + } + } + ], + "range": [ + 1369, + 1630 + ], + "loc": { + "start": { + "line": 78, + "column": 23 + }, + "end": { + "line": 90, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1360, + 1630 + ], + "loc": { + "start": { + "line": 78, + "column": 14 + }, + "end": { + "line": 90, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1348, + 1630 + ], + "loc": { + "start": { + "line": 78, + "column": 2 + }, + "end": { + "line": 90, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} object\n * @returns {String}\n * @private\n ", + "range": [ + 1271, + 1345 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 77, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {DI} container\n ", + "range": [ + 1634, + 1670 + ], + "loc": { + "start": { + "line": 92, + "column": 2 + }, + "end": { + "line": 94, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "container", + "range": [ + 1677, + 1686 + ], + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 95, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "container", + "range": [ + 1687, + 1696 + ], + "loc": { + "start": { + "line": 95, + "column": 16 + }, + "end": { + "line": 95, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1704, + 1708 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 96, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 1709, + 1719 + ], + "loc": { + "start": { + "line": 96, + "column": 9 + }, + "end": { + "line": 96, + "column": 19 + } + } + }, + "range": [ + 1704, + 1719 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 96, + "column": 19 + } + } + }, + "right": { + "type": "Identifier", + "name": "container", + "range": [ + 1722, + 1731 + ], + "loc": { + "start": { + "line": 96, + "column": 22 + }, + "end": { + "line": 96, + "column": 31 + } + } + }, + "range": [ + 1704, + 1731 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 96, + "column": 31 + } + } + }, + "range": [ + 1704, + 1732 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 96, + "column": 32 + } + } + } + ], + "range": [ + 1698, + 1736 + ], + "loc": { + "start": { + "line": 95, + "column": 27 + }, + "end": { + "line": 97, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1686, + 1736 + ], + "loc": { + "start": { + "line": 95, + "column": 15 + }, + "end": { + "line": 97, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 1673, + 1736 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 97, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {DI} container\n ", + "range": [ + 1634, + 1670 + ], + "loc": { + "start": { + "line": 92, + "column": 2 + }, + "end": { + "line": 94, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {DI}\n ", + "range": [ + 1740, + 1768 + ], + "loc": { + "start": { + "line": 99, + "column": 2 + }, + "end": { + "line": 101, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "container", + "range": [ + 1775, + 1784 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1800, + 1804 + ], + "loc": { + "start": { + "line": 103, + "column": 11 + }, + "end": { + "line": 103, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 1805, + 1815 + ], + "loc": { + "start": { + "line": 103, + "column": 16 + }, + "end": { + "line": 103, + "column": 26 + } + } + }, + "range": [ + 1800, + 1815 + ], + "loc": { + "start": { + "line": 103, + "column": 11 + }, + "end": { + "line": 103, + "column": 26 + } + } + }, + "range": [ + 1793, + 1816 + ], + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 103, + "column": 27 + } + } + } + ], + "range": [ + 1787, + 1820 + ], + "loc": { + "start": { + "line": 102, + "column": 18 + }, + "end": { + "line": 104, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1784, + 1820 + ], + "loc": { + "start": { + "line": 102, + "column": 15 + }, + "end": { + "line": 104, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1771, + 1820 + ], + "loc": { + "start": { + "line": 102, + "column": 2 + }, + "end": { + "line": 104, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {DI}\n ", + "range": [ + 1740, + 1768 + ], + "loc": { + "start": { + "line": 99, + "column": 2 + }, + "end": { + "line": 101, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n * @returns {*}\n ", + "range": [ + 1824, + 1876 + ], + "loc": { + "start": { + "line": 106, + "column": 2 + }, + "end": { + "line": 109, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "get", + "range": [ + 1879, + 1882 + ], + "loc": { + "start": { + "line": 110, + "column": 2 + }, + "end": { + "line": 110, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 1886, + 1890 + ], + "loc": { + "start": { + "line": 110, + "column": 9 + }, + "end": { + "line": 110, + "column": 13 + } + } + }, + "range": [ + 1883, + 1890 + ], + "loc": { + "start": { + "line": 110, + "column": 6 + }, + "end": { + "line": 110, + "column": 13 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1905, + 1909 + ], + "loc": { + "start": { + "line": 111, + "column": 11 + }, + "end": { + "line": 111, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 1910, + 1920 + ], + "loc": { + "start": { + "line": 111, + "column": 16 + }, + "end": { + "line": 111, + "column": 26 + } + } + }, + "range": [ + 1905, + 1920 + ], + "loc": { + "start": { + "line": 111, + "column": 11 + }, + "end": { + "line": 111, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 1921, + 1924 + ], + "loc": { + "start": { + "line": 111, + "column": 27 + }, + "end": { + "line": 111, + "column": 30 + } + } + }, + "range": [ + 1905, + 1924 + ], + "loc": { + "start": { + "line": 111, + "column": 11 + }, + "end": { + "line": 111, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 1928, + 1932 + ], + "loc": { + "start": { + "line": 111, + "column": 34 + }, + "end": { + "line": 111, + "column": 38 + } + } + }, + "range": [ + 1925, + 1932 + ], + "loc": { + "start": { + "line": 111, + "column": 31 + }, + "end": { + "line": 111, + "column": 38 + } + } + } + ], + "range": [ + 1905, + 1933 + ], + "loc": { + "start": { + "line": 111, + "column": 11 + }, + "end": { + "line": 111, + "column": 39 + } + } + }, + "range": [ + 1898, + 1934 + ], + "loc": { + "start": { + "line": 111, + "column": 4 + }, + "end": { + "line": 111, + "column": 40 + } + } + } + ], + "range": [ + 1892, + 1938 + ], + "loc": { + "start": { + "line": 110, + "column": 15 + }, + "end": { + "line": 112, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1882, + 1938 + ], + "loc": { + "start": { + "line": 110, + "column": 5 + }, + "end": { + "line": 112, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1879, + 1938 + ], + "loc": { + "start": { + "line": 110, + "column": 2 + }, + "end": { + "line": 112, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n * @returns {*}\n ", + "range": [ + 1824, + 1876 + ], + "loc": { + "start": { + "line": 106, + "column": 2 + }, + "end": { + "line": 109, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 270, + 1940 + ], + "loc": { + "start": { + "line": 13, + "column": 59 + }, + "end": { + "line": 113, + "column": 1 + } + } + }, + "range": [ + 218, + 1940 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 113, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Container aware instance\n ", + "range": [ + 175, + 210 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 211, + 1940 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 113, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Container aware instance\n ", + "range": [ + 175, + 210 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 1940 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 113, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Container aware instance\n ", + "range": [ + 175, + 210 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 371, + 404 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Boolean} state\n ", + "range": [ + 466, + 503 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 571, + 603 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 674, + 706 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 749, + 854 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 54, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: override in child service", + "range": [ + 886, + 921 + ], + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 56, + "column": 39 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Instance} microservice\n * @returns {Injectable}\n ", + "range": [ + 945, + 1017 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 63, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: find more smart way of doing this...", + "range": [ + 1045, + 1091 + ], + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 65, + "column": 50 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} object\n * @returns {String}\n * @private\n ", + "range": [ + 1271, + 1345 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 77, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {DI} container\n ", + "range": [ + 1634, + 1670 + ], + "loc": { + "start": { + "line": 92, + "column": 2 + }, + "end": { + "line": 94, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {DI}\n ", + "range": [ + 1740, + 1768 + ], + "loc": { + "start": { + "line": 99, + "column": 2 + }, + "end": { + "line": 101, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n * @returns {*}\n ", + "range": [ + 1824, + 1876 + ], + "loc": { + "start": { + "line": 106, + "column": 2 + }, + "end": { + "line": 109, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-kernel/ast/source/Exception/Exception.js.json b/docs-api/deep-kernel/ast/source/Exception/Exception.js.json new file mode 100644 index 00000000..e8112d2d --- /dev/null +++ b/docs-api/deep-kernel/ast/source/Exception/Exception.js.json @@ -0,0 +1,651 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any kernel exception occurs\n ", + "range": [ + 92, + 142 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 156, + 165 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 174, + 178 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 179, + 188 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "range": [ + 174, + 188 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 189, + 198 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "range": [ + 174, + 198 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 240, + 251 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 255, + 259 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 252, + 259 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 267, + 272 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 276, + 280 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 273, + 280 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 267, + 281 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 267, + 282 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 261, + 286 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 251, + 286 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 240, + 286 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 203, + 237 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 199, + 288 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 150, + 288 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any kernel exception occurs\n ", + "range": [ + 92, + 142 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 143, + 288 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any kernel exception occurs\n ", + "range": [ + 92, + 142 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 288 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when any kernel exception occurs\n ", + "range": [ + 92, + 142 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 203, + 237 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-kernel/ast/source/Exception/MissingMicroserviceException.js.json b/docs-api/deep-kernel/ast/source/Exception/MissingMicroserviceException.js.json new file mode 100644 index 00000000..2b8d5e18 --- /dev/null +++ b/docs-api/deep-kernel/ast/source/Exception/MissingMicroserviceException.js.json @@ -0,0 +1,628 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing requested microservice\n ", + "range": [ + 101, + 154 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "MissingMicroserviceException", + "range": [ + 168, + 196 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 41 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 205, + 214 + ], + "loc": { + "start": { + "line": 12, + "column": 50 + }, + "end": { + "line": 12, + "column": 59 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 275, + 286 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "microserviceIdentifier", + "range": [ + 287, + 309 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 36 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 317, + 322 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Missing microservice ", + "cooked": "Missing microservice " + }, + "tail": false, + "range": [ + 323, + 347 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 34 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " in Kernel container", + "cooked": " in Kernel container" + }, + "tail": true, + "range": [ + 369, + 391 + ], + "loc": { + "start": { + "line": 17, + "column": 56 + }, + "end": { + "line": 17, + "column": 78 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "microserviceIdentifier", + "range": [ + 347, + 369 + ], + "loc": { + "start": { + "line": 17, + "column": 34 + }, + "end": { + "line": 17, + "column": 56 + } + } + } + ], + "range": [ + 323, + 391 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 78 + } + } + } + ], + "range": [ + 317, + 392 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 79 + } + } + }, + "range": [ + 317, + 393 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 80 + } + } + } + ], + "range": [ + 311, + 397 + ], + "loc": { + "start": { + "line": 16, + "column": 38 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 286, + 397 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 275, + 397 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} microserviceIdentifier\n ", + "range": [ + 219, + 272 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 215, + 399 + ], + "loc": { + "start": { + "line": 12, + "column": 60 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 162, + 399 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing requested microservice\n ", + "range": [ + 101, + 154 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 155, + 399 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing requested microservice\n ", + "range": [ + 101, + 154 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 399 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when missing requested microservice\n ", + "range": [ + 101, + 154 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} microserviceIdentifier\n ", + "range": [ + 219, + 272 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-kernel/ast/source/Kernel.js.json b/docs-api/deep-kernel/ast/source/Kernel.js.json new file mode 100644 index 00000000..c441d3e2 --- /dev/null +++ b/docs-api/deep-kernel/ast/source/Kernel.js.json @@ -0,0 +1,16302 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 42, + 54 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 42, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 5/26/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 64, + 68 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 64, + 68 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 74, + 85 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 57, + 86 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "DI", + "range": [ + 94, + 96 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 9 + } + } + }, + "range": [ + 94, + 96 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 9 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-di", + "raw": "'deep-di'", + "range": [ + 102, + 111 + ], + "loc": { + "start": { + "line": 8, + "column": 15 + }, + "end": { + "line": 8, + "column": 24 + } + } + }, + "range": [ + 87, + 112 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 25 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 121, + 130 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 121, + 130 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 17 + } + } + }, + "range": [ + 121, + 130 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/Exception", + "raw": "'./Exception/Exception'", + "range": [ + 137, + 160 + ], + "loc": { + "start": { + "line": 9, + "column": 24 + }, + "end": { + "line": 9, + "column": 47 + } + } + }, + "range": [ + 113, + 161 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 48 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Microservice", + "range": [ + 182, + 194 + ], + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 10, + "column": 32 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Instance", + "range": [ + 170, + 178 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 16 + } + } + }, + "range": [ + 170, + 194 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 32 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Microservice/Instance", + "raw": "'./Microservice/Instance'", + "range": [ + 201, + 226 + ], + "loc": { + "start": { + "line": 10, + "column": 39 + }, + "end": { + "line": 10, + "column": 64 + } + } + }, + "range": [ + 162, + 227 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 65 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "MissingMicroserviceException", + "range": [ + 236, + 264 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 36 + } + } + }, + "imported": { + "type": "Identifier", + "name": "MissingMicroserviceException", + "range": [ + 236, + 264 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 36 + } + } + }, + "range": [ + 236, + 264 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 36 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/MissingMicroserviceException", + "raw": "'./Exception/MissingMicroserviceException'", + "range": [ + 271, + 313 + ], + "loc": { + "start": { + "line": 11, + "column": 43 + }, + "end": { + "line": 11, + "column": 85 + } + } + }, + "range": [ + 228, + 314 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 86 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "MicroserviceInjectable", + "range": [ + 337, + 359 + ], + "loc": { + "start": { + "line": 12, + "column": 22 + }, + "end": { + "line": 12, + "column": 44 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Injectable", + "range": [ + 323, + 333 + ], + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 18 + } + } + }, + "range": [ + 323, + 359 + ], + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 44 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Microservice/Injectable", + "raw": "'./Microservice/Injectable'", + "range": [ + 366, + 393 + ], + "loc": { + "start": { + "line": 12, + "column": 51 + }, + "end": { + "line": 12, + "column": 78 + } + } + }, + "range": [ + 315, + 394 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 79 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "ContainerAware", + "range": [ + 403, + 417 + ], + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 22 + } + } + }, + "imported": { + "type": "Identifier", + "name": "ContainerAware", + "range": [ + 403, + 417 + ], + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 22 + } + } + }, + "range": [ + 403, + 417 + ], + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 22 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./ContainerAware", + "raw": "'./ContainerAware'", + "range": [ + 424, + 442 + ], + "loc": { + "start": { + "line": 13, + "column": 29 + }, + "end": { + "line": 13, + "column": 47 + } + } + }, + "range": [ + 395, + 443 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 13, + "column": 48 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "FileSystem", + "range": [ + 451, + 461 + ], + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 14, + "column": 17 + } + } + }, + "range": [ + 451, + 461 + ], + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 14, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "fs", + "raw": "'fs'", + "range": [ + 467, + 471 + ], + "loc": { + "start": { + "line": 14, + "column": 23 + }, + "end": { + "line": 14, + "column": 27 + } + } + }, + "range": [ + 444, + 472 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 28 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "WaitUntil", + "range": [ + 480, + 489 + ], + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 16 + } + } + }, + "range": [ + 480, + 489 + ], + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 16 + } + } + } + ], + "source": { + "type": "Literal", + "value": "wait-until", + "raw": "'wait-until'", + "range": [ + 495, + 507 + ], + "loc": { + "start": { + "line": 15, + "column": 22 + }, + "end": { + "line": 15, + "column": 34 + } + } + }, + "range": [ + 473, + 508 + ], + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 35 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Deep application kernel\n ", + "range": [ + 510, + 544 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 558, + 564 + ], + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 19 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 643, + 654 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 25, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "deepServices", + "range": [ + 655, + 667 + ], + "loc": { + "start": { + "line": 25, + "column": 14 + }, + "end": { + "line": 25, + "column": 26 + } + } + }, + { + "type": "Identifier", + "name": "context", + "range": [ + 669, + 676 + ], + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 35 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 688, + 694 + ], + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "ALL_CONTEXTS", + "range": [ + 695, + 707 + ], + "loc": { + "start": { + "line": 26, + "column": 15 + }, + "end": { + "line": 26, + "column": 27 + } + } + }, + "range": [ + 688, + 707 + ], + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "indexOf", + "range": [ + 708, + 715 + ], + "loc": { + "start": { + "line": 26, + "column": 28 + }, + "end": { + "line": 26, + "column": 35 + } + } + }, + "range": [ + 688, + 715 + ], + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "context", + "range": [ + 716, + 723 + ], + "loc": { + "start": { + "line": 26, + "column": 36 + }, + "end": { + "line": 26, + "column": 43 + } + } + } + ], + "range": [ + 688, + 724 + ], + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 44 + } + } + }, + "right": { + "type": "UnaryExpression", + "operator": "-", + "argument": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 730, + 731 + ], + "loc": { + "start": { + "line": 26, + "column": 50 + }, + "end": { + "line": 26, + "column": 51 + } + } + }, + "prefix": true, + "range": [ + 729, + 731 + ], + "loc": { + "start": { + "line": 26, + "column": 49 + }, + "end": { + "line": 26, + "column": 51 + } + } + }, + "range": [ + 688, + 731 + ], + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 51 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Exception", + "range": [ + 751, + 760 + ], + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Undefined context \"", + "cooked": "Undefined context \"" + }, + "tail": false, + "range": [ + 761, + 783 + ], + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 48 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "\"", + "cooked": "\"" + }, + "tail": true, + "range": [ + 790, + 793 + ], + "loc": { + "start": { + "line": 27, + "column": 55 + }, + "end": { + "line": 27, + "column": 58 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "context", + "range": [ + 783, + 790 + ], + "loc": { + "start": { + "line": 27, + "column": 48 + }, + "end": { + "line": 27, + "column": 55 + } + } + } + ], + "range": [ + 761, + 793 + ], + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 58 + } + } + } + ], + "range": [ + 747, + 794 + ], + "loc": { + "start": { + "line": 27, + "column": 12 + }, + "end": { + "line": 27, + "column": 59 + } + } + }, + "range": [ + 741, + 795 + ], + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 60 + } + } + } + ], + "range": [ + 733, + 801 + ], + "loc": { + "start": { + "line": 26, + "column": 53 + }, + "end": { + "line": 28, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 684, + 801 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 28, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 807, + 811 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_config", + "range": [ + 812, + 819 + ], + "loc": { + "start": { + "line": 30, + "column": 9 + }, + "end": { + "line": 30, + "column": 16 + } + } + }, + "range": [ + 807, + 819 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 16 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 822, + 824 + ], + "loc": { + "start": { + "line": 30, + "column": 19 + }, + "end": { + "line": 30, + "column": 21 + } + } + }, + "range": [ + 807, + 824 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 21 + } + } + }, + "range": [ + 807, + 825 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 22 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 830, + 834 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_services", + "range": [ + 835, + 844 + ], + "loc": { + "start": { + "line": 31, + "column": 9 + }, + "end": { + "line": 31, + "column": 18 + } + } + }, + "range": [ + 830, + 844 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 18 + } + } + }, + "right": { + "type": "Identifier", + "name": "deepServices", + "range": [ + 847, + 859 + ], + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 33 + } + } + }, + "range": [ + 830, + 859 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 33 + } + } + }, + "range": [ + 830, + 860 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 34 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 865, + 869 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_context", + "range": [ + 870, + 878 + ], + "loc": { + "start": { + "line": 32, + "column": 9 + }, + "end": { + "line": 32, + "column": 17 + } + } + }, + "range": [ + 865, + 878 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 17 + } + } + }, + "right": { + "type": "Identifier", + "name": "context", + "range": [ + 881, + 888 + ], + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 32, + "column": 27 + } + } + }, + "range": [ + 865, + 888 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 27 + } + } + }, + "range": [ + 865, + 889 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 894, + 898 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_env", + "range": [ + 899, + 903 + ], + "loc": { + "start": { + "line": 33, + "column": 9 + }, + "end": { + "line": 33, + "column": 13 + } + } + }, + "range": [ + 894, + 903 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 13 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 906, + 910 + ], + "loc": { + "start": { + "line": 33, + "column": 16 + }, + "end": { + "line": 33, + "column": 20 + } + } + }, + "range": [ + 894, + 910 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 20 + } + } + }, + "range": [ + 894, + 911 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 21 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 916, + 920 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 921, + 931 + ], + "loc": { + "start": { + "line": 34, + "column": 9 + }, + "end": { + "line": 34, + "column": 19 + } + } + }, + "range": [ + 916, + 931 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 19 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "DI", + "range": [ + 938, + 940 + ], + "loc": { + "start": { + "line": 34, + "column": 26 + }, + "end": { + "line": 34, + "column": 28 + } + } + }, + "arguments": [], + "range": [ + 934, + 942 + ], + "loc": { + "start": { + "line": 34, + "column": 22 + }, + "end": { + "line": 34, + "column": 30 + } + } + }, + "range": [ + 916, + 942 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 30 + } + } + }, + "range": [ + 916, + 943 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 948, + 952 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_isLoaded", + "range": [ + 953, + 962 + ], + "loc": { + "start": { + "line": 35, + "column": 9 + }, + "end": { + "line": 35, + "column": 18 + } + } + }, + "range": [ + 948, + 962 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 18 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 965, + 970 + ], + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 26 + } + } + }, + "range": [ + 948, + 970 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 26 + } + } + }, + "range": [ + 948, + 971 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 27 + } + } + } + ], + "range": [ + 678, + 975 + ], + "loc": { + "start": { + "line": 25, + "column": 37 + }, + "end": { + "line": 36, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 654, + 975 + ], + "loc": { + "start": { + "line": 25, + "column": 13 + }, + "end": { + "line": 36, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 643, + 975 + ], + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 36, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} deepServices\n * @param {String} context\n ", + "range": [ + 569, + 640 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 24, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 979, + 1012 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 40, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "isLoaded", + "range": [ + 1019, + 1027 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1043, + 1047 + ], + "loc": { + "start": { + "line": 42, + "column": 11 + }, + "end": { + "line": 42, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_isLoaded", + "range": [ + 1048, + 1057 + ], + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 25 + } + } + }, + "range": [ + 1043, + 1057 + ], + "loc": { + "start": { + "line": 42, + "column": 11 + }, + "end": { + "line": 42, + "column": 25 + } + } + }, + "range": [ + 1036, + 1058 + ], + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 26 + } + } + } + ], + "range": [ + 1030, + 1062 + ], + "loc": { + "start": { + "line": 41, + "column": 17 + }, + "end": { + "line": 43, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1027, + 1062 + ], + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 43, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1015, + 1062 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 43, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 979, + 1012 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 40, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} identifier\n * @returns {Microservice}\n ", + "range": [ + 1066, + 1136 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1139, + 1151 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 49, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "identifier", + "range": [ + 1152, + 1162 + ], + "loc": { + "start": { + "line": 49, + "column": 15 + }, + "end": { + "line": 49, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "Identifier", + "name": "identifier", + "range": [ + 1181, + 1191 + ], + "loc": { + "start": { + "line": 50, + "column": 15 + }, + "end": { + "line": 50, + "column": 25 + } + } + }, + "prefix": true, + "range": [ + 1174, + 1191 + ], + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 25 + } + } + }, + "right": { + "type": "Literal", + "value": "undefined", + "raw": "'undefined'", + "range": [ + 1196, + 1207 + ], + "loc": { + "start": { + "line": 50, + "column": 30 + }, + "end": { + "line": 50, + "column": 41 + } + } + }, + "range": [ + 1174, + 1207 + ], + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 41 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "identifier", + "range": [ + 1217, + 1227 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 16 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1230, + 1234 + ], + "loc": { + "start": { + "line": 51, + "column": 19 + }, + "end": { + "line": 51, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "_config", + "range": [ + 1235, + 1242 + ], + "loc": { + "start": { + "line": 51, + "column": 24 + }, + "end": { + "line": 51, + "column": 31 + } + } + }, + "range": [ + 1230, + 1242 + ], + "loc": { + "start": { + "line": 51, + "column": 19 + }, + "end": { + "line": 51, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "microserviceIdentifier", + "range": [ + 1243, + 1265 + ], + "loc": { + "start": { + "line": 51, + "column": 32 + }, + "end": { + "line": 51, + "column": 54 + } + } + }, + "range": [ + 1230, + 1265 + ], + "loc": { + "start": { + "line": 51, + "column": 19 + }, + "end": { + "line": 51, + "column": 54 + } + } + }, + "range": [ + 1217, + 1265 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 54 + } + } + }, + "range": [ + 1217, + 1266 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 55 + } + } + } + ], + "range": [ + 1209, + 1272 + ], + "loc": { + "start": { + "line": 50, + "column": 43 + }, + "end": { + "line": 52, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1170, + 1272 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 52, + "column": 5 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "microserviceKey", + "range": [ + 1287, + 1302 + ], + "loc": { + "start": { + "line": 54, + "column": 13 + }, + "end": { + "line": 54, + "column": 28 + } + } + }, + "init": null, + "range": [ + 1287, + 1302 + ], + "loc": { + "start": { + "line": 54, + "column": 13 + }, + "end": { + "line": 54, + "column": 28 + } + } + } + ], + "kind": "let", + "range": [ + 1283, + 1302 + ], + "loc": { + "start": { + "line": 54, + "column": 9 + }, + "end": { + "line": 54, + "column": 28 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1306, + 1310 + ], + "loc": { + "start": { + "line": 54, + "column": 32 + }, + "end": { + "line": 54, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservices", + "range": [ + 1311, + 1324 + ], + "loc": { + "start": { + "line": 54, + "column": 37 + }, + "end": { + "line": 54, + "column": 50 + } + } + }, + "range": [ + 1306, + 1324 + ], + "loc": { + "start": { + "line": 54, + "column": 32 + }, + "end": { + "line": 54, + "column": 50 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1339, + 1343 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservices", + "range": [ + 1344, + 1357 + ], + "loc": { + "start": { + "line": 55, + "column": 16 + }, + "end": { + "line": 55, + "column": 29 + } + } + }, + "range": [ + 1339, + 1357 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 1358, + 1372 + ], + "loc": { + "start": { + "line": 55, + "column": 30 + }, + "end": { + "line": 55, + "column": 44 + } + } + }, + "range": [ + 1339, + 1372 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 44 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "microserviceKey", + "range": [ + 1373, + 1388 + ], + "loc": { + "start": { + "line": 55, + "column": 45 + }, + "end": { + "line": 55, + "column": 60 + } + } + } + ], + "range": [ + 1339, + 1389 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 61 + } + } + }, + "prefix": true, + "range": [ + 1338, + 1389 + ], + "loc": { + "start": { + "line": 55, + "column": 10 + }, + "end": { + "line": 55, + "column": 61 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 1401, + 1410 + ], + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 17 + } + } + } + ], + "range": [ + 1391, + 1418 + ], + "loc": { + "start": { + "line": 55, + "column": 63 + }, + "end": { + "line": 57, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1334, + 1418 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 57, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1430, + 1442 + ], + "loc": { + "start": { + "line": 59, + "column": 10 + }, + "end": { + "line": 59, + "column": 22 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1445, + 1449 + ], + "loc": { + "start": { + "line": 59, + "column": 25 + }, + "end": { + "line": 59, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservices", + "range": [ + 1450, + 1463 + ], + "loc": { + "start": { + "line": 59, + "column": 30 + }, + "end": { + "line": 59, + "column": 43 + } + } + }, + "range": [ + 1445, + 1463 + ], + "loc": { + "start": { + "line": 59, + "column": 25 + }, + "end": { + "line": 59, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "name": "microserviceKey", + "range": [ + 1464, + 1479 + ], + "loc": { + "start": { + "line": 59, + "column": 44 + }, + "end": { + "line": 59, + "column": 59 + } + } + }, + "range": [ + 1445, + 1480 + ], + "loc": { + "start": { + "line": 59, + "column": 25 + }, + "end": { + "line": 59, + "column": 60 + } + } + }, + "range": [ + 1430, + 1480 + ], + "loc": { + "start": { + "line": 59, + "column": 10 + }, + "end": { + "line": 59, + "column": 60 + } + } + } + ], + "kind": "let", + "range": [ + 1426, + 1481 + ], + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 61 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1493, + 1505 + ], + "loc": { + "start": { + "line": 61, + "column": 10 + }, + "end": { + "line": 61, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "identifier", + "range": [ + 1506, + 1516 + ], + "loc": { + "start": { + "line": 61, + "column": 23 + }, + "end": { + "line": 61, + "column": 33 + } + } + }, + "range": [ + 1493, + 1516 + ], + "loc": { + "start": { + "line": 61, + "column": 10 + }, + "end": { + "line": 61, + "column": 33 + } + } + }, + "right": { + "type": "Identifier", + "name": "identifier", + "range": [ + 1521, + 1531 + ], + "loc": { + "start": { + "line": 61, + "column": 38 + }, + "end": { + "line": 61, + "column": 48 + } + } + }, + "range": [ + 1493, + 1531 + ], + "loc": { + "start": { + "line": 61, + "column": 10 + }, + "end": { + "line": 61, + "column": 48 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1550, + 1562 + ], + "loc": { + "start": { + "line": 62, + "column": 15 + }, + "end": { + "line": 62, + "column": 27 + } + } + }, + "range": [ + 1543, + 1563 + ], + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 62, + "column": 28 + } + } + } + ], + "range": [ + 1533, + 1571 + ], + "loc": { + "start": { + "line": 61, + "column": 50 + }, + "end": { + "line": 63, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1489, + 1571 + ], + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 63, + "column": 7 + } + } + } + ], + "range": [ + 1326, + 1577 + ], + "loc": { + "start": { + "line": 54, + "column": 52 + }, + "end": { + "line": 64, + "column": 5 + } + } + }, + "each": false, + "range": [ + 1278, + 1577 + ], + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 64, + "column": 5 + } + } + }, + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "MissingMicroserviceException", + "range": [ + 1593, + 1621 + ], + "loc": { + "start": { + "line": 66, + "column": 14 + }, + "end": { + "line": 66, + "column": 42 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "identifier", + "range": [ + 1622, + 1632 + ], + "loc": { + "start": { + "line": 66, + "column": 43 + }, + "end": { + "line": 66, + "column": 53 + } + } + } + ], + "range": [ + 1589, + 1633 + ], + "loc": { + "start": { + "line": 66, + "column": 10 + }, + "end": { + "line": 66, + "column": 54 + } + } + }, + "range": [ + 1583, + 1634 + ], + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 66, + "column": 55 + } + } + } + ], + "range": [ + 1164, + 1638 + ], + "loc": { + "start": { + "line": 49, + "column": 27 + }, + "end": { + "line": 67, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1151, + 1638 + ], + "loc": { + "start": { + "line": 49, + "column": 14 + }, + "end": { + "line": 67, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1139, + 1638 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 67, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} identifier\n * @returns {Microservice}\n ", + "range": [ + 1066, + 1136 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} jsonFile\n * @param {Function} callback\n * @returns {Kernel}\n ", + "range": [ + 1642, + 1736 + ], + "loc": { + "start": { + "line": 69, + "column": 2 + }, + "end": { + "line": 73, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "loadFromFile", + "range": [ + 1739, + 1751 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 74, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "jsonFile", + "range": [ + 1752, + 1760 + ], + "loc": { + "start": { + "line": 74, + "column": 15 + }, + "end": { + "line": 74, + "column": 23 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 1762, + 1770 + ], + "loc": { + "start": { + "line": 74, + "column": 25 + }, + "end": { + "line": 74, + "column": 33 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1922, + 1926 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_isLoaded", + "range": [ + 1927, + 1936 + ], + "loc": { + "start": { + "line": 78, + "column": 13 + }, + "end": { + "line": 78, + "column": 22 + } + } + }, + "range": [ + 1922, + 1936 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 22 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1946, + 1954 + ], + "loc": { + "start": { + "line": 79, + "column": 6 + }, + "end": { + "line": 79, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 1955, + 1959 + ], + "loc": { + "start": { + "line": 79, + "column": 15 + }, + "end": { + "line": 79, + "column": 19 + } + } + } + ], + "range": [ + 1946, + 1960 + ], + "loc": { + "start": { + "line": 79, + "column": 6 + }, + "end": { + "line": 79, + "column": 20 + } + } + }, + "range": [ + 1946, + 1961 + ], + "loc": { + "start": { + "line": 79, + "column": 6 + }, + "end": { + "line": 79, + "column": 21 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 1975, + 1979 + ], + "loc": { + "start": { + "line": 80, + "column": 13 + }, + "end": { + "line": 80, + "column": 17 + } + } + }, + "range": [ + 1968, + 1980 + ], + "loc": { + "start": { + "line": 80, + "column": 6 + }, + "end": { + "line": 80, + "column": 18 + } + } + } + ], + "range": [ + 1938, + 1986 + ], + "loc": { + "start": { + "line": 78, + "column": 24 + }, + "end": { + "line": 81, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1918, + 1986 + ], + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 81, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: remove AWS changes the way the things run", + "range": [ + 1778, + 1829 + ], + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 55 + } + } + }, + { + "type": "Line", + "value": " This is used because of AWS Lambda", + "range": [ + 1834, + 1871 + ], + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 41 + } + } + }, + { + "type": "Line", + "value": " context sharing after a cold start", + "range": [ + 1876, + 1913 + ], + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 77, + "column": 41 + } + } + } + ] + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1996, + 2000 + ], + "loc": { + "start": { + "line": 83, + "column": 8 + }, + "end": { + "line": 83, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "isBackend", + "range": [ + 2001, + 2010 + ], + "loc": { + "start": { + "line": 83, + "column": 13 + }, + "end": { + "line": 83, + "column": 22 + } + } + }, + "range": [ + 1996, + 2010 + ], + "loc": { + "start": { + "line": 83, + "column": 8 + }, + "end": { + "line": 83, + "column": 22 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "FileSystem", + "range": [ + 2020, + 2030 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "readFile", + "range": [ + 2031, + 2039 + ], + "loc": { + "start": { + "line": 84, + "column": 17 + }, + "end": { + "line": 84, + "column": 25 + } + } + }, + "range": [ + 2020, + 2039 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "jsonFile", + "range": [ + 2040, + 2048 + ], + "loc": { + "start": { + "line": 84, + "column": 26 + }, + "end": { + "line": 84, + "column": 34 + } + } + }, + { + "type": "Literal", + "value": "utf8", + "raw": "'utf8'", + "range": [ + 2050, + 2056 + ], + "loc": { + "start": { + "line": 84, + "column": 36 + }, + "end": { + "line": 84, + "column": 42 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 2067, + 2072 + ], + "loc": { + "start": { + "line": 84, + "column": 53 + }, + "end": { + "line": 84, + "column": 58 + } + } + }, + { + "type": "Identifier", + "name": "data", + "range": [ + 2074, + 2078 + ], + "loc": { + "start": { + "line": 84, + "column": 60 + }, + "end": { + "line": 84, + "column": 64 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "error", + "range": [ + 2094, + 2099 + ], + "loc": { + "start": { + "line": 85, + "column": 12 + }, + "end": { + "line": 85, + "column": 17 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Exception", + "range": [ + 2123, + 2132 + ], + "loc": { + "start": { + "line": 86, + "column": 20 + }, + "end": { + "line": 86, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Failed to load kernel config from ", + "cooked": "Failed to load kernel config from " + }, + "tail": false, + "range": [ + 2133, + 2170 + ], + "loc": { + "start": { + "line": 86, + "column": 30 + }, + "end": { + "line": 86, + "column": 67 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " (", + "cooked": " (" + }, + "tail": false, + "range": [ + 2178, + 2183 + ], + "loc": { + "start": { + "line": 86, + "column": 75 + }, + "end": { + "line": 86, + "column": 80 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ")", + "cooked": ")" + }, + "tail": true, + "range": [ + 2188, + 2191 + ], + "loc": { + "start": { + "line": 86, + "column": 85 + }, + "end": { + "line": 86, + "column": 88 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "jsonFile", + "range": [ + 2170, + 2178 + ], + "loc": { + "start": { + "line": 86, + "column": 67 + }, + "end": { + "line": 86, + "column": 75 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 2183, + 2188 + ], + "loc": { + "start": { + "line": 86, + "column": 80 + }, + "end": { + "line": 86, + "column": 85 + } + } + } + ], + "range": [ + 2133, + 2191 + ], + "loc": { + "start": { + "line": 86, + "column": 30 + }, + "end": { + "line": 86, + "column": 88 + } + } + } + ], + "range": [ + 2119, + 2192 + ], + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 86, + "column": 89 + } + } + }, + "range": [ + 2113, + 2193 + ], + "loc": { + "start": { + "line": 86, + "column": 10 + }, + "end": { + "line": 86, + "column": 90 + } + } + } + ], + "range": [ + 2101, + 2203 + ], + "loc": { + "start": { + "line": 85, + "column": 19 + }, + "end": { + "line": 87, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 2090, + 2203 + ], + "loc": { + "start": { + "line": 85, + "column": 8 + }, + "end": { + "line": 87, + "column": 9 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2213, + 2217 + ], + "loc": { + "start": { + "line": 89, + "column": 8 + }, + "end": { + "line": 89, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "load", + "range": [ + 2218, + 2222 + ], + "loc": { + "start": { + "line": 89, + "column": 13 + }, + "end": { + "line": 89, + "column": 17 + } + } + }, + "range": [ + 2213, + 2222 + ], + "loc": { + "start": { + "line": 89, + "column": 8 + }, + "end": { + "line": 89, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 2223, + 2227 + ], + "loc": { + "start": { + "line": 89, + "column": 18 + }, + "end": { + "line": 89, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "parse", + "range": [ + 2228, + 2233 + ], + "loc": { + "start": { + "line": 89, + "column": 23 + }, + "end": { + "line": 89, + "column": 28 + } + } + }, + "range": [ + 2223, + 2233 + ], + "loc": { + "start": { + "line": 89, + "column": 18 + }, + "end": { + "line": 89, + "column": 28 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "data", + "range": [ + 2234, + 2238 + ], + "loc": { + "start": { + "line": 89, + "column": 29 + }, + "end": { + "line": 89, + "column": 33 + } + } + } + ], + "range": [ + 2223, + 2239 + ], + "loc": { + "start": { + "line": 89, + "column": 18 + }, + "end": { + "line": 89, + "column": 34 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 2241, + 2249 + ], + "loc": { + "start": { + "line": 89, + "column": 36 + }, + "end": { + "line": 89, + "column": 44 + } + } + } + ], + "range": [ + 2213, + 2250 + ], + "loc": { + "start": { + "line": 89, + "column": 8 + }, + "end": { + "line": 89, + "column": 45 + } + } + }, + "range": [ + 2213, + 2251 + ], + "loc": { + "start": { + "line": 89, + "column": 8 + }, + "end": { + "line": 89, + "column": 46 + } + } + } + ], + "range": [ + 2080, + 2259 + ], + "loc": { + "start": { + "line": 84, + "column": 66 + }, + "end": { + "line": 90, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2058, + 2259 + ], + "loc": { + "start": { + "line": 84, + "column": 44 + }, + "end": { + "line": 90, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 2260, + 2264 + ], + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 12 + } + } + }, + "range": [ + 2058, + 2264 + ], + "loc": { + "start": { + "line": 84, + "column": 44 + }, + "end": { + "line": 90, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 2265, + 2269 + ], + "loc": { + "start": { + "line": 90, + "column": 13 + }, + "end": { + "line": 90, + "column": 17 + } + } + } + ], + "range": [ + 2058, + 2270 + ], + "loc": { + "start": { + "line": 84, + "column": 44 + }, + "end": { + "line": 90, + "column": 18 + } + } + } + ], + "range": [ + 2020, + 2271 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 90, + "column": 19 + } + } + }, + "range": [ + 2020, + 2272 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 90, + "column": 20 + } + } + } + ], + "range": [ + 2012, + 2278 + ], + "loc": { + "start": { + "line": 83, + "column": 24 + }, + "end": { + "line": 91, + "column": 5 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "client", + "range": [ + 2332, + 2338 + ], + "loc": { + "start": { + "line": 92, + "column": 10 + }, + "end": { + "line": 92, + "column": 16 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "XMLHttpRequest", + "range": [ + 2345, + 2359 + ], + "loc": { + "start": { + "line": 92, + "column": 23 + }, + "end": { + "line": 92, + "column": 37 + } + } + }, + "arguments": [], + "range": [ + 2341, + 2361 + ], + "loc": { + "start": { + "line": 92, + "column": 19 + }, + "end": { + "line": 92, + "column": 39 + } + } + }, + "range": [ + 2332, + 2361 + ], + "loc": { + "start": { + "line": 92, + "column": 10 + }, + "end": { + "line": 92, + "column": 39 + } + } + } + ], + "kind": "var", + "range": [ + 2328, + 2362 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 40 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: get rid of native code...", + "range": [ + 2286, + 2321 + ], + "loc": { + "start": { + "line": 91, + "column": 13 + }, + "end": { + "line": 91, + "column": 48 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "client", + "range": [ + 2370, + 2376 + ], + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "open", + "range": [ + 2377, + 2381 + ], + "loc": { + "start": { + "line": 94, + "column": 13 + }, + "end": { + "line": 94, + "column": 17 + } + } + }, + "range": [ + 2370, + 2381 + ], + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "GET", + "raw": "'GET'", + "range": [ + 2382, + 2387 + ], + "loc": { + "start": { + "line": 94, + "column": 18 + }, + "end": { + "line": 94, + "column": 23 + } + } + }, + { + "type": "Identifier", + "name": "jsonFile", + "range": [ + 2389, + 2397 + ], + "loc": { + "start": { + "line": 94, + "column": 25 + }, + "end": { + "line": 94, + "column": 33 + } + } + } + ], + "range": [ + 2370, + 2398 + ], + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 34 + } + } + }, + "range": [ + 2370, + 2399 + ], + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 35 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "client", + "range": [ + 2406, + 2412 + ], + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 95, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "onreadystatechange", + "range": [ + 2413, + 2431 + ], + "loc": { + "start": { + "line": 95, + "column": 13 + }, + "end": { + "line": 95, + "column": 31 + } + } + }, + "range": [ + 2406, + 2431 + ], + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 95, + "column": 31 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "event", + "range": [ + 2443, + 2448 + ], + "loc": { + "start": { + "line": 95, + "column": 43 + }, + "end": { + "line": 95, + "column": 48 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "client", + "range": [ + 2464, + 2470 + ], + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "readyState", + "range": [ + 2471, + 2481 + ], + "loc": { + "start": { + "line": 96, + "column": 19 + }, + "end": { + "line": 96, + "column": 29 + } + } + }, + "range": [ + 2464, + 2481 + ], + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 29 + } + } + }, + "right": { + "type": "Literal", + "value": 4, + "raw": "4", + "range": [ + 2486, + 2487 + ], + "loc": { + "start": { + "line": 96, + "column": 34 + }, + "end": { + "line": 96, + "column": 35 + } + } + }, + "range": [ + 2464, + 2487 + ], + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 35 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "client", + "range": [ + 2505, + 2511 + ], + "loc": { + "start": { + "line": 97, + "column": 14 + }, + "end": { + "line": 97, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "status", + "range": [ + 2512, + 2518 + ], + "loc": { + "start": { + "line": 97, + "column": 21 + }, + "end": { + "line": 97, + "column": 27 + } + } + }, + "range": [ + 2505, + 2518 + ], + "loc": { + "start": { + "line": 97, + "column": 14 + }, + "end": { + "line": 97, + "column": 27 + } + } + }, + "right": { + "type": "Literal", + "value": 200, + "raw": "200", + "range": [ + 2523, + 2526 + ], + "loc": { + "start": { + "line": 97, + "column": 32 + }, + "end": { + "line": 97, + "column": 35 + } + } + }, + "range": [ + 2505, + 2526 + ], + "loc": { + "start": { + "line": 97, + "column": 14 + }, + "end": { + "line": 97, + "column": 35 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Exception", + "range": [ + 2552, + 2561 + ], + "loc": { + "start": { + "line": 98, + "column": 22 + }, + "end": { + "line": 98, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Failed to load kernel config from ", + "cooked": "Failed to load kernel config from " + }, + "tail": false, + "range": [ + 2562, + 2599 + ], + "loc": { + "start": { + "line": 98, + "column": 32 + }, + "end": { + "line": 98, + "column": 69 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 2607, + 2609 + ], + "loc": { + "start": { + "line": 98, + "column": 77 + }, + "end": { + "line": 98, + "column": 79 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "jsonFile", + "range": [ + 2599, + 2607 + ], + "loc": { + "start": { + "line": 98, + "column": 69 + }, + "end": { + "line": 98, + "column": 77 + } + } + } + ], + "range": [ + 2562, + 2609 + ], + "loc": { + "start": { + "line": 98, + "column": 32 + }, + "end": { + "line": 98, + "column": 79 + } + } + } + ], + "range": [ + 2548, + 2610 + ], + "loc": { + "start": { + "line": 98, + "column": 18 + }, + "end": { + "line": 98, + "column": 80 + } + } + }, + "range": [ + 2542, + 2611 + ], + "loc": { + "start": { + "line": 98, + "column": 12 + }, + "end": { + "line": 98, + "column": 81 + } + } + } + ], + "range": [ + 2528, + 2623 + ], + "loc": { + "start": { + "line": 97, + "column": 37 + }, + "end": { + "line": 99, + "column": 11 + } + } + }, + "alternate": null, + "range": [ + 2501, + 2623 + ], + "loc": { + "start": { + "line": 97, + "column": 10 + }, + "end": { + "line": 99, + "column": 11 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2635, + 2639 + ], + "loc": { + "start": { + "line": 101, + "column": 10 + }, + "end": { + "line": 101, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "load", + "range": [ + 2640, + 2644 + ], + "loc": { + "start": { + "line": 101, + "column": 15 + }, + "end": { + "line": 101, + "column": 19 + } + } + }, + "range": [ + 2635, + 2644 + ], + "loc": { + "start": { + "line": 101, + "column": 10 + }, + "end": { + "line": 101, + "column": 19 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 2645, + 2649 + ], + "loc": { + "start": { + "line": 101, + "column": 20 + }, + "end": { + "line": 101, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "parse", + "range": [ + 2650, + 2655 + ], + "loc": { + "start": { + "line": 101, + "column": 25 + }, + "end": { + "line": 101, + "column": 30 + } + } + }, + "range": [ + 2645, + 2655 + ], + "loc": { + "start": { + "line": 101, + "column": 20 + }, + "end": { + "line": 101, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "client", + "range": [ + 2656, + 2662 + ], + "loc": { + "start": { + "line": 101, + "column": 31 + }, + "end": { + "line": 101, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "responseText", + "range": [ + 2663, + 2675 + ], + "loc": { + "start": { + "line": 101, + "column": 38 + }, + "end": { + "line": 101, + "column": 50 + } + } + }, + "range": [ + 2656, + 2675 + ], + "loc": { + "start": { + "line": 101, + "column": 31 + }, + "end": { + "line": 101, + "column": 50 + } + } + } + ], + "range": [ + 2645, + 2676 + ], + "loc": { + "start": { + "line": 101, + "column": 20 + }, + "end": { + "line": 101, + "column": 51 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 2678, + 2686 + ], + "loc": { + "start": { + "line": 101, + "column": 53 + }, + "end": { + "line": 101, + "column": 61 + } + } + } + ], + "range": [ + 2635, + 2687 + ], + "loc": { + "start": { + "line": 101, + "column": 10 + }, + "end": { + "line": 101, + "column": 62 + } + } + }, + "range": [ + 2635, + 2688 + ], + "loc": { + "start": { + "line": 101, + "column": 10 + }, + "end": { + "line": 101, + "column": 63 + } + } + } + ], + "range": [ + 2489, + 2698 + ], + "loc": { + "start": { + "line": 96, + "column": 37 + }, + "end": { + "line": 102, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 2460, + 2698 + ], + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 102, + "column": 9 + } + } + } + ], + "range": [ + 2450, + 2706 + ], + "loc": { + "start": { + "line": 95, + "column": 50 + }, + "end": { + "line": 103, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2434, + 2706 + ], + "loc": { + "start": { + "line": 95, + "column": 34 + }, + "end": { + "line": 103, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 2707, + 2711 + ], + "loc": { + "start": { + "line": 103, + "column": 8 + }, + "end": { + "line": 103, + "column": 12 + } + } + }, + "range": [ + 2434, + 2711 + ], + "loc": { + "start": { + "line": 95, + "column": 34 + }, + "end": { + "line": 103, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 2712, + 2716 + ], + "loc": { + "start": { + "line": 103, + "column": 13 + }, + "end": { + "line": 103, + "column": 17 + } + } + } + ], + "range": [ + 2434, + 2717 + ], + "loc": { + "start": { + "line": 95, + "column": 34 + }, + "end": { + "line": 103, + "column": 18 + } + } + }, + "range": [ + 2406, + 2717 + ], + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 103, + "column": 18 + } + } + }, + "range": [ + 2406, + 2718 + ], + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 103, + "column": 19 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "client", + "range": [ + 2726, + 2732 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "send", + "range": [ + 2733, + 2737 + ], + "loc": { + "start": { + "line": 105, + "column": 13 + }, + "end": { + "line": 105, + "column": 17 + } + } + }, + "range": [ + 2726, + 2737 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 17 + } + } + }, + "arguments": [], + "range": [ + 2726, + 2739 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 19 + } + } + }, + "range": [ + 2726, + 2740 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 20 + } + } + } + ], + "range": [ + 2284, + 2746 + ], + "loc": { + "start": { + "line": 91, + "column": 11 + }, + "end": { + "line": 106, + "column": 5 + } + } + }, + "range": [ + 1992, + 2746 + ], + "loc": { + "start": { + "line": 83, + "column": 4 + }, + "end": { + "line": 106, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 2759, + 2763 + ], + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 108, + "column": 15 + } + } + }, + "range": [ + 2752, + 2764 + ], + "loc": { + "start": { + "line": 108, + "column": 4 + }, + "end": { + "line": 108, + "column": 16 + } + } + } + ], + "range": [ + 1772, + 2768 + ], + "loc": { + "start": { + "line": 74, + "column": 35 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1751, + 2768 + ], + "loc": { + "start": { + "line": 74, + "column": 14 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1739, + 2768 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 109, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} jsonFile\n * @param {Function} callback\n * @returns {Kernel}\n ", + "range": [ + 1642, + 1736 + ], + "loc": { + "start": { + "line": 69, + "column": 2 + }, + "end": { + "line": 73, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Loads all Kernel dependencies\n *\n * @param {Object} globalConfig\n * @param {Function} callback\n ", + "range": [ + 2772, + 2887 + ], + "loc": { + "start": { + "line": 111, + "column": 2 + }, + "end": { + "line": 116, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "load", + "range": [ + 2890, + 2894 + ], + "loc": { + "start": { + "line": 117, + "column": 2 + }, + "end": { + "line": 117, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "globalConfig", + "range": [ + 2895, + 2907 + ], + "loc": { + "start": { + "line": 117, + "column": 7 + }, + "end": { + "line": 117, + "column": 19 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 2909, + 2917 + ], + "loc": { + "start": { + "line": 117, + "column": 21 + }, + "end": { + "line": 117, + "column": 29 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3069, + 3073 + ], + "loc": { + "start": { + "line": 121, + "column": 8 + }, + "end": { + "line": 121, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_isLoaded", + "range": [ + 3074, + 3083 + ], + "loc": { + "start": { + "line": 121, + "column": 13 + }, + "end": { + "line": 121, + "column": 22 + } + } + }, + "range": [ + 3069, + 3083 + ], + "loc": { + "start": { + "line": 121, + "column": 8 + }, + "end": { + "line": 121, + "column": 22 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 3093, + 3101 + ], + "loc": { + "start": { + "line": 122, + "column": 6 + }, + "end": { + "line": 122, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 3102, + 3106 + ], + "loc": { + "start": { + "line": 122, + "column": 15 + }, + "end": { + "line": 122, + "column": 19 + } + } + } + ], + "range": [ + 3093, + 3107 + ], + "loc": { + "start": { + "line": 122, + "column": 6 + }, + "end": { + "line": 122, + "column": 20 + } + } + }, + "range": [ + 3093, + 3108 + ], + "loc": { + "start": { + "line": 122, + "column": 6 + }, + "end": { + "line": 122, + "column": 21 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 3122, + 3126 + ], + "loc": { + "start": { + "line": 123, + "column": 13 + }, + "end": { + "line": 123, + "column": 17 + } + } + }, + "range": [ + 3115, + 3127 + ], + "loc": { + "start": { + "line": 123, + "column": 6 + }, + "end": { + "line": 123, + "column": 18 + } + } + } + ], + "range": [ + 3085, + 3133 + ], + "loc": { + "start": { + "line": 121, + "column": 24 + }, + "end": { + "line": 124, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 3065, + 3133 + ], + "loc": { + "start": { + "line": 121, + "column": 4 + }, + "end": { + "line": 124, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: remove AWS changes the way the things run", + "range": [ + 2925, + 2976 + ], + "loc": { + "start": { + "line": 118, + "column": 4 + }, + "end": { + "line": 118, + "column": 55 + } + } + }, + { + "type": "Line", + "value": " This is used because of AWS Lambda", + "range": [ + 2981, + 3018 + ], + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 119, + "column": 41 + } + } + }, + { + "type": "Line", + "value": " context sharing after a cold start", + "range": [ + 3023, + 3060 + ], + "loc": { + "start": { + "line": 120, + "column": 4 + }, + "end": { + "line": 120, + "column": 41 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "originalCallback", + "range": [ + 3143, + 3159 + ], + "loc": { + "start": { + "line": 126, + "column": 8 + }, + "end": { + "line": 126, + "column": 24 + } + } + }, + "init": { + "type": "Identifier", + "name": "callback", + "range": [ + 3162, + 3170 + ], + "loc": { + "start": { + "line": 126, + "column": 27 + }, + "end": { + "line": 126, + "column": 35 + } + } + }, + "range": [ + 3143, + 3170 + ], + "loc": { + "start": { + "line": 126, + "column": 8 + }, + "end": { + "line": 126, + "column": 35 + } + } + } + ], + "kind": "let", + "range": [ + 3139, + 3171 + ], + "loc": { + "start": { + "line": 126, + "column": 4 + }, + "end": { + "line": 126, + "column": 36 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 3177, + 3185 + ], + "loc": { + "start": { + "line": 128, + "column": 4 + }, + "end": { + "line": 128, + "column": 12 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "kernel", + "range": [ + 3197, + 3203 + ], + "loc": { + "start": { + "line": 128, + "column": 24 + }, + "end": { + "line": 128, + "column": 30 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3213, + 3217 + ], + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_isLoaded", + "range": [ + 3218, + 3227 + ], + "loc": { + "start": { + "line": 129, + "column": 11 + }, + "end": { + "line": 129, + "column": 20 + } + } + }, + "range": [ + 3213, + 3227 + ], + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 20 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 3230, + 3234 + ], + "loc": { + "start": { + "line": 129, + "column": 23 + }, + "end": { + "line": 129, + "column": 27 + } + } + }, + "range": [ + 3213, + 3234 + ], + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 27 + } + } + }, + "range": [ + 3213, + 3235 + ], + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "originalCallback", + "range": [ + 3243, + 3259 + ], + "loc": { + "start": { + "line": 131, + "column": 6 + }, + "end": { + "line": 131, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "kernel", + "range": [ + 3260, + 3266 + ], + "loc": { + "start": { + "line": 131, + "column": 23 + }, + "end": { + "line": 131, + "column": 29 + } + } + } + ], + "range": [ + 3243, + 3267 + ], + "loc": { + "start": { + "line": 131, + "column": 6 + }, + "end": { + "line": 131, + "column": 30 + } + } + }, + "range": [ + 3243, + 3268 + ], + "loc": { + "start": { + "line": 131, + "column": 6 + }, + "end": { + "line": 131, + "column": 31 + } + } + } + ], + "range": [ + 3205, + 3274 + ], + "loc": { + "start": { + "line": 128, + "column": 32 + }, + "end": { + "line": 132, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3188, + 3274 + ], + "loc": { + "start": { + "line": 128, + "column": 15 + }, + "end": { + "line": 132, + "column": 5 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 3275, + 3279 + ], + "loc": { + "start": { + "line": 132, + "column": 6 + }, + "end": { + "line": 132, + "column": 10 + } + } + }, + "range": [ + 3188, + 3279 + ], + "loc": { + "start": { + "line": 128, + "column": 15 + }, + "end": { + "line": 132, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 3280, + 3284 + ], + "loc": { + "start": { + "line": 132, + "column": 11 + }, + "end": { + "line": 132, + "column": 15 + } + } + } + ], + "range": [ + 3188, + 3285 + ], + "loc": { + "start": { + "line": 128, + "column": 15 + }, + "end": { + "line": 132, + "column": 16 + } + } + }, + "range": [ + 3177, + 3285 + ], + "loc": { + "start": { + "line": 128, + "column": 4 + }, + "end": { + "line": 132, + "column": 16 + } + } + }, + "range": [ + 3177, + 3286 + ], + "loc": { + "start": { + "line": 128, + "column": 4 + }, + "end": { + "line": 132, + "column": 17 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3292, + 3296 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 134, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_config", + "range": [ + 3297, + 3304 + ], + "loc": { + "start": { + "line": 134, + "column": 9 + }, + "end": { + "line": 134, + "column": 16 + } + } + }, + "range": [ + 3292, + 3304 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 134, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "globalConfig", + "range": [ + 3307, + 3319 + ], + "loc": { + "start": { + "line": 134, + "column": 19 + }, + "end": { + "line": 134, + "column": 31 + } + } + }, + "range": [ + 3292, + 3319 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 134, + "column": 31 + } + } + }, + "range": [ + 3292, + 3320 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 134, + "column": 32 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3326, + 3330 + ], + "loc": { + "start": { + "line": 136, + "column": 4 + }, + "end": { + "line": 136, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buildContainer", + "range": [ + 3331, + 3346 + ], + "loc": { + "start": { + "line": 136, + "column": 9 + }, + "end": { + "line": 136, + "column": 24 + } + } + }, + "range": [ + 3326, + 3346 + ], + "loc": { + "start": { + "line": 136, + "column": 4 + }, + "end": { + "line": 136, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 3347, + 3355 + ], + "loc": { + "start": { + "line": 136, + "column": 25 + }, + "end": { + "line": 136, + "column": 33 + } + } + } + ], + "range": [ + 3326, + 3356 + ], + "loc": { + "start": { + "line": 136, + "column": 4 + }, + "end": { + "line": 136, + "column": 34 + } + } + }, + "range": [ + 3326, + 3357 + ], + "loc": { + "start": { + "line": 136, + "column": 4 + }, + "end": { + "line": 136, + "column": 35 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 3370, + 3374 + ], + "loc": { + "start": { + "line": 138, + "column": 11 + }, + "end": { + "line": 138, + "column": 15 + } + } + }, + "range": [ + 3363, + 3375 + ], + "loc": { + "start": { + "line": 138, + "column": 4 + }, + "end": { + "line": 138, + "column": 16 + } + } + } + ], + "range": [ + 2919, + 3379 + ], + "loc": { + "start": { + "line": 117, + "column": 31 + }, + "end": { + "line": 139, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2894, + 3379 + ], + "loc": { + "start": { + "line": 117, + "column": 6 + }, + "end": { + "line": 139, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2890, + 3379 + ], + "loc": { + "start": { + "line": 117, + "column": 2 + }, + "end": { + "line": 139, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Loads all Kernel dependencies\n *\n * @param {Object} globalConfig\n * @param {Function} callback\n ", + "range": [ + 2772, + 2887 + ], + "loc": { + "start": { + "line": 111, + "column": 2 + }, + "end": { + "line": 116, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n * @returns {*}\n ", + "range": [ + 3383, + 3435 + ], + "loc": { + "start": { + "line": 141, + "column": 2 + }, + "end": { + "line": 144, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "get", + "range": [ + 3438, + 3441 + ], + "loc": { + "start": { + "line": 145, + "column": 2 + }, + "end": { + "line": 145, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 3445, + 3449 + ], + "loc": { + "start": { + "line": 145, + "column": 9 + }, + "end": { + "line": 145, + "column": 13 + } + } + }, + "range": [ + 3442, + 3449 + ], + "loc": { + "start": { + "line": 145, + "column": 6 + }, + "end": { + "line": 145, + "column": 13 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3464, + 3468 + ], + "loc": { + "start": { + "line": 146, + "column": 11 + }, + "end": { + "line": 146, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 3469, + 3479 + ], + "loc": { + "start": { + "line": 146, + "column": 16 + }, + "end": { + "line": 146, + "column": 26 + } + } + }, + "range": [ + 3464, + 3479 + ], + "loc": { + "start": { + "line": 146, + "column": 11 + }, + "end": { + "line": 146, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 3480, + 3483 + ], + "loc": { + "start": { + "line": 146, + "column": 27 + }, + "end": { + "line": 146, + "column": 30 + } + } + }, + "range": [ + 3464, + 3483 + ], + "loc": { + "start": { + "line": 146, + "column": 11 + }, + "end": { + "line": 146, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 3487, + 3491 + ], + "loc": { + "start": { + "line": 146, + "column": 34 + }, + "end": { + "line": 146, + "column": 38 + } + } + }, + "range": [ + 3484, + 3491 + ], + "loc": { + "start": { + "line": 146, + "column": 31 + }, + "end": { + "line": 146, + "column": 38 + } + } + } + ], + "range": [ + 3464, + 3492 + ], + "loc": { + "start": { + "line": 146, + "column": 11 + }, + "end": { + "line": 146, + "column": 39 + } + } + }, + "range": [ + 3457, + 3493 + ], + "loc": { + "start": { + "line": 146, + "column": 4 + }, + "end": { + "line": 146, + "column": 40 + } + } + } + ], + "range": [ + 3451, + 3497 + ], + "loc": { + "start": { + "line": 145, + "column": 15 + }, + "end": { + "line": 147, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3441, + 3497 + ], + "loc": { + "start": { + "line": 145, + "column": 5 + }, + "end": { + "line": 147, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 3438, + 3497 + ], + "loc": { + "start": { + "line": 145, + "column": 2 + }, + "end": { + "line": 147, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n * @returns {*}\n ", + "range": [ + 3383, + 3435 + ], + "loc": { + "start": { + "line": 141, + "column": 2 + }, + "end": { + "line": 144, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 3501, + 3532 + ], + "loc": { + "start": { + "line": 149, + "column": 2 + }, + "end": { + "line": 151, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "services", + "range": [ + 3539, + 3547 + ], + "loc": { + "start": { + "line": 152, + "column": 6 + }, + "end": { + "line": 152, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3563, + 3567 + ], + "loc": { + "start": { + "line": 153, + "column": 11 + }, + "end": { + "line": 153, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_services", + "range": [ + 3568, + 3577 + ], + "loc": { + "start": { + "line": 153, + "column": 16 + }, + "end": { + "line": 153, + "column": 25 + } + } + }, + "range": [ + 3563, + 3577 + ], + "loc": { + "start": { + "line": 153, + "column": 11 + }, + "end": { + "line": 153, + "column": 25 + } + } + }, + "range": [ + 3556, + 3578 + ], + "loc": { + "start": { + "line": 153, + "column": 4 + }, + "end": { + "line": 153, + "column": 26 + } + } + } + ], + "range": [ + 3550, + 3582 + ], + "loc": { + "start": { + "line": 152, + "column": 17 + }, + "end": { + "line": 154, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3547, + 3582 + ], + "loc": { + "start": { + "line": 152, + "column": 14 + }, + "end": { + "line": 154, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3535, + 3582 + ], + "loc": { + "start": { + "line": 152, + "column": 2 + }, + "end": { + "line": 154, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 3501, + 3532 + ], + "loc": { + "start": { + "line": 149, + "column": 2 + }, + "end": { + "line": 151, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {DI}\n ", + "range": [ + 3586, + 3614 + ], + "loc": { + "start": { + "line": 156, + "column": 2 + }, + "end": { + "line": 158, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "container", + "range": [ + 3621, + 3630 + ], + "loc": { + "start": { + "line": 159, + "column": 6 + }, + "end": { + "line": 159, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3646, + 3650 + ], + "loc": { + "start": { + "line": 160, + "column": 11 + }, + "end": { + "line": 160, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 3651, + 3661 + ], + "loc": { + "start": { + "line": 160, + "column": 16 + }, + "end": { + "line": 160, + "column": 26 + } + } + }, + "range": [ + 3646, + 3661 + ], + "loc": { + "start": { + "line": 160, + "column": 11 + }, + "end": { + "line": 160, + "column": 26 + } + } + }, + "range": [ + 3639, + 3662 + ], + "loc": { + "start": { + "line": 160, + "column": 4 + }, + "end": { + "line": 160, + "column": 27 + } + } + } + ], + "range": [ + 3633, + 3666 + ], + "loc": { + "start": { + "line": 159, + "column": 18 + }, + "end": { + "line": 161, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3630, + 3666 + ], + "loc": { + "start": { + "line": 159, + "column": 15 + }, + "end": { + "line": 161, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3617, + 3666 + ], + "loc": { + "start": { + "line": 159, + "column": 2 + }, + "end": { + "line": 161, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {DI}\n ", + "range": [ + 3586, + 3614 + ], + "loc": { + "start": { + "line": 156, + "column": 2 + }, + "end": { + "line": 158, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 3670, + 3703 + ], + "loc": { + "start": { + "line": 163, + "column": 2 + }, + "end": { + "line": 165, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "isFrontend", + "range": [ + 3710, + 3720 + ], + "loc": { + "start": { + "line": 166, + "column": 6 + }, + "end": { + "line": 166, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3736, + 3740 + ], + "loc": { + "start": { + "line": 167, + "column": 11 + }, + "end": { + "line": 167, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_context", + "range": [ + 3741, + 3749 + ], + "loc": { + "start": { + "line": 167, + "column": 16 + }, + "end": { + "line": 167, + "column": 24 + } + } + }, + "range": [ + 3736, + 3749 + ], + "loc": { + "start": { + "line": 167, + "column": 11 + }, + "end": { + "line": 167, + "column": 24 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 3754, + 3760 + ], + "loc": { + "start": { + "line": 167, + "column": 29 + }, + "end": { + "line": 167, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "FRONTEND_CONTEXT", + "range": [ + 3761, + 3777 + ], + "loc": { + "start": { + "line": 167, + "column": 36 + }, + "end": { + "line": 167, + "column": 52 + } + } + }, + "range": [ + 3754, + 3777 + ], + "loc": { + "start": { + "line": 167, + "column": 29 + }, + "end": { + "line": 167, + "column": 52 + } + } + }, + "range": [ + 3736, + 3777 + ], + "loc": { + "start": { + "line": 167, + "column": 11 + }, + "end": { + "line": 167, + "column": 52 + } + } + }, + "range": [ + 3729, + 3778 + ], + "loc": { + "start": { + "line": 167, + "column": 4 + }, + "end": { + "line": 167, + "column": 53 + } + } + } + ], + "range": [ + 3723, + 3782 + ], + "loc": { + "start": { + "line": 166, + "column": 19 + }, + "end": { + "line": 168, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3720, + 3782 + ], + "loc": { + "start": { + "line": 166, + "column": 16 + }, + "end": { + "line": 168, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3706, + 3782 + ], + "loc": { + "start": { + "line": 166, + "column": 2 + }, + "end": { + "line": 168, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 3670, + 3703 + ], + "loc": { + "start": { + "line": 163, + "column": 2 + }, + "end": { + "line": 165, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 3786, + 3819 + ], + "loc": { + "start": { + "line": 170, + "column": 2 + }, + "end": { + "line": 172, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "isLocalhost", + "range": [ + 3826, + 3837 + ], + "loc": { + "start": { + "line": 173, + "column": 6 + }, + "end": { + "line": 173, + "column": 17 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3853, + 3857 + ], + "loc": { + "start": { + "line": 174, + "column": 11 + }, + "end": { + "line": 174, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "isFrontend", + "range": [ + 3858, + 3868 + ], + "loc": { + "start": { + "line": 174, + "column": 16 + }, + "end": { + "line": 174, + "column": 26 + } + } + }, + "range": [ + 3853, + 3868 + ], + "loc": { + "start": { + "line": 174, + "column": 11 + }, + "end": { + "line": 174, + "column": 26 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "localhost", + "raw": "'localhost'", + "range": [ + 3888, + 3899 + ], + "loc": { + "start": { + "line": 176, + "column": 8 + }, + "end": { + "line": 176, + "column": 19 + } + } + }, + { + "type": "Literal", + "value": "127.0.0.1", + "raw": "'127.0.0.1'", + "range": [ + 3901, + 3912 + ], + "loc": { + "start": { + "line": 176, + "column": 21 + }, + "end": { + "line": 176, + "column": 32 + } + } + }, + { + "type": "Literal", + "value": "0.0.0.0", + "raw": "'0.0.0.0'", + "range": [ + 3922, + 3931 + ], + "loc": { + "start": { + "line": 177, + "column": 8 + }, + "end": { + "line": 177, + "column": 17 + } + } + }, + { + "type": "Literal", + "value": "::1", + "raw": "'::1'", + "range": [ + 3933, + 3938 + ], + "loc": { + "start": { + "line": 177, + "column": 19 + }, + "end": { + "line": 177, + "column": 24 + } + } + } + ], + "range": [ + 3878, + 3947 + ], + "loc": { + "start": { + "line": 175, + "column": 9 + }, + "end": { + "line": 178, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "indexOf", + "range": [ + 3948, + 3955 + ], + "loc": { + "start": { + "line": 178, + "column": 8 + }, + "end": { + "line": 178, + "column": 15 + } + } + }, + "range": [ + 3878, + 3955 + ], + "loc": { + "start": { + "line": 175, + "column": 9 + }, + "end": { + "line": 178, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "window", + "range": [ + 3956, + 3962 + ], + "loc": { + "start": { + "line": 178, + "column": 16 + }, + "end": { + "line": 178, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "location", + "range": [ + 3963, + 3971 + ], + "loc": { + "start": { + "line": 178, + "column": 23 + }, + "end": { + "line": 178, + "column": 31 + } + } + }, + "range": [ + 3956, + 3971 + ], + "loc": { + "start": { + "line": 178, + "column": 16 + }, + "end": { + "line": 178, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "hostname", + "range": [ + 3972, + 3980 + ], + "loc": { + "start": { + "line": 178, + "column": 32 + }, + "end": { + "line": 178, + "column": 40 + } + } + }, + "range": [ + 3956, + 3980 + ], + "loc": { + "start": { + "line": 178, + "column": 16 + }, + "end": { + "line": 178, + "column": 40 + } + } + } + ], + "range": [ + 3878, + 3981 + ], + "loc": { + "start": { + "line": 175, + "column": 9 + }, + "end": { + "line": 178, + "column": 41 + } + } + }, + "right": { + "type": "UnaryExpression", + "operator": "-", + "argument": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 3987, + 3988 + ], + "loc": { + "start": { + "line": 178, + "column": 47 + }, + "end": { + "line": 178, + "column": 48 + } + } + }, + "prefix": true, + "range": [ + 3986, + 3988 + ], + "loc": { + "start": { + "line": 178, + "column": 46 + }, + "end": { + "line": 178, + "column": 48 + } + } + }, + "range": [ + 3878, + 3988 + ], + "loc": { + "start": { + "line": 175, + "column": 9 + }, + "end": { + "line": 178, + "column": 48 + } + } + }, + "range": [ + 3853, + 3988 + ], + "loc": { + "start": { + "line": 174, + "column": 11 + }, + "end": { + "line": 178, + "column": 48 + } + } + }, + "range": [ + 3846, + 3989 + ], + "loc": { + "start": { + "line": 174, + "column": 4 + }, + "end": { + "line": 178, + "column": 49 + } + } + } + ], + "range": [ + 3840, + 3993 + ], + "loc": { + "start": { + "line": 173, + "column": 20 + }, + "end": { + "line": 179, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3837, + 3993 + ], + "loc": { + "start": { + "line": 173, + "column": 17 + }, + "end": { + "line": 179, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3822, + 3993 + ], + "loc": { + "start": { + "line": 173, + "column": 2 + }, + "end": { + "line": 179, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 3786, + 3819 + ], + "loc": { + "start": { + "line": 170, + "column": 2 + }, + "end": { + "line": 172, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 3997, + 4030 + ], + "loc": { + "start": { + "line": 181, + "column": 2 + }, + "end": { + "line": 183, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "isBackend", + "range": [ + 4037, + 4046 + ], + "loc": { + "start": { + "line": 184, + "column": 6 + }, + "end": { + "line": 184, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4062, + 4066 + ], + "loc": { + "start": { + "line": 185, + "column": 11 + }, + "end": { + "line": 185, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_context", + "range": [ + 4067, + 4075 + ], + "loc": { + "start": { + "line": 185, + "column": 16 + }, + "end": { + "line": 185, + "column": 24 + } + } + }, + "range": [ + 4062, + 4075 + ], + "loc": { + "start": { + "line": 185, + "column": 11 + }, + "end": { + "line": 185, + "column": 24 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 4080, + 4086 + ], + "loc": { + "start": { + "line": 185, + "column": 29 + }, + "end": { + "line": 185, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "BACKEND_CONTEXT", + "range": [ + 4087, + 4102 + ], + "loc": { + "start": { + "line": 185, + "column": 36 + }, + "end": { + "line": 185, + "column": 51 + } + } + }, + "range": [ + 4080, + 4102 + ], + "loc": { + "start": { + "line": 185, + "column": 29 + }, + "end": { + "line": 185, + "column": 51 + } + } + }, + "range": [ + 4062, + 4102 + ], + "loc": { + "start": { + "line": 185, + "column": 11 + }, + "end": { + "line": 185, + "column": 51 + } + } + }, + "range": [ + 4055, + 4103 + ], + "loc": { + "start": { + "line": 185, + "column": 4 + }, + "end": { + "line": 185, + "column": 52 + } + } + } + ], + "range": [ + 4049, + 4107 + ], + "loc": { + "start": { + "line": 184, + "column": 18 + }, + "end": { + "line": 186, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4046, + 4107 + ], + "loc": { + "start": { + "line": 184, + "column": 15 + }, + "end": { + "line": 186, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 4033, + 4107 + ], + "loc": { + "start": { + "line": 184, + "column": 2 + }, + "end": { + "line": 186, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 3997, + 4030 + ], + "loc": { + "start": { + "line": 181, + "column": 2 + }, + "end": { + "line": 183, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 4111, + 4143 + ], + "loc": { + "start": { + "line": 188, + "column": 2 + }, + "end": { + "line": 190, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "buildId", + "range": [ + 4150, + 4157 + ], + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4173, + 4177 + ], + "loc": { + "start": { + "line": 192, + "column": 11 + }, + "end": { + "line": 192, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_config", + "range": [ + 4178, + 4185 + ], + "loc": { + "start": { + "line": 192, + "column": 16 + }, + "end": { + "line": 192, + "column": 23 + } + } + }, + "range": [ + 4173, + 4185 + ], + "loc": { + "start": { + "line": 192, + "column": 11 + }, + "end": { + "line": 192, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "deployId", + "range": [ + 4186, + 4194 + ], + "loc": { + "start": { + "line": 192, + "column": 24 + }, + "end": { + "line": 192, + "column": 32 + } + } + }, + "range": [ + 4173, + 4194 + ], + "loc": { + "start": { + "line": 192, + "column": 11 + }, + "end": { + "line": 192, + "column": 32 + } + } + }, + "right": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 4198, + 4200 + ], + "loc": { + "start": { + "line": 192, + "column": 36 + }, + "end": { + "line": 192, + "column": 38 + } + } + }, + "range": [ + 4173, + 4200 + ], + "loc": { + "start": { + "line": 192, + "column": 11 + }, + "end": { + "line": 192, + "column": 38 + } + } + }, + "range": [ + 4166, + 4201 + ], + "loc": { + "start": { + "line": 192, + "column": 4 + }, + "end": { + "line": 192, + "column": 39 + } + } + } + ], + "range": [ + 4160, + 4205 + ], + "loc": { + "start": { + "line": 191, + "column": 16 + }, + "end": { + "line": 193, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4157, + 4205 + ], + "loc": { + "start": { + "line": 191, + "column": 13 + }, + "end": { + "line": 193, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 4146, + 4205 + ], + "loc": { + "start": { + "line": 191, + "column": 2 + }, + "end": { + "line": 193, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 4111, + 4143 + ], + "loc": { + "start": { + "line": 188, + "column": 2 + }, + "end": { + "line": 190, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 4209, + 4241 + ], + "loc": { + "start": { + "line": 195, + "column": 2 + }, + "end": { + "line": 197, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "context", + "range": [ + 4248, + 4255 + ], + "loc": { + "start": { + "line": 198, + "column": 6 + }, + "end": { + "line": 198, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4271, + 4275 + ], + "loc": { + "start": { + "line": 199, + "column": 11 + }, + "end": { + "line": 199, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_context", + "range": [ + 4276, + 4284 + ], + "loc": { + "start": { + "line": 199, + "column": 16 + }, + "end": { + "line": 199, + "column": 24 + } + } + }, + "range": [ + 4271, + 4284 + ], + "loc": { + "start": { + "line": 199, + "column": 11 + }, + "end": { + "line": 199, + "column": 24 + } + } + }, + "range": [ + 4264, + 4285 + ], + "loc": { + "start": { + "line": 199, + "column": 4 + }, + "end": { + "line": 199, + "column": 25 + } + } + } + ], + "range": [ + 4258, + 4289 + ], + "loc": { + "start": { + "line": 198, + "column": 16 + }, + "end": { + "line": 200, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4255, + 4289 + ], + "loc": { + "start": { + "line": 198, + "column": 13 + }, + "end": { + "line": 200, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 4244, + 4289 + ], + "loc": { + "start": { + "line": 198, + "column": 2 + }, + "end": { + "line": 200, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 4209, + 4241 + ], + "loc": { + "start": { + "line": 195, + "column": 2 + }, + "end": { + "line": 197, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 4293, + 4325 + ], + "loc": { + "start": { + "line": 202, + "column": 2 + }, + "end": { + "line": 204, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "env", + "range": [ + 4332, + 4335 + ], + "loc": { + "start": { + "line": 205, + "column": 6 + }, + "end": { + "line": 205, + "column": 9 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4351, + 4355 + ], + "loc": { + "start": { + "line": 206, + "column": 11 + }, + "end": { + "line": 206, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_env", + "range": [ + 4356, + 4360 + ], + "loc": { + "start": { + "line": 206, + "column": 16 + }, + "end": { + "line": 206, + "column": 20 + } + } + }, + "range": [ + 4351, + 4360 + ], + "loc": { + "start": { + "line": 206, + "column": 11 + }, + "end": { + "line": 206, + "column": 20 + } + } + }, + "range": [ + 4344, + 4361 + ], + "loc": { + "start": { + "line": 206, + "column": 4 + }, + "end": { + "line": 206, + "column": 21 + } + } + } + ], + "range": [ + 4338, + 4365 + ], + "loc": { + "start": { + "line": 205, + "column": 12 + }, + "end": { + "line": 207, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4335, + 4365 + ], + "loc": { + "start": { + "line": 205, + "column": 9 + }, + "end": { + "line": 207, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 4328, + 4365 + ], + "loc": { + "start": { + "line": 205, + "column": 2 + }, + "end": { + "line": 207, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 4293, + 4325 + ], + "loc": { + "start": { + "line": 202, + "column": 2 + }, + "end": { + "line": 204, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 4369, + 4401 + ], + "loc": { + "start": { + "line": 209, + "column": 2 + }, + "end": { + "line": 211, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "config", + "range": [ + 4408, + 4414 + ], + "loc": { + "start": { + "line": 212, + "column": 6 + }, + "end": { + "line": 212, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4551, + 4555 + ], + "loc": { + "start": { + "line": 214, + "column": 11 + }, + "end": { + "line": 214, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_config", + "range": [ + 4556, + 4563 + ], + "loc": { + "start": { + "line": 214, + "column": 16 + }, + "end": { + "line": 214, + "column": 23 + } + } + }, + "range": [ + 4551, + 4563 + ], + "loc": { + "start": { + "line": 214, + "column": 11 + }, + "end": { + "line": 214, + "column": 23 + } + } + }, + "range": [ + 4544, + 4564 + ], + "loc": { + "start": { + "line": 214, + "column": 4 + }, + "end": { + "line": 214, + "column": 24 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo - create a class DeepConfig or smth, that will hold global config and expose shortcuts to different options", + "range": [ + 4423, + 4539 + ], + "loc": { + "start": { + "line": 213, + "column": 4 + }, + "end": { + "line": 213, + "column": 120 + } + } + } + ] + } + ], + "range": [ + 4417, + 4568 + ], + "loc": { + "start": { + "line": 212, + "column": 15 + }, + "end": { + "line": 215, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4414, + 4568 + ], + "loc": { + "start": { + "line": 212, + "column": 12 + }, + "end": { + "line": 215, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 4404, + 4568 + ], + "loc": { + "start": { + "line": 212, + "column": 2 + }, + "end": { + "line": 215, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 4369, + 4401 + ], + "loc": { + "start": { + "line": 209, + "column": 2 + }, + "end": { + "line": 211, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Microservice[]}\n ", + "range": [ + 4572, + 4612 + ], + "loc": { + "start": { + "line": 217, + "column": 2 + }, + "end": { + "line": 219, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "microservices", + "range": [ + 4619, + 4632 + ], + "loc": { + "start": { + "line": 220, + "column": 6 + }, + "end": { + "line": 220, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4648, + 4652 + ], + "loc": { + "start": { + "line": 221, + "column": 11 + }, + "end": { + "line": 221, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 4653, + 4663 + ], + "loc": { + "start": { + "line": 221, + "column": 16 + }, + "end": { + "line": 221, + "column": 26 + } + } + }, + "range": [ + 4648, + 4663 + ], + "loc": { + "start": { + "line": 221, + "column": 11 + }, + "end": { + "line": 221, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 4664, + 4667 + ], + "loc": { + "start": { + "line": 221, + "column": 27 + }, + "end": { + "line": 221, + "column": 30 + } + } + }, + "range": [ + 4648, + 4667 + ], + "loc": { + "start": { + "line": 221, + "column": 11 + }, + "end": { + "line": 221, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 4668, + 4674 + ], + "loc": { + "start": { + "line": 221, + "column": 31 + }, + "end": { + "line": 221, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "MICROSERVICES", + "range": [ + 4675, + 4688 + ], + "loc": { + "start": { + "line": 221, + "column": 38 + }, + "end": { + "line": 221, + "column": 51 + } + } + }, + "range": [ + 4668, + 4688 + ], + "loc": { + "start": { + "line": 221, + "column": 31 + }, + "end": { + "line": 221, + "column": 51 + } + } + } + ], + "range": [ + 4648, + 4689 + ], + "loc": { + "start": { + "line": 221, + "column": 11 + }, + "end": { + "line": 221, + "column": 52 + } + } + }, + "range": [ + 4641, + 4690 + ], + "loc": { + "start": { + "line": 221, + "column": 4 + }, + "end": { + "line": 221, + "column": 53 + } + } + } + ], + "range": [ + 4635, + 4694 + ], + "loc": { + "start": { + "line": 220, + "column": 22 + }, + "end": { + "line": 222, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4632, + 4694 + ], + "loc": { + "start": { + "line": 220, + "column": 19 + }, + "end": { + "line": 222, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 4615, + 4694 + ], + "loc": { + "start": { + "line": 220, + "column": 2 + }, + "end": { + "line": 222, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Microservice[]}\n ", + "range": [ + 4572, + 4612 + ], + "loc": { + "start": { + "line": 217, + "column": 2 + }, + "end": { + "line": 219, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Loads all parameters and services into DI container\n *\n * @param {Function} callback\n ", + "range": [ + 4698, + 4801 + ], + "loc": { + "start": { + "line": 224, + "column": 2 + }, + "end": { + "line": 228, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_buildContainer", + "range": [ + 4804, + 4819 + ], + "loc": { + "start": { + "line": 229, + "column": 2 + }, + "end": { + "line": 229, + "column": 17 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 4820, + 4828 + ], + "loc": { + "start": { + "line": 229, + "column": 18 + }, + "end": { + "line": 229, + "column": 26 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4836, + 4840 + ], + "loc": { + "start": { + "line": 230, + "column": 4 + }, + "end": { + "line": 230, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_env", + "range": [ + 4841, + 4845 + ], + "loc": { + "start": { + "line": 230, + "column": 9 + }, + "end": { + "line": 230, + "column": 13 + } + } + }, + "range": [ + 4836, + 4845 + ], + "loc": { + "start": { + "line": 230, + "column": 4 + }, + "end": { + "line": 230, + "column": 13 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4848, + 4852 + ], + "loc": { + "start": { + "line": 230, + "column": 16 + }, + "end": { + "line": 230, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "_config", + "range": [ + 4853, + 4860 + ], + "loc": { + "start": { + "line": 230, + "column": 21 + }, + "end": { + "line": 230, + "column": 28 + } + } + }, + "range": [ + 4848, + 4860 + ], + "loc": { + "start": { + "line": 230, + "column": 16 + }, + "end": { + "line": 230, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "env", + "range": [ + 4861, + 4864 + ], + "loc": { + "start": { + "line": 230, + "column": 29 + }, + "end": { + "line": 230, + "column": 32 + } + } + }, + "range": [ + 4848, + 4864 + ], + "loc": { + "start": { + "line": 230, + "column": 16 + }, + "end": { + "line": 230, + "column": 32 + } + } + }, + "range": [ + 4836, + 4864 + ], + "loc": { + "start": { + "line": 230, + "column": 4 + }, + "end": { + "line": 230, + "column": 32 + } + } + }, + "range": [ + 4836, + 4865 + ], + "loc": { + "start": { + "line": 230, + "column": 4 + }, + "end": { + "line": 230, + "column": 33 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4871, + 4875 + ], + "loc": { + "start": { + "line": 232, + "column": 4 + }, + "end": { + "line": 232, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 4876, + 4886 + ], + "loc": { + "start": { + "line": 232, + "column": 9 + }, + "end": { + "line": 232, + "column": 19 + } + } + }, + "range": [ + 4871, + 4886 + ], + "loc": { + "start": { + "line": 232, + "column": 4 + }, + "end": { + "line": 232, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "addParameter", + "range": [ + 4887, + 4899 + ], + "loc": { + "start": { + "line": 232, + "column": 20 + }, + "end": { + "line": 232, + "column": 32 + } + } + }, + "range": [ + 4871, + 4899 + ], + "loc": { + "start": { + "line": 232, + "column": 4 + }, + "end": { + "line": 232, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 4907, + 4913 + ], + "loc": { + "start": { + "line": 233, + "column": 6 + }, + "end": { + "line": 233, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "KERNEL", + "range": [ + 4914, + 4920 + ], + "loc": { + "start": { + "line": 233, + "column": 13 + }, + "end": { + "line": 233, + "column": 19 + } + } + }, + "range": [ + 4907, + 4920 + ], + "loc": { + "start": { + "line": 233, + "column": 6 + }, + "end": { + "line": 233, + "column": 19 + } + } + }, + { + "type": "ThisExpression", + "range": [ + 4928, + 4932 + ], + "loc": { + "start": { + "line": 234, + "column": 6 + }, + "end": { + "line": 234, + "column": 10 + } + } + } + ], + "range": [ + 4871, + 4938 + ], + "loc": { + "start": { + "line": 232, + "column": 4 + }, + "end": { + "line": 235, + "column": 5 + } + } + }, + "range": [ + 4871, + 4939 + ], + "loc": { + "start": { + "line": 232, + "column": 4 + }, + "end": { + "line": 235, + "column": 6 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4945, + 4949 + ], + "loc": { + "start": { + "line": 237, + "column": 4 + }, + "end": { + "line": 237, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 4950, + 4960 + ], + "loc": { + "start": { + "line": 237, + "column": 9 + }, + "end": { + "line": 237, + "column": 19 + } + } + }, + "range": [ + 4945, + 4960 + ], + "loc": { + "start": { + "line": 237, + "column": 4 + }, + "end": { + "line": 237, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "addParameter", + "range": [ + 4961, + 4973 + ], + "loc": { + "start": { + "line": 237, + "column": 20 + }, + "end": { + "line": 237, + "column": 32 + } + } + }, + "range": [ + 4945, + 4973 + ], + "loc": { + "start": { + "line": 237, + "column": 4 + }, + "end": { + "line": 237, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 4981, + 4987 + ], + "loc": { + "start": { + "line": 238, + "column": 6 + }, + "end": { + "line": 238, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "CONTEXT", + "range": [ + 4988, + 4995 + ], + "loc": { + "start": { + "line": 238, + "column": 13 + }, + "end": { + "line": 238, + "column": 20 + } + } + }, + "range": [ + 4981, + 4995 + ], + "loc": { + "start": { + "line": 238, + "column": 6 + }, + "end": { + "line": 238, + "column": 20 + } + } + }, + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "environment", + "range": [ + 5013, + 5024 + ], + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 19 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5026, + 5030 + ], + "loc": { + "start": { + "line": 240, + "column": 21 + }, + "end": { + "line": 240, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "_env", + "range": [ + 5031, + 5035 + ], + "loc": { + "start": { + "line": 240, + "column": 26 + }, + "end": { + "line": 240, + "column": 30 + } + } + }, + "range": [ + 5026, + 5035 + ], + "loc": { + "start": { + "line": 240, + "column": 21 + }, + "end": { + "line": 240, + "column": 30 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 5013, + 5035 + ], + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 30 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "isFrontend", + "range": [ + 5045, + 5055 + ], + "loc": { + "start": { + "line": 241, + "column": 8 + }, + "end": { + "line": 241, + "column": 18 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5057, + 5061 + ], + "loc": { + "start": { + "line": 241, + "column": 20 + }, + "end": { + "line": 241, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "isFrontend", + "range": [ + 5062, + 5072 + ], + "loc": { + "start": { + "line": 241, + "column": 25 + }, + "end": { + "line": 241, + "column": 35 + } + } + }, + "range": [ + 5057, + 5072 + ], + "loc": { + "start": { + "line": 241, + "column": 20 + }, + "end": { + "line": 241, + "column": 35 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 5045, + 5072 + ], + "loc": { + "start": { + "line": 241, + "column": 8 + }, + "end": { + "line": 241, + "column": 35 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "isBackend", + "range": [ + 5082, + 5091 + ], + "loc": { + "start": { + "line": 242, + "column": 8 + }, + "end": { + "line": 242, + "column": 17 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5093, + 5097 + ], + "loc": { + "start": { + "line": 242, + "column": 19 + }, + "end": { + "line": 242, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "isBackend", + "range": [ + 5098, + 5107 + ], + "loc": { + "start": { + "line": 242, + "column": 24 + }, + "end": { + "line": 242, + "column": 33 + } + } + }, + "range": [ + 5093, + 5107 + ], + "loc": { + "start": { + "line": 242, + "column": 19 + }, + "end": { + "line": 242, + "column": 33 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 5082, + 5107 + ], + "loc": { + "start": { + "line": 242, + "column": 8 + }, + "end": { + "line": 242, + "column": 33 + } + } + } + ], + "range": [ + 5003, + 5116 + ], + "loc": { + "start": { + "line": 239, + "column": 6 + }, + "end": { + "line": 243, + "column": 7 + } + } + } + ], + "range": [ + 4945, + 5122 + ], + "loc": { + "start": { + "line": 237, + "column": 4 + }, + "end": { + "line": 244, + "column": 5 + } + } + }, + "range": [ + 4945, + 5123 + ], + "loc": { + "start": { + "line": 237, + "column": 4 + }, + "end": { + "line": 244, + "column": 6 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5129, + 5133 + ], + "loc": { + "start": { + "line": 246, + "column": 4 + }, + "end": { + "line": 246, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 5134, + 5144 + ], + "loc": { + "start": { + "line": 246, + "column": 9 + }, + "end": { + "line": 246, + "column": 19 + } + } + }, + "range": [ + 5129, + 5144 + ], + "loc": { + "start": { + "line": 246, + "column": 4 + }, + "end": { + "line": 246, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "addParameter", + "range": [ + 5145, + 5157 + ], + "loc": { + "start": { + "line": 246, + "column": 20 + }, + "end": { + "line": 246, + "column": 32 + } + } + }, + "range": [ + 5129, + 5157 + ], + "loc": { + "start": { + "line": 246, + "column": 4 + }, + "end": { + "line": 246, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 5165, + 5171 + ], + "loc": { + "start": { + "line": 247, + "column": 6 + }, + "end": { + "line": 247, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "MICROSERVICES", + "range": [ + 5172, + 5185 + ], + "loc": { + "start": { + "line": 247, + "column": 13 + }, + "end": { + "line": 247, + "column": 26 + } + } + }, + "range": [ + 5165, + 5185 + ], + "loc": { + "start": { + "line": 247, + "column": 6 + }, + "end": { + "line": 247, + "column": 26 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Microservice", + "range": [ + 5193, + 5205 + ], + "loc": { + "start": { + "line": 248, + "column": 6 + }, + "end": { + "line": 248, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "createVector", + "range": [ + 5206, + 5218 + ], + "loc": { + "start": { + "line": 248, + "column": 19 + }, + "end": { + "line": 248, + "column": 31 + } + } + }, + "range": [ + 5193, + 5218 + ], + "loc": { + "start": { + "line": 248, + "column": 6 + }, + "end": { + "line": 248, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5219, + 5223 + ], + "loc": { + "start": { + "line": 248, + "column": 32 + }, + "end": { + "line": 248, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "_config", + "range": [ + 5224, + 5231 + ], + "loc": { + "start": { + "line": 248, + "column": 37 + }, + "end": { + "line": 248, + "column": 44 + } + } + }, + "range": [ + 5219, + 5231 + ], + "loc": { + "start": { + "line": 248, + "column": 32 + }, + "end": { + "line": 248, + "column": 44 + } + } + } + ], + "range": [ + 5193, + 5232 + ], + "loc": { + "start": { + "line": 248, + "column": 6 + }, + "end": { + "line": 248, + "column": 45 + } + } + } + ], + "range": [ + 5129, + 5238 + ], + "loc": { + "start": { + "line": 246, + "column": 4 + }, + "end": { + "line": 249, + "column": 5 + } + } + }, + "range": [ + 5129, + 5239 + ], + "loc": { + "start": { + "line": 246, + "column": 4 + }, + "end": { + "line": 249, + "column": 6 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5245, + 5249 + ], + "loc": { + "start": { + "line": 251, + "column": 4 + }, + "end": { + "line": 251, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 5250, + 5260 + ], + "loc": { + "start": { + "line": 251, + "column": 9 + }, + "end": { + "line": 251, + "column": 19 + } + } + }, + "range": [ + 5245, + 5260 + ], + "loc": { + "start": { + "line": 251, + "column": 4 + }, + "end": { + "line": 251, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "addParameter", + "range": [ + 5261, + 5273 + ], + "loc": { + "start": { + "line": 251, + "column": 20 + }, + "end": { + "line": 251, + "column": 32 + } + } + }, + "range": [ + 5245, + 5273 + ], + "loc": { + "start": { + "line": 251, + "column": 4 + }, + "end": { + "line": 251, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 5281, + 5287 + ], + "loc": { + "start": { + "line": 252, + "column": 6 + }, + "end": { + "line": 252, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "CONFIG", + "range": [ + 5288, + 5294 + ], + "loc": { + "start": { + "line": 252, + "column": 13 + }, + "end": { + "line": 252, + "column": 19 + } + } + }, + "range": [ + 5281, + 5294 + ], + "loc": { + "start": { + "line": 252, + "column": 6 + }, + "end": { + "line": 252, + "column": 19 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5302, + 5306 + ], + "loc": { + "start": { + "line": 253, + "column": 6 + }, + "end": { + "line": 253, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_config", + "range": [ + 5307, + 5314 + ], + "loc": { + "start": { + "line": 253, + "column": 11 + }, + "end": { + "line": 253, + "column": 18 + } + } + }, + "range": [ + 5302, + 5314 + ], + "loc": { + "start": { + "line": 253, + "column": 6 + }, + "end": { + "line": 253, + "column": 18 + } + } + } + ], + "range": [ + 5245, + 5320 + ], + "loc": { + "start": { + "line": 251, + "column": 4 + }, + "end": { + "line": 254, + "column": 5 + } + } + }, + "range": [ + 5245, + 5321 + ], + "loc": { + "start": { + "line": 251, + "column": 4 + }, + "end": { + "line": 254, + "column": 6 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "bootingServices", + "range": [ + 5331, + 5346 + ], + "loc": { + "start": { + "line": 256, + "column": 8 + }, + "end": { + "line": 256, + "column": 23 + } + } + }, + "init": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 5349, + 5350 + ], + "loc": { + "start": { + "line": 256, + "column": 26 + }, + "end": { + "line": 256, + "column": 27 + } + } + }, + "range": [ + 5331, + 5350 + ], + "loc": { + "start": { + "line": 256, + "column": 8 + }, + "end": { + "line": 256, + "column": 27 + } + } + } + ], + "kind": "let", + "range": [ + 5327, + 5351 + ], + "loc": { + "start": { + "line": 256, + "column": 4 + }, + "end": { + "line": 256, + "column": 28 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "serviceKey", + "range": [ + 5366, + 5376 + ], + "loc": { + "start": { + "line": 258, + "column": 13 + }, + "end": { + "line": 258, + "column": 23 + } + } + }, + "init": null, + "range": [ + 5366, + 5376 + ], + "loc": { + "start": { + "line": 258, + "column": 13 + }, + "end": { + "line": 258, + "column": 23 + } + } + } + ], + "kind": "let", + "range": [ + 5362, + 5376 + ], + "loc": { + "start": { + "line": 258, + "column": 9 + }, + "end": { + "line": 258, + "column": 23 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5380, + 5384 + ], + "loc": { + "start": { + "line": 258, + "column": 27 + }, + "end": { + "line": 258, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "_services", + "range": [ + 5385, + 5394 + ], + "loc": { + "start": { + "line": 258, + "column": 32 + }, + "end": { + "line": 258, + "column": 41 + } + } + }, + "range": [ + 5380, + 5394 + ], + "loc": { + "start": { + "line": 258, + "column": 27 + }, + "end": { + "line": 258, + "column": 41 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5409, + 5413 + ], + "loc": { + "start": { + "line": 259, + "column": 11 + }, + "end": { + "line": 259, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_services", + "range": [ + 5414, + 5423 + ], + "loc": { + "start": { + "line": 259, + "column": 16 + }, + "end": { + "line": 259, + "column": 25 + } + } + }, + "range": [ + 5409, + 5423 + ], + "loc": { + "start": { + "line": 259, + "column": 11 + }, + "end": { + "line": 259, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 5424, + 5438 + ], + "loc": { + "start": { + "line": 259, + "column": 26 + }, + "end": { + "line": 259, + "column": 40 + } + } + }, + "range": [ + 5409, + 5438 + ], + "loc": { + "start": { + "line": 259, + "column": 11 + }, + "end": { + "line": 259, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "serviceKey", + "range": [ + 5439, + 5449 + ], + "loc": { + "start": { + "line": 259, + "column": 41 + }, + "end": { + "line": 259, + "column": 51 + } + } + } + ], + "range": [ + 5409, + 5450 + ], + "loc": { + "start": { + "line": 259, + "column": 11 + }, + "end": { + "line": 259, + "column": 52 + } + } + }, + "prefix": true, + "range": [ + 5408, + 5450 + ], + "loc": { + "start": { + "line": 259, + "column": 10 + }, + "end": { + "line": 259, + "column": 52 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 5462, + 5471 + ], + "loc": { + "start": { + "line": 260, + "column": 8 + }, + "end": { + "line": 260, + "column": 17 + } + } + } + ], + "range": [ + 5452, + 5479 + ], + "loc": { + "start": { + "line": 259, + "column": 54 + }, + "end": { + "line": 261, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 5404, + 5479 + ], + "loc": { + "start": { + "line": 259, + "column": 6 + }, + "end": { + "line": 261, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "serviceInstance", + "range": [ + 5491, + 5506 + ], + "loc": { + "start": { + "line": 263, + "column": 10 + }, + "end": { + "line": 263, + "column": 25 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5513, + 5517 + ], + "loc": { + "start": { + "line": 263, + "column": 32 + }, + "end": { + "line": 263, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "_services", + "range": [ + 5518, + 5527 + ], + "loc": { + "start": { + "line": 263, + "column": 37 + }, + "end": { + "line": 263, + "column": 46 + } + } + }, + "range": [ + 5513, + 5527 + ], + "loc": { + "start": { + "line": 263, + "column": 32 + }, + "end": { + "line": 263, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "serviceKey", + "range": [ + 5528, + 5538 + ], + "loc": { + "start": { + "line": 263, + "column": 47 + }, + "end": { + "line": 263, + "column": 57 + } + } + }, + "range": [ + 5513, + 5539 + ], + "loc": { + "start": { + "line": 263, + "column": 32 + }, + "end": { + "line": 263, + "column": 58 + } + } + }, + "arguments": [], + "range": [ + 5509, + 5541 + ], + "loc": { + "start": { + "line": 263, + "column": 28 + }, + "end": { + "line": 263, + "column": 60 + } + } + }, + "range": [ + 5491, + 5541 + ], + "loc": { + "start": { + "line": 263, + "column": 10 + }, + "end": { + "line": 263, + "column": 60 + } + } + } + ], + "kind": "let", + "range": [ + 5487, + 5542 + ], + "loc": { + "start": { + "line": 263, + "column": 6 + }, + "end": { + "line": 263, + "column": 61 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "serviceInstance", + "range": [ + 5555, + 5570 + ], + "loc": { + "start": { + "line": 265, + "column": 11 + }, + "end": { + "line": 265, + "column": 26 + } + } + }, + "prefix": true, + "range": [ + 5554, + 5570 + ], + "loc": { + "start": { + "line": 265, + "column": 10 + }, + "end": { + "line": 265, + "column": 26 + } + } + }, + "right": { + "type": "Identifier", + "name": "ContainerAware", + "range": [ + 5582, + 5596 + ], + "loc": { + "start": { + "line": 265, + "column": 38 + }, + "end": { + "line": 265, + "column": 52 + } + } + }, + "range": [ + 5554, + 5596 + ], + "loc": { + "start": { + "line": 265, + "column": 10 + }, + "end": { + "line": 265, + "column": 52 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "serviceType", + "range": [ + 5612, + 5623 + ], + "loc": { + "start": { + "line": 266, + "column": 12 + }, + "end": { + "line": 266, + "column": 23 + } + } + }, + "init": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "Identifier", + "name": "serviceInstance", + "range": [ + 5633, + 5648 + ], + "loc": { + "start": { + "line": 266, + "column": 33 + }, + "end": { + "line": 266, + "column": 48 + } + } + }, + "prefix": true, + "range": [ + 5626, + 5648 + ], + "loc": { + "start": { + "line": 266, + "column": 26 + }, + "end": { + "line": 266, + "column": 48 + } + } + }, + "range": [ + 5612, + 5648 + ], + "loc": { + "start": { + "line": 266, + "column": 12 + }, + "end": { + "line": 266, + "column": 48 + } + } + } + ], + "kind": "let", + "range": [ + 5608, + 5649 + ], + "loc": { + "start": { + "line": 266, + "column": 8 + }, + "end": { + "line": 266, + "column": 49 + } + } + }, + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Exception", + "range": [ + 5669, + 5678 + ], + "loc": { + "start": { + "line": 268, + "column": 18 + }, + "end": { + "line": 268, + "column": 27 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Service ", + "cooked": "Service " + }, + "tail": false, + "range": [ + 5679, + 5690 + ], + "loc": { + "start": { + "line": 268, + "column": 28 + }, + "end": { + "line": 268, + "column": 39 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " must be Kernel.ContainerAware instance", + "cooked": " must be Kernel.ContainerAware instance" + }, + "tail": true, + "range": [ + 5701, + 5742 + ], + "loc": { + "start": { + "line": 268, + "column": 50 + }, + "end": { + "line": 268, + "column": 91 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "serviceType", + "range": [ + 5690, + 5701 + ], + "loc": { + "start": { + "line": 268, + "column": 39 + }, + "end": { + "line": 268, + "column": 50 + } + } + } + ], + "range": [ + 5679, + 5742 + ], + "loc": { + "start": { + "line": 268, + "column": 28 + }, + "end": { + "line": 268, + "column": 91 + } + } + } + ], + "range": [ + 5665, + 5743 + ], + "loc": { + "start": { + "line": 268, + "column": 14 + }, + "end": { + "line": 268, + "column": 92 + } + } + }, + "range": [ + 5659, + 5744 + ], + "loc": { + "start": { + "line": 268, + "column": 8 + }, + "end": { + "line": 268, + "column": 93 + } + } + } + ], + "range": [ + 5598, + 5752 + ], + "loc": { + "start": { + "line": 265, + "column": 54 + }, + "end": { + "line": 269, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 5550, + 5752 + ], + "loc": { + "start": { + "line": 265, + "column": 6 + }, + "end": { + "line": 269, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "UpdateExpression", + "operator": "++", + "argument": { + "type": "Identifier", + "name": "bootingServices", + "range": [ + 5760, + 5775 + ], + "loc": { + "start": { + "line": 271, + "column": 6 + }, + "end": { + "line": 271, + "column": 21 + } + } + }, + "prefix": false, + "range": [ + 5760, + 5777 + ], + "loc": { + "start": { + "line": 271, + "column": 6 + }, + "end": { + "line": 271, + "column": 23 + } + } + }, + "range": [ + 5760, + 5778 + ], + "loc": { + "start": { + "line": 271, + "column": 6 + }, + "end": { + "line": 271, + "column": 24 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "serviceInstance", + "range": [ + 5786, + 5801 + ], + "loc": { + "start": { + "line": 273, + "column": 6 + }, + "end": { + "line": 273, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "container", + "range": [ + 5802, + 5811 + ], + "loc": { + "start": { + "line": 273, + "column": 22 + }, + "end": { + "line": 273, + "column": 31 + } + } + }, + "range": [ + 5786, + 5811 + ], + "loc": { + "start": { + "line": 273, + "column": 6 + }, + "end": { + "line": 273, + "column": 31 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5814, + 5818 + ], + "loc": { + "start": { + "line": 273, + "column": 34 + }, + "end": { + "line": 273, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 5819, + 5829 + ], + "loc": { + "start": { + "line": 273, + "column": 39 + }, + "end": { + "line": 273, + "column": 49 + } + } + }, + "range": [ + 5814, + 5829 + ], + "loc": { + "start": { + "line": 273, + "column": 34 + }, + "end": { + "line": 273, + "column": 49 + } + } + }, + "range": [ + 5786, + 5829 + ], + "loc": { + "start": { + "line": 273, + "column": 6 + }, + "end": { + "line": 273, + "column": 49 + } + } + }, + "range": [ + 5786, + 5830 + ], + "loc": { + "start": { + "line": 273, + "column": 6 + }, + "end": { + "line": 273, + "column": 50 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "serviceInstance", + "range": [ + 5837, + 5852 + ], + "loc": { + "start": { + "line": 274, + "column": 6 + }, + "end": { + "line": 274, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "localBackend", + "range": [ + 5853, + 5865 + ], + "loc": { + "start": { + "line": 274, + "column": 22 + }, + "end": { + "line": 274, + "column": 34 + } + } + }, + "range": [ + 5837, + 5865 + ], + "loc": { + "start": { + "line": 274, + "column": 6 + }, + "end": { + "line": 274, + "column": 34 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 5868, + 5872 + ], + "loc": { + "start": { + "line": 274, + "column": 37 + }, + "end": { + "line": 274, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "name": "IS_DEV_SERVER", + "range": [ + 5873, + 5886 + ], + "loc": { + "start": { + "line": 274, + "column": 42 + }, + "end": { + "line": 274, + "column": 55 + } + } + }, + "range": [ + 5868, + 5886 + ], + "loc": { + "start": { + "line": 274, + "column": 37 + }, + "end": { + "line": 274, + "column": 55 + } + } + }, + "range": [ + 5837, + 5886 + ], + "loc": { + "start": { + "line": 274, + "column": 6 + }, + "end": { + "line": 274, + "column": 55 + } + } + }, + "range": [ + 5837, + 5887 + ], + "loc": { + "start": { + "line": 274, + "column": 6 + }, + "end": { + "line": 274, + "column": 56 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "serviceInstance", + "range": [ + 5894, + 5909 + ], + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 275, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "boot", + "range": [ + 5910, + 5914 + ], + "loc": { + "start": { + "line": 275, + "column": 22 + }, + "end": { + "line": 275, + "column": 26 + } + } + }, + "range": [ + 5894, + 5914 + ], + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 275, + "column": 26 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 5915, + 5919 + ], + "loc": { + "start": { + "line": 275, + "column": 27 + }, + "end": { + "line": 275, + "column": 31 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "UpdateExpression", + "operator": "--", + "argument": { + "type": "Identifier", + "name": "bootingServices", + "range": [ + 5942, + 5957 + ], + "loc": { + "start": { + "line": 276, + "column": 8 + }, + "end": { + "line": 276, + "column": 23 + } + } + }, + "prefix": false, + "range": [ + 5942, + 5959 + ], + "loc": { + "start": { + "line": 276, + "column": 8 + }, + "end": { + "line": 276, + "column": 25 + } + } + }, + "range": [ + 5942, + 5960 + ], + "loc": { + "start": { + "line": 276, + "column": 8 + }, + "end": { + "line": 276, + "column": 26 + } + } + } + ], + "range": [ + 5932, + 5968 + ], + "loc": { + "start": { + "line": 275, + "column": 44 + }, + "end": { + "line": 277, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 5921, + 5968 + ], + "loc": { + "start": { + "line": 275, + "column": 33 + }, + "end": { + "line": 277, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 5969, + 5973 + ], + "loc": { + "start": { + "line": 277, + "column": 8 + }, + "end": { + "line": 277, + "column": 12 + } + } + }, + "range": [ + 5921, + 5973 + ], + "loc": { + "start": { + "line": 275, + "column": 33 + }, + "end": { + "line": 277, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 5974, + 5978 + ], + "loc": { + "start": { + "line": 277, + "column": 13 + }, + "end": { + "line": 277, + "column": 17 + } + } + } + ], + "range": [ + 5921, + 5979 + ], + "loc": { + "start": { + "line": 275, + "column": 33 + }, + "end": { + "line": 277, + "column": 18 + } + } + } + ], + "range": [ + 5894, + 5980 + ], + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 277, + "column": 19 + } + } + }, + "range": [ + 5894, + 5981 + ], + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 277, + "column": 20 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5989, + 5993 + ], + "loc": { + "start": { + "line": 279, + "column": 6 + }, + "end": { + "line": 279, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_container", + "range": [ + 5994, + 6004 + ], + "loc": { + "start": { + "line": 279, + "column": 11 + }, + "end": { + "line": 279, + "column": 21 + } + } + }, + "range": [ + 5989, + 6004 + ], + "loc": { + "start": { + "line": 279, + "column": 6 + }, + "end": { + "line": 279, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "addService", + "range": [ + 6005, + 6015 + ], + "loc": { + "start": { + "line": 279, + "column": 22 + }, + "end": { + "line": 279, + "column": 32 + } + } + }, + "range": [ + 5989, + 6015 + ], + "loc": { + "start": { + "line": 279, + "column": 6 + }, + "end": { + "line": 279, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "serviceInstance", + "range": [ + 6025, + 6040 + ], + "loc": { + "start": { + "line": 280, + "column": 8 + }, + "end": { + "line": 280, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 6041, + 6045 + ], + "loc": { + "start": { + "line": 280, + "column": 24 + }, + "end": { + "line": 280, + "column": 28 + } + } + }, + "range": [ + 6025, + 6045 + ], + "loc": { + "start": { + "line": 280, + "column": 8 + }, + "end": { + "line": 280, + "column": 28 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "serviceInstance", + "range": [ + 6055, + 6070 + ], + "loc": { + "start": { + "line": 281, + "column": 8 + }, + "end": { + "line": 281, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "service", + "range": [ + 6071, + 6078 + ], + "loc": { + "start": { + "line": 281, + "column": 24 + }, + "end": { + "line": 281, + "column": 31 + } + } + }, + "range": [ + 6055, + 6078 + ], + "loc": { + "start": { + "line": 281, + "column": 8 + }, + "end": { + "line": 281, + "column": 31 + } + } + } + ], + "range": [ + 5989, + 6086 + ], + "loc": { + "start": { + "line": 279, + "column": 6 + }, + "end": { + "line": 282, + "column": 7 + } + } + }, + "range": [ + 5989, + 6087 + ], + "loc": { + "start": { + "line": 279, + "column": 6 + }, + "end": { + "line": 282, + "column": 8 + } + } + } + ], + "range": [ + 5396, + 6093 + ], + "loc": { + "start": { + "line": 258, + "column": 43 + }, + "end": { + "line": 283, + "column": 5 + } + } + }, + "each": false, + "range": [ + 5357, + 6093 + ], + "loc": { + "start": { + "line": 258, + "column": 4 + }, + "end": { + "line": 283, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "WaitUntil", + "range": [ + 6099, + 6108 + ], + "loc": { + "start": { + "line": 285, + "column": 4 + }, + "end": { + "line": 285, + "column": 13 + } + } + }, + "arguments": [], + "range": [ + 6099, + 6110 + ], + "loc": { + "start": { + "line": 285, + "column": 4 + }, + "end": { + "line": 285, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "interval", + "range": [ + 6118, + 6126 + ], + "loc": { + "start": { + "line": 286, + "column": 7 + }, + "end": { + "line": 286, + "column": 15 + } + } + }, + "range": [ + 6099, + 6126 + ], + "loc": { + "start": { + "line": 285, + "column": 4 + }, + "end": { + "line": 286, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": 5, + "raw": "5", + "range": [ + 6127, + 6128 + ], + "loc": { + "start": { + "line": 286, + "column": 16 + }, + "end": { + "line": 286, + "column": 17 + } + } + } + ], + "range": [ + 6099, + 6129 + ], + "loc": { + "start": { + "line": 285, + "column": 4 + }, + "end": { + "line": 286, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "times", + "range": [ + 6137, + 6142 + ], + "loc": { + "start": { + "line": 287, + "column": 7 + }, + "end": { + "line": 287, + "column": 12 + } + } + }, + "range": [ + 6099, + 6142 + ], + "loc": { + "start": { + "line": 285, + "column": 4 + }, + "end": { + "line": 287, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": 999999, + "raw": "999999", + "range": [ + 6143, + 6149 + ], + "loc": { + "start": { + "line": 287, + "column": 13 + }, + "end": { + "line": 287, + "column": 19 + } + } + } + ], + "range": [ + 6099, + 6150 + ], + "loc": { + "start": { + "line": 285, + "column": 4 + }, + "end": { + "line": 287, + "column": 20 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " @todo: get rid of magic here...", + "range": [ + 6151, + 6185 + ], + "loc": { + "start": { + "line": 287, + "column": 21 + }, + "end": { + "line": 287, + "column": 55 + } + } + } + ] + }, + "property": { + "type": "Identifier", + "name": "condition", + "range": [ + 6193, + 6202 + ], + "loc": { + "start": { + "line": 288, + "column": 7 + }, + "end": { + "line": 288, + "column": 16 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: get rid of magic here...", + "range": [ + 6151, + 6185 + ], + "loc": { + "start": { + "line": 287, + "column": 21 + }, + "end": { + "line": 287, + "column": 55 + } + } + } + ] + }, + "range": [ + 6099, + 6202 + ], + "loc": { + "start": { + "line": 285, + "column": 4 + }, + "end": { + "line": 288, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "cb", + "range": [ + 6212, + 6214 + ], + "loc": { + "start": { + "line": 288, + "column": 26 + }, + "end": { + "line": 288, + "column": 28 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "process", + "range": [ + 6226, + 6233 + ], + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 289, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "nextTick", + "range": [ + 6234, + 6242 + ], + "loc": { + "start": { + "line": 289, + "column": 16 + }, + "end": { + "line": 289, + "column": 24 + } + } + }, + "range": [ + 6226, + 6242 + ], + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 289, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "cb", + "range": [ + 6266, + 6268 + ], + "loc": { + "start": { + "line": 290, + "column": 10 + }, + "end": { + "line": 290, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "BinaryExpression", + "operator": "<=", + "left": { + "type": "Identifier", + "name": "bootingServices", + "range": [ + 6269, + 6284 + ], + "loc": { + "start": { + "line": 290, + "column": 13 + }, + "end": { + "line": 290, + "column": 28 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 6288, + 6289 + ], + "loc": { + "start": { + "line": 290, + "column": 32 + }, + "end": { + "line": 290, + "column": 33 + } + } + }, + "range": [ + 6269, + 6289 + ], + "loc": { + "start": { + "line": 290, + "column": 13 + }, + "end": { + "line": 290, + "column": 33 + } + } + } + ], + "range": [ + 6266, + 6290 + ], + "loc": { + "start": { + "line": 290, + "column": 10 + }, + "end": { + "line": 290, + "column": 34 + } + } + }, + "range": [ + 6266, + 6291 + ], + "loc": { + "start": { + "line": 290, + "column": 10 + }, + "end": { + "line": 290, + "column": 35 + } + } + } + ], + "range": [ + 6254, + 6301 + ], + "loc": { + "start": { + "line": 289, + "column": 36 + }, + "end": { + "line": 291, + "column": 9 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 6243, + 6301 + ], + "loc": { + "start": { + "line": 289, + "column": 25 + }, + "end": { + "line": 291, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 6302, + 6306 + ], + "loc": { + "start": { + "line": 291, + "column": 10 + }, + "end": { + "line": 291, + "column": 14 + } + } + }, + "range": [ + 6243, + 6306 + ], + "loc": { + "start": { + "line": 289, + "column": 25 + }, + "end": { + "line": 291, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 6307, + 6311 + ], + "loc": { + "start": { + "line": 291, + "column": 15 + }, + "end": { + "line": 291, + "column": 19 + } + } + } + ], + "range": [ + 6243, + 6312 + ], + "loc": { + "start": { + "line": 289, + "column": 25 + }, + "end": { + "line": 291, + "column": 20 + } + } + } + ], + "range": [ + 6226, + 6313 + ], + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 291, + "column": 21 + } + } + }, + "range": [ + 6226, + 6314 + ], + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 291, + "column": 22 + } + } + } + ], + "range": [ + 6216, + 6322 + ], + "loc": { + "start": { + "line": 288, + "column": 30 + }, + "end": { + "line": 292, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 6203, + 6322 + ], + "loc": { + "start": { + "line": 288, + "column": 17 + }, + "end": { + "line": 292, + "column": 7 + } + } + } + ], + "range": [ + 6099, + 6323 + ], + "loc": { + "start": { + "line": 285, + "column": 4 + }, + "end": { + "line": 292, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "done", + "range": [ + 6324, + 6328 + ], + "loc": { + "start": { + "line": 292, + "column": 9 + }, + "end": { + "line": 292, + "column": 13 + } + } + }, + "range": [ + 6099, + 6328 + ], + "loc": { + "start": { + "line": 285, + "column": 4 + }, + "end": { + "line": 292, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 6350, + 6358 + ], + "loc": { + "start": { + "line": 293, + "column": 8 + }, + "end": { + "line": 293, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 6359, + 6363 + ], + "loc": { + "start": { + "line": 293, + "column": 17 + }, + "end": { + "line": 293, + "column": 21 + } + } + } + ], + "range": [ + 6350, + 6364 + ], + "loc": { + "start": { + "line": 293, + "column": 8 + }, + "end": { + "line": 293, + "column": 22 + } + } + }, + "range": [ + 6350, + 6365 + ], + "loc": { + "start": { + "line": 293, + "column": 8 + }, + "end": { + "line": 293, + "column": 23 + } + } + } + ], + "range": [ + 6340, + 6373 + ], + "loc": { + "start": { + "line": 292, + "column": 25 + }, + "end": { + "line": 294, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 6329, + 6373 + ], + "loc": { + "start": { + "line": 292, + "column": 14 + }, + "end": { + "line": 294, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 6374, + 6378 + ], + "loc": { + "start": { + "line": 294, + "column": 8 + }, + "end": { + "line": 294, + "column": 12 + } + } + }, + "range": [ + 6329, + 6378 + ], + "loc": { + "start": { + "line": 292, + "column": 14 + }, + "end": { + "line": 294, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 6379, + 6383 + ], + "loc": { + "start": { + "line": 294, + "column": 13 + }, + "end": { + "line": 294, + "column": 17 + } + } + } + ], + "range": [ + 6329, + 6384 + ], + "loc": { + "start": { + "line": 292, + "column": 14 + }, + "end": { + "line": 294, + "column": 18 + } + } + } + ], + "range": [ + 6099, + 6385 + ], + "loc": { + "start": { + "line": 285, + "column": 4 + }, + "end": { + "line": 294, + "column": 19 + } + } + }, + "range": [ + 6099, + 6386 + ], + "loc": { + "start": { + "line": 285, + "column": 4 + }, + "end": { + "line": 294, + "column": 20 + } + } + } + ], + "range": [ + 4830, + 6390 + ], + "loc": { + "start": { + "line": 229, + "column": 28 + }, + "end": { + "line": 295, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4819, + 6390 + ], + "loc": { + "start": { + "line": 229, + "column": 17 + }, + "end": { + "line": 295, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 4804, + 6390 + ], + "loc": { + "start": { + "line": 229, + "column": 2 + }, + "end": { + "line": 295, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Loads all parameters and services into DI container\n *\n * @param {Function} callback\n ", + "range": [ + 4698, + 4801 + ], + "loc": { + "start": { + "line": 224, + "column": 2 + }, + "end": { + "line": 228, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {MicroserviceInjectable}\n ", + "range": [ + 6394, + 6442 + ], + "loc": { + "start": { + "line": 297, + "column": 2 + }, + "end": { + "line": 299, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "MicroserviceInjectable", + "range": [ + 6456, + 6478 + ], + "loc": { + "start": { + "line": 300, + "column": 13 + }, + "end": { + "line": 300, + "column": 35 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "MicroserviceInjectable", + "range": [ + 6494, + 6516 + ], + "loc": { + "start": { + "line": 301, + "column": 11 + }, + "end": { + "line": 301, + "column": 33 + } + } + }, + "range": [ + 6487, + 6517 + ], + "loc": { + "start": { + "line": 301, + "column": 4 + }, + "end": { + "line": 301, + "column": 34 + } + } + } + ], + "range": [ + 6481, + 6521 + ], + "loc": { + "start": { + "line": 300, + "column": 38 + }, + "end": { + "line": 302, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 6478, + 6521 + ], + "loc": { + "start": { + "line": 300, + "column": 35 + }, + "end": { + "line": 302, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 6445, + 6521 + ], + "loc": { + "start": { + "line": 300, + "column": 2 + }, + "end": { + "line": 302, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {MicroserviceInjectable}\n ", + "range": [ + 6394, + 6442 + ], + "loc": { + "start": { + "line": 297, + "column": 2 + }, + "end": { + "line": 299, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {ContainerAware}\n ", + "range": [ + 6525, + 6565 + ], + "loc": { + "start": { + "line": 304, + "column": 2 + }, + "end": { + "line": 306, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "ContainerAware", + "range": [ + 6579, + 6593 + ], + "loc": { + "start": { + "line": 307, + "column": 13 + }, + "end": { + "line": 307, + "column": 27 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "ContainerAware", + "range": [ + 6609, + 6623 + ], + "loc": { + "start": { + "line": 308, + "column": 11 + }, + "end": { + "line": 308, + "column": 25 + } + } + }, + "range": [ + 6602, + 6624 + ], + "loc": { + "start": { + "line": 308, + "column": 4 + }, + "end": { + "line": 308, + "column": 26 + } + } + } + ], + "range": [ + 6596, + 6628 + ], + "loc": { + "start": { + "line": 307, + "column": 30 + }, + "end": { + "line": 309, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 6593, + 6628 + ], + "loc": { + "start": { + "line": 307, + "column": 27 + }, + "end": { + "line": 309, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 6568, + 6628 + ], + "loc": { + "start": { + "line": 307, + "column": 2 + }, + "end": { + "line": 309, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {ContainerAware}\n ", + "range": [ + 6525, + 6565 + ], + "loc": { + "start": { + "line": 304, + "column": 2 + }, + "end": { + "line": 306, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 6632, + 6664 + ], + "loc": { + "start": { + "line": 311, + "column": 2 + }, + "end": { + "line": 313, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "FRONTEND_BOOTSTRAP_VECTOR", + "range": [ + 6678, + 6703 + ], + "loc": { + "start": { + "line": 314, + "column": 13 + }, + "end": { + "line": 314, + "column": 38 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "deep_frontend_bootstrap_vector", + "raw": "'deep_frontend_bootstrap_vector'", + "range": [ + 6719, + 6751 + ], + "loc": { + "start": { + "line": 315, + "column": 11 + }, + "end": { + "line": 315, + "column": 43 + } + } + }, + "range": [ + 6712, + 6752 + ], + "loc": { + "start": { + "line": 315, + "column": 4 + }, + "end": { + "line": 315, + "column": 44 + } + } + } + ], + "range": [ + 6706, + 6756 + ], + "loc": { + "start": { + "line": 314, + "column": 41 + }, + "end": { + "line": 316, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 6703, + 6756 + ], + "loc": { + "start": { + "line": 314, + "column": 38 + }, + "end": { + "line": 316, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 6667, + 6756 + ], + "loc": { + "start": { + "line": 314, + "column": 2 + }, + "end": { + "line": 316, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 6632, + 6664 + ], + "loc": { + "start": { + "line": 311, + "column": 2 + }, + "end": { + "line": 313, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 6760, + 6792 + ], + "loc": { + "start": { + "line": 318, + "column": 2 + }, + "end": { + "line": 320, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "CONFIG", + "range": [ + 6806, + 6812 + ], + "loc": { + "start": { + "line": 321, + "column": 13 + }, + "end": { + "line": 321, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "deep_config", + "raw": "'deep_config'", + "range": [ + 6828, + 6841 + ], + "loc": { + "start": { + "line": 322, + "column": 11 + }, + "end": { + "line": 322, + "column": 24 + } + } + }, + "range": [ + 6821, + 6842 + ], + "loc": { + "start": { + "line": 322, + "column": 4 + }, + "end": { + "line": 322, + "column": 25 + } + } + } + ], + "range": [ + 6815, + 6846 + ], + "loc": { + "start": { + "line": 321, + "column": 22 + }, + "end": { + "line": 323, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 6812, + 6846 + ], + "loc": { + "start": { + "line": 321, + "column": 19 + }, + "end": { + "line": 323, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 6795, + 6846 + ], + "loc": { + "start": { + "line": 321, + "column": 2 + }, + "end": { + "line": 323, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 6760, + 6792 + ], + "loc": { + "start": { + "line": 318, + "column": 2 + }, + "end": { + "line": 320, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 6850, + 6882 + ], + "loc": { + "start": { + "line": 325, + "column": 2 + }, + "end": { + "line": 327, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "KERNEL", + "range": [ + 6896, + 6902 + ], + "loc": { + "start": { + "line": 328, + "column": 13 + }, + "end": { + "line": 328, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "deep_kernel", + "raw": "'deep_kernel'", + "range": [ + 6918, + 6931 + ], + "loc": { + "start": { + "line": 329, + "column": 11 + }, + "end": { + "line": 329, + "column": 24 + } + } + }, + "range": [ + 6911, + 6932 + ], + "loc": { + "start": { + "line": 329, + "column": 4 + }, + "end": { + "line": 329, + "column": 25 + } + } + } + ], + "range": [ + 6905, + 6936 + ], + "loc": { + "start": { + "line": 328, + "column": 22 + }, + "end": { + "line": 330, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 6902, + 6936 + ], + "loc": { + "start": { + "line": 328, + "column": 19 + }, + "end": { + "line": 330, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 6885, + 6936 + ], + "loc": { + "start": { + "line": 328, + "column": 2 + }, + "end": { + "line": 330, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 6850, + 6882 + ], + "loc": { + "start": { + "line": 325, + "column": 2 + }, + "end": { + "line": 327, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 6940, + 6972 + ], + "loc": { + "start": { + "line": 332, + "column": 2 + }, + "end": { + "line": 334, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "CONTEXT", + "range": [ + 6986, + 6993 + ], + "loc": { + "start": { + "line": 335, + "column": 13 + }, + "end": { + "line": 335, + "column": 20 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "deep_context", + "raw": "'deep_context'", + "range": [ + 7009, + 7023 + ], + "loc": { + "start": { + "line": 336, + "column": 11 + }, + "end": { + "line": 336, + "column": 25 + } + } + }, + "range": [ + 7002, + 7024 + ], + "loc": { + "start": { + "line": 336, + "column": 4 + }, + "end": { + "line": 336, + "column": 26 + } + } + } + ], + "range": [ + 6996, + 7028 + ], + "loc": { + "start": { + "line": 335, + "column": 23 + }, + "end": { + "line": 337, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 6993, + 7028 + ], + "loc": { + "start": { + "line": 335, + "column": 20 + }, + "end": { + "line": 337, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 6975, + 7028 + ], + "loc": { + "start": { + "line": 335, + "column": 2 + }, + "end": { + "line": 337, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 6940, + 6972 + ], + "loc": { + "start": { + "line": 332, + "column": 2 + }, + "end": { + "line": 334, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 7032, + 7064 + ], + "loc": { + "start": { + "line": 339, + "column": 2 + }, + "end": { + "line": 341, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "MICROSERVICES", + "range": [ + 7078, + 7091 + ], + "loc": { + "start": { + "line": 342, + "column": 13 + }, + "end": { + "line": 342, + "column": 26 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "deep_microservices", + "raw": "'deep_microservices'", + "range": [ + 7107, + 7127 + ], + "loc": { + "start": { + "line": 343, + "column": 11 + }, + "end": { + "line": 343, + "column": 31 + } + } + }, + "range": [ + 7100, + 7128 + ], + "loc": { + "start": { + "line": 343, + "column": 4 + }, + "end": { + "line": 343, + "column": 32 + } + } + } + ], + "range": [ + 7094, + 7132 + ], + "loc": { + "start": { + "line": 342, + "column": 29 + }, + "end": { + "line": 344, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 7091, + 7132 + ], + "loc": { + "start": { + "line": 342, + "column": 26 + }, + "end": { + "line": 344, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 7067, + 7132 + ], + "loc": { + "start": { + "line": 342, + "column": 2 + }, + "end": { + "line": 344, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 7032, + 7064 + ], + "loc": { + "start": { + "line": 339, + "column": 2 + }, + "end": { + "line": 341, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 7136, + 7168 + ], + "loc": { + "start": { + "line": 346, + "column": 2 + }, + "end": { + "line": 348, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "FRONTEND_CONTEXT", + "range": [ + 7182, + 7198 + ], + "loc": { + "start": { + "line": 349, + "column": 13 + }, + "end": { + "line": 349, + "column": 29 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "frontend-ctx", + "raw": "'frontend-ctx'", + "range": [ + 7214, + 7228 + ], + "loc": { + "start": { + "line": 350, + "column": 11 + }, + "end": { + "line": 350, + "column": 25 + } + } + }, + "range": [ + 7207, + 7229 + ], + "loc": { + "start": { + "line": 350, + "column": 4 + }, + "end": { + "line": 350, + "column": 26 + } + } + } + ], + "range": [ + 7201, + 7233 + ], + "loc": { + "start": { + "line": 349, + "column": 32 + }, + "end": { + "line": 351, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 7198, + 7233 + ], + "loc": { + "start": { + "line": 349, + "column": 29 + }, + "end": { + "line": 351, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 7171, + 7233 + ], + "loc": { + "start": { + "line": 349, + "column": 2 + }, + "end": { + "line": 351, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 7136, + 7168 + ], + "loc": { + "start": { + "line": 346, + "column": 2 + }, + "end": { + "line": 348, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 7237, + 7269 + ], + "loc": { + "start": { + "line": 353, + "column": 2 + }, + "end": { + "line": 355, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "BACKEND_CONTEXT", + "range": [ + 7283, + 7298 + ], + "loc": { + "start": { + "line": 356, + "column": 13 + }, + "end": { + "line": 356, + "column": 28 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "backend-ctx", + "raw": "'backend-ctx'", + "range": [ + 7314, + 7327 + ], + "loc": { + "start": { + "line": 357, + "column": 11 + }, + "end": { + "line": 357, + "column": 24 + } + } + }, + "range": [ + 7307, + 7328 + ], + "loc": { + "start": { + "line": 357, + "column": 4 + }, + "end": { + "line": 357, + "column": 25 + } + } + } + ], + "range": [ + 7301, + 7332 + ], + "loc": { + "start": { + "line": 356, + "column": 31 + }, + "end": { + "line": 358, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 7298, + 7332 + ], + "loc": { + "start": { + "line": 356, + "column": 28 + }, + "end": { + "line": 358, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 7272, + 7332 + ], + "loc": { + "start": { + "line": 356, + "column": 2 + }, + "end": { + "line": 358, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 7237, + 7269 + ], + "loc": { + "start": { + "line": 353, + "column": 2 + }, + "end": { + "line": 355, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 7336, + 7367 + ], + "loc": { + "start": { + "line": 360, + "column": 2 + }, + "end": { + "line": 362, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "ALL_CONTEXTS", + "range": [ + 7381, + 7393 + ], + "loc": { + "start": { + "line": 363, + "column": 13 + }, + "end": { + "line": 363, + "column": 25 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ArrayExpression", + "elements": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 7417, + 7423 + ], + "loc": { + "start": { + "line": 365, + "column": 6 + }, + "end": { + "line": 365, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "FRONTEND_CONTEXT", + "range": [ + 7424, + 7440 + ], + "loc": { + "start": { + "line": 365, + "column": 13 + }, + "end": { + "line": 365, + "column": 29 + } + } + }, + "range": [ + 7417, + 7440 + ], + "loc": { + "start": { + "line": 365, + "column": 6 + }, + "end": { + "line": 365, + "column": 29 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 7448, + 7454 + ], + "loc": { + "start": { + "line": 366, + "column": 6 + }, + "end": { + "line": 366, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "BACKEND_CONTEXT", + "range": [ + 7455, + 7470 + ], + "loc": { + "start": { + "line": 366, + "column": 13 + }, + "end": { + "line": 366, + "column": 28 + } + } + }, + "range": [ + 7448, + 7470 + ], + "loc": { + "start": { + "line": 366, + "column": 6 + }, + "end": { + "line": 366, + "column": 28 + } + } + } + ], + "range": [ + 7409, + 7477 + ], + "loc": { + "start": { + "line": 364, + "column": 11 + }, + "end": { + "line": 367, + "column": 5 + } + } + }, + "range": [ + 7402, + 7478 + ], + "loc": { + "start": { + "line": 364, + "column": 4 + }, + "end": { + "line": 367, + "column": 6 + } + } + } + ], + "range": [ + 7396, + 7482 + ], + "loc": { + "start": { + "line": 363, + "column": 28 + }, + "end": { + "line": 368, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 7393, + 7482 + ], + "loc": { + "start": { + "line": 363, + "column": 25 + }, + "end": { + "line": 368, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 7370, + 7482 + ], + "loc": { + "start": { + "line": 363, + "column": 2 + }, + "end": { + "line": 368, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 7336, + 7367 + ], + "loc": { + "start": { + "line": 360, + "column": 2 + }, + "end": { + "line": 362, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 565, + 7484 + ], + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 369, + "column": 1 + } + } + }, + "range": [ + 552, + 7484 + ], + "loc": { + "start": { + "line": 20, + "column": 7 + }, + "end": { + "line": 369, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Deep application kernel\n ", + "range": [ + 510, + 544 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 545, + 7484 + ], + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 369, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Deep application kernel\n ", + "range": [ + 510, + 544 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 42, + 7484 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 369, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 5/26/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Deep application kernel\n ", + "range": [ + 510, + 544 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} deepServices\n * @param {String} context\n ", + "range": [ + 569, + 640 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 24, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 979, + 1012 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 40, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} identifier\n * @returns {Microservice}\n ", + "range": [ + 1066, + 1136 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} jsonFile\n * @param {Function} callback\n * @returns {Kernel}\n ", + "range": [ + 1642, + 1736 + ], + "loc": { + "start": { + "line": 69, + "column": 2 + }, + "end": { + "line": 73, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: remove AWS changes the way the things run", + "range": [ + 1778, + 1829 + ], + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 55 + } + } + }, + { + "type": "Line", + "value": " This is used because of AWS Lambda", + "range": [ + 1834, + 1871 + ], + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 41 + } + } + }, + { + "type": "Line", + "value": " context sharing after a cold start", + "range": [ + 1876, + 1913 + ], + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 77, + "column": 41 + } + } + }, + { + "type": "Line", + "value": " @todo: get rid of native code...", + "range": [ + 2286, + 2321 + ], + "loc": { + "start": { + "line": 91, + "column": 13 + }, + "end": { + "line": 91, + "column": 48 + } + } + }, + { + "type": "Block", + "value": "*\n * Loads all Kernel dependencies\n *\n * @param {Object} globalConfig\n * @param {Function} callback\n ", + "range": [ + 2772, + 2887 + ], + "loc": { + "start": { + "line": 111, + "column": 2 + }, + "end": { + "line": 116, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: remove AWS changes the way the things run", + "range": [ + 2925, + 2976 + ], + "loc": { + "start": { + "line": 118, + "column": 4 + }, + "end": { + "line": 118, + "column": 55 + } + } + }, + { + "type": "Line", + "value": " This is used because of AWS Lambda", + "range": [ + 2981, + 3018 + ], + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 119, + "column": 41 + } + } + }, + { + "type": "Line", + "value": " context sharing after a cold start", + "range": [ + 3023, + 3060 + ], + "loc": { + "start": { + "line": 120, + "column": 4 + }, + "end": { + "line": 120, + "column": 41 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n * @returns {*}\n ", + "range": [ + 3383, + 3435 + ], + "loc": { + "start": { + "line": 141, + "column": 2 + }, + "end": { + "line": 144, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 3501, + 3532 + ], + "loc": { + "start": { + "line": 149, + "column": 2 + }, + "end": { + "line": 151, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {DI}\n ", + "range": [ + 3586, + 3614 + ], + "loc": { + "start": { + "line": 156, + "column": 2 + }, + "end": { + "line": 158, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 3670, + 3703 + ], + "loc": { + "start": { + "line": 163, + "column": 2 + }, + "end": { + "line": 165, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 3786, + 3819 + ], + "loc": { + "start": { + "line": 170, + "column": 2 + }, + "end": { + "line": 172, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 3997, + 4030 + ], + "loc": { + "start": { + "line": 181, + "column": 2 + }, + "end": { + "line": 183, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 4111, + 4143 + ], + "loc": { + "start": { + "line": 188, + "column": 2 + }, + "end": { + "line": 190, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 4209, + 4241 + ], + "loc": { + "start": { + "line": 195, + "column": 2 + }, + "end": { + "line": 197, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 4293, + 4325 + ], + "loc": { + "start": { + "line": 202, + "column": 2 + }, + "end": { + "line": 204, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 4369, + 4401 + ], + "loc": { + "start": { + "line": 209, + "column": 2 + }, + "end": { + "line": 211, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo - create a class DeepConfig or smth, that will hold global config and expose shortcuts to different options", + "range": [ + 4423, + 4539 + ], + "loc": { + "start": { + "line": 213, + "column": 4 + }, + "end": { + "line": 213, + "column": 120 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Microservice[]}\n ", + "range": [ + 4572, + 4612 + ], + "loc": { + "start": { + "line": 217, + "column": 2 + }, + "end": { + "line": 219, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Loads all parameters and services into DI container\n *\n * @param {Function} callback\n ", + "range": [ + 4698, + 4801 + ], + "loc": { + "start": { + "line": 224, + "column": 2 + }, + "end": { + "line": 228, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: get rid of magic here...", + "range": [ + 6151, + 6185 + ], + "loc": { + "start": { + "line": 287, + "column": 21 + }, + "end": { + "line": 287, + "column": 55 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {MicroserviceInjectable}\n ", + "range": [ + 6394, + 6442 + ], + "loc": { + "start": { + "line": 297, + "column": 2 + }, + "end": { + "line": 299, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {ContainerAware}\n ", + "range": [ + 6525, + 6565 + ], + "loc": { + "start": { + "line": 304, + "column": 2 + }, + "end": { + "line": 306, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 6632, + 6664 + ], + "loc": { + "start": { + "line": 311, + "column": 2 + }, + "end": { + "line": 313, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 6760, + 6792 + ], + "loc": { + "start": { + "line": 318, + "column": 2 + }, + "end": { + "line": 320, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 6850, + 6882 + ], + "loc": { + "start": { + "line": 325, + "column": 2 + }, + "end": { + "line": 327, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 6940, + 6972 + ], + "loc": { + "start": { + "line": 332, + "column": 2 + }, + "end": { + "line": 334, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 7032, + 7064 + ], + "loc": { + "start": { + "line": 339, + "column": 2 + }, + "end": { + "line": 341, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 7136, + 7168 + ], + "loc": { + "start": { + "line": 346, + "column": 2 + }, + "end": { + "line": 348, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 7237, + 7269 + ], + "loc": { + "start": { + "line": 353, + "column": 2 + }, + "end": { + "line": 355, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 7336, + 7367 + ], + "loc": { + "start": { + "line": 360, + "column": 2 + }, + "end": { + "line": 362, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-kernel/ast/source/Microservice/Exception/MissingWorkingMicroserviceException.js.json b/docs-api/deep-kernel/ast/source/Microservice/Exception/MissingWorkingMicroserviceException.js.json new file mode 100644 index 00000000..40e4e42c --- /dev/null +++ b/docs-api/deep-kernel/ast/source/Microservice/Exception/MissingWorkingMicroserviceException.js.json @@ -0,0 +1,507 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../Exception/Exception", + "raw": "'../../Exception/Exception'", + "range": [ + 85, + 112 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 51 + } + } + }, + "range": [ + 61, + 113 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 52 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when no working microservice set\n ", + "range": [ + 115, + 165 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "MissingWorkingMicroserviceException", + "range": [ + 179, + 214 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 48 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 223, + 232 + ], + "loc": { + "start": { + "line": 12, + "column": 57 + }, + "end": { + "line": 12, + "column": 66 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 237, + 248 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 257, + 262 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "Missing working microservice from Kernel.MicroserviceInjectable", + "raw": "'Missing working microservice from Kernel.MicroserviceInjectable'", + "range": [ + 263, + 328 + ], + "loc": { + "start": { + "line": 14, + "column": 10 + }, + "end": { + "line": 14, + "column": 75 + } + } + } + ], + "range": [ + 257, + 329 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 76 + } + } + }, + "range": [ + 257, + 330 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 77 + } + } + } + ], + "range": [ + 251, + 334 + ], + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 248, + 334 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 237, + 334 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "static": false + } + ], + "range": [ + 233, + 336 + ], + "loc": { + "start": { + "line": 12, + "column": 67 + }, + "end": { + "line": 16, + "column": 1 + } + } + }, + "range": [ + 173, + 336 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when no working microservice set\n ", + "range": [ + 115, + 165 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 166, + 336 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when no working microservice set\n ", + "range": [ + 115, + 165 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 336 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when no working microservice set\n ", + "range": [ + 115, + 165 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-kernel/ast/source/Microservice/Injectable.js.json b/docs-api/deep-kernel/ast/source/Microservice/Injectable.js.json new file mode 100644 index 00000000..1c92382e --- /dev/null +++ b/docs-api/deep-kernel/ast/source/Microservice/Injectable.js.json @@ -0,0 +1,1904 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Instance", + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Instance", + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Instance", + "raw": "'./Instance'", + "range": [ + 84, + 96 + ], + "loc": { + "start": { + "line": 7, + "column": 23 + }, + "end": { + "line": 7, + "column": 35 + } + } + }, + "range": [ + 61, + 97 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 36 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 105, + 109 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 11 + } + } + }, + "range": [ + 105, + 109 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 115, + 126 + ], + "loc": { + "start": { + "line": 8, + "column": 17 + }, + "end": { + "line": 8, + "column": 28 + } + } + }, + "range": [ + 98, + 127 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 29 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "MissingWorkingMicroserviceException", + "range": [ + 136, + 171 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 43 + } + } + }, + "imported": { + "type": "Identifier", + "name": "MissingWorkingMicroserviceException", + "range": [ + 136, + 171 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 43 + } + } + }, + "range": [ + 136, + 171 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 43 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/MissingWorkingMicroserviceException", + "raw": "'./Exception/MissingWorkingMicroserviceException'", + "range": [ + 178, + 227 + ], + "loc": { + "start": { + "line": 9, + "column": 50 + }, + "end": { + "line": 9, + "column": 99 + } + } + }, + "range": [ + 128, + 228 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 100 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Microservice injectable object\n ", + "range": [ + 230, + 271 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Injectable", + "range": [ + 285, + 295 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 23 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 300, + 311 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 15, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 320, + 324 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_microservice", + "range": [ + 325, + 338 + ], + "loc": { + "start": { + "line": 16, + "column": 9 + }, + "end": { + "line": 16, + "column": 22 + } + } + }, + "range": [ + 320, + 338 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 22 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 341, + 345 + ], + "loc": { + "start": { + "line": 16, + "column": 25 + }, + "end": { + "line": 16, + "column": 29 + } + } + }, + "range": [ + 320, + 345 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 29 + } + } + }, + "range": [ + 320, + 346 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 30 + } + } + } + ], + "range": [ + 314, + 350 + ], + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 17, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 311, + 350 + ], + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 17, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 300, + 350 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 17, + "column": 3 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Instance} microservice\n * @returns {Injectable}\n ", + "range": [ + 354, + 426 + ], + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "bind", + "range": [ + 429, + 433 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 23, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "microservice", + "range": [ + 434, + 446 + ], + "loc": { + "start": { + "line": 23, + "column": 7 + }, + "end": { + "line": 23, + "column": 19 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 454, + 458 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservice", + "range": [ + 459, + 471 + ], + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 21 + } + } + }, + "range": [ + 454, + 471 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 21 + } + } + }, + "right": { + "type": "Identifier", + "name": "microservice", + "range": [ + 474, + 486 + ], + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 36 + } + } + }, + "range": [ + 454, + 486 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 36 + } + } + }, + "range": [ + 454, + 487 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 37 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 500, + 504 + ], + "loc": { + "start": { + "line": 26, + "column": 11 + }, + "end": { + "line": 26, + "column": 15 + } + } + }, + "range": [ + 493, + 505 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 16 + } + } + } + ], + "range": [ + 448, + 509 + ], + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 27, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 433, + 509 + ], + "loc": { + "start": { + "line": 23, + "column": 6 + }, + "end": { + "line": 27, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 429, + 509 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 27, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Instance} microservice\n * @returns {Injectable}\n ", + "range": [ + 354, + 426 + ], + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Instance}\n ", + "range": [ + 513, + 547 + ], + "loc": { + "start": { + "line": 29, + "column": 2 + }, + "end": { + "line": 31, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "microservice", + "range": [ + 554, + 566 + ], + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 579, + 583 + ], + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_microservice", + "range": [ + 584, + 597 + ], + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 26 + } + } + }, + "range": [ + 579, + 597 + ], + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 26 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 602, + 606 + ], + "loc": { + "start": { + "line": 33, + "column": 31 + }, + "end": { + "line": 33, + "column": 35 + } + } + }, + "range": [ + 579, + 606 + ], + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 35 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "MissingWorkingMicroserviceException", + "range": [ + 626, + 661 + ], + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 51 + } + } + }, + "arguments": [], + "range": [ + 622, + 663 + ], + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 53 + } + } + }, + "range": [ + 616, + 664 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 54 + } + } + } + ], + "range": [ + 608, + 670 + ], + "loc": { + "start": { + "line": 33, + "column": 37 + }, + "end": { + "line": 35, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 575, + 670 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 35, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 683, + 687 + ], + "loc": { + "start": { + "line": 37, + "column": 11 + }, + "end": { + "line": 37, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_microservice", + "range": [ + 688, + 701 + ], + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 29 + } + } + }, + "range": [ + 683, + 701 + ], + "loc": { + "start": { + "line": 37, + "column": 11 + }, + "end": { + "line": 37, + "column": 29 + } + } + }, + "range": [ + 676, + 702 + ], + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 30 + } + } + } + ], + "range": [ + 569, + 706 + ], + "loc": { + "start": { + "line": 32, + "column": 21 + }, + "end": { + "line": 38, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 566, + 706 + ], + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 38, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 550, + 706 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 38, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Instance}\n ", + "range": [ + 513, + 547 + ], + "loc": { + "start": { + "line": 29, + "column": 2 + }, + "end": { + "line": 31, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Instance} instance\n ", + "range": [ + 710, + 751 + ], + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 42, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "microservice", + "range": [ + 758, + 770 + ], + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "instance", + "range": [ + 771, + 779 + ], + "loc": { + "start": { + "line": 43, + "column": 19 + }, + "end": { + "line": 43, + "column": 27 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "Identifier", + "name": "instance", + "range": [ + 793, + 801 + ], + "loc": { + "start": { + "line": 44, + "column": 10 + }, + "end": { + "line": 44, + "column": 18 + } + } + }, + "right": { + "type": "Identifier", + "name": "Instance", + "range": [ + 813, + 821 + ], + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 44, + "column": 38 + } + } + }, + "range": [ + 793, + 821 + ], + "loc": { + "start": { + "line": 44, + "column": 10 + }, + "end": { + "line": 44, + "column": 38 + } + } + }, + "prefix": true, + "range": [ + 791, + 822 + ], + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 39 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 842, + 846 + ], + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 847, + 856 + ], + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 45, + "column": 30 + } + } + }, + "range": [ + 842, + 856 + ], + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 857, + 881 + ], + "loc": { + "start": { + "line": 45, + "column": 31 + }, + "end": { + "line": 45, + "column": 55 + } + } + }, + "range": [ + 842, + 881 + ], + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 55 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "microservice", + "range": [ + 882, + 894 + ], + "loc": { + "start": { + "line": 45, + "column": 56 + }, + "end": { + "line": 45, + "column": 68 + } + } + }, + { + "type": "Literal", + "value": "Microservice", + "raw": "'Microservice'", + "range": [ + 896, + 910 + ], + "loc": { + "start": { + "line": 45, + "column": 70 + }, + "end": { + "line": 45, + "column": 84 + } + } + } + ], + "range": [ + 838, + 911 + ], + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 85 + } + } + }, + "range": [ + 832, + 912 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 86 + } + } + } + ], + "range": [ + 824, + 918 + ], + "loc": { + "start": { + "line": 44, + "column": 41 + }, + "end": { + "line": 46, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 787, + 918 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 46, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 924, + 928 + ], + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_microservice", + "range": [ + 929, + 942 + ], + "loc": { + "start": { + "line": 48, + "column": 9 + }, + "end": { + "line": 48, + "column": 22 + } + } + }, + "range": [ + 924, + 942 + ], + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 22 + } + } + }, + "right": { + "type": "Identifier", + "name": "instance", + "range": [ + 945, + 953 + ], + "loc": { + "start": { + "line": 48, + "column": 25 + }, + "end": { + "line": 48, + "column": 33 + } + } + }, + "range": [ + 924, + 953 + ], + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 33 + } + } + }, + "range": [ + 924, + 954 + ], + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 34 + } + } + } + ], + "range": [ + 781, + 958 + ], + "loc": { + "start": { + "line": 43, + "column": 29 + }, + "end": { + "line": 49, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 770, + 958 + ], + "loc": { + "start": { + "line": 43, + "column": 18 + }, + "end": { + "line": 49, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 754, + 958 + ], + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 49, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Instance} instance\n ", + "range": [ + 710, + 751 + ], + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 42, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 296, + 960 + ], + "loc": { + "start": { + "line": 14, + "column": 24 + }, + "end": { + "line": 50, + "column": 1 + } + } + }, + "range": [ + 279, + 960 + ], + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 50, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Microservice injectable object\n ", + "range": [ + 230, + 271 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 272, + 960 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 50, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Microservice injectable object\n ", + "range": [ + 230, + 271 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 960 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 50, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Microservice injectable object\n ", + "range": [ + 230, + 271 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Instance} microservice\n * @returns {Injectable}\n ", + "range": [ + 354, + 426 + ], + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Instance}\n ", + "range": [ + 513, + 547 + ], + "loc": { + "start": { + "line": 29, + "column": 2 + }, + "end": { + "line": 31, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Instance} instance\n ", + "range": [ + 710, + 751 + ], + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 42, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-kernel/ast/source/Microservice/Instance.js.json b/docs-api/deep-kernel/ast/source/Microservice/Instance.js.json new file mode 100644 index 00000000..6e37945b --- /dev/null +++ b/docs-api/deep-kernel/ast/source/Microservice/Instance.js.json @@ -0,0 +1,3710 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Injectable", + "range": [ + 99, + 109 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 18 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Injectable", + "range": [ + 99, + 109 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 18 + } + } + }, + "range": [ + 99, + 109 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 18 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Injectable", + "raw": "'./Injectable'", + "range": [ + 116, + 130 + ], + "loc": { + "start": { + "line": 8, + "column": 25 + }, + "end": { + "line": 8, + "column": 39 + } + } + }, + "range": [ + 91, + 131 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 40 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Microservice instance class\n ", + "range": [ + 133, + 171 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Instance", + "range": [ + 185, + 193 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 21 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 276, + 287 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "identifier", + "range": [ + 288, + 298 + ], + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 24 + } + } + }, + { + "type": "Identifier", + "name": "rawResources", + "range": [ + 300, + 312 + ], + "loc": { + "start": { + "line": 18, + "column": 26 + }, + "end": { + "line": 18, + "column": 38 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 320, + 324 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_isRoot", + "range": [ + 325, + 332 + ], + "loc": { + "start": { + "line": 19, + "column": 9 + }, + "end": { + "line": 19, + "column": 16 + } + } + }, + "range": [ + 320, + 332 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 335, + 340 + ], + "loc": { + "start": { + "line": 19, + "column": 19 + }, + "end": { + "line": 19, + "column": 24 + } + } + }, + "range": [ + 320, + 340 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 24 + } + } + }, + "range": [ + 320, + 341 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 25 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 346, + 350 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawResources", + "range": [ + 351, + 364 + ], + "loc": { + "start": { + "line": 20, + "column": 9 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + "range": [ + 346, + 364 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + "right": { + "type": "Identifier", + "name": "rawResources", + "range": [ + 367, + 379 + ], + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 20, + "column": 37 + } + } + }, + "range": [ + 346, + 379 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 37 + } + } + }, + "range": [ + 346, + 380 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 38 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 385, + 389 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identifier", + "range": [ + 390, + 401 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 20 + } + } + }, + "range": [ + 385, + 401 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 20 + } + } + }, + "right": { + "type": "Identifier", + "name": "identifier", + "range": [ + 404, + 414 + ], + "loc": { + "start": { + "line": 21, + "column": 23 + }, + "end": { + "line": 21, + "column": 33 + } + } + }, + "range": [ + 385, + 414 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 33 + } + } + }, + "range": [ + 385, + 415 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 34 + } + } + } + ], + "range": [ + 314, + 419 + ], + "loc": { + "start": { + "line": 18, + "column": 40 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 287, + 419 + ], + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 276, + 419 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} identifier\n * @param {Object} rawResources\n ", + "range": [ + 198, + 273 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} globalConfig\n * @returns {Instance[]}\n ", + "range": [ + 423, + 493 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "createVector", + "range": [ + 503, + 515 + ], + "loc": { + "start": { + "line": 28, + "column": 9 + }, + "end": { + "line": 28, + "column": 21 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "globalConfig", + "range": [ + 516, + 528 + ], + "loc": { + "start": { + "line": 28, + "column": 22 + }, + "end": { + "line": 28, + "column": 34 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "vector", + "range": [ + 540, + 546 + ], + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 14 + } + } + }, + "init": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 549, + 551 + ], + "loc": { + "start": { + "line": 29, + "column": 17 + }, + "end": { + "line": 29, + "column": 19 + } + } + }, + "range": [ + 540, + 551 + ], + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 19 + } + } + } + ], + "kind": "let", + "range": [ + 536, + 552 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 20 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "identifier", + "range": [ + 567, + 577 + ], + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 31, + "column": 23 + } + } + }, + "init": null, + "range": [ + 567, + 577 + ], + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 31, + "column": 23 + } + } + } + ], + "kind": "let", + "range": [ + 563, + 577 + ], + "loc": { + "start": { + "line": 31, + "column": 9 + }, + "end": { + "line": 31, + "column": 23 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "globalConfig", + "range": [ + 581, + 593 + ], + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservices", + "range": [ + 594, + 607 + ], + "loc": { + "start": { + "line": 31, + "column": 40 + }, + "end": { + "line": 31, + "column": 53 + } + } + }, + "range": [ + 581, + 607 + ], + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 53 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "globalConfig", + "range": [ + 622, + 634 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservices", + "range": [ + 635, + 648 + ], + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 37 + } + } + }, + "range": [ + 622, + 648 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 649, + 663 + ], + "loc": { + "start": { + "line": 32, + "column": 38 + }, + "end": { + "line": 32, + "column": 52 + } + } + }, + "range": [ + 622, + 663 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 52 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "identifier", + "range": [ + 664, + 674 + ], + "loc": { + "start": { + "line": 32, + "column": 53 + }, + "end": { + "line": 32, + "column": 63 + } + } + } + ], + "range": [ + 622, + 675 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 64 + } + } + }, + "prefix": true, + "range": [ + 621, + 675 + ], + "loc": { + "start": { + "line": 32, + "column": 10 + }, + "end": { + "line": 32, + "column": 64 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 687, + 696 + ], + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 17 + } + } + } + ], + "range": [ + 677, + 704 + ], + "loc": { + "start": { + "line": 32, + "column": 66 + }, + "end": { + "line": 34, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 617, + 704 + ], + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 34, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "microservice", + "range": [ + 716, + 728 + ], + "loc": { + "start": { + "line": 36, + "column": 10 + }, + "end": { + "line": 36, + "column": 22 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "globalConfig", + "range": [ + 731, + 743 + ], + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 36, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservices", + "range": [ + 744, + 757 + ], + "loc": { + "start": { + "line": 36, + "column": 38 + }, + "end": { + "line": 36, + "column": 51 + } + } + }, + "range": [ + 731, + 757 + ], + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 36, + "column": 51 + } + } + }, + "property": { + "type": "Identifier", + "name": "identifier", + "range": [ + 758, + 768 + ], + "loc": { + "start": { + "line": 36, + "column": 52 + }, + "end": { + "line": 36, + "column": 62 + } + } + }, + "range": [ + 731, + 769 + ], + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 36, + "column": 63 + } + } + }, + "range": [ + 716, + 769 + ], + "loc": { + "start": { + "line": 36, + "column": 10 + }, + "end": { + "line": 36, + "column": 63 + } + } + } + ], + "kind": "let", + "range": [ + 712, + 770 + ], + "loc": { + "start": { + "line": 36, + "column": 6 + }, + "end": { + "line": 36, + "column": 64 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "microserviceObject", + "range": [ + 782, + 800 + ], + "loc": { + "start": { + "line": 38, + "column": 10 + }, + "end": { + "line": 38, + "column": 28 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Instance", + "range": [ + 807, + 815 + ], + "loc": { + "start": { + "line": 38, + "column": 35 + }, + "end": { + "line": 38, + "column": 43 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "identifier", + "range": [ + 816, + 826 + ], + "loc": { + "start": { + "line": 38, + "column": 44 + }, + "end": { + "line": 38, + "column": 54 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "microservice", + "range": [ + 828, + 840 + ], + "loc": { + "start": { + "line": 38, + "column": 56 + }, + "end": { + "line": 38, + "column": 68 + } + } + }, + "property": { + "type": "Identifier", + "name": "resources", + "range": [ + 841, + 850 + ], + "loc": { + "start": { + "line": 38, + "column": 69 + }, + "end": { + "line": 38, + "column": 78 + } + } + }, + "range": [ + 828, + 850 + ], + "loc": { + "start": { + "line": 38, + "column": 56 + }, + "end": { + "line": 38, + "column": 78 + } + } + } + ], + "range": [ + 803, + 851 + ], + "loc": { + "start": { + "line": 38, + "column": 31 + }, + "end": { + "line": 38, + "column": 79 + } + } + }, + "range": [ + 782, + 851 + ], + "loc": { + "start": { + "line": 38, + "column": 10 + }, + "end": { + "line": 38, + "column": 79 + } + } + } + ], + "kind": "let", + "range": [ + 778, + 852 + ], + "loc": { + "start": { + "line": 38, + "column": 6 + }, + "end": { + "line": 38, + "column": 80 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "microserviceObject", + "range": [ + 859, + 877 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "isRoot", + "range": [ + 878, + 884 + ], + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 39, + "column": 31 + } + } + }, + "range": [ + 859, + 884 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 31 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "microservice", + "range": [ + 887, + 899 + ], + "loc": { + "start": { + "line": 39, + "column": 34 + }, + "end": { + "line": 39, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "isRoot", + "range": [ + 900, + 906 + ], + "loc": { + "start": { + "line": 39, + "column": 47 + }, + "end": { + "line": 39, + "column": 53 + } + } + }, + "range": [ + 887, + 906 + ], + "loc": { + "start": { + "line": 39, + "column": 34 + }, + "end": { + "line": 39, + "column": 53 + } + } + }, + "range": [ + 859, + 906 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 53 + } + } + }, + "range": [ + 859, + 907 + ], + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 54 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "vector", + "range": [ + 915, + 921 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "push", + "range": [ + 922, + 926 + ], + "loc": { + "start": { + "line": 41, + "column": 13 + }, + "end": { + "line": 41, + "column": 17 + } + } + }, + "range": [ + 915, + 926 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "microserviceObject", + "range": [ + 927, + 945 + ], + "loc": { + "start": { + "line": 41, + "column": 18 + }, + "end": { + "line": 41, + "column": 36 + } + } + } + ], + "range": [ + 915, + 946 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 37 + } + } + }, + "range": [ + 915, + 947 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 38 + } + } + } + ], + "range": [ + 609, + 953 + ], + "loc": { + "start": { + "line": 31, + "column": 55 + }, + "end": { + "line": 42, + "column": 5 + } + } + }, + "each": false, + "range": [ + 558, + 953 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 42, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "vector", + "range": [ + 966, + 972 + ], + "loc": { + "start": { + "line": 44, + "column": 11 + }, + "end": { + "line": 44, + "column": 17 + } + } + }, + "range": [ + 959, + 973 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 18 + } + } + } + ], + "range": [ + 530, + 977 + ], + "loc": { + "start": { + "line": 28, + "column": 36 + }, + "end": { + "line": 45, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 515, + 977 + ], + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 45, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 496, + 977 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 45, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} globalConfig\n * @returns {Instance[]}\n ", + "range": [ + 423, + 493 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} objectInstance\n * @return {Object}\n ", + "range": [ + 981, + 1048 + ], + "loc": { + "start": { + "line": 47, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "inject", + "range": [ + 1051, + 1057 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 51, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "objectInstance", + "range": [ + 1058, + 1072 + ], + "loc": { + "start": { + "line": 51, + "column": 9 + }, + "end": { + "line": 51, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "Identifier", + "name": "objectInstance", + "range": [ + 1086, + 1100 + ], + "loc": { + "start": { + "line": 52, + "column": 10 + }, + "end": { + "line": 52, + "column": 24 + } + } + }, + "right": { + "type": "Identifier", + "name": "Injectable", + "range": [ + 1112, + 1122 + ], + "loc": { + "start": { + "line": 52, + "column": 36 + }, + "end": { + "line": 52, + "column": 46 + } + } + }, + "range": [ + 1086, + 1122 + ], + "loc": { + "start": { + "line": 52, + "column": 10 + }, + "end": { + "line": 52, + "column": 46 + } + } + }, + "prefix": true, + "range": [ + 1084, + 1123 + ], + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 47 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 1143, + 1147 + ], + "loc": { + "start": { + "line": 53, + "column": 16 + }, + "end": { + "line": 53, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 1148, + 1157 + ], + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 30 + } + } + }, + "range": [ + 1143, + 1157 + ], + "loc": { + "start": { + "line": 53, + "column": 16 + }, + "end": { + "line": 53, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 1158, + 1182 + ], + "loc": { + "start": { + "line": 53, + "column": 31 + }, + "end": { + "line": 53, + "column": 55 + } + } + }, + "range": [ + 1143, + 1182 + ], + "loc": { + "start": { + "line": 53, + "column": 16 + }, + "end": { + "line": 53, + "column": 55 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "objectInstance", + "range": [ + 1183, + 1197 + ], + "loc": { + "start": { + "line": 53, + "column": 56 + }, + "end": { + "line": 53, + "column": 70 + } + } + }, + { + "type": "Literal", + "value": "deep-kernel.Injectable", + "raw": "'deep-kernel.Injectable'", + "range": [ + 1199, + 1223 + ], + "loc": { + "start": { + "line": 53, + "column": 72 + }, + "end": { + "line": 53, + "column": 96 + } + } + } + ], + "range": [ + 1139, + 1224 + ], + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 97 + } + } + }, + "range": [ + 1133, + 1225 + ], + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 98 + } + } + } + ], + "range": [ + 1125, + 1231 + ], + "loc": { + "start": { + "line": 52, + "column": 49 + }, + "end": { + "line": 54, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1080, + 1231 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 54, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "objectInstance", + "range": [ + 1237, + 1251 + ], + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 56, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1252, + 1264 + ], + "loc": { + "start": { + "line": 56, + "column": 19 + }, + "end": { + "line": 56, + "column": 31 + } + } + }, + "range": [ + 1237, + 1264 + ], + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 56, + "column": 31 + } + } + }, + "right": { + "type": "ThisExpression", + "range": [ + 1267, + 1271 + ], + "loc": { + "start": { + "line": 56, + "column": 34 + }, + "end": { + "line": 56, + "column": 38 + } + } + }, + "range": [ + 1237, + 1271 + ], + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 56, + "column": 38 + } + } + }, + "range": [ + 1237, + 1272 + ], + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 56, + "column": 39 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "objectInstance", + "range": [ + 1285, + 1299 + ], + "loc": { + "start": { + "line": 58, + "column": 11 + }, + "end": { + "line": 58, + "column": 25 + } + } + }, + "range": [ + 1278, + 1300 + ], + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 26 + } + } + } + ], + "range": [ + 1074, + 1304 + ], + "loc": { + "start": { + "line": 51, + "column": 25 + }, + "end": { + "line": 59, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1057, + 1304 + ], + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 59, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1051, + 1304 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 59, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} objectInstance\n * @return {Object}\n ", + "range": [ + 981, + 1048 + ], + "loc": { + "start": { + "line": 47, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1308, + 1340 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 63, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "toString", + "range": [ + 1343, + 1351 + ], + "loc": { + "start": { + "line": 64, + "column": 2 + }, + "end": { + "line": 64, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1367, + 1371 + ], + "loc": { + "start": { + "line": 65, + "column": 11 + }, + "end": { + "line": 65, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identifier", + "range": [ + 1372, + 1383 + ], + "loc": { + "start": { + "line": 65, + "column": 16 + }, + "end": { + "line": 65, + "column": 27 + } + } + }, + "range": [ + 1367, + 1383 + ], + "loc": { + "start": { + "line": 65, + "column": 11 + }, + "end": { + "line": 65, + "column": 27 + } + } + }, + "range": [ + 1360, + 1384 + ], + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 65, + "column": 28 + } + } + } + ], + "range": [ + 1354, + 1388 + ], + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 66, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1351, + 1388 + ], + "loc": { + "start": { + "line": 64, + "column": 10 + }, + "end": { + "line": 66, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1343, + 1388 + ], + "loc": { + "start": { + "line": 64, + "column": 2 + }, + "end": { + "line": 66, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1308, + 1340 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 63, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1392, + 1424 + ], + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "rawResources", + "range": [ + 1431, + 1443 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1459, + 1463 + ], + "loc": { + "start": { + "line": 72, + "column": 11 + }, + "end": { + "line": 72, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawResources", + "range": [ + 1464, + 1477 + ], + "loc": { + "start": { + "line": 72, + "column": 16 + }, + "end": { + "line": 72, + "column": 29 + } + } + }, + "range": [ + 1459, + 1477 + ], + "loc": { + "start": { + "line": 72, + "column": 11 + }, + "end": { + "line": 72, + "column": 29 + } + } + }, + "range": [ + 1452, + 1478 + ], + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 72, + "column": 30 + } + } + } + ], + "range": [ + 1446, + 1482 + ], + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 73, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1443, + 1482 + ], + "loc": { + "start": { + "line": 71, + "column": 18 + }, + "end": { + "line": 73, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1427, + 1482 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 73, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1392, + 1424 + ], + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1486, + 1518 + ], + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 77, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "identifier", + "range": [ + 1525, + 1535 + ], + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 78, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1551, + 1555 + ], + "loc": { + "start": { + "line": 79, + "column": 11 + }, + "end": { + "line": 79, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identifier", + "range": [ + 1556, + 1567 + ], + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 79, + "column": 27 + } + } + }, + "range": [ + 1551, + 1567 + ], + "loc": { + "start": { + "line": 79, + "column": 11 + }, + "end": { + "line": 79, + "column": 27 + } + } + }, + "range": [ + 1544, + 1568 + ], + "loc": { + "start": { + "line": 79, + "column": 4 + }, + "end": { + "line": 79, + "column": 28 + } + } + } + ], + "range": [ + 1538, + 1572 + ], + "loc": { + "start": { + "line": 78, + "column": 19 + }, + "end": { + "line": 80, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1535, + 1572 + ], + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 80, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1521, + 1572 + ], + "loc": { + "start": { + "line": 78, + "column": 2 + }, + "end": { + "line": 80, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1486, + 1518 + ], + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 77, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Boolean} state\n ", + "range": [ + 1576, + 1613 + ], + "loc": { + "start": { + "line": 82, + "column": 2 + }, + "end": { + "line": 84, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "isRoot", + "range": [ + 1620, + 1626 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "state", + "range": [ + 1627, + 1632 + ], + "loc": { + "start": { + "line": 85, + "column": 13 + }, + "end": { + "line": 85, + "column": 18 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1640, + 1644 + ], + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_isRoot", + "range": [ + 1645, + 1652 + ], + "loc": { + "start": { + "line": 86, + "column": 9 + }, + "end": { + "line": 86, + "column": 16 + } + } + }, + "range": [ + 1640, + 1652 + ], + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "state", + "range": [ + 1655, + 1660 + ], + "loc": { + "start": { + "line": 86, + "column": 19 + }, + "end": { + "line": 86, + "column": 24 + } + } + }, + "range": [ + 1640, + 1660 + ], + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 24 + } + } + }, + "range": [ + 1640, + 1661 + ], + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 25 + } + } + } + ], + "range": [ + 1634, + 1665 + ], + "loc": { + "start": { + "line": 85, + "column": 20 + }, + "end": { + "line": 87, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1626, + 1665 + ], + "loc": { + "start": { + "line": 85, + "column": 12 + }, + "end": { + "line": 87, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 1616, + 1665 + ], + "loc": { + "start": { + "line": 85, + "column": 2 + }, + "end": { + "line": 87, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Boolean} state\n ", + "range": [ + 1576, + 1613 + ], + "loc": { + "start": { + "line": 82, + "column": 2 + }, + "end": { + "line": 84, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 1669, + 1702 + ], + "loc": { + "start": { + "line": 89, + "column": 2 + }, + "end": { + "line": 91, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "isRoot", + "range": [ + 1709, + 1715 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1731, + 1735 + ], + "loc": { + "start": { + "line": 93, + "column": 11 + }, + "end": { + "line": 93, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_isRoot", + "range": [ + 1736, + 1743 + ], + "loc": { + "start": { + "line": 93, + "column": 16 + }, + "end": { + "line": 93, + "column": 23 + } + } + }, + "range": [ + 1731, + 1743 + ], + "loc": { + "start": { + "line": 93, + "column": 11 + }, + "end": { + "line": 93, + "column": 23 + } + } + }, + "range": [ + 1724, + 1744 + ], + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 93, + "column": 24 + } + } + } + ], + "range": [ + 1718, + 1748 + ], + "loc": { + "start": { + "line": 92, + "column": 15 + }, + "end": { + "line": 94, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1715, + 1748 + ], + "loc": { + "start": { + "line": 92, + "column": 12 + }, + "end": { + "line": 94, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1705, + 1748 + ], + "loc": { + "start": { + "line": 92, + "column": 2 + }, + "end": { + "line": 94, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 1669, + 1702 + ], + "loc": { + "start": { + "line": 89, + "column": 2 + }, + "end": { + "line": 91, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 194, + 1750 + ], + "loc": { + "start": { + "line": 13, + "column": 22 + }, + "end": { + "line": 95, + "column": 1 + } + } + }, + "range": [ + 179, + 1750 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 95, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Microservice instance class\n ", + "range": [ + 133, + 171 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 172, + 1750 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 95, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Microservice instance class\n ", + "range": [ + 133, + 171 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 1750 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 95, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Microservice instance class\n ", + "range": [ + 133, + 171 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} identifier\n * @param {Object} rawResources\n ", + "range": [ + 198, + 273 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} globalConfig\n * @returns {Instance[]}\n ", + "range": [ + 423, + 493 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} objectInstance\n * @return {Object}\n ", + "range": [ + 981, + 1048 + ], + "loc": { + "start": { + "line": 47, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1308, + 1340 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 63, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1392, + 1424 + ], + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1486, + 1518 + ], + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 77, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Boolean} state\n ", + "range": [ + 1576, + 1613 + ], + "loc": { + "start": { + "line": 82, + "column": 2 + }, + "end": { + "line": 84, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 1669, + 1702 + ], + "loc": { + "start": { + "line": 89, + "column": 2 + }, + "end": { + "line": 91, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-kernel/ast/source/bootstrap.js.json b/docs-api/deep-kernel/ast/source/bootstrap.js.json new file mode 100644 index 00000000..6be7104c --- /dev/null +++ b/docs-api/deep-kernel/ast/source/bootstrap.js.json @@ -0,0 +1,332 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 89, + 101 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + "range": [ + 89, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 112, + 118 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 14 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 112, + 118 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 14 + } + } + }, + "range": [ + 112, + 118 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 14 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Kernel", + "raw": "'./Kernel'", + "range": [ + 125, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 31 + } + } + }, + "range": [ + 104, + 136 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 32 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "exports", + "range": [ + 142, + 149 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + "init": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "module", + "range": [ + 152, + 158 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exports", + "range": [ + 159, + 166 + ], + "loc": { + "start": { + "line": 11, + "column": 21 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "range": [ + 152, + 166 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "right": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 169, + 175 + ], + "loc": { + "start": { + "line": 11, + "column": 31 + }, + "end": { + "line": 11, + "column": 37 + } + } + }, + "range": [ + 152, + 175 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 37 + } + } + }, + "range": [ + 142, + 175 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 37 + } + } + } + ], + "kind": "let", + "range": [ + 138, + 176 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 38 + } + } + } + ], + "sourceType": "module", + "range": [ + 89, + 176 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 11, + "column": 38 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-kernel/badge.svg b/docs-api/deep-kernel/badge.svg new file mode 100644 index 00000000..9ba96831 --- /dev/null +++ b/docs-api/deep-kernel/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 94% + 94% + + diff --git a/docs-api/deep-kernel/class/lib/ContainerAware.js~ContainerAware.html b/docs-api/deep-kernel/class/lib/ContainerAware.js~ContainerAware.html new file mode 100644 index 00000000..e67310fd --- /dev/null +++ b/docs-api/deep-kernel/class/lib/ContainerAware.js~ContainerAware.html @@ -0,0 +1,899 @@ + + + + + + ContainerAware | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {ContainerAware} from 'deep-kernel/lib/ContainerAware.js'
    + public + class + + + + | source +
    + +
    +

    ContainerAware

    + + + + + +

    Extends:

    lib/Microservice/Injectable~MicroserviceInjectable → ContainerAware
    + + + + + + + + + +

    Container aware instance

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + set + + + +
    +

    + container(container: DI): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + container: DI: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + localBackend: Boolean: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + localBackend(state: Boolean): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + name: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + service: Object: * +

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

    Method Summary

    + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + bind(microservice: Instance): Injectable +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + boot(kernel: Kernel, callback: Function) +

    +
    +
    + + +
    Booting a certain service
    +
    +
    + + +
    + public + + + + + +
    +

    + get(args: Array): * +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

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

    Public Members

    + +
    +

    + public + + set + + + container(container: DI): * + + + + source + +

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

    + public + + get + + + container: DI: * + + + + source + +

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

    Return:

    + + + + + +
    DI
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + localBackend: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + localBackend(state: Boolean): * + + + + source + +

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

    + public + + get + + + name: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + service: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + bind(microservice: Instance): Injectable + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    microserviceInstance
    +
    +
    + +
    +

    Return:

    + + + + + +
    Injectable
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + boot(kernel: Kernel, callback: Function) + + + + source + +

    + + + + +

    Booting a certain service

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    kernelKernel
    callbackFunction
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    + public + + + + + get(args: Array): * + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/class/lib/Exception/Exception.js~Exception.html b/docs-api/deep-kernel/class/lib/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..853f8bb3 --- /dev/null +++ b/docs-api/deep-kernel/class/lib/Exception/Exception.js~Exception.html @@ -0,0 +1,199 @@ + + + + + + Exception | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Exception} from 'deep-kernel/lib/Exception/Exception.js'
    + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    deep-core~Core.Exception.Exception → Exception
    + + + + + + + + + +

    Thrown when any kernel exception occurs

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/class/lib/Exception/MissingMicroserviceException.js~MissingMicroserviceException.html b/docs-api/deep-kernel/class/lib/Exception/MissingMicroserviceException.js~MissingMicroserviceException.html new file mode 100644 index 00000000..7d7b9bd6 --- /dev/null +++ b/docs-api/deep-kernel/class/lib/Exception/MissingMicroserviceException.js~MissingMicroserviceException.html @@ -0,0 +1,199 @@ + + + + + + MissingMicroserviceException | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {MissingMicroserviceException} from 'deep-kernel/lib/Exception/MissingMicroserviceException.js'
    + public + class + + + + | source +
    + +
    +

    MissingMicroserviceException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → MissingMicroserviceException
    + + + + + + + + + +

    Thrown when missing requested microservice

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(microserviceIdentifier: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(microserviceIdentifier: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    microserviceIdentifierString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/class/lib/Kernel.js~Kernel.html b/docs-api/deep-kernel/class/lib/Kernel.js~Kernel.html new file mode 100644 index 00000000..127f5ac4 --- /dev/null +++ b/docs-api/deep-kernel/class/lib/Kernel.js~Kernel.html @@ -0,0 +1,2181 @@ + + + + + + Kernel | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Kernel} from 'deep-kernel/lib/Kernel.js'
    + public + class + + + + | source +
    + +
    +

    Kernel

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

    Deep application kernel

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

    Static Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + +
    +

    + ALL_CONTEXTS: Array: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + CONFIG: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + CONTEXT: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + KERNEL: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    +
    + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(deepServices: Array, context: String) +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + buildId: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + config: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + container: DI: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + context: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + env: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + isBackend: Boolean: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + isFrontend: Boolean: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + isLoaded: Boolean: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + isLocalhost: Boolean: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + microservices: Microservice[]: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + services: Array: * +

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

    Method Summary

    + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + get(args: Array): * +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + load(globalConfig: Object, callback: Function): * +

    +
    +
    + + +
    Loads all Kernel dependencies
    +
    +
    + + +
    + public + + + + + +
    +

    + loadFromFile(jsonFile: String, callback: Function): Kernel +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + microservice(identifier: String): Microservice +

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

    Static Public Members

    + +
    +

    + public + static + get + + + ALL_CONTEXTS: Array: * + + + + source + +

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

    Return:

    + + + + + +
    Array
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + BACKEND_CONTEXT: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + CONFIG: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + CONTEXT: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + ContainerAware: ContainerAware: * + + + + source + +

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

    Return:

    + + + + + +
    ContainerAware
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + FRONTEND_BOOTSTRAP_VECTOR: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + FRONTEND_CONTEXT: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + KERNEL: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + MICROSERVICES: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + MicroserviceInjectable: MicroserviceInjectable: * + + + + source + +

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

    Return:

    + + + + + +
    MicroserviceInjectable
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +

    Public Constructors

    + +
    +

    + public + + + + + constructor(deepServices: Array, context: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    deepServicesArray
    contextString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + buildId: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + config: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + container: DI: * + + + + source + +

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

    Return:

    + + + + + +
    DI
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + context: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + env: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + isBackend: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + isFrontend: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + isLoaded: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + isLocalhost: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + microservices: Microservice[]: * + + + + source + +

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

    Return:

    + + + + + +
    Microservice[]
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + services: Array: * + + + + source + +

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

    Return:

    + + + + + +
    Array
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + get(args: Array): * + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + load(globalConfig: Object, callback: Function): * + + + + source + +

    + + + + +

    Loads all Kernel dependencies

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    globalConfigObject
    callbackFunction
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + loadFromFile(jsonFile: String, callback: Function): Kernel + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    jsonFileString
    callbackFunction
    +
    +
    + +
    +

    Return:

    + + + + + +
    Kernel
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + microservice(identifier: String): Microservice + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    identifierString
    +
    +
    + +
    +

    Return:

    + + + + + +
    Microservice
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/class/lib/Microservice/Exception/MissingWorkingMicroserviceException.js~MissingWorkingMicroserviceException.html b/docs-api/deep-kernel/class/lib/Microservice/Exception/MissingWorkingMicroserviceException.js~MissingWorkingMicroserviceException.html new file mode 100644 index 00000000..e89be0c9 --- /dev/null +++ b/docs-api/deep-kernel/class/lib/Microservice/Exception/MissingWorkingMicroserviceException.js~MissingWorkingMicroserviceException.html @@ -0,0 +1,183 @@ + + + + + + MissingWorkingMicroserviceException | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {MissingWorkingMicroserviceException} from 'deep-kernel/lib/Microservice/Exception/MissingWorkingMicroserviceException.js'
    + public + class + + + + | source +
    + +
    +

    MissingWorkingMicroserviceException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → MissingWorkingMicroserviceException
    + + + + + + + + + +

    Thrown when no working microservice set

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

    + + + + + + + + +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/class/lib/Microservice/Injectable.js~Injectable.html b/docs-api/deep-kernel/class/lib/Microservice/Injectable.js~Injectable.html new file mode 100644 index 00000000..a91c4964 --- /dev/null +++ b/docs-api/deep-kernel/class/lib/Microservice/Injectable.js~Injectable.html @@ -0,0 +1,430 @@ + + + + + + Injectable | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    Injectable

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

    Microservice injectable object

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Member Summary

    + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + microservice: Instance: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + microservice(instance: Instance): * +

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

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + bind(microservice: Instance): Injectable +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

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

    Public Members

    + +
    +

    + public + + get + + + microservice: Instance: * + + + + source + +

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

    Return:

    + + + + + +
    Instance
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + microservice(instance: Instance): * + + + + source + +

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

    Public Methods

    + +
    +

    + public + + + + + bind(microservice: Instance): Injectable + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    microserviceInstance
    +
    +
    + +
    +

    Return:

    + + + + + +
    Injectable
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/class/lib/Microservice/Instance.js~Instance.html b/docs-api/deep-kernel/class/lib/Microservice/Instance.js~Instance.html new file mode 100644 index 00000000..deb11b01 --- /dev/null +++ b/docs-api/deep-kernel/class/lib/Microservice/Instance.js~Instance.html @@ -0,0 +1,776 @@ + + + + + + Instance | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    Instance

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

    Microservice instance class

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

    Static Method Summary

    + + + + + + + + + +
    Static Public Methods
    + public + static + + + + +
    +

    + createVector(globalConfig: Object): Instance[] +

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(identifier: String, rawResources: Object) +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + identifier: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + isRoot(state: Boolean): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + isRoot: Boolean: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + rawResources: Object: * +

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

    Method Summary

    + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + inject(objectInstance: Object): Object +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + toString(): String +

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

    Static Public Methods

    + +
    +

    + public + static + + + + createVector(globalConfig: Object): Instance[] + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    globalConfigObject
    +
    +
    + +
    +

    Return:

    + + + + + +
    Instance[]
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Constructors

    + +
    +

    + public + + + + + constructor(identifier: String, rawResources: Object) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    identifierString
    rawResourcesObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + identifier: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + isRoot(state: Boolean): * + + + + source + +

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

    + public + + get + + + isRoot: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + rawResources: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + inject(objectInstance: Object): Object + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    objectInstanceObject
    +
    +
    + +
    +

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + toString(): String + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/coverage.json b/docs-api/deep-kernel/coverage.json new file mode 100644 index 00000000..82d3da89 --- /dev/null +++ b/docs-api/deep-kernel/coverage.json @@ -0,0 +1,48 @@ +{ + "coverage": "94.82%", + "expectCount": 58, + "actualCount": 55, + "files": { + "lib/Kernel.js": { + "expectCount": 27, + "actualCount": 27, + "undocumentLines": [] + }, + "lib/ContainerAware.js": { + "expectCount": 11, + "actualCount": 10, + "undocumentLines": [ + 14 + ] + }, + "lib/Exception/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Microservice/Injectable.js": { + "expectCount": 5, + "actualCount": 4, + "undocumentLines": [ + 15 + ] + }, + "lib/Microservice/Instance.js": { + "expectCount": 9, + "actualCount": 9, + "undocumentLines": [] + }, + "lib/Exception/MissingMicroserviceException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Microservice/Exception/MissingWorkingMicroserviceException.js": { + "expectCount": 2, + "actualCount": 1, + "undocumentLines": [ + 13 + ] + } + } +} \ No newline at end of file diff --git a/docs-api/deep-kernel/css/prettify-tomorrow.css b/docs-api/deep-kernel/css/prettify-tomorrow.css new file mode 100644 index 00000000..b6f92a78 --- /dev/null +++ b/docs-api/deep-kernel/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs-api/deep-kernel/css/style.css b/docs-api/deep-kernel/css/style.css new file mode 100644 index 00000000..4dc99a1b --- /dev/null +++ b/docs-api/deep-kernel/css/style.css @@ -0,0 +1,862 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Roboto', sans-serif; + overflow: auto; + font-size: 14px; + /*color: #4d4e53;*/ + color: rgba(0, 0, 0, .68); + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + background-color: #E2E2E2; + padding: 4px; + font-weight: 300; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 19px; +} + +p > code { + background-color: #f5f5f5; + border-radius: 3px; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0 4px; + border-radius: 3px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: white; + top: 0; + border-bottom: solid 1px #E02130; +} +.layout-container > header > a{ + margin: 0 5px; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid rgba(0, 0, 0, 0.1); +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation .nav-dir-path { + margin-top: 0.7em; + margin-bottom: 0.25em; + font-size: 0.8em; + color: #aaa; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #999; + color: white; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +pre.source-code { + background: #f5f5f5; + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150); +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #999; + color: white; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} + +table.test-summary thead { + background: #999; + color: white; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-describe .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; +} + +table.test-summary tr.test-describe .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-describe .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} + +.inner-link-active { + background: rgb(255, 255, 150); +} + +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + +/* coverage badge */ +.esdoc-coverage { + display: inline-block; + height: 20px; + vertical-align: top; +} + +h1 .esdoc-coverage { + position: relative; + top: -4px; +} + +.esdoc-coverage-wrap { + color: white; + font-size: 12px; + font-weight: 500; +} + +.esdoc-coverage-label { + padding: 3px 4px 3px 6px; + background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%); + border-radius: 4px 0 0 4px; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-ratio { + padding: 3px 6px 3px 4px; + border-radius: 0 4px 4px 0; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-low { + background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%); +} + +.esdoc-coverage-middle { + background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%); +} + +.esdoc-coverage-high { + background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%); +} + +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; + background-color: transparent; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} diff --git a/docs-api/deep-kernel/dump.json b/docs-api/deep-kernel/dump.json new file mode 100644 index 00000000..2389793d --- /dev/null +++ b/docs-api/deep-kernel/dump.json @@ -0,0 +1,2866 @@ +[ + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/ContainerAware.js", + "memberof": null, + "longname": "lib/ContainerAware.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport {Injectable as MicroserviceInjectable} from './Microservice/Injectable';\nimport {Kernel} from './Kernel';\n\n/**\n * Container aware instance\n */\nexport class ContainerAware extends MicroserviceInjectable {\n constructor() {\n super();\n\n this._container = null;\n this._localBackend = false;\n }\n\n /**\n * @returns {Boolean}\n */\n get localBackend() {\n return this._localBackend;\n }\n\n /**\n * @param {Boolean} state\n */\n set localBackend(state) {\n this._localBackend = state;\n }\n\n /**\n * @returns {String}\n */\n get name() {\n return this.constructor.name.toLowerCase();\n }\n\n /**\n * @returns {Object}\n */\n get service() {\n return this;\n }\n\n /**\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n */\n boot(kernel, callback) {\n // @todo: override in child service\n callback();\n }\n\n /**\n * @param {Instance} microservice\n * @returns {Injectable}\n */\n bind(microservice) {\n // @todo: find more smart way of doing this...\n if (typeof microservice === 'string') {\n microservice = this._container.get(Kernel.KERNEL).microservice(microservice);\n }\n\n return super.bind(microservice);\n }\n\n /**\n * @param {String} object\n * @returns {String}\n * @private\n */\n _resolvePath(object) {\n if (typeof object === 'string' && object.indexOf('@') === 0) {\n let parts = object.match(/^@\\s*([^:]+)\\s*:\\s*([^\\s]+)\\s*$/);\n\n if (parts.length === 3) {\n this.bind(parts[1]);\n\n return parts[2];\n }\n }\n\n return object;\n }\n\n /**\n * @param {DI} container\n */\n set container(container) {\n this._container = container;\n }\n\n /**\n * @returns {DI}\n */\n get container() {\n return this._container;\n }\n\n /**\n * @param {Array} args\n * @returns {*}\n */\n get(...args) {\n return this._container.get(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "ContainerAware", + "memberof": "lib/ContainerAware.js", + "longname": "lib/ContainerAware.js~ContainerAware", + "access": null, + "export": true, + "importPath": "deep-kernel/lib/ContainerAware.js", + "importStyle": "{ContainerAware}", + "description": "Container aware instance", + "lineNumber": 13, + "interface": false, + "extends": [ + "lib/Microservice/Injectable~MicroserviceInjectable" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#constructor", + "access": null, + "description": null, + "lineNumber": 14, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_container", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#_container", + "access": null, + "description": null, + "lineNumber": 17, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_localBackend", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#_localBackend", + "access": null, + "description": null, + "lineNumber": 18, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "localBackend", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#localBackend", + "access": null, + "description": null, + "lineNumber": 24, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "localBackend", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#localBackend", + "access": null, + "description": null, + "lineNumber": 31, + "params": [ + { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "optional": false, + "name": "state", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_localBackend", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#_localBackend", + "access": null, + "description": null, + "lineNumber": 32, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "name", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#name", + "access": null, + "description": null, + "lineNumber": 38, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "service", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#service", + "access": null, + "description": null, + "lineNumber": 45, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "boot", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#boot", + "access": null, + "description": "Booting a certain service", + "lineNumber": 55, + "params": [ + { + "nullable": null, + "types": [ + "Kernel" + ], + "spread": false, + "optional": false, + "name": "kernel", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "bind", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#bind", + "access": null, + "description": null, + "lineNumber": 64, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Injectable}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Instance" + ], + "spread": false, + "optional": false, + "name": "microservice", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Injectable" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_resolvePath", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#_resolvePath", + "access": "private", + "description": null, + "lineNumber": 78, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "object", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "container", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#container", + "access": null, + "description": null, + "lineNumber": 95, + "params": [ + { + "nullable": null, + "types": [ + "DI" + ], + "spread": false, + "optional": false, + "name": "container", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_container", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#_container", + "access": null, + "description": null, + "lineNumber": 96, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "container", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#container", + "access": null, + "description": null, + "lineNumber": 102, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{DI}" + } + ], + "return": { + "nullable": null, + "types": [ + "DI" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "get", + "memberof": "lib/ContainerAware.js~ContainerAware", + "longname": "lib/ContainerAware.js~ContainerAware#get", + "access": null, + "description": null, + "lineNumber": 110, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/Exception.js", + "memberof": null, + "longname": "lib/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\n\n/**\n * Thrown when any kernel exception occurs\n */\nexport class Exception extends Core.Exception.Exception {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Exception/Exception.js", + "longname": "lib/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-kernel/lib/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Thrown when any kernel exception occurs", + "lineNumber": 12, + "interface": false, + "extends": [ + "deep-core~Core.Exception.Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/Exception.js~Exception", + "longname": "lib/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/MissingMicroserviceException.js", + "memberof": null, + "longname": "lib/Exception/MissingMicroserviceException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when missing requested microservice\n */\nexport class MissingMicroserviceException extends Exception {\n /**\n * @param {String} microserviceIdentifier\n */\n constructor(microserviceIdentifier) {\n super(`Missing microservice ${microserviceIdentifier} in Kernel container`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "MissingMicroserviceException", + "memberof": "lib/Exception/MissingMicroserviceException.js", + "longname": "lib/Exception/MissingMicroserviceException.js~MissingMicroserviceException", + "access": null, + "export": true, + "importPath": "deep-kernel/lib/Exception/MissingMicroserviceException.js", + "importStyle": "{MissingMicroserviceException}", + "description": "Thrown when missing requested microservice", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/MissingMicroserviceException.js~MissingMicroserviceException", + "longname": "lib/Exception/MissingMicroserviceException.js~MissingMicroserviceException#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "microserviceIdentifier", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Kernel.js", + "memberof": null, + "longname": "lib/Kernel.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 5/26/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\nimport DI from 'deep-di';\nimport {Exception} from './Exception/Exception';\nimport {Instance as Microservice} from './Microservice/Instance';\nimport {MissingMicroserviceException} from './Exception/MissingMicroserviceException';\nimport {Injectable as MicroserviceInjectable} from './Microservice/Injectable';\nimport {ContainerAware} from './ContainerAware';\nimport FileSystem from 'fs';\nimport WaitUntil from 'wait-until';\n\n/**\n * Deep application kernel\n */\nexport class Kernel {\n /**\n * @param {Array} deepServices\n * @param {String} context\n */\n constructor(deepServices, context) {\n if (Kernel.ALL_CONTEXTS.indexOf(context) === -1) {\n throw new Exception(`Undefined context \"${context}\"`);\n }\n\n this._config = {};\n this._services = deepServices;\n this._context = context;\n this._env = null;\n this._container = new DI();\n this._isLoaded = false;\n }\n\n /**\n * @returns {Boolean}\n */\n get isLoaded() {\n return this._isLoaded;\n }\n\n /**\n * @param {String} identifier\n * @returns {Microservice}\n */\n microservice(identifier) {\n if (typeof identifier === 'undefined') {\n identifier = this._config.microserviceIdentifier;\n }\n\n for (let microserviceKey in this.microservices) {\n if (!this.microservices.hasOwnProperty(microserviceKey)) {\n continue;\n }\n\n let microservice = this.microservices[microserviceKey];\n\n if (microservice.identifier === identifier) {\n return microservice;\n }\n }\n\n throw new MissingMicroserviceException(identifier);\n }\n\n /**\n * @param {String} jsonFile\n * @param {Function} callback\n * @returns {Kernel}\n */\n loadFromFile(jsonFile, callback) {\n // @todo: remove AWS changes the way the things run\n // This is used because of AWS Lambda\n // context sharing after a cold start\n if (this._isLoaded) {\n callback(this);\n return this;\n }\n\n if (this.isBackend) {\n FileSystem.readFile(jsonFile, 'utf8', function(error, data) {\n if (error) {\n throw new Exception(`Failed to load kernel config from ${jsonFile} (${error})`);\n }\n\n this.load(JSON.parse(data), callback);\n }.bind(this));\n } else { // @todo: get rid of native code...\n var client = new XMLHttpRequest();\n\n client.open('GET', jsonFile);\n client.onreadystatechange = function(event) {\n if (client.readyState === 4) {\n if (client.status !== 200) {\n throw new Exception(`Failed to load kernel config from ${jsonFile}`);\n }\n\n this.load(JSON.parse(client.responseText), callback);\n }\n }.bind(this);\n\n client.send();\n }\n\n return this;\n }\n\n /**\n * Loads all Kernel dependencies\n *\n * @param {Object} globalConfig\n * @param {Function} callback\n */\n load(globalConfig, callback) {\n // @todo: remove AWS changes the way the things run\n // This is used because of AWS Lambda\n // context sharing after a cold start\n if (this._isLoaded) {\n callback(this);\n return this;\n }\n\n let originalCallback = callback;\n\n callback = function(kernel) {\n this._isLoaded = true;\n\n originalCallback(kernel);\n }.bind(this);\n\n this._config = globalConfig;\n\n this._buildContainer(callback);\n\n return this;\n }\n\n /**\n * @param {Array} args\n * @returns {*}\n */\n get(...args) {\n return this._container.get(...args);\n }\n\n /**\n * @returns {Array}\n */\n get services() {\n return this._services;\n }\n\n /**\n * @returns {DI}\n */\n get container() {\n return this._container;\n }\n\n /**\n * @returns {Boolean}\n */\n get isFrontend() {\n return this._context === Kernel.FRONTEND_CONTEXT;\n }\n\n /**\n * @returns {Boolean}\n */\n get isLocalhost() {\n return this.isFrontend\n && [\n 'localhost', '127.0.0.1',\n '0.0.0.0', '::1',\n ].indexOf(window.location.hostname) !== -1;\n }\n\n /**\n * @returns {Boolean}\n */\n get isBackend() {\n return this._context === Kernel.BACKEND_CONTEXT;\n }\n\n /**\n * @returns {String}\n */\n get buildId() {\n return this._config.deployId || '';\n }\n\n /**\n * @returns {String}\n */\n get context() {\n return this._context;\n }\n\n /**\n * @returns {String}\n */\n get env() {\n return this._env;\n }\n\n /**\n * @returns {Object}\n */\n get config() {\n // @todo - create a class DeepConfig or smth, that will hold global config and expose shortcuts to different options\n return this._config;\n }\n\n /**\n * @returns {Microservice[]}\n */\n get microservices() {\n return this._container.get(Kernel.MICROSERVICES);\n }\n\n /**\n * Loads all parameters and services into DI container\n *\n * @param {Function} callback\n */\n _buildContainer(callback) {\n this._env = this._config.env;\n\n this._container.addParameter(\n Kernel.KERNEL,\n this\n );\n\n this._container.addParameter(\n Kernel.CONTEXT,\n {\n environment: this._env,\n isFrontend: this.isFrontend,\n isBackend: this.isBackend,\n }\n );\n\n this._container.addParameter(\n Kernel.MICROSERVICES,\n Microservice.createVector(this._config)\n );\n\n this._container.addParameter(\n Kernel.CONFIG,\n this._config\n );\n\n let bootingServices = 0;\n\n for (let serviceKey in this._services) {\n if (!this._services.hasOwnProperty(serviceKey)) {\n continue;\n }\n\n let serviceInstance = new this._services[serviceKey]();\n\n if (!serviceInstance instanceof ContainerAware) {\n let serviceType = typeof serviceInstance;\n\n throw new Exception(`Service ${serviceType} must be Kernel.ContainerAware instance`);\n }\n\n bootingServices++;\n\n serviceInstance.container = this._container;\n serviceInstance.localBackend = Core.IS_DEV_SERVER;\n serviceInstance.boot(this, function() {\n bootingServices--;\n }.bind(this));\n\n this._container.addService(\n serviceInstance.name,\n serviceInstance.service\n );\n }\n\n WaitUntil()\n .interval(5)\n .times(999999) // @todo: get rid of magic here...\n .condition(function(cb) {\n process.nextTick(function() {\n cb(bootingServices <= 0);\n }.bind(this));\n }).done(function() {\n callback(this);\n }.bind(this));\n }\n\n /**\n * @returns {MicroserviceInjectable}\n */\n static get MicroserviceInjectable() {\n return MicroserviceInjectable;\n }\n\n /**\n * @returns {ContainerAware}\n */\n static get ContainerAware() {\n return ContainerAware;\n }\n\n /**\n * @returns {String}\n */\n static get FRONTEND_BOOTSTRAP_VECTOR() {\n return 'deep_frontend_bootstrap_vector';\n }\n\n /**\n * @returns {String}\n */\n static get CONFIG() {\n return 'deep_config';\n }\n\n /**\n * @returns {String}\n */\n static get KERNEL() {\n return 'deep_kernel';\n }\n\n /**\n * @returns {String}\n */\n static get CONTEXT() {\n return 'deep_context';\n }\n\n /**\n * @returns {String}\n */\n static get MICROSERVICES() {\n return 'deep_microservices';\n }\n\n /**\n * @returns {String}\n */\n static get FRONTEND_CONTEXT() {\n return 'frontend-ctx';\n }\n\n /**\n * @returns {String}\n */\n static get BACKEND_CONTEXT() {\n return 'backend-ctx';\n }\n\n /**\n * @returns {Array}\n */\n static get ALL_CONTEXTS() {\n return [\n Kernel.FRONTEND_CONTEXT,\n Kernel.BACKEND_CONTEXT,\n ];\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Kernel", + "memberof": "lib/Kernel.js", + "longname": "lib/Kernel.js~Kernel", + "access": null, + "export": true, + "importPath": "deep-kernel/lib/Kernel.js", + "importStyle": "{Kernel}", + "description": "Deep application kernel", + "lineNumber": 20, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#constructor", + "access": null, + "description": null, + "lineNumber": 25, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "deepServices", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "context", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_config", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#_config", + "access": null, + "description": null, + "lineNumber": 30, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_services", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#_services", + "access": null, + "description": null, + "lineNumber": 31, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_context", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#_context", + "access": null, + "description": null, + "lineNumber": 32, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_env", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#_env", + "access": null, + "description": null, + "lineNumber": 33, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_container", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#_container", + "access": null, + "description": null, + "lineNumber": 34, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_isLoaded", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#_isLoaded", + "access": null, + "description": null, + "lineNumber": 35, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "isLoaded", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#isLoaded", + "access": null, + "description": null, + "lineNumber": 41, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "microservice", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#microservice", + "access": null, + "description": null, + "lineNumber": 49, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Microservice}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "identifier", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Microservice" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "loadFromFile", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#loadFromFile", + "access": null, + "description": null, + "lineNumber": 74, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Kernel}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "jsonFile", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Kernel" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "load", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#load", + "access": null, + "description": "Loads all Kernel dependencies", + "lineNumber": 117, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "globalConfig", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_isLoaded", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#_isLoaded", + "access": null, + "description": null, + "lineNumber": 129, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_config", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#_config", + "access": null, + "description": null, + "lineNumber": 134, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "get", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#get", + "access": null, + "description": null, + "lineNumber": 145, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "services", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#services", + "access": null, + "description": null, + "lineNumber": 152, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Array}" + } + ], + "return": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "container", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#container", + "access": null, + "description": null, + "lineNumber": 159, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{DI}" + } + ], + "return": { + "nullable": null, + "types": [ + "DI" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "isFrontend", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#isFrontend", + "access": null, + "description": null, + "lineNumber": 166, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "isLocalhost", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#isLocalhost", + "access": null, + "description": null, + "lineNumber": 173, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "isBackend", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#isBackend", + "access": null, + "description": null, + "lineNumber": 184, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "buildId", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#buildId", + "access": null, + "description": null, + "lineNumber": 191, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "context", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#context", + "access": null, + "description": null, + "lineNumber": 198, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "env", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#env", + "access": null, + "description": null, + "lineNumber": 205, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "config", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#config", + "access": null, + "description": null, + "lineNumber": 212, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "microservices", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#microservices", + "access": null, + "description": null, + "lineNumber": 220, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Microservice[]}" + } + ], + "return": { + "nullable": null, + "types": [ + "Microservice[]" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_buildContainer", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#_buildContainer", + "access": null, + "description": "Loads all parameters and services into DI container", + "lineNumber": 229, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_env", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel#_env", + "access": null, + "description": null, + "lineNumber": 230, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "MicroserviceInjectable", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel.MicroserviceInjectable", + "access": null, + "description": null, + "lineNumber": 300, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{MicroserviceInjectable}" + } + ], + "return": { + "nullable": null, + "types": [ + "MicroserviceInjectable" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "ContainerAware", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel.ContainerAware", + "access": null, + "description": null, + "lineNumber": 307, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{ContainerAware}" + } + ], + "return": { + "nullable": null, + "types": [ + "ContainerAware" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "FRONTEND_BOOTSTRAP_VECTOR", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel.FRONTEND_BOOTSTRAP_VECTOR", + "access": null, + "description": null, + "lineNumber": 314, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "CONFIG", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel.CONFIG", + "access": null, + "description": null, + "lineNumber": 321, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "KERNEL", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel.KERNEL", + "access": null, + "description": null, + "lineNumber": 328, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "CONTEXT", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel.CONTEXT", + "access": null, + "description": null, + "lineNumber": 335, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "MICROSERVICES", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel.MICROSERVICES", + "access": null, + "description": null, + "lineNumber": 342, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "FRONTEND_CONTEXT", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel.FRONTEND_CONTEXT", + "access": null, + "description": null, + "lineNumber": 349, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "BACKEND_CONTEXT", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel.BACKEND_CONTEXT", + "access": null, + "description": null, + "lineNumber": 356, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "ALL_CONTEXTS", + "memberof": "lib/Kernel.js~Kernel", + "longname": "lib/Kernel.js~Kernel.ALL_CONTEXTS", + "access": null, + "description": null, + "lineNumber": 363, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Array}" + } + ], + "return": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Microservice/Exception/MissingWorkingMicroserviceException.js", + "memberof": null, + "longname": "lib/Microservice/Exception/MissingWorkingMicroserviceException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport {Exception} from '../../Exception/Exception';\n\n/**\n * Thrown when no working microservice set\n */\nexport class MissingWorkingMicroserviceException extends Exception {\n constructor() {\n super('Missing working microservice from Kernel.MicroserviceInjectable');\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "MissingWorkingMicroserviceException", + "memberof": "lib/Microservice/Exception/MissingWorkingMicroserviceException.js", + "longname": "lib/Microservice/Exception/MissingWorkingMicroserviceException.js~MissingWorkingMicroserviceException", + "access": null, + "export": true, + "importPath": "deep-kernel/lib/Microservice/Exception/MissingWorkingMicroserviceException.js", + "importStyle": "{MissingWorkingMicroserviceException}", + "description": "Thrown when no working microservice set", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Microservice/Exception/MissingWorkingMicroserviceException.js~MissingWorkingMicroserviceException", + "longname": "lib/Microservice/Exception/MissingWorkingMicroserviceException.js~MissingWorkingMicroserviceException#constructor", + "access": null, + "description": null, + "lineNumber": 13, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Microservice/Injectable.js", + "memberof": null, + "longname": "lib/Microservice/Injectable.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport {Instance} from './Instance';\nimport Core from 'deep-core';\nimport {MissingWorkingMicroserviceException} from './Exception/MissingWorkingMicroserviceException';\n\n/**\n * Microservice injectable object\n */\nexport class Injectable {\n constructor() {\n this._microservice = null;\n }\n\n /**\n * @param {Instance} microservice\n * @returns {Injectable}\n */\n bind(microservice) {\n this.microservice = microservice;\n\n return this;\n }\n\n /**\n * @returns {Instance}\n */\n get microservice() {\n if (this._microservice === null) {\n throw new MissingWorkingMicroserviceException();\n }\n\n return this._microservice;\n }\n\n /**\n * @param {Instance} instance\n */\n set microservice(instance) {\n if (!(instance instanceof Instance)) {\n throw new Core.Exception.InvalidArgumentException(microservice, 'Microservice');\n }\n\n this._microservice = instance;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Injectable", + "memberof": "lib/Microservice/Injectable.js", + "longname": "lib/Microservice/Injectable.js~Injectable", + "access": null, + "export": true, + "importPath": "deep-kernel/lib/Microservice/Injectable.js", + "importStyle": "{Injectable}", + "description": "Microservice injectable object", + "lineNumber": 14, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Microservice/Injectable.js~Injectable", + "longname": "lib/Microservice/Injectable.js~Injectable#constructor", + "access": null, + "description": null, + "lineNumber": 15, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_microservice", + "memberof": "lib/Microservice/Injectable.js~Injectable", + "longname": "lib/Microservice/Injectable.js~Injectable#_microservice", + "access": null, + "description": null, + "lineNumber": 16, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "bind", + "memberof": "lib/Microservice/Injectable.js~Injectable", + "longname": "lib/Microservice/Injectable.js~Injectable#bind", + "access": null, + "description": null, + "lineNumber": 23, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Injectable}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Instance" + ], + "spread": false, + "optional": false, + "name": "microservice", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Injectable" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "microservice", + "memberof": "lib/Microservice/Injectable.js~Injectable", + "longname": "lib/Microservice/Injectable.js~Injectable#microservice", + "access": null, + "description": null, + "lineNumber": 24, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "microservice", + "memberof": "lib/Microservice/Injectable.js~Injectable", + "longname": "lib/Microservice/Injectable.js~Injectable#microservice", + "access": null, + "description": null, + "lineNumber": 32, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Instance}" + } + ], + "return": { + "nullable": null, + "types": [ + "Instance" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "microservice", + "memberof": "lib/Microservice/Injectable.js~Injectable", + "longname": "lib/Microservice/Injectable.js~Injectable#microservice", + "access": null, + "description": null, + "lineNumber": 43, + "params": [ + { + "nullable": null, + "types": [ + "Instance" + ], + "spread": false, + "optional": false, + "name": "instance", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_microservice", + "memberof": "lib/Microservice/Injectable.js~Injectable", + "longname": "lib/Microservice/Injectable.js~Injectable#_microservice", + "access": null, + "description": null, + "lineNumber": 48, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Microservice/Instance.js", + "memberof": null, + "longname": "lib/Microservice/Instance.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\nimport {Injectable} from './Injectable';\n\n/**\n * Microservice instance class\n */\nexport class Instance {\n /**\n * @param {String} identifier\n * @param {Object} rawResources\n */\n constructor(identifier, rawResources) {\n this._isRoot = false;\n this._rawResources = rawResources;\n this._identifier = identifier;\n }\n\n /**\n * @param {Object} globalConfig\n * @returns {Instance[]}\n */\n static createVector(globalConfig) {\n let vector = [];\n\n for (let identifier in globalConfig.microservices) {\n if (!globalConfig.microservices.hasOwnProperty(identifier)) {\n continue;\n }\n\n let microservice = globalConfig.microservices[identifier];\n\n let microserviceObject = new Instance(identifier, microservice.resources);\n microserviceObject.isRoot = microservice.isRoot;\n\n vector.push(microserviceObject);\n }\n\n return vector;\n }\n\n /**\n * @param {Object} objectInstance\n * @return {Object}\n */\n inject(objectInstance) {\n if (!(objectInstance instanceof Injectable)) {\n throw new Core.Exception.InvalidArgumentException(objectInstance, 'deep-kernel.Injectable');\n }\n\n objectInstance.microservice = this;\n\n return objectInstance;\n }\n\n /**\n * @returns {String}\n */\n toString() {\n return this._identifier;\n }\n\n /**\n * @returns {Object}\n */\n get rawResources() {\n return this._rawResources;\n }\n\n /**\n * @returns {String}\n */\n get identifier() {\n return this._identifier;\n }\n\n /**\n * @param {Boolean} state\n */\n set isRoot(state) {\n this._isRoot = state;\n }\n\n /**\n * @returns {Boolean}\n */\n get isRoot() {\n return this._isRoot;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Instance", + "memberof": "lib/Microservice/Instance.js", + "longname": "lib/Microservice/Instance.js~Instance", + "access": null, + "export": true, + "importPath": "deep-kernel/lib/Microservice/Instance.js", + "importStyle": "{Instance}", + "description": "Microservice instance class", + "lineNumber": 13, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Microservice/Instance.js~Instance", + "longname": "lib/Microservice/Instance.js~Instance#constructor", + "access": null, + "description": null, + "lineNumber": 18, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "identifier", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "rawResources", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_isRoot", + "memberof": "lib/Microservice/Instance.js~Instance", + "longname": "lib/Microservice/Instance.js~Instance#_isRoot", + "access": null, + "description": null, + "lineNumber": 19, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_rawResources", + "memberof": "lib/Microservice/Instance.js~Instance", + "longname": "lib/Microservice/Instance.js~Instance#_rawResources", + "access": null, + "description": null, + "lineNumber": 20, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_identifier", + "memberof": "lib/Microservice/Instance.js~Instance", + "longname": "lib/Microservice/Instance.js~Instance#_identifier", + "access": null, + "description": null, + "lineNumber": 21, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "createVector", + "memberof": "lib/Microservice/Instance.js~Instance", + "longname": "lib/Microservice/Instance.js~Instance.createVector", + "access": null, + "description": null, + "lineNumber": 28, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Instance[]}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "globalConfig", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Instance[]" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "inject", + "memberof": "lib/Microservice/Instance.js~Instance", + "longname": "lib/Microservice/Instance.js~Instance#inject", + "access": null, + "description": null, + "lineNumber": 51, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "objectInstance", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "toString", + "memberof": "lib/Microservice/Instance.js~Instance", + "longname": "lib/Microservice/Instance.js~Instance#toString", + "access": null, + "description": null, + "lineNumber": 64, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "rawResources", + "memberof": "lib/Microservice/Instance.js~Instance", + "longname": "lib/Microservice/Instance.js~Instance#rawResources", + "access": null, + "description": null, + "lineNumber": 71, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "identifier", + "memberof": "lib/Microservice/Instance.js~Instance", + "longname": "lib/Microservice/Instance.js~Instance#identifier", + "access": null, + "description": null, + "lineNumber": 78, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "isRoot", + "memberof": "lib/Microservice/Instance.js~Instance", + "longname": "lib/Microservice/Instance.js~Instance#isRoot", + "access": null, + "description": null, + "lineNumber": 85, + "params": [ + { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "optional": false, + "name": "state", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_isRoot", + "memberof": "lib/Microservice/Instance.js~Instance", + "longname": "lib/Microservice/Instance.js~Instance#_isRoot", + "access": null, + "description": null, + "lineNumber": 86, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "isRoot", + "memberof": "lib/Microservice/Instance.js~Instance", + "longname": "lib/Microservice/Instance.js~Instance#isRoot", + "access": null, + "description": null, + "lineNumber": 92, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/bootstrap.js", + "memberof": null, + "longname": "lib/bootstrap.js", + "access": null, + "description": null, + "lineNumber": 7, + "content": "/**\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n */\n\n'use strict';\n\nimport {Kernel} from './Kernel';\n\nlet exports = module.exports = Kernel;\n" + }, + { + "kind": "variable", + "static": true, + "variation": null, + "name": "exports", + "memberof": "lib/bootstrap.js", + "longname": "lib/bootstrap.js~exports", + "access": null, + "export": false, + "importPath": "deep-kernel/lib/bootstrap.js", + "importStyle": null, + "description": null, + "lineNumber": 11, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~null", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Error", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Date", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~String", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~string", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Map", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Set", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "CanvasRenderingContext2D", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DocumentFragment", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Element", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Element", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Event", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Event", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Node", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Node", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NodeList", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~NodeList", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "XMLHttpRequest", + "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "access": null, + "description": null, + "builtinExternal": true + } +] \ No newline at end of file diff --git a/docs-api/deep-kernel/file/lib/ContainerAware.js.html b/docs-api/deep-kernel/file/lib/ContainerAware.js.html new file mode 100644 index 00000000..ab57cb15 --- /dev/null +++ b/docs-api/deep-kernel/file/lib/ContainerAware.js.html @@ -0,0 +1,174 @@ + + + + + + lib/ContainerAware.js | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/ContainerAware.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import {Injectable as MicroserviceInjectable} from './Microservice/Injectable';
    +import {Kernel} from './Kernel';
    +
    +/**
    + * Container aware instance
    + */
    +export class ContainerAware extends MicroserviceInjectable {
    +  constructor() {
    +    super();
    +
    +    this._container = null;
    +    this._localBackend = false;
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get localBackend() {
    +    return this._localBackend;
    +  }
    +
    +  /**
    +   * @param {Boolean} state
    +   */
    +  set localBackend(state) {
    +    this._localBackend = state;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get name() {
    +    return this.constructor.name.toLowerCase();
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get service() {
    +    return this;
    +  }
    +
    +  /**
    +   * Booting a certain service
    +   *
    +   * @param {Kernel} kernel
    +   * @param {Function} callback
    +   */
    +  boot(kernel, callback) {
    +    // @todo: override in child service
    +    callback();
    +  }
    +
    +  /**
    +   * @param {Instance} microservice
    +   * @returns {Injectable}
    +   */
    +  bind(microservice) {
    +    // @todo: find more smart way of doing this...
    +    if (typeof microservice === 'string') {
    +      microservice = this._container.get(Kernel.KERNEL).microservice(microservice);
    +    }
    +
    +    return super.bind(microservice);
    +  }
    +
    +  /**
    +   * @param {String} object
    +   * @returns {String}
    +   * @private
    +   */
    +  _resolvePath(object) {
    +    if (typeof object === 'string' && object.indexOf('@') === 0) {
    +      let parts = object.match(/^@\s*([^:]+)\s*:\s*([^\s]+)\s*$/);
    +
    +      if (parts.length === 3) {
    +        this.bind(parts[1]);
    +
    +        return parts[2];
    +      }
    +    }
    +
    +    return object;
    +  }
    +
    +  /**
    +   * @param {DI} container
    +   */
    +  set container(container) {
    +    this._container = container;
    +  }
    +
    +  /**
    +   * @returns {DI}
    +   */
    +  get container() {
    +    return this._container;
    +  }
    +
    +  /**
    +   * @param {Array} args
    +   * @returns {*}
    +   */
    +  get(...args) {
    +    return this._container.get(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/file/lib/Exception/Exception.js.html b/docs-api/deep-kernel/file/lib/Exception/Exception.js.html new file mode 100644 index 00000000..3f84a019 --- /dev/null +++ b/docs-api/deep-kernel/file/lib/Exception/Exception.js.html @@ -0,0 +1,80 @@ + + + + + + lib/Exception/Exception.js | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/Exception.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +
    +/**
    + * Thrown when any kernel exception occurs
    + */
    +export class Exception extends Core.Exception.Exception {
    +  /**
    +   * @param {Array} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/file/lib/Exception/MissingMicroserviceException.js.html b/docs-api/deep-kernel/file/lib/Exception/MissingMicroserviceException.js.html new file mode 100644 index 00000000..1a1a9434 --- /dev/null +++ b/docs-api/deep-kernel/file/lib/Exception/MissingMicroserviceException.js.html @@ -0,0 +1,80 @@ + + + + + + lib/Exception/MissingMicroserviceException.js | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/MissingMicroserviceException.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when missing requested microservice
    + */
    +export class MissingMicroserviceException extends Exception {
    +  /**
    +   * @param {String} microserviceIdentifier
    +   */
    +  constructor(microserviceIdentifier) {
    +    super(`Missing microservice ${microserviceIdentifier} in Kernel container`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/file/lib/Kernel.js.html b/docs-api/deep-kernel/file/lib/Kernel.js.html new file mode 100644 index 00000000..f0286623 --- /dev/null +++ b/docs-api/deep-kernel/file/lib/Kernel.js.html @@ -0,0 +1,430 @@ + + + + + + lib/Kernel.js | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Kernel.js

    +
    /**
    + * Created by mgoria on 5/26/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +import DI from 'deep-di';
    +import {Exception} from './Exception/Exception';
    +import {Instance as Microservice} from './Microservice/Instance';
    +import {MissingMicroserviceException} from './Exception/MissingMicroserviceException';
    +import {Injectable as MicroserviceInjectable} from './Microservice/Injectable';
    +import {ContainerAware} from './ContainerAware';
    +import FileSystem from 'fs';
    +import WaitUntil from 'wait-until';
    +
    +/**
    + * Deep application kernel
    + */
    +export class Kernel {
    +  /**
    +   * @param {Array} deepServices
    +   * @param {String} context
    +   */
    +  constructor(deepServices, context) {
    +    if (Kernel.ALL_CONTEXTS.indexOf(context) === -1) {
    +      throw new Exception(`Undefined context "${context}"`);
    +    }
    +
    +    this._config = {};
    +    this._services = deepServices;
    +    this._context = context;
    +    this._env = null;
    +    this._container = new DI();
    +    this._isLoaded = false;
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get isLoaded() {
    +    return this._isLoaded;
    +  }
    +
    +  /**
    +   * @param {String} identifier
    +   * @returns {Microservice}
    +   */
    +  microservice(identifier) {
    +    if (typeof identifier === 'undefined') {
    +      identifier = this._config.microserviceIdentifier;
    +    }
    +
    +    for (let microserviceKey in this.microservices) {
    +      if (!this.microservices.hasOwnProperty(microserviceKey)) {
    +        continue;
    +      }
    +
    +      let microservice = this.microservices[microserviceKey];
    +
    +      if (microservice.identifier === identifier) {
    +        return microservice;
    +      }
    +    }
    +
    +    throw new MissingMicroserviceException(identifier);
    +  }
    +
    +  /**
    +   * @param {String} jsonFile
    +   * @param {Function} callback
    +   * @returns {Kernel}
    +   */
    +  loadFromFile(jsonFile, callback) {
    +    // @todo: remove AWS changes the way the things run
    +    // This is used because of AWS Lambda
    +    // context sharing after a cold start
    +    if (this._isLoaded) {
    +      callback(this);
    +      return this;
    +    }
    +
    +    if (this.isBackend) {
    +      FileSystem.readFile(jsonFile, 'utf8', function(error, data) {
    +        if (error) {
    +          throw new Exception(`Failed to load kernel config from ${jsonFile} (${error})`);
    +        }
    +
    +        this.load(JSON.parse(data), callback);
    +      }.bind(this));
    +    } else { // @todo: get rid of native code...
    +      var client = new XMLHttpRequest();
    +
    +      client.open('GET', jsonFile);
    +      client.onreadystatechange = function(event) {
    +        if (client.readyState === 4) {
    +          if (client.status !== 200) {
    +            throw new Exception(`Failed to load kernel config from ${jsonFile}`);
    +          }
    +
    +          this.load(JSON.parse(client.responseText), callback);
    +        }
    +      }.bind(this);
    +
    +      client.send();
    +    }
    +
    +    return this;
    +  }
    +
    +  /**
    +   * Loads all Kernel dependencies
    +   *
    +   * @param {Object} globalConfig
    +   * @param {Function} callback
    +   */
    +  load(globalConfig, callback) {
    +    // @todo: remove AWS changes the way the things run
    +    // This is used because of AWS Lambda
    +    // context sharing after a cold start
    +    if (this._isLoaded) {
    +      callback(this);
    +      return this;
    +    }
    +
    +    let originalCallback = callback;
    +
    +    callback = function(kernel) {
    +      this._isLoaded = true;
    +
    +      originalCallback(kernel);
    +    }.bind(this);
    +
    +    this._config = globalConfig;
    +
    +    this._buildContainer(callback);
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {Array} args
    +   * @returns {*}
    +   */
    +  get(...args) {
    +    return this._container.get(...args);
    +  }
    +
    +  /**
    +   * @returns {Array}
    +   */
    +  get services() {
    +    return this._services;
    +  }
    +
    +  /**
    +   * @returns {DI}
    +   */
    +  get container() {
    +    return this._container;
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get isFrontend() {
    +    return this._context === Kernel.FRONTEND_CONTEXT;
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get isLocalhost() {
    +    return this.isFrontend
    +      && [
    +        'localhost', '127.0.0.1',
    +        '0.0.0.0', '::1',
    +      ].indexOf(window.location.hostname) !== -1;
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get isBackend() {
    +    return this._context === Kernel.BACKEND_CONTEXT;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get buildId() {
    +    return this._config.deployId || '';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get context() {
    +    return this._context;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get env() {
    +    return this._env;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get config() {
    +    // @todo - create a class DeepConfig or smth, that will hold global config and expose shortcuts to different options
    +    return this._config;
    +  }
    +
    +  /**
    +   * @returns {Microservice[]}
    +   */
    +  get microservices() {
    +    return this._container.get(Kernel.MICROSERVICES);
    +  }
    +
    +  /**
    +   * Loads all parameters and services into DI container
    +   *
    +   * @param {Function} callback
    +   */
    +  _buildContainer(callback) {
    +    this._env = this._config.env;
    +
    +    this._container.addParameter(
    +      Kernel.KERNEL,
    +      this
    +    );
    +
    +    this._container.addParameter(
    +      Kernel.CONTEXT,
    +      {
    +        environment: this._env,
    +        isFrontend: this.isFrontend,
    +        isBackend: this.isBackend,
    +      }
    +    );
    +
    +    this._container.addParameter(
    +      Kernel.MICROSERVICES,
    +      Microservice.createVector(this._config)
    +    );
    +
    +    this._container.addParameter(
    +      Kernel.CONFIG,
    +      this._config
    +    );
    +
    +    let bootingServices = 0;
    +
    +    for (let serviceKey in this._services) {
    +      if (!this._services.hasOwnProperty(serviceKey)) {
    +        continue;
    +      }
    +
    +      let serviceInstance = new this._services[serviceKey]();
    +
    +      if (!serviceInstance instanceof ContainerAware) {
    +        let serviceType = typeof serviceInstance;
    +
    +        throw new Exception(`Service ${serviceType} must be Kernel.ContainerAware instance`);
    +      }
    +
    +      bootingServices++;
    +
    +      serviceInstance.container = this._container;
    +      serviceInstance.localBackend = Core.IS_DEV_SERVER;
    +      serviceInstance.boot(this, function() {
    +        bootingServices--;
    +      }.bind(this));
    +
    +      this._container.addService(
    +        serviceInstance.name,
    +        serviceInstance.service
    +      );
    +    }
    +
    +    WaitUntil()
    +      .interval(5)
    +      .times(999999) // @todo: get rid of magic here...
    +      .condition(function(cb) {
    +        process.nextTick(function() {
    +          cb(bootingServices <= 0);
    +        }.bind(this));
    +      }).done(function() {
    +        callback(this);
    +      }.bind(this));
    +  }
    +
    +  /**
    +   * @returns {MicroserviceInjectable}
    +   */
    +  static get MicroserviceInjectable() {
    +    return MicroserviceInjectable;
    +  }
    +
    +  /**
    +   * @returns {ContainerAware}
    +   */
    +  static get ContainerAware() {
    +    return ContainerAware;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get FRONTEND_BOOTSTRAP_VECTOR() {
    +    return 'deep_frontend_bootstrap_vector';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get CONFIG() {
    +    return 'deep_config';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get KERNEL() {
    +    return 'deep_kernel';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get CONTEXT() {
    +    return 'deep_context';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get MICROSERVICES() {
    +    return 'deep_microservices';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get FRONTEND_CONTEXT() {
    +    return 'frontend-ctx';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get BACKEND_CONTEXT() {
    +    return 'backend-ctx';
    +  }
    +
    +  /**
    +   * @returns {Array}
    +   */
    +  static get ALL_CONTEXTS() {
    +    return [
    +      Kernel.FRONTEND_CONTEXT,
    +      Kernel.BACKEND_CONTEXT,
    +    ];
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/file/lib/Microservice/Exception/MissingWorkingMicroserviceException.js.html b/docs-api/deep-kernel/file/lib/Microservice/Exception/MissingWorkingMicroserviceException.js.html new file mode 100644 index 00000000..c18a959a --- /dev/null +++ b/docs-api/deep-kernel/file/lib/Microservice/Exception/MissingWorkingMicroserviceException.js.html @@ -0,0 +1,77 @@ + + + + + + lib/Microservice/Exception/MissingWorkingMicroserviceException.js | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Microservice/Exception/MissingWorkingMicroserviceException.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from '../../Exception/Exception';
    +
    +/**
    + * Thrown when no working microservice set
    + */
    +export class MissingWorkingMicroserviceException extends Exception {
    +  constructor() {
    +    super('Missing working microservice from Kernel.MicroserviceInjectable');
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/file/lib/Microservice/Injectable.js.html b/docs-api/deep-kernel/file/lib/Microservice/Injectable.js.html new file mode 100644 index 00000000..443bd85b --- /dev/null +++ b/docs-api/deep-kernel/file/lib/Microservice/Injectable.js.html @@ -0,0 +1,111 @@ + + + + + + lib/Microservice/Injectable.js | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Microservice/Injectable.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import {Instance} from './Instance';
    +import Core from 'deep-core';
    +import {MissingWorkingMicroserviceException} from './Exception/MissingWorkingMicroserviceException';
    +
    +/**
    + * Microservice injectable object
    + */
    +export class Injectable {
    +  constructor() {
    +    this._microservice = null;
    +  }
    +
    +  /**
    +   * @param {Instance} microservice
    +   * @returns {Injectable}
    +   */
    +  bind(microservice) {
    +    this.microservice = microservice;
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @returns {Instance}
    +   */
    +  get microservice() {
    +    if (this._microservice === null) {
    +      throw new MissingWorkingMicroserviceException();
    +    }
    +
    +    return this._microservice;
    +  }
    +
    +  /**
    +   * @param {Instance} instance
    +   */
    +  set microservice(instance) {
    +    if (!(instance instanceof Instance)) {
    +      throw new Core.Exception.InvalidArgumentException(microservice, 'Microservice');
    +    }
    +
    +    this._microservice = instance;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/file/lib/Microservice/Instance.js.html b/docs-api/deep-kernel/file/lib/Microservice/Instance.js.html new file mode 100644 index 00000000..13c03aee --- /dev/null +++ b/docs-api/deep-kernel/file/lib/Microservice/Instance.js.html @@ -0,0 +1,156 @@ + + + + + + lib/Microservice/Instance.js | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Microservice/Instance.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +import {Injectable} from './Injectable';
    +
    +/**
    + * Microservice instance class
    + */
    +export class Instance {
    +  /**
    +   * @param {String} identifier
    +   * @param {Object} rawResources
    +   */
    +  constructor(identifier, rawResources) {
    +    this._isRoot = false;
    +    this._rawResources = rawResources;
    +    this._identifier = identifier;
    +  }
    +
    +  /**
    +   * @param {Object} globalConfig
    +   * @returns {Instance[]}
    +   */
    +  static createVector(globalConfig) {
    +    let vector = [];
    +
    +    for (let identifier in globalConfig.microservices) {
    +      if (!globalConfig.microservices.hasOwnProperty(identifier)) {
    +        continue;
    +      }
    +
    +      let microservice = globalConfig.microservices[identifier];
    +
    +      let microserviceObject = new Instance(identifier, microservice.resources);
    +      microserviceObject.isRoot = microservice.isRoot;
    +
    +      vector.push(microserviceObject);
    +    }
    +
    +    return vector;
    +  }
    +
    +  /**
    +   * @param {Object} objectInstance
    +   * @return {Object}
    +   */
    +  inject(objectInstance) {
    +    if (!(objectInstance instanceof Injectable)) {
    +      throw new Core.Exception.InvalidArgumentException(objectInstance, 'deep-kernel.Injectable');
    +    }
    +
    +    objectInstance.microservice = this;
    +
    +    return objectInstance;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  toString() {
    +    return this._identifier;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get rawResources() {
    +    return this._rawResources;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get identifier() {
    +    return this._identifier;
    +  }
    +
    +  /**
    +   * @param {Boolean} state
    +   */
    +  set isRoot(state) {
    +    this._isRoot = state;
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get isRoot() {
    +    return this._isRoot;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/file/lib/bootstrap.js.html b/docs-api/deep-kernel/file/lib/bootstrap.js.html new file mode 100644 index 00000000..b2156a95 --- /dev/null +++ b/docs-api/deep-kernel/file/lib/bootstrap.js.html @@ -0,0 +1,72 @@ + + + + + + lib/bootstrap.js | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/bootstrap.js

    +
    /**
    + * Created by AlexanderC on 5/22/15.
    + *
    + * Bootstrap file loaded by npm as main
    + */
    +
    +'use strict';
    +
    +import {Kernel} from './Kernel';
    +
    +let exports = module.exports = Kernel;
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/identifiers.html b/docs-api/deep-kernel/identifiers.html new file mode 100644 index 00000000..8934fd18 --- /dev/null +++ b/docs-api/deep-kernel/identifiers.html @@ -0,0 +1,245 @@ + + + + + + Index | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Identifier

    +

    Class Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Class Summary
    + public + + + + + +
    +

    + ContainerAware +

    +
    +
    + + +
    Container aware instance
    +
    +
    + + +
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Thrown when any kernel exception occurs
    +
    +
    + + +
    + public + + + + + +
    +

    + Injectable +

    +
    +
    + + +
    Microservice injectable object
    +
    +
    + + +
    + public + + + + + +
    +

    + Instance +

    +
    +
    + + +
    Microservice instance class
    +
    +
    + + +
    + public + + + + + +
    +

    + Kernel +

    +
    +
    + + +
    Deep application kernel
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when missing requested microservice
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when no working microservice set
    +
    +
    + + +
    +
    + + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/image/badge.svg b/docs-api/deep-kernel/image/badge.svg new file mode 100644 index 00000000..324db4c5 --- /dev/null +++ b/docs-api/deep-kernel/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/docs-api/deep-kernel/image/github.png b/docs-api/deep-kernel/image/github.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/docs-api/deep-kernel/image/github.png differ diff --git a/docs-api/deep-kernel/image/search.png b/docs-api/deep-kernel/image/search.png new file mode 100644 index 00000000..f5d84b69 Binary files /dev/null and b/docs-api/deep-kernel/image/search.png differ diff --git a/docs-api/deep-kernel/index.html b/docs-api/deep-kernel/index.html new file mode 100644 index 00000000..fadc1cde --- /dev/null +++ b/docs-api/deep-kernel/index.html @@ -0,0 +1,193 @@ + + + + + + DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    deep-kernel

    +

    NPM Version +Build Status +Coverage Status +Codacy Badge +API Docs

    +

    deep-kernel is a node.js library, part of DEEP Framework.

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less.

    +

    DEEP for Businesses Join char on gitter.im

    +

    User Guide Documentation (to be updated later)

    +

    DEEP is enabling small and medium businesses, as well as enterprises to:

    +
      +
    • Rent applications on a monthly basis by needed functionality from DEEP Marketplace
    • +
    • Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS
    • +
    • Pay only for subscribed applications and stop paying when unsubscribing and not using anymore
    • +
    • Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences
    • +
    • Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability
    • +
    +
    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP for Developers Join char on gitter.im

    +

    API Guide Documentation

    +

    Developer Guide Documentation

    +

    DEEP is enabling developers and architects to:

    +
      +
    • Design microservices architecture on top of serverless environments from cloud providers like AWS
    • +
    • Build distributed software that combines and manages hardware and software in the same microservice
    • +
    • Use the framework's abstracted approach to build applications that could be cloud agnostic
    • +
    • Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same DEEP Microservice
    • +
    • Run in the cloud the software that was built by distributed teams and served self-service in large organizations
    • +
    • Monetize their work of art by uploading microservices to DEEP Marketplace
    • +
    +
    +

    DEEP Microservice is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with DEEP Microservices HelloWorld or DEEP Microservices ToDo App, as well as DEEP CLI (aka deepify).

    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP Architecture on AWS Join char on gitter.im

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    DEEP is using microservices architecture on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DEEP Abstracted LibraryDescriptionAWS Abstracted Service(s)
    deep-assetAssets Management LibraryAmazon S3
    deep-cacheCache Management LibraryAmazon ElastiCache
    deep-coreCore Management Library-
    deep-dbDatabase Management LibraryAmazon DynamoDB, Amazon SQS
    deep-diDependency Injection Management Library-
    deep-eventEvents Management LibraryAmazon Kinesis
    deep-fsFile System Management LibraryAmazon S3
    deep-kernelKernel Management Library-
    deep-logLogs Management LibraryAmazon CloudWatch Logs
    deep-notificationNotifications Management LibraryAmazon SNS
    deep-resourceResouces Management LibraryAWS Lambda, Amazon API Gateway
    deep-securitySecurity Management LibraryAWS IAM, Amazon Cognito
    deep-validationValidation Management Library-
    +

    Feedback

    +

    We are eager to get your feedback, so please use whatever communication channel you prefer:

    + +

    License

    +

    This repository can be used under the MIT license.

    +
    +

    See LICENSE for more details.

    +
    +

    Sponsors

    +

    This repository is being sponsored by:

    +
    +

    Mitoc Group

    +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-kernel/package.json b/docs-api/deep-kernel/package.json new file mode 100644 index 00000000..758cac92 --- /dev/null +++ b/docs-api/deep-kernel/package.json @@ -0,0 +1,69 @@ +{ + "name": "deep-kernel", + "version": "0.0.52", + "description": "DEEP Kernel Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Kernel" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Veaceslav Cotruta", + "email": "vcotruta@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-di": "*", + "deep-core": "*", + "wait-until": "0.0.*" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/docs-api/deep-kernel/script/inherited-summary.js b/docs-api/deep-kernel/script/inherited-summary.js new file mode 100644 index 00000000..0a35b6df --- /dev/null +++ b/docs-api/deep-kernel/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/docs-api/deep-kernel/script/inner-link.js b/docs-api/deep-kernel/script/inner-link.js new file mode 100644 index 00000000..99d76273 --- /dev/null +++ b/docs-api/deep-kernel/script/inner-link.js @@ -0,0 +1,29 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + var el = document.querySelector(location.hash); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = location.href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/docs-api/deep-kernel/script/patch-for-local.js b/docs-api/deep-kernel/script/patch-for-local.js new file mode 100644 index 00000000..5756d135 --- /dev/null +++ b/docs-api/deep-kernel/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/docs-api/deep-kernel/script/prettify/Apache-License-2.0.txt b/docs-api/deep-kernel/script/prettify/Apache-License-2.0.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/docs-api/deep-kernel/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs-api/deep-kernel/script/prettify/prettify.js b/docs-api/deep-kernel/script/prettify/prettify.js new file mode 100644 index 00000000..eef5ad7e --- /dev/null +++ b/docs-api/deep-kernel/script/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/docs-api/deep-kernel/script/search_index.js b/docs-api/deep-kernel/script/search_index.js new file mode 100644 index 00000000..e2f118ca --- /dev/null +++ b/docs-api/deep-kernel/script/search_index.js @@ -0,0 +1,722 @@ +window.esdocSearchIndex = [ + [ + "deep-kernel/lib/containeraware.js~containeraware", + "class/lib/ContainerAware.js~ContainerAware.html", + "ContainerAware deep-kernel/lib/ContainerAware.js", + "class" + ], + [ + "deep-kernel/lib/exception/exception.js~exception", + "class/lib/Exception/Exception.js~Exception.html", + "Exception deep-kernel/lib/Exception/Exception.js", + "class" + ], + [ + "deep-kernel/lib/microservice/injectable.js~injectable", + "class/lib/Microservice/Injectable.js~Injectable.html", + "Injectable deep-kernel/lib/Microservice/Injectable.js", + "class" + ], + [ + "deep-kernel/lib/microservice/instance.js~instance", + "class/lib/Microservice/Instance.js~Instance.html", + "Instance deep-kernel/lib/Microservice/Instance.js", + "class" + ], + [ + "deep-kernel/lib/kernel.js~kernel", + "class/lib/Kernel.js~Kernel.html", + "Kernel deep-kernel/lib/Kernel.js", + "class" + ], + [ + "deep-kernel/lib/exception/missingmicroserviceexception.js~missingmicroserviceexception", + "class/lib/Exception/MissingMicroserviceException.js~MissingMicroserviceException.html", + "MissingMicroserviceException deep-kernel/lib/Exception/MissingMicroserviceException.js", + "class" + ], + [ + "deep-kernel/lib/microservice/exception/missingworkingmicroserviceexception.js~missingworkingmicroserviceexception", + "class/lib/Microservice/Exception/MissingWorkingMicroserviceException.js~MissingWorkingMicroserviceException.html", + "MissingWorkingMicroserviceException deep-kernel/lib/Microservice/Exception/MissingWorkingMicroserviceException.js", + "class" + ], + [ + "builtinexternal/ecmascriptexternal.js~array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~arraybuffer", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~dataview", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~DataView", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~date", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Date", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~error", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Error", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~evalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float64array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generator", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Generator", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generatorfunction", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~infinity", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~internalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~json", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~JSON", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~map", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Map", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~nan", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~NaN", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~promise", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Promise", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~proxy", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~rangeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~referenceerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~reflect", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~regexp", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~set", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Set", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~String", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~symbol", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~syntaxerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~typeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~urierror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~URIError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8clampedarray", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakmap", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakset", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~null", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~null", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~string", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~undefined", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~undefined", + "external" + ], + [ + "builtinexternal/webapiexternal.js~canvasrenderingcontext2d", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "external" + ], + [ + "builtinexternal/webapiexternal.js~documentfragment", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "external" + ], + [ + "builtinexternal/webapiexternal.js~element", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Element", + "external" + ], + [ + "builtinexternal/webapiexternal.js~event", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Event", + "external" + ], + [ + "builtinexternal/webapiexternal.js~node", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Node", + "external" + ], + [ + "builtinexternal/webapiexternal.js~nodelist", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~NodeList", + "external" + ], + [ + "builtinexternal/webapiexternal.js~xmlhttprequest", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "external" + ], + [ + "lib/containeraware.js", + "file/lib/ContainerAware.js.html", + "lib/ContainerAware.js", + "file" + ], + [ + "lib/containeraware.js~containeraware#bind", + "class/lib/ContainerAware.js~ContainerAware.html#instance-method-bind", + "lib/ContainerAware.js~ContainerAware#bind", + "method" + ], + [ + "lib/containeraware.js~containeraware#boot", + "class/lib/ContainerAware.js~ContainerAware.html#instance-method-boot", + "lib/ContainerAware.js~ContainerAware#boot", + "method" + ], + [ + "lib/containeraware.js~containeraware#constructor", + "class/lib/ContainerAware.js~ContainerAware.html#instance-constructor-constructor", + "lib/ContainerAware.js~ContainerAware#constructor", + "method" + ], + [ + "lib/containeraware.js~containeraware#container", + "class/lib/ContainerAware.js~ContainerAware.html#instance-get-container", + "lib/ContainerAware.js~ContainerAware#container", + "member" + ], + [ + "lib/containeraware.js~containeraware#container", + "class/lib/ContainerAware.js~ContainerAware.html#instance-set-container", + "lib/ContainerAware.js~ContainerAware#container", + "member" + ], + [ + "lib/containeraware.js~containeraware#get", + "class/lib/ContainerAware.js~ContainerAware.html#instance-method-get", + "lib/ContainerAware.js~ContainerAware#get", + "method" + ], + [ + "lib/containeraware.js~containeraware#localbackend", + "class/lib/ContainerAware.js~ContainerAware.html#instance-set-localBackend", + "lib/ContainerAware.js~ContainerAware#localBackend", + "member" + ], + [ + "lib/containeraware.js~containeraware#localbackend", + "class/lib/ContainerAware.js~ContainerAware.html#instance-get-localBackend", + "lib/ContainerAware.js~ContainerAware#localBackend", + "member" + ], + [ + "lib/containeraware.js~containeraware#name", + "class/lib/ContainerAware.js~ContainerAware.html#instance-get-name", + "lib/ContainerAware.js~ContainerAware#name", + "member" + ], + [ + "lib/containeraware.js~containeraware#service", + "class/lib/ContainerAware.js~ContainerAware.html#instance-get-service", + "lib/ContainerAware.js~ContainerAware#service", + "member" + ], + [ + "lib/exception/exception.js", + "file/lib/Exception/Exception.js.html", + "lib/Exception/Exception.js", + "file" + ], + [ + "lib/exception/exception.js~exception#constructor", + "class/lib/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/exception/missingmicroserviceexception.js", + "file/lib/Exception/MissingMicroserviceException.js.html", + "lib/Exception/MissingMicroserviceException.js", + "file" + ], + [ + "lib/exception/missingmicroserviceexception.js~missingmicroserviceexception#constructor", + "class/lib/Exception/MissingMicroserviceException.js~MissingMicroserviceException.html#instance-constructor-constructor", + "lib/Exception/MissingMicroserviceException.js~MissingMicroserviceException#constructor", + "method" + ], + [ + "lib/kernel.js", + "file/lib/Kernel.js.html", + "lib/Kernel.js", + "file" + ], + [ + "lib/kernel.js~kernel#buildid", + "class/lib/Kernel.js~Kernel.html#instance-get-buildId", + "lib/Kernel.js~Kernel#buildId", + "member" + ], + [ + "lib/kernel.js~kernel#config", + "class/lib/Kernel.js~Kernel.html#instance-get-config", + "lib/Kernel.js~Kernel#config", + "member" + ], + [ + "lib/kernel.js~kernel#constructor", + "class/lib/Kernel.js~Kernel.html#instance-constructor-constructor", + "lib/Kernel.js~Kernel#constructor", + "method" + ], + [ + "lib/kernel.js~kernel#container", + "class/lib/Kernel.js~Kernel.html#instance-get-container", + "lib/Kernel.js~Kernel#container", + "member" + ], + [ + "lib/kernel.js~kernel#context", + "class/lib/Kernel.js~Kernel.html#instance-get-context", + "lib/Kernel.js~Kernel#context", + "member" + ], + [ + "lib/kernel.js~kernel#env", + "class/lib/Kernel.js~Kernel.html#instance-get-env", + "lib/Kernel.js~Kernel#env", + "member" + ], + [ + "lib/kernel.js~kernel#get", + "class/lib/Kernel.js~Kernel.html#instance-method-get", + "lib/Kernel.js~Kernel#get", + "method" + ], + [ + "lib/kernel.js~kernel#isbackend", + "class/lib/Kernel.js~Kernel.html#instance-get-isBackend", + "lib/Kernel.js~Kernel#isBackend", + "member" + ], + [ + "lib/kernel.js~kernel#isfrontend", + "class/lib/Kernel.js~Kernel.html#instance-get-isFrontend", + "lib/Kernel.js~Kernel#isFrontend", + "member" + ], + [ + "lib/kernel.js~kernel#isloaded", + "class/lib/Kernel.js~Kernel.html#instance-get-isLoaded", + "lib/Kernel.js~Kernel#isLoaded", + "member" + ], + [ + "lib/kernel.js~kernel#islocalhost", + "class/lib/Kernel.js~Kernel.html#instance-get-isLocalhost", + "lib/Kernel.js~Kernel#isLocalhost", + "member" + ], + [ + "lib/kernel.js~kernel#load", + "class/lib/Kernel.js~Kernel.html#instance-method-load", + "lib/Kernel.js~Kernel#load", + "method" + ], + [ + "lib/kernel.js~kernel#loadfromfile", + "class/lib/Kernel.js~Kernel.html#instance-method-loadFromFile", + "lib/Kernel.js~Kernel#loadFromFile", + "method" + ], + [ + "lib/kernel.js~kernel#microservice", + "class/lib/Kernel.js~Kernel.html#instance-method-microservice", + "lib/Kernel.js~Kernel#microservice", + "method" + ], + [ + "lib/kernel.js~kernel#microservices", + "class/lib/Kernel.js~Kernel.html#instance-get-microservices", + "lib/Kernel.js~Kernel#microservices", + "member" + ], + [ + "lib/kernel.js~kernel#services", + "class/lib/Kernel.js~Kernel.html#instance-get-services", + "lib/Kernel.js~Kernel#services", + "member" + ], + [ + "lib/kernel.js~kernel.all_contexts", + "class/lib/Kernel.js~Kernel.html#static-get-ALL_CONTEXTS", + "lib/Kernel.js~Kernel.ALL_CONTEXTS", + "member" + ], + [ + "lib/kernel.js~kernel.backend_context", + "class/lib/Kernel.js~Kernel.html#static-get-BACKEND_CONTEXT", + "lib/Kernel.js~Kernel.BACKEND_CONTEXT", + "member" + ], + [ + "lib/kernel.js~kernel.config", + "class/lib/Kernel.js~Kernel.html#static-get-CONFIG", + "lib/Kernel.js~Kernel.CONFIG", + "member" + ], + [ + "lib/kernel.js~kernel.context", + "class/lib/Kernel.js~Kernel.html#static-get-CONTEXT", + "lib/Kernel.js~Kernel.CONTEXT", + "member" + ], + [ + "lib/kernel.js~kernel.containeraware", + "class/lib/Kernel.js~Kernel.html#static-get-ContainerAware", + "lib/Kernel.js~Kernel.ContainerAware", + "member" + ], + [ + "lib/kernel.js~kernel.frontend_bootstrap_vector", + "class/lib/Kernel.js~Kernel.html#static-get-FRONTEND_BOOTSTRAP_VECTOR", + "lib/Kernel.js~Kernel.FRONTEND_BOOTSTRAP_VECTOR", + "member" + ], + [ + "lib/kernel.js~kernel.frontend_context", + "class/lib/Kernel.js~Kernel.html#static-get-FRONTEND_CONTEXT", + "lib/Kernel.js~Kernel.FRONTEND_CONTEXT", + "member" + ], + [ + "lib/kernel.js~kernel.kernel", + "class/lib/Kernel.js~Kernel.html#static-get-KERNEL", + "lib/Kernel.js~Kernel.KERNEL", + "member" + ], + [ + "lib/kernel.js~kernel.microservices", + "class/lib/Kernel.js~Kernel.html#static-get-MICROSERVICES", + "lib/Kernel.js~Kernel.MICROSERVICES", + "member" + ], + [ + "lib/kernel.js~kernel.microserviceinjectable", + "class/lib/Kernel.js~Kernel.html#static-get-MicroserviceInjectable", + "lib/Kernel.js~Kernel.MicroserviceInjectable", + "member" + ], + [ + "lib/microservice/exception/missingworkingmicroserviceexception.js", + "file/lib/Microservice/Exception/MissingWorkingMicroserviceException.js.html", + "lib/Microservice/Exception/MissingWorkingMicroserviceException.js", + "file" + ], + [ + "lib/microservice/exception/missingworkingmicroserviceexception.js~missingworkingmicroserviceexception#constructor", + "class/lib/Microservice/Exception/MissingWorkingMicroserviceException.js~MissingWorkingMicroserviceException.html#instance-constructor-constructor", + "lib/Microservice/Exception/MissingWorkingMicroserviceException.js~MissingWorkingMicroserviceException#constructor", + "method" + ], + [ + "lib/microservice/injectable.js", + "file/lib/Microservice/Injectable.js.html", + "lib/Microservice/Injectable.js", + "file" + ], + [ + "lib/microservice/injectable.js~injectable#bind", + "class/lib/Microservice/Injectable.js~Injectable.html#instance-method-bind", + "lib/Microservice/Injectable.js~Injectable#bind", + "method" + ], + [ + "lib/microservice/injectable.js~injectable#constructor", + "class/lib/Microservice/Injectable.js~Injectable.html#instance-constructor-constructor", + "lib/Microservice/Injectable.js~Injectable#constructor", + "method" + ], + [ + "lib/microservice/injectable.js~injectable#microservice", + "class/lib/Microservice/Injectable.js~Injectable.html#instance-get-microservice", + "lib/Microservice/Injectable.js~Injectable#microservice", + "member" + ], + [ + "lib/microservice/injectable.js~injectable#microservice", + "class/lib/Microservice/Injectable.js~Injectable.html#instance-set-microservice", + "lib/Microservice/Injectable.js~Injectable#microservice", + "member" + ], + [ + "lib/microservice/instance.js", + "file/lib/Microservice/Instance.js.html", + "lib/Microservice/Instance.js", + "file" + ], + [ + "lib/microservice/instance.js~instance#constructor", + "class/lib/Microservice/Instance.js~Instance.html#instance-constructor-constructor", + "lib/Microservice/Instance.js~Instance#constructor", + "method" + ], + [ + "lib/microservice/instance.js~instance#identifier", + "class/lib/Microservice/Instance.js~Instance.html#instance-get-identifier", + "lib/Microservice/Instance.js~Instance#identifier", + "member" + ], + [ + "lib/microservice/instance.js~instance#inject", + "class/lib/Microservice/Instance.js~Instance.html#instance-method-inject", + "lib/Microservice/Instance.js~Instance#inject", + "method" + ], + [ + "lib/microservice/instance.js~instance#isroot", + "class/lib/Microservice/Instance.js~Instance.html#instance-set-isRoot", + "lib/Microservice/Instance.js~Instance#isRoot", + "member" + ], + [ + "lib/microservice/instance.js~instance#isroot", + "class/lib/Microservice/Instance.js~Instance.html#instance-get-isRoot", + "lib/Microservice/Instance.js~Instance#isRoot", + "member" + ], + [ + "lib/microservice/instance.js~instance#rawresources", + "class/lib/Microservice/Instance.js~Instance.html#instance-get-rawResources", + "lib/Microservice/Instance.js~Instance#rawResources", + "member" + ], + [ + "lib/microservice/instance.js~instance#tostring", + "class/lib/Microservice/Instance.js~Instance.html#instance-method-toString", + "lib/Microservice/Instance.js~Instance#toString", + "method" + ], + [ + "lib/microservice/instance.js~instance.createvector", + "class/lib/Microservice/Instance.js~Instance.html#static-method-createVector", + "lib/Microservice/Instance.js~Instance.createVector", + "method" + ], + [ + "lib/bootstrap.js", + "file/lib/bootstrap.js.html", + "lib/bootstrap.js", + "file" + ] +] \ No newline at end of file diff --git a/docs-api/deep-kernel/script/test-summary.js b/docs-api/deep-kernel/script/test-summary.js new file mode 100644 index 00000000..2f32cb00 --- /dev/null +++ b/docs-api/deep-kernel/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-describe')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-describe .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/docs-api/deep-kernel/source.html b/docs-api/deep-kernel/source.html new file mode 100644 index 00000000..56777491 --- /dev/null +++ b/docs-api/deep-kernel/source.html @@ -0,0 +1,139 @@ + + + + + + Source | DEEP Kernel Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Source 55/58

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    lib/ContainerAware.jsContainerAware90 %10/111941 byte1132015-09-06 09:59:23 (UTC)
    lib/Exception/Exception.jsException100 %2/2289 byte192015-10-07 19:56:07 (UTC)
    lib/Exception/MissingMicroserviceException.jsMissingMicroserviceException100 %2/2400 byte192015-09-04 12:52:17 (UTC)
    lib/Kernel.jsKernel100 %27/277485 byte3692015-10-07 19:56:07 (UTC)
    lib/Microservice/Exception/MissingWorkingMicroserviceException.jsMissingWorkingMicroserviceException50 %1/2337 byte162015-09-04 12:52:17 (UTC)
    lib/Microservice/Injectable.jsInjectable80 %4/5961 byte502015-10-07 19:56:07 (UTC)
    lib/Microservice/Instance.jsInstance100 %9/91751 byte952015-10-07 19:56:07 (UTC)
    lib/bootstrap.js--177 byte112015-09-04 12:52:17 (UTC)
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/ast/source/Driver/AbstractDriver.js.json b/docs-api/deep-log/ast/source/Driver/AbstractDriver.js.json new file mode 100644 index 00000000..68e6db8a --- /dev/null +++ b/docs-api/deep-log/ast/source/Driver/AbstractDriver.js.json @@ -0,0 +1,1860 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Abstract log driver\n ", + "range": [ + 92, + 122 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 136, + 150 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 27 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 159, + 163 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "OOP", + "range": [ + 164, + 167 + ], + "loc": { + "start": { + "line": 12, + "column": 41 + }, + "end": { + "line": 12, + "column": 44 + } + } + }, + "range": [ + 159, + 167 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "Interface", + "range": [ + 168, + 177 + ], + "loc": { + "start": { + "line": 12, + "column": 45 + }, + "end": { + "line": 12, + "column": 54 + } + } + }, + "range": [ + 159, + 177 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 54 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 182, + 193 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 202, + 207 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "log", + "raw": "'log'", + "range": [ + 209, + 214 + ], + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 16 + } + } + } + ], + "range": [ + 208, + 215 + ], + "loc": { + "start": { + "line": 14, + "column": 10 + }, + "end": { + "line": 14, + "column": 17 + } + } + } + ], + "range": [ + 202, + 216 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 18 + } + } + }, + "range": [ + 202, + 217 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 19 + } + } + } + ], + "range": [ + 196, + 221 + ], + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 193, + 221 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 182, + 221 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} context\n * @returns {String}\n ", + "range": [ + 225, + 281 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "plainifyContext", + "range": [ + 291, + 306 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "context", + "range": [ + 307, + 314 + ], + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 32 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "type", + "range": [ + 326, + 330 + ], + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 12 + } + } + }, + "init": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "Identifier", + "name": "context", + "range": [ + 340, + 347 + ], + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 29 + } + } + }, + "prefix": true, + "range": [ + 333, + 347 + ], + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 29 + } + } + }, + "range": [ + 326, + 347 + ], + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 29 + } + } + } + ], + "kind": "let", + "range": [ + 322, + 348 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 30 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "plainContext", + "range": [ + 357, + 369 + ], + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 20 + } + } + }, + "init": null, + "range": [ + 357, + 369 + ], + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 20 + } + } + } + ], + "kind": "var", + "range": [ + 353, + 370 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 21 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "Identifier", + "name": "type", + "range": [ + 380, + 384 + ], + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 12 + } + } + }, + "right": { + "type": "Literal", + "value": "object", + "raw": "'object'", + "range": [ + 389, + 397 + ], + "loc": { + "start": { + "line": 25, + "column": 17 + }, + "end": { + "line": 25, + "column": 25 + } + } + }, + "range": [ + 380, + 397 + ], + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 25 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "plainContext", + "range": [ + 407, + 419 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 18 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 422, + 426 + ], + "loc": { + "start": { + "line": 26, + "column": 21 + }, + "end": { + "line": 26, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "stringify", + "range": [ + 427, + 436 + ], + "loc": { + "start": { + "line": 26, + "column": 26 + }, + "end": { + "line": 26, + "column": 35 + } + } + }, + "range": [ + 422, + 436 + ], + "loc": { + "start": { + "line": 26, + "column": 21 + }, + "end": { + "line": 26, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "context", + "range": [ + 437, + 444 + ], + "loc": { + "start": { + "line": 26, + "column": 36 + }, + "end": { + "line": 26, + "column": 43 + } + } + } + ], + "range": [ + 422, + 445 + ], + "loc": { + "start": { + "line": 26, + "column": 21 + }, + "end": { + "line": 26, + "column": 44 + } + } + }, + "range": [ + 407, + 445 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 44 + } + } + }, + "range": [ + 407, + 446 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 45 + } + } + } + ], + "range": [ + 399, + 452 + ], + "loc": { + "start": { + "line": 25, + "column": 27 + }, + "end": { + "line": 27, + "column": 5 + } + } + }, + "alternate": { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "Identifier", + "name": "context", + "range": [ + 462, + 469 + ], + "loc": { + "start": { + "line": 27, + "column": 15 + }, + "end": { + "line": 27, + "column": 22 + } + } + }, + "right": { + "type": "Identifier", + "name": "Object", + "range": [ + 481, + 487 + ], + "loc": { + "start": { + "line": 27, + "column": 34 + }, + "end": { + "line": 27, + "column": 40 + } + } + }, + "range": [ + 462, + 487 + ], + "loc": { + "start": { + "line": 27, + "column": 15 + }, + "end": { + "line": 27, + "column": 40 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "plainContext", + "range": [ + 497, + 509 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 28, + "column": 18 + } + } + }, + "right": { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": false, + "range": [ + 512, + 515 + ], + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 28, + "column": 24 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ": ", + "cooked": ": " + }, + "tail": false, + "range": [ + 519, + 524 + ], + "loc": { + "start": { + "line": 28, + "column": 28 + }, + "end": { + "line": 28, + "column": 33 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 542, + 544 + ], + "loc": { + "start": { + "line": 28, + "column": 51 + }, + "end": { + "line": 28, + "column": 53 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "type", + "range": [ + 515, + 519 + ], + "loc": { + "start": { + "line": 28, + "column": 24 + }, + "end": { + "line": 28, + "column": 28 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "context", + "range": [ + 524, + 531 + ], + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 28, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "toString", + "range": [ + 532, + 540 + ], + "loc": { + "start": { + "line": 28, + "column": 41 + }, + "end": { + "line": 28, + "column": 49 + } + } + }, + "range": [ + 524, + 540 + ], + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 28, + "column": 49 + } + } + }, + "arguments": [], + "range": [ + 524, + 542 + ], + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 28, + "column": 51 + } + } + } + ], + "range": [ + 512, + 544 + ], + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 28, + "column": 53 + } + } + }, + "range": [ + 497, + 544 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 28, + "column": 53 + } + } + }, + "range": [ + 497, + 545 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 28, + "column": 54 + } + } + } + ], + "range": [ + 489, + 551 + ], + "loc": { + "start": { + "line": 27, + "column": 42 + }, + "end": { + "line": 29, + "column": 5 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "plainContext", + "range": [ + 565, + 577 + ], + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 18 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "context", + "range": [ + 580, + 587 + ], + "loc": { + "start": { + "line": 30, + "column": 21 + }, + "end": { + "line": 30, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "toString", + "range": [ + 588, + 596 + ], + "loc": { + "start": { + "line": 30, + "column": 29 + }, + "end": { + "line": 30, + "column": 37 + } + } + }, + "range": [ + 580, + 596 + ], + "loc": { + "start": { + "line": 30, + "column": 21 + }, + "end": { + "line": 30, + "column": 37 + } + } + }, + "arguments": [], + "range": [ + 580, + 598 + ], + "loc": { + "start": { + "line": 30, + "column": 21 + }, + "end": { + "line": 30, + "column": 39 + } + } + }, + "range": [ + 565, + 598 + ], + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 39 + } + } + }, + "range": [ + 565, + 599 + ], + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 40 + } + } + } + ], + "range": [ + 557, + 605 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 31, + "column": 5 + } + } + }, + "range": [ + 458, + 605 + ], + "loc": { + "start": { + "line": 27, + "column": 11 + }, + "end": { + "line": 31, + "column": 5 + } + } + }, + "range": [ + 376, + 605 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 31, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "plainContext", + "range": [ + 618, + 630 + ], + "loc": { + "start": { + "line": 33, + "column": 11 + }, + "end": { + "line": 33, + "column": 23 + } + } + }, + "range": [ + 611, + 631 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 24 + } + } + } + ], + "range": [ + 316, + 635 + ], + "loc": { + "start": { + "line": 21, + "column": 34 + }, + "end": { + "line": 34, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 306, + 635 + ], + "loc": { + "start": { + "line": 21, + "column": 24 + }, + "end": { + "line": 34, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 284, + 635 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 34, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {*} context\n * @returns {String}\n ", + "range": [ + 225, + 281 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 639, + 671 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 38, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "datetime", + "range": [ + 685, + 693 + ], + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 21 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Date", + "range": [ + 713, + 717 + ], + "loc": { + "start": { + "line": 40, + "column": 15 + }, + "end": { + "line": 40, + "column": 19 + } + } + }, + "arguments": [], + "range": [ + 709, + 719 + ], + "loc": { + "start": { + "line": 40, + "column": 11 + }, + "end": { + "line": 40, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "toISOString", + "range": [ + 720, + 731 + ], + "loc": { + "start": { + "line": 40, + "column": 22 + }, + "end": { + "line": 40, + "column": 33 + } + } + }, + "range": [ + 709, + 731 + ], + "loc": { + "start": { + "line": 40, + "column": 11 + }, + "end": { + "line": 40, + "column": 33 + } + } + }, + "arguments": [], + "range": [ + 709, + 733 + ], + "loc": { + "start": { + "line": 40, + "column": 11 + }, + "end": { + "line": 40, + "column": 35 + } + } + }, + "range": [ + 702, + 734 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 36 + } + } + } + ], + "range": [ + 696, + 738 + ], + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 41, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 693, + 738 + ], + "loc": { + "start": { + "line": 39, + "column": 21 + }, + "end": { + "line": 41, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 674, + 738 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 639, + 671 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 38, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 178, + 740 + ], + "loc": { + "start": { + "line": 12, + "column": 55 + }, + "end": { + "line": 42, + "column": 1 + } + } + }, + "range": [ + 130, + 740 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 42, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Abstract log driver\n ", + "range": [ + 92, + 122 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 123, + 740 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 42, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Abstract log driver\n ", + "range": [ + 92, + 122 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 740 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 42, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Abstract log driver\n ", + "range": [ + 92, + 122 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {*} context\n * @returns {String}\n ", + "range": [ + 225, + 281 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 639, + 671 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 38, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-log/ast/source/Driver/ConsoleDriver.js.json b/docs-api/deep-log/ast/source/Driver/ConsoleDriver.js.json new file mode 100644 index 00000000..64d1835d --- /dev/null +++ b/docs-api/deep-log/ast/source/Driver/ConsoleDriver.js.json @@ -0,0 +1,1090 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + "imported": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./AbstractDriver", + "raw": "'./AbstractDriver'", + "range": [ + 90, + 108 + ], + "loc": { + "start": { + "line": 7, + "column": 29 + }, + "end": { + "line": 7, + "column": 47 + } + } + }, + "range": [ + 61, + 109 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 48 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Console native logging\n ", + "range": [ + 111, + 144 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "ConsoleDriver", + "range": [ + 158, + 171 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 26 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 180, + 194 + ], + "loc": { + "start": { + "line": 12, + "column": 35 + }, + "end": { + "line": 12, + "column": 49 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 199, + 210 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 219, + 224 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 219, + 226 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 11 + } + } + }, + "range": [ + 219, + 227 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 12 + } + } + } + ], + "range": [ + 213, + 231 + ], + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 210, + 231 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 199, + 231 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n ", + "range": [ + 235, + 320 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 21, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "log", + "range": [ + 323, + 326 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "msg", + "range": [ + 327, + 330 + ], + "loc": { + "start": { + "line": 22, + "column": 6 + }, + "end": { + "line": 22, + "column": 9 + } + } + }, + { + "type": "Identifier", + "name": "level", + "range": [ + 332, + 337 + ], + "loc": { + "start": { + "line": 22, + "column": 11 + }, + "end": { + "line": 22, + "column": 16 + } + } + }, + { + "type": "Identifier", + "name": "context", + "range": [ + 339, + 346 + ], + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "datetime", + "range": [ + 358, + 366 + ], + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 16 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 369, + 383 + ], + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 23, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "datetime", + "range": [ + 384, + 392 + ], + "loc": { + "start": { + "line": 23, + "column": 34 + }, + "end": { + "line": 23, + "column": 42 + } + } + }, + "range": [ + 369, + 392 + ], + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 23, + "column": 42 + } + } + }, + "range": [ + 358, + 392 + ], + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 42 + } + } + } + ], + "kind": "var", + "range": [ + 354, + 393 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 43 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "console", + "range": [ + 399, + 406 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "name": "log", + "range": [ + 407, + 410 + ], + "loc": { + "start": { + "line": 25, + "column": 12 + }, + "end": { + "line": 25, + "column": 15 + } + } + }, + "range": [ + 399, + 410 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": false, + "range": [ + 411, + 414 + ], + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 19 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " on ", + "cooked": " on " + }, + "tail": false, + "range": [ + 433, + 440 + ], + "loc": { + "start": { + "line": 25, + "column": 38 + }, + "end": { + "line": 25, + "column": 45 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ": ", + "cooked": ": " + }, + "tail": true, + "range": [ + 448, + 452 + ], + "loc": { + "start": { + "line": 25, + "column": 53 + }, + "end": { + "line": 25, + "column": 57 + } + } + } + ], + "expressions": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "level", + "range": [ + 414, + 419 + ], + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "toUpperCase", + "range": [ + 420, + 431 + ], + "loc": { + "start": { + "line": 25, + "column": 25 + }, + "end": { + "line": 25, + "column": 36 + } + } + }, + "range": [ + 414, + 431 + ], + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 36 + } + } + }, + "arguments": [], + "range": [ + 414, + 433 + ], + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "datetime", + "range": [ + 440, + 448 + ], + "loc": { + "start": { + "line": 25, + "column": 45 + }, + "end": { + "line": 25, + "column": 53 + } + } + } + ], + "range": [ + 411, + 452 + ], + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 57 + } + } + }, + { + "type": "Identifier", + "name": "msg", + "range": [ + 454, + 457 + ], + "loc": { + "start": { + "line": 25, + "column": 59 + }, + "end": { + "line": 25, + "column": 62 + } + } + }, + { + "type": "Identifier", + "name": "context", + "range": [ + 459, + 466 + ], + "loc": { + "start": { + "line": 25, + "column": 64 + }, + "end": { + "line": 25, + "column": 71 + } + } + } + ], + "range": [ + 399, + 467 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 72 + } + } + }, + "range": [ + 399, + 468 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 73 + } + } + } + ], + "range": [ + 348, + 472 + ], + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 326, + 472 + ], + "loc": { + "start": { + "line": 22, + "column": 5 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 323, + 472 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 26, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n ", + "range": [ + 235, + 320 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 21, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 195, + 474 + ], + "loc": { + "start": { + "line": 12, + "column": 50 + }, + "end": { + "line": 27, + "column": 1 + } + } + }, + "range": [ + 152, + 474 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Console native logging\n ", + "range": [ + 111, + 144 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 145, + 474 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Console native logging\n ", + "range": [ + 111, + 144 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 474 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 27, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Console native logging\n ", + "range": [ + 111, + 144 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n ", + "range": [ + 235, + 320 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 21, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-log/ast/source/Driver/RavenBrowserDriver.js.json b/docs-api/deep-log/ast/source/Driver/RavenBrowserDriver.js.json new file mode 100644 index 00000000..00227222 --- /dev/null +++ b/docs-api/deep-log/ast/source/Driver/RavenBrowserDriver.js.json @@ -0,0 +1,3704 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + "imported": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./AbstractDriver", + "raw": "'./AbstractDriver'", + "range": [ + 90, + 108 + ], + "loc": { + "start": { + "line": 7, + "column": 29 + }, + "end": { + "line": 7, + "column": 47 + } + } + }, + "range": [ + 61, + 109 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 48 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Log", + "range": [ + 118, + 121 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 11 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Log", + "range": [ + 118, + 121 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 11 + } + } + }, + "range": [ + 118, + 121 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../Log", + "raw": "'../Log'", + "range": [ + 128, + 136 + ], + "loc": { + "start": { + "line": 8, + "column": 18 + }, + "end": { + "line": 8, + "column": 26 + } + } + }, + "range": [ + 110, + 137 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 27 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Raven", + "range": [ + 145, + 150 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 12 + } + } + }, + "range": [ + 145, + 150 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 12 + } + } + } + ], + "source": { + "type": "Literal", + "value": "raven", + "raw": "'raven'", + "range": [ + 156, + 163 + ], + "loc": { + "start": { + "line": 9, + "column": 18 + }, + "end": { + "line": 9, + "column": 25 + } + } + }, + "range": [ + 138, + 164 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 26 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "url", + "range": [ + 172, + 175 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 10 + } + } + }, + "range": [ + 172, + 175 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 10 + } + } + } + ], + "source": { + "type": "Literal", + "value": "url", + "raw": "'url'", + "range": [ + 181, + 186 + ], + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 21 + } + } + }, + "range": [ + 165, + 187 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 22 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Raven/Sentry logging for browser\n *\n * @todo replace it on compile time rather than runtime!\n ", + "range": [ + 189, + 292 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "RavenBrowserDriver", + "range": [ + 306, + 324 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 31 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 333, + 347 + ], + "loc": { + "start": { + "line": 17, + "column": 40 + }, + "end": { + "line": 17, + "column": 54 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 389, + 400 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "dsn", + "range": [ + 401, + 404 + ], + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 17 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 412, + 417 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 412, + 419 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 11 + } + } + }, + "range": [ + 412, + 420 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Raven", + "range": [ + 426, + 431 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 432, + 438 + ], + "loc": { + "start": { + "line": 24, + "column": 10 + }, + "end": { + "line": 24, + "column": 16 + } + } + }, + "range": [ + 426, + 438 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "RavenBrowserDriver", + "range": [ + 439, + 457 + ], + "loc": { + "start": { + "line": 24, + "column": 17 + }, + "end": { + "line": 24, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "_prepareDsn", + "range": [ + 458, + 469 + ], + "loc": { + "start": { + "line": 24, + "column": 36 + }, + "end": { + "line": 24, + "column": 47 + } + } + }, + "range": [ + 439, + 469 + ], + "loc": { + "start": { + "line": 24, + "column": 17 + }, + "end": { + "line": 24, + "column": 47 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "dsn", + "range": [ + 470, + 473 + ], + "loc": { + "start": { + "line": 24, + "column": 48 + }, + "end": { + "line": 24, + "column": 51 + } + } + } + ], + "range": [ + 439, + 474 + ], + "loc": { + "start": { + "line": 24, + "column": 17 + }, + "end": { + "line": 24, + "column": 52 + } + } + } + ], + "range": [ + 426, + 475 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 53 + } + } + }, + "property": { + "type": "Identifier", + "name": "install", + "range": [ + 476, + 483 + ], + "loc": { + "start": { + "line": 24, + "column": 54 + }, + "end": { + "line": 24, + "column": 61 + } + } + }, + "range": [ + 426, + 483 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 61 + } + } + }, + "arguments": [], + "range": [ + 426, + 485 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 63 + } + } + }, + "range": [ + 426, + 486 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 64 + } + } + } + ], + "range": [ + 406, + 490 + ], + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 25, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 400, + 490 + ], + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 25, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 389, + 490 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} dsn\n ", + "range": [ + 352, + 386 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @todo: tmp hook, remove it before persisting frontend config\n *\n * Remove password from url to not expose it into browser\n *\n * @param {String} dsn\n * @returns {String}\n ", + "range": [ + 494, + 687 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_prepareDsn", + "range": [ + 697, + 708 + ], + "loc": { + "start": { + "line": 35, + "column": 9 + }, + "end": { + "line": 35, + "column": 20 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "dsn", + "range": [ + 709, + 712 + ], + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 24 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "parsedDsn", + "range": [ + 724, + 733 + ], + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 17 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "url", + "range": [ + 736, + 739 + ], + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "parse", + "range": [ + 740, + 745 + ], + "loc": { + "start": { + "line": 36, + "column": 24 + }, + "end": { + "line": 36, + "column": 29 + } + } + }, + "range": [ + 736, + 745 + ], + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "dsn", + "range": [ + 746, + 749 + ], + "loc": { + "start": { + "line": 36, + "column": 30 + }, + "end": { + "line": 36, + "column": 33 + } + } + } + ], + "range": [ + 736, + 750 + ], + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 34 + } + } + }, + "range": [ + 724, + 750 + ], + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 34 + } + } + } + ], + "kind": "let", + "range": [ + 720, + 751 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 35 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "parsedDsn", + "range": [ + 756, + 765 + ], + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "auth", + "range": [ + 766, + 770 + ], + "loc": { + "start": { + "line": 37, + "column": 14 + }, + "end": { + "line": 37, + "column": 18 + } + } + }, + "range": [ + 756, + 770 + ], + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 18 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "parsedDsn", + "range": [ + 773, + 782 + ], + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "auth", + "range": [ + 783, + 787 + ], + "loc": { + "start": { + "line": 37, + "column": 31 + }, + "end": { + "line": 37, + "column": 35 + } + } + }, + "range": [ + 773, + 787 + ], + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "split", + "range": [ + 788, + 793 + ], + "loc": { + "start": { + "line": 37, + "column": 36 + }, + "end": { + "line": 37, + "column": 41 + } + } + }, + "range": [ + 773, + 793 + ], + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 41 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": ":", + "raw": "':'", + "range": [ + 794, + 797 + ], + "loc": { + "start": { + "line": 37, + "column": 42 + }, + "end": { + "line": 37, + "column": 45 + } + } + } + ], + "range": [ + 773, + 798 + ], + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 46 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 799, + 800 + ], + "loc": { + "start": { + "line": 37, + "column": 47 + }, + "end": { + "line": 37, + "column": 48 + } + } + }, + "range": [ + 773, + 801 + ], + "loc": { + "start": { + "line": 37, + "column": 21 + }, + "end": { + "line": 37, + "column": 49 + } + } + }, + "range": [ + 756, + 801 + ], + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 49 + } + } + }, + "range": [ + 756, + 802 + ], + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 50 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "url", + "range": [ + 815, + 818 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "format", + "range": [ + 819, + 825 + ], + "loc": { + "start": { + "line": 39, + "column": 15 + }, + "end": { + "line": 39, + "column": 21 + } + } + }, + "range": [ + 815, + 825 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "parsedDsn", + "range": [ + 826, + 835 + ], + "loc": { + "start": { + "line": 39, + "column": 22 + }, + "end": { + "line": 39, + "column": 31 + } + } + } + ], + "range": [ + 815, + 836 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 32 + } + } + }, + "range": [ + 808, + 837 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 33 + } + } + } + ], + "range": [ + 714, + 841 + ], + "loc": { + "start": { + "line": 35, + "column": 26 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 708, + 841 + ], + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 690, + 841 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 40, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @todo: tmp hook, remove it before persisting frontend config\n *\n * Remove password from url to not expose it into browser\n *\n * @param {String} dsn\n * @returns {String}\n ", + "range": [ + 494, + 687 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n ", + "range": [ + 845, + 930 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 46, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "log", + "range": [ + 933, + 936 + ], + "loc": { + "start": { + "line": 47, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "msg", + "range": [ + 937, + 940 + ], + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 9 + } + } + }, + { + "type": "Identifier", + "name": "level", + "range": [ + 942, + 947 + ], + "loc": { + "start": { + "line": 47, + "column": 11 + }, + "end": { + "line": 47, + "column": 16 + } + } + }, + { + "type": "Identifier", + "name": "context", + "range": [ + 949, + 956 + ], + "loc": { + "start": { + "line": 47, + "column": 18 + }, + "end": { + "line": 47, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 968, + 979 + ], + "loc": { + "start": { + "line": 48, + "column": 8 + }, + "end": { + "line": 48, + "column": 19 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "RavenBrowserDriver", + "range": [ + 982, + 1000 + ], + "loc": { + "start": { + "line": 48, + "column": 22 + }, + "end": { + "line": 48, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "_mapLevel", + "range": [ + 1001, + 1010 + ], + "loc": { + "start": { + "line": 48, + "column": 41 + }, + "end": { + "line": 48, + "column": 50 + } + } + }, + "range": [ + 982, + 1010 + ], + "loc": { + "start": { + "line": 48, + "column": 22 + }, + "end": { + "line": 48, + "column": 50 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "level", + "range": [ + 1011, + 1016 + ], + "loc": { + "start": { + "line": 48, + "column": 51 + }, + "end": { + "line": 48, + "column": 56 + } + } + } + ], + "range": [ + 982, + 1017 + ], + "loc": { + "start": { + "line": 48, + "column": 22 + }, + "end": { + "line": 48, + "column": 57 + } + } + }, + "range": [ + 968, + 1017 + ], + "loc": { + "start": { + "line": 48, + "column": 8 + }, + "end": { + "line": 48, + "column": 57 + } + } + } + ], + "kind": "let", + "range": [ + 964, + 1018 + ], + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 58 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Raven", + "range": [ + 1024, + 1029 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "captureMessage", + "range": [ + 1030, + 1044 + ], + "loc": { + "start": { + "line": 50, + "column": 10 + }, + "end": { + "line": 50, + "column": 24 + } + } + }, + "range": [ + 1024, + 1044 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "msg", + "range": [ + 1045, + 1048 + ], + "loc": { + "start": { + "line": 50, + "column": 25 + }, + "end": { + "line": 50, + "column": 28 + } + } + }, + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "level", + "range": [ + 1058, + 1063 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 11 + } + } + }, + "value": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1065, + 1076 + ], + "loc": { + "start": { + "line": 51, + "column": 13 + }, + "end": { + "line": 51, + "column": 24 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1058, + 1076 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 24 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "extra", + "range": [ + 1084, + 1089 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 11 + } + } + }, + "value": { + "type": "Identifier", + "name": "context", + "range": [ + 1091, + 1098 + ], + "loc": { + "start": { + "line": 52, + "column": 13 + }, + "end": { + "line": 52, + "column": 20 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1084, + 1098 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 20 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "tags", + "range": [ + 1106, + 1110 + ], + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 10 + } + } + }, + "value": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "originalLevel", + "range": [ + 1122, + 1135 + ], + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 21 + } + } + }, + "value": { + "type": "Identifier", + "name": "level", + "range": [ + 1137, + 1142 + ], + "loc": { + "start": { + "line": 54, + "column": 23 + }, + "end": { + "line": 54, + "column": 28 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1122, + 1142 + ], + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 28 + } + } + } + ], + "range": [ + 1112, + 1151 + ], + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 55, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1106, + 1151 + ], + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 55, + "column": 7 + } + } + } + ], + "range": [ + 1050, + 1158 + ], + "loc": { + "start": { + "line": 50, + "column": 30 + }, + "end": { + "line": 56, + "column": 5 + } + } + } + ], + "range": [ + 1024, + 1159 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 56, + "column": 6 + } + } + }, + "range": [ + 1024, + 1160 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 56, + "column": 7 + } + } + } + ], + "range": [ + 958, + 1164 + ], + "loc": { + "start": { + "line": 47, + "column": 27 + }, + "end": { + "line": 57, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 936, + 1164 + ], + "loc": { + "start": { + "line": 47, + "column": 5 + }, + "end": { + "line": 57, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 933, + 1164 + ], + "loc": { + "start": { + "line": 47, + "column": 2 + }, + "end": { + "line": 57, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n ", + "range": [ + 845, + 930 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 46, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} level\n * @returns {string}\n * @private\n ", + "range": [ + 1168, + 1241 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 63, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_mapLevel", + "range": [ + 1251, + 1260 + ], + "loc": { + "start": { + "line": 64, + "column": 9 + }, + "end": { + "line": 64, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "level", + "range": [ + 1261, + 1266 + ], + "loc": { + "start": { + "line": 64, + "column": 19 + }, + "end": { + "line": 64, + "column": 24 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1278, + 1289 + ], + "loc": { + "start": { + "line": 65, + "column": 8 + }, + "end": { + "line": 65, + "column": 19 + } + } + }, + "init": { + "type": "Literal", + "value": "info", + "raw": "'info'", + "range": [ + 1292, + 1298 + ], + "loc": { + "start": { + "line": 65, + "column": 22 + }, + "end": { + "line": 65, + "column": 28 + } + } + }, + "range": [ + 1278, + 1298 + ], + "loc": { + "start": { + "line": 65, + "column": 8 + }, + "end": { + "line": 65, + "column": 28 + } + } + } + ], + "kind": "let", + "range": [ + 1274, + 1299 + ], + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 65, + "column": 29 + } + } + }, + { + "type": "SwitchStatement", + "discriminant": { + "type": "Identifier", + "name": "level", + "range": [ + 1313, + 1318 + ], + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 17 + } + } + }, + "cases": [ + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1333, + 1336 + ], + "loc": { + "start": { + "line": 68, + "column": 11 + }, + "end": { + "line": 68, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "EMERGENCY", + "range": [ + 1337, + 1346 + ], + "loc": { + "start": { + "line": 68, + "column": 15 + }, + "end": { + "line": 68, + "column": 24 + } + } + }, + "range": [ + 1333, + 1346 + ], + "loc": { + "start": { + "line": 68, + "column": 11 + }, + "end": { + "line": 68, + "column": 24 + } + } + }, + "consequent": [], + "range": [ + 1328, + 1347 + ], + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 25 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1359, + 1362 + ], + "loc": { + "start": { + "line": 69, + "column": 11 + }, + "end": { + "line": 69, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "CRITICAL", + "range": [ + 1363, + 1371 + ], + "loc": { + "start": { + "line": 69, + "column": 15 + }, + "end": { + "line": 69, + "column": 23 + } + } + }, + "range": [ + 1359, + 1371 + ], + "loc": { + "start": { + "line": 69, + "column": 11 + }, + "end": { + "line": 69, + "column": 23 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1381, + 1392 + ], + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": "fatal", + "raw": "'fatal'", + "range": [ + 1395, + 1402 + ], + "loc": { + "start": { + "line": 70, + "column": 22 + }, + "end": { + "line": 70, + "column": 29 + } + } + }, + "range": [ + 1381, + 1402 + ], + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 29 + } + } + }, + "range": [ + 1381, + 1403 + ], + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 30 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 1412, + 1418 + ], + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 14 + } + } + } + ], + "range": [ + 1354, + 1418 + ], + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 71, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1430, + 1433 + ], + "loc": { + "start": { + "line": 72, + "column": 11 + }, + "end": { + "line": 72, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "ALERT", + "range": [ + 1434, + 1439 + ], + "loc": { + "start": { + "line": 72, + "column": 15 + }, + "end": { + "line": 72, + "column": 20 + } + } + }, + "range": [ + 1430, + 1439 + ], + "loc": { + "start": { + "line": 72, + "column": 11 + }, + "end": { + "line": 72, + "column": 20 + } + } + }, + "consequent": [], + "range": [ + 1425, + 1440 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 21 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1452, + 1455 + ], + "loc": { + "start": { + "line": 73, + "column": 11 + }, + "end": { + "line": 73, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "WARNING", + "range": [ + 1456, + 1463 + ], + "loc": { + "start": { + "line": 73, + "column": 15 + }, + "end": { + "line": 73, + "column": 22 + } + } + }, + "range": [ + 1452, + 1463 + ], + "loc": { + "start": { + "line": 73, + "column": 11 + }, + "end": { + "line": 73, + "column": 22 + } + } + }, + "consequent": [], + "range": [ + 1447, + 1464 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 23 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1476, + 1479 + ], + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 74, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "NOTICE", + "range": [ + 1480, + 1486 + ], + "loc": { + "start": { + "line": 74, + "column": 15 + }, + "end": { + "line": 74, + "column": 21 + } + } + }, + "range": [ + 1476, + 1486 + ], + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 74, + "column": 21 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1496, + 1507 + ], + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": "warning", + "raw": "'warning'", + "range": [ + 1510, + 1519 + ], + "loc": { + "start": { + "line": 75, + "column": 22 + }, + "end": { + "line": 75, + "column": 31 + } + } + }, + "range": [ + 1496, + 1519 + ], + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 31 + } + } + }, + "range": [ + 1496, + 1520 + ], + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 32 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 1529, + 1535 + ], + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 14 + } + } + } + ], + "range": [ + 1471, + 1535 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 76, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1547, + 1550 + ], + "loc": { + "start": { + "line": 77, + "column": 11 + }, + "end": { + "line": 77, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "ERROR", + "range": [ + 1551, + 1556 + ], + "loc": { + "start": { + "line": 77, + "column": 15 + }, + "end": { + "line": 77, + "column": 20 + } + } + }, + "range": [ + 1547, + 1556 + ], + "loc": { + "start": { + "line": 77, + "column": 11 + }, + "end": { + "line": 77, + "column": 20 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1566, + 1577 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": "error", + "raw": "'error'", + "range": [ + 1580, + 1587 + ], + "loc": { + "start": { + "line": 78, + "column": 22 + }, + "end": { + "line": 78, + "column": 29 + } + } + }, + "range": [ + 1566, + 1587 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 29 + } + } + }, + "range": [ + 1566, + 1588 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 30 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 1597, + 1603 + ], + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 14 + } + } + } + ], + "range": [ + 1542, + 1603 + ], + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 79, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1615, + 1618 + ], + "loc": { + "start": { + "line": 80, + "column": 11 + }, + "end": { + "line": 80, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "INFO", + "range": [ + 1619, + 1623 + ], + "loc": { + "start": { + "line": 80, + "column": 15 + }, + "end": { + "line": 80, + "column": 19 + } + } + }, + "range": [ + 1615, + 1623 + ], + "loc": { + "start": { + "line": 80, + "column": 11 + }, + "end": { + "line": 80, + "column": 19 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1633, + 1644 + ], + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": "info", + "raw": "'info'", + "range": [ + 1647, + 1653 + ], + "loc": { + "start": { + "line": 81, + "column": 22 + }, + "end": { + "line": 81, + "column": 28 + } + } + }, + "range": [ + 1633, + 1653 + ], + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 28 + } + } + }, + "range": [ + 1633, + 1654 + ], + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 29 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 1663, + 1669 + ], + "loc": { + "start": { + "line": 82, + "column": 8 + }, + "end": { + "line": 82, + "column": 14 + } + } + } + ], + "range": [ + 1610, + 1669 + ], + "loc": { + "start": { + "line": 80, + "column": 6 + }, + "end": { + "line": 82, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1681, + 1684 + ], + "loc": { + "start": { + "line": 83, + "column": 11 + }, + "end": { + "line": 83, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEBUG", + "range": [ + 1685, + 1690 + ], + "loc": { + "start": { + "line": 83, + "column": 15 + }, + "end": { + "line": 83, + "column": 20 + } + } + }, + "range": [ + 1681, + 1690 + ], + "loc": { + "start": { + "line": 83, + "column": 11 + }, + "end": { + "line": 83, + "column": 20 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1700, + 1711 + ], + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": "debug", + "raw": "'debug'", + "range": [ + 1714, + 1721 + ], + "loc": { + "start": { + "line": 84, + "column": 22 + }, + "end": { + "line": 84, + "column": 29 + } + } + }, + "range": [ + 1700, + 1721 + ], + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 29 + } + } + }, + "range": [ + 1700, + 1722 + ], + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 30 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 1731, + 1737 + ], + "loc": { + "start": { + "line": 85, + "column": 8 + }, + "end": { + "line": 85, + "column": 14 + } + } + } + ], + "range": [ + 1676, + 1737 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 85, + "column": 14 + } + } + } + ], + "range": [ + 1305, + 1743 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1756, + 1767 + ], + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 22 + } + } + }, + "range": [ + 1749, + 1768 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 23 + } + } + } + ], + "range": [ + 1268, + 1772 + ], + "loc": { + "start": { + "line": 64, + "column": 26 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1260, + 1772 + ], + "loc": { + "start": { + "line": 64, + "column": 18 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1244, + 1772 + ], + "loc": { + "start": { + "line": 64, + "column": 2 + }, + "end": { + "line": 89, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} level\n * @returns {string}\n * @private\n ", + "range": [ + 1168, + 1241 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 63, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 348, + 1774 + ], + "loc": { + "start": { + "line": 17, + "column": 55 + }, + "end": { + "line": 90, + "column": 1 + } + } + }, + "range": [ + 300, + 1774 + ], + "loc": { + "start": { + "line": 17, + "column": 7 + }, + "end": { + "line": 90, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Raven/Sentry logging for browser\n *\n * @todo replace it on compile time rather than runtime!\n ", + "range": [ + 189, + 292 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 293, + 1774 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 90, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Raven/Sentry logging for browser\n *\n * @todo replace it on compile time rather than runtime!\n ", + "range": [ + 189, + 292 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 1774 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 90, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Raven/Sentry logging for browser\n *\n * @todo replace it on compile time rather than runtime!\n ", + "range": [ + 189, + 292 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} dsn\n ", + "range": [ + 352, + 386 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @todo: tmp hook, remove it before persisting frontend config\n *\n * Remove password from url to not expose it into browser\n *\n * @param {String} dsn\n * @returns {String}\n ", + "range": [ + 494, + 687 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n ", + "range": [ + 845, + 930 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 46, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} level\n * @returns {string}\n * @private\n ", + "range": [ + 1168, + 1241 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 63, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-log/ast/source/Driver/RavenDriver.js.json b/docs-api/deep-log/ast/source/Driver/RavenDriver.js.json new file mode 100644 index 00000000..bfc84df8 --- /dev/null +++ b/docs-api/deep-log/ast/source/Driver/RavenDriver.js.json @@ -0,0 +1,3989 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + "imported": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + "range": [ + 69, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 22 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./AbstractDriver", + "raw": "'./AbstractDriver'", + "range": [ + 90, + 108 + ], + "loc": { + "start": { + "line": 7, + "column": 29 + }, + "end": { + "line": 7, + "column": 47 + } + } + }, + "range": [ + 61, + 109 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 48 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Log", + "range": [ + 118, + 121 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 11 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Log", + "range": [ + 118, + 121 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 11 + } + } + }, + "range": [ + 118, + 121 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../Log", + "raw": "'../Log'", + "range": [ + 128, + 136 + ], + "loc": { + "start": { + "line": 8, + "column": 18 + }, + "end": { + "line": 8, + "column": 26 + } + } + }, + "range": [ + 110, + 137 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 27 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Raven", + "range": [ + 145, + 150 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 12 + } + } + }, + "range": [ + 145, + 150 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 12 + } + } + } + ], + "source": { + "type": "Literal", + "value": "raven", + "raw": "'raven'", + "range": [ + 156, + 163 + ], + "loc": { + "start": { + "line": 9, + "column": 18 + }, + "end": { + "line": 9, + "column": 25 + } + } + }, + "range": [ + 138, + 164 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 26 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Raven/Sentry logging\n ", + "range": [ + 166, + 197 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "RavenDriver", + "range": [ + 211, + 222 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 24 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 231, + 245 + ], + "loc": { + "start": { + "line": 14, + "column": 33 + }, + "end": { + "line": 14, + "column": 47 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 287, + 298 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "dsn", + "range": [ + 299, + 302 + ], + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 17 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 310, + 315 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 310, + 317 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 11 + } + } + }, + "range": [ + 310, + 318 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 324, + 328 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_clients", + "range": [ + 329, + 337 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 17 + } + } + }, + "range": [ + 324, + 337 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 17 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 340, + 342 + ], + "loc": { + "start": { + "line": 21, + "column": 20 + }, + "end": { + "line": 21, + "column": 22 + } + } + }, + "range": [ + 324, + 342 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 22 + } + } + }, + "range": [ + 324, + 343 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 23 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "levelKey", + "range": [ + 358, + 366 + ], + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 21 + } + } + }, + "init": null, + "range": [ + 358, + 366 + ], + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 21 + } + } + } + ], + "kind": "let", + "range": [ + 354, + 366 + ], + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 21 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 370, + 373 + ], + "loc": { + "start": { + "line": 23, + "column": 25 + }, + "end": { + "line": 23, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "LEVELS", + "range": [ + 374, + 380 + ], + "loc": { + "start": { + "line": 23, + "column": 29 + }, + "end": { + "line": 23, + "column": 35 + } + } + }, + "range": [ + 370, + 380 + ], + "loc": { + "start": { + "line": 23, + "column": 25 + }, + "end": { + "line": 23, + "column": 35 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 395, + 398 + ], + "loc": { + "start": { + "line": 24, + "column": 11 + }, + "end": { + "line": 24, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "LEVELS", + "range": [ + 399, + 405 + ], + "loc": { + "start": { + "line": 24, + "column": 15 + }, + "end": { + "line": 24, + "column": 21 + } + } + }, + "range": [ + 395, + 405 + ], + "loc": { + "start": { + "line": 24, + "column": 11 + }, + "end": { + "line": 24, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 406, + 420 + ], + "loc": { + "start": { + "line": 24, + "column": 22 + }, + "end": { + "line": 24, + "column": 36 + } + } + }, + "range": [ + 395, + 420 + ], + "loc": { + "start": { + "line": 24, + "column": 11 + }, + "end": { + "line": 24, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "levelKey", + "range": [ + 421, + 429 + ], + "loc": { + "start": { + "line": 24, + "column": 37 + }, + "end": { + "line": 24, + "column": 45 + } + } + } + ], + "range": [ + 395, + 430 + ], + "loc": { + "start": { + "line": 24, + "column": 11 + }, + "end": { + "line": 24, + "column": 46 + } + } + }, + "prefix": true, + "range": [ + 394, + 430 + ], + "loc": { + "start": { + "line": 24, + "column": 10 + }, + "end": { + "line": 24, + "column": 46 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 442, + 451 + ], + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 17 + } + } + } + ], + "range": [ + 432, + 459 + ], + "loc": { + "start": { + "line": 24, + "column": 48 + }, + "end": { + "line": 26, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 390, + 459 + ], + "loc": { + "start": { + "line": 24, + "column": 6 + }, + "end": { + "line": 26, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "level", + "range": [ + 471, + 476 + ], + "loc": { + "start": { + "line": 28, + "column": 10 + }, + "end": { + "line": 28, + "column": 15 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 479, + 482 + ], + "loc": { + "start": { + "line": 28, + "column": 18 + }, + "end": { + "line": 28, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "LEVELS", + "range": [ + 483, + 489 + ], + "loc": { + "start": { + "line": 28, + "column": 22 + }, + "end": { + "line": 28, + "column": 28 + } + } + }, + "range": [ + 479, + 489 + ], + "loc": { + "start": { + "line": 28, + "column": 18 + }, + "end": { + "line": 28, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "levelKey", + "range": [ + 490, + 498 + ], + "loc": { + "start": { + "line": 28, + "column": 29 + }, + "end": { + "line": 28, + "column": 37 + } + } + }, + "range": [ + 479, + 499 + ], + "loc": { + "start": { + "line": 28, + "column": 18 + }, + "end": { + "line": 28, + "column": 38 + } + } + }, + "range": [ + 471, + 499 + ], + "loc": { + "start": { + "line": 28, + "column": 10 + }, + "end": { + "line": 28, + "column": 38 + } + } + } + ], + "kind": "let", + "range": [ + 467, + 500 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 28, + "column": 39 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 512, + 523 + ], + "loc": { + "start": { + "line": 30, + "column": 10 + }, + "end": { + "line": 30, + "column": 21 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "RavenDriver", + "range": [ + 526, + 537 + ], + "loc": { + "start": { + "line": 30, + "column": 24 + }, + "end": { + "line": 30, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "_mapLevel", + "range": [ + 538, + 547 + ], + "loc": { + "start": { + "line": 30, + "column": 36 + }, + "end": { + "line": 30, + "column": 45 + } + } + }, + "range": [ + 526, + 547 + ], + "loc": { + "start": { + "line": 30, + "column": 24 + }, + "end": { + "line": 30, + "column": 45 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "level", + "range": [ + 548, + 553 + ], + "loc": { + "start": { + "line": 30, + "column": 46 + }, + "end": { + "line": 30, + "column": 51 + } + } + } + ], + "range": [ + 526, + 554 + ], + "loc": { + "start": { + "line": 30, + "column": 24 + }, + "end": { + "line": 30, + "column": 52 + } + } + }, + "range": [ + 512, + 554 + ], + "loc": { + "start": { + "line": 30, + "column": 10 + }, + "end": { + "line": 30, + "column": 52 + } + } + } + ], + "kind": "let", + "range": [ + 508, + 555 + ], + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 53 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 563, + 567 + ], + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_clients", + "range": [ + 568, + 576 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 19 + } + } + }, + "range": [ + 563, + 576 + ], + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 577, + 588 + ], + "loc": { + "start": { + "line": 32, + "column": 20 + }, + "end": { + "line": 32, + "column": 31 + } + } + }, + "range": [ + 563, + 589 + ], + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 32 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Raven", + "range": [ + 596, + 601 + ], + "loc": { + "start": { + "line": 32, + "column": 39 + }, + "end": { + "line": 32, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "Client", + "range": [ + 602, + 608 + ], + "loc": { + "start": { + "line": 32, + "column": 45 + }, + "end": { + "line": 32, + "column": 51 + } + } + }, + "range": [ + 596, + 608 + ], + "loc": { + "start": { + "line": 32, + "column": 39 + }, + "end": { + "line": 32, + "column": 51 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "dsn", + "range": [ + 609, + 612 + ], + "loc": { + "start": { + "line": 32, + "column": 52 + }, + "end": { + "line": 32, + "column": 55 + } + } + }, + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "level", + "range": [ + 624, + 629 + ], + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 13 + } + } + }, + "value": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 631, + 642 + ], + "loc": { + "start": { + "line": 33, + "column": 15 + }, + "end": { + "line": 33, + "column": 26 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 624, + 642 + ], + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 26 + } + } + } + ], + "range": [ + 614, + 651 + ], + "loc": { + "start": { + "line": 32, + "column": 57 + }, + "end": { + "line": 34, + "column": 7 + } + } + } + ], + "range": [ + 592, + 652 + ], + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 34, + "column": 8 + } + } + }, + "range": [ + 563, + 652 + ], + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 34, + "column": 8 + } + } + }, + "range": [ + 563, + 653 + ], + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 34, + "column": 9 + } + } + } + ], + "range": [ + 382, + 659 + ], + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 35, + "column": 5 + } + } + }, + "each": false, + "range": [ + 349, + 659 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 35, + "column": 5 + } + } + } + ], + "range": [ + 304, + 663 + ], + "loc": { + "start": { + "line": 18, + "column": 19 + }, + "end": { + "line": 36, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 298, + 663 + ], + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 36, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 287, + 663 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 36, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} dsn\n ", + "range": [ + 250, + 284 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Raven.Client[]}\n ", + "range": [ + 667, + 707 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 40, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "clients", + "range": [ + 714, + 721 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 737, + 741 + ], + "loc": { + "start": { + "line": 42, + "column": 11 + }, + "end": { + "line": 42, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_clients", + "range": [ + 742, + 750 + ], + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 24 + } + } + }, + "range": [ + 737, + 750 + ], + "loc": { + "start": { + "line": 42, + "column": 11 + }, + "end": { + "line": 42, + "column": 24 + } + } + }, + "range": [ + 730, + 751 + ], + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 25 + } + } + } + ], + "range": [ + 724, + 755 + ], + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 43, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 721, + 755 + ], + "loc": { + "start": { + "line": 41, + "column": 13 + }, + "end": { + "line": 43, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 710, + 755 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 43, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Raven.Client[]}\n ", + "range": [ + 667, + 707 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 40, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n ", + "range": [ + 759, + 844 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 49, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "log", + "range": [ + 847, + 850 + ], + "loc": { + "start": { + "line": 50, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "msg", + "range": [ + 851, + 854 + ], + "loc": { + "start": { + "line": 50, + "column": 6 + }, + "end": { + "line": 50, + "column": 9 + } + } + }, + { + "type": "Identifier", + "name": "level", + "range": [ + 856, + 861 + ], + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 50, + "column": 16 + } + } + }, + { + "type": "Identifier", + "name": "context", + "range": [ + 863, + 870 + ], + "loc": { + "start": { + "line": 50, + "column": 18 + }, + "end": { + "line": 50, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 882, + 893 + ], + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 19 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "RavenDriver", + "range": [ + 896, + 907 + ], + "loc": { + "start": { + "line": 51, + "column": 22 + }, + "end": { + "line": 51, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "_mapLevel", + "range": [ + 908, + 917 + ], + "loc": { + "start": { + "line": 51, + "column": 34 + }, + "end": { + "line": 51, + "column": 43 + } + } + }, + "range": [ + 896, + 917 + ], + "loc": { + "start": { + "line": 51, + "column": 22 + }, + "end": { + "line": 51, + "column": 43 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "level", + "range": [ + 918, + 923 + ], + "loc": { + "start": { + "line": 51, + "column": 44 + }, + "end": { + "line": 51, + "column": 49 + } + } + } + ], + "range": [ + 896, + 924 + ], + "loc": { + "start": { + "line": 51, + "column": 22 + }, + "end": { + "line": 51, + "column": 50 + } + } + }, + "range": [ + 882, + 924 + ], + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 50 + } + } + } + ], + "kind": "let", + "range": [ + 878, + 925 + ], + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 51 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 931, + 935 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_clients", + "range": [ + 936, + 944 + ], + "loc": { + "start": { + "line": 53, + "column": 9 + }, + "end": { + "line": 53, + "column": 17 + } + } + }, + "range": [ + 931, + 944 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 945, + 956 + ], + "loc": { + "start": { + "line": 53, + "column": 18 + }, + "end": { + "line": 53, + "column": 29 + } + } + }, + "range": [ + 931, + 957 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "captureMessage", + "range": [ + 958, + 972 + ], + "loc": { + "start": { + "line": 53, + "column": 31 + }, + "end": { + "line": 53, + "column": 45 + } + } + }, + "range": [ + 931, + 972 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 45 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "msg", + "range": [ + 973, + 976 + ], + "loc": { + "start": { + "line": 53, + "column": 46 + }, + "end": { + "line": 53, + "column": 49 + } + } + }, + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "extra", + "range": [ + 986, + 991 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 11 + } + } + }, + "value": { + "type": "Identifier", + "name": "context", + "range": [ + 993, + 1000 + ], + "loc": { + "start": { + "line": 54, + "column": 13 + }, + "end": { + "line": 54, + "column": 20 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 986, + 1000 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 20 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "tags", + "range": [ + 1008, + 1012 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 10 + } + } + }, + "value": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "originalLevel", + "range": [ + 1024, + 1037 + ], + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 21 + } + } + }, + "value": { + "type": "Identifier", + "name": "level", + "range": [ + 1039, + 1044 + ], + "loc": { + "start": { + "line": 56, + "column": 23 + }, + "end": { + "line": 56, + "column": 28 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1024, + 1044 + ], + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 28 + } + } + } + ], + "range": [ + 1014, + 1053 + ], + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 57, + "column": 7 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1008, + 1053 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 57, + "column": 7 + } + } + } + ], + "range": [ + 978, + 1060 + ], + "loc": { + "start": { + "line": 53, + "column": 51 + }, + "end": { + "line": 58, + "column": 5 + } + } + } + ], + "range": [ + 931, + 1061 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 58, + "column": 6 + } + } + }, + "range": [ + 931, + 1062 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 58, + "column": 7 + } + } + } + ], + "range": [ + 872, + 1066 + ], + "loc": { + "start": { + "line": 50, + "column": 27 + }, + "end": { + "line": 59, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 850, + 1066 + ], + "loc": { + "start": { + "line": 50, + "column": 5 + }, + "end": { + "line": 59, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 847, + 1066 + ], + "loc": { + "start": { + "line": 50, + "column": 2 + }, + "end": { + "line": 59, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n ", + "range": [ + 759, + 844 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 49, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} level\n * @returns {string}\n * @private\n ", + "range": [ + 1070, + 1143 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_mapLevel", + "range": [ + 1153, + 1162 + ], + "loc": { + "start": { + "line": 66, + "column": 9 + }, + "end": { + "line": 66, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "level", + "range": [ + 1163, + 1168 + ], + "loc": { + "start": { + "line": 66, + "column": 19 + }, + "end": { + "line": 66, + "column": 24 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1180, + 1191 + ], + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 67, + "column": 19 + } + } + }, + "init": { + "type": "Literal", + "value": "info", + "raw": "'info'", + "range": [ + 1194, + 1200 + ], + "loc": { + "start": { + "line": 67, + "column": 22 + }, + "end": { + "line": 67, + "column": 28 + } + } + }, + "range": [ + 1180, + 1200 + ], + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 67, + "column": 28 + } + } + } + ], + "kind": "let", + "range": [ + 1176, + 1201 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 29 + } + } + }, + { + "type": "SwitchStatement", + "discriminant": { + "type": "Identifier", + "name": "level", + "range": [ + 1215, + 1220 + ], + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 17 + } + } + }, + "cases": [ + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1235, + 1238 + ], + "loc": { + "start": { + "line": 70, + "column": 11 + }, + "end": { + "line": 70, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "EMERGENCY", + "range": [ + 1239, + 1248 + ], + "loc": { + "start": { + "line": 70, + "column": 15 + }, + "end": { + "line": 70, + "column": 24 + } + } + }, + "range": [ + 1235, + 1248 + ], + "loc": { + "start": { + "line": 70, + "column": 11 + }, + "end": { + "line": 70, + "column": 24 + } + } + }, + "consequent": [], + "range": [ + 1230, + 1249 + ], + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 25 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1261, + 1264 + ], + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "CRITICAL", + "range": [ + 1265, + 1273 + ], + "loc": { + "start": { + "line": 71, + "column": 15 + }, + "end": { + "line": 71, + "column": 23 + } + } + }, + "range": [ + 1261, + 1273 + ], + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 23 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1283, + 1294 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": "fatal", + "raw": "'fatal'", + "range": [ + 1297, + 1304 + ], + "loc": { + "start": { + "line": 72, + "column": 22 + }, + "end": { + "line": 72, + "column": 29 + } + } + }, + "range": [ + 1283, + 1304 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 29 + } + } + }, + "range": [ + 1283, + 1305 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 30 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 1314, + 1320 + ], + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 73, + "column": 14 + } + } + } + ], + "range": [ + 1256, + 1320 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 73, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1332, + 1335 + ], + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 74, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "ALERT", + "range": [ + 1336, + 1341 + ], + "loc": { + "start": { + "line": 74, + "column": 15 + }, + "end": { + "line": 74, + "column": 20 + } + } + }, + "range": [ + 1332, + 1341 + ], + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 74, + "column": 20 + } + } + }, + "consequent": [], + "range": [ + 1327, + 1342 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 21 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1354, + 1357 + ], + "loc": { + "start": { + "line": 75, + "column": 11 + }, + "end": { + "line": 75, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "WARNING", + "range": [ + 1358, + 1365 + ], + "loc": { + "start": { + "line": 75, + "column": 15 + }, + "end": { + "line": 75, + "column": 22 + } + } + }, + "range": [ + 1354, + 1365 + ], + "loc": { + "start": { + "line": 75, + "column": 11 + }, + "end": { + "line": 75, + "column": 22 + } + } + }, + "consequent": [], + "range": [ + 1349, + 1366 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 23 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1378, + 1381 + ], + "loc": { + "start": { + "line": 76, + "column": 11 + }, + "end": { + "line": 76, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "NOTICE", + "range": [ + 1382, + 1388 + ], + "loc": { + "start": { + "line": 76, + "column": 15 + }, + "end": { + "line": 76, + "column": 21 + } + } + }, + "range": [ + 1378, + 1388 + ], + "loc": { + "start": { + "line": 76, + "column": 11 + }, + "end": { + "line": 76, + "column": 21 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1398, + 1409 + ], + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": "warning", + "raw": "'warning'", + "range": [ + 1412, + 1421 + ], + "loc": { + "start": { + "line": 77, + "column": 22 + }, + "end": { + "line": 77, + "column": 31 + } + } + }, + "range": [ + 1398, + 1421 + ], + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 31 + } + } + }, + "range": [ + 1398, + 1422 + ], + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 32 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 1431, + 1437 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 14 + } + } + } + ], + "range": [ + 1373, + 1437 + ], + "loc": { + "start": { + "line": 76, + "column": 6 + }, + "end": { + "line": 78, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1449, + 1452 + ], + "loc": { + "start": { + "line": 79, + "column": 11 + }, + "end": { + "line": 79, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "ERROR", + "range": [ + 1453, + 1458 + ], + "loc": { + "start": { + "line": 79, + "column": 15 + }, + "end": { + "line": 79, + "column": 20 + } + } + }, + "range": [ + 1449, + 1458 + ], + "loc": { + "start": { + "line": 79, + "column": 11 + }, + "end": { + "line": 79, + "column": 20 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1468, + 1479 + ], + "loc": { + "start": { + "line": 80, + "column": 8 + }, + "end": { + "line": 80, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": "error", + "raw": "'error'", + "range": [ + 1482, + 1489 + ], + "loc": { + "start": { + "line": 80, + "column": 22 + }, + "end": { + "line": 80, + "column": 29 + } + } + }, + "range": [ + 1468, + 1489 + ], + "loc": { + "start": { + "line": 80, + "column": 8 + }, + "end": { + "line": 80, + "column": 29 + } + } + }, + "range": [ + 1468, + 1490 + ], + "loc": { + "start": { + "line": 80, + "column": 8 + }, + "end": { + "line": 80, + "column": 30 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 1499, + 1505 + ], + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 14 + } + } + } + ], + "range": [ + 1444, + 1505 + ], + "loc": { + "start": { + "line": 79, + "column": 6 + }, + "end": { + "line": 81, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1517, + 1520 + ], + "loc": { + "start": { + "line": 82, + "column": 11 + }, + "end": { + "line": 82, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "INFO", + "range": [ + 1521, + 1525 + ], + "loc": { + "start": { + "line": 82, + "column": 15 + }, + "end": { + "line": 82, + "column": 19 + } + } + }, + "range": [ + 1517, + 1525 + ], + "loc": { + "start": { + "line": 82, + "column": 11 + }, + "end": { + "line": 82, + "column": 19 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1535, + 1546 + ], + "loc": { + "start": { + "line": 83, + "column": 8 + }, + "end": { + "line": 83, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": "info", + "raw": "'info'", + "range": [ + 1549, + 1555 + ], + "loc": { + "start": { + "line": 83, + "column": 22 + }, + "end": { + "line": 83, + "column": 28 + } + } + }, + "range": [ + 1535, + 1555 + ], + "loc": { + "start": { + "line": 83, + "column": 8 + }, + "end": { + "line": 83, + "column": 28 + } + } + }, + "range": [ + 1535, + 1556 + ], + "loc": { + "start": { + "line": 83, + "column": 8 + }, + "end": { + "line": 83, + "column": 29 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 1565, + 1571 + ], + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 14 + } + } + } + ], + "range": [ + 1512, + 1571 + ], + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 84, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 1583, + 1586 + ], + "loc": { + "start": { + "line": 85, + "column": 11 + }, + "end": { + "line": 85, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEBUG", + "range": [ + 1587, + 1592 + ], + "loc": { + "start": { + "line": 85, + "column": 15 + }, + "end": { + "line": 85, + "column": 20 + } + } + }, + "range": [ + 1583, + 1592 + ], + "loc": { + "start": { + "line": 85, + "column": 11 + }, + "end": { + "line": 85, + "column": 20 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1602, + 1613 + ], + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": "debug", + "raw": "'debug'", + "range": [ + 1616, + 1623 + ], + "loc": { + "start": { + "line": 86, + "column": 22 + }, + "end": { + "line": 86, + "column": 29 + } + } + }, + "range": [ + 1602, + 1623 + ], + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 29 + } + } + }, + "range": [ + 1602, + 1624 + ], + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 30 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 1633, + 1639 + ], + "loc": { + "start": { + "line": 87, + "column": 8 + }, + "end": { + "line": 87, + "column": 14 + } + } + } + ], + "range": [ + 1578, + 1639 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 87, + "column": 14 + } + } + } + ], + "range": [ + 1207, + 1645 + ], + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 88, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "nativeLevel", + "range": [ + 1658, + 1669 + ], + "loc": { + "start": { + "line": 90, + "column": 11 + }, + "end": { + "line": 90, + "column": 22 + } + } + }, + "range": [ + 1651, + 1670 + ], + "loc": { + "start": { + "line": 90, + "column": 4 + }, + "end": { + "line": 90, + "column": 23 + } + } + } + ], + "range": [ + 1170, + 1674 + ], + "loc": { + "start": { + "line": 66, + "column": 26 + }, + "end": { + "line": 91, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1162, + 1674 + ], + "loc": { + "start": { + "line": 66, + "column": 18 + }, + "end": { + "line": 91, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1146, + 1674 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 91, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} level\n * @returns {string}\n * @private\n ", + "range": [ + 1070, + 1143 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 246, + 1676 + ], + "loc": { + "start": { + "line": 14, + "column": 48 + }, + "end": { + "line": 92, + "column": 1 + } + } + }, + "range": [ + 205, + 1676 + ], + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 92, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Raven/Sentry logging\n ", + "range": [ + 166, + 197 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 198, + 1676 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 92, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Raven/Sentry logging\n ", + "range": [ + 166, + 197 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 1676 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 92, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Raven/Sentry logging\n ", + "range": [ + 166, + 197 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} dsn\n ", + "range": [ + 250, + 284 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Raven.Client[]}\n ", + "range": [ + 667, + 707 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 40, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n ", + "range": [ + 759, + 844 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 49, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} level\n * @returns {string}\n * @private\n ", + "range": [ + 1070, + 1143 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-log/ast/source/Exception/Exception.js.json b/docs-api/deep-log/ast/source/Exception/Exception.js.json new file mode 100644 index 00000000..a5724794 --- /dev/null +++ b/docs-api/deep-log/ast/source/Exception/Exception.js.json @@ -0,0 +1,651 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 149, + 158 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 167, + 171 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 172, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "range": [ + 167, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 182, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "range": [ + 167, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 233, + 244 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 248, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 245, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 260, + 265 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 269, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 266, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 260, + 274 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 260, + 275 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 254, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 244, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 233, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 192, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 143, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 136, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 281 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-log/ast/source/Log.js.json b/docs-api/deep-log/ast/source/Log.js.json new file mode 100644 index 00000000..1705e8af --- /dev/null +++ b/docs-api/deep-log/ast/source/Log.js.json @@ -0,0 +1,8129 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 68, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + }, + "range": [ + 68, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-kernel", + "raw": "'deep-kernel'", + "range": [ + 80, + 93 + ], + "loc": { + "start": { + "line": 7, + "column": 19 + }, + "end": { + "line": 7, + "column": 32 + } + } + }, + "range": [ + 61, + 94 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 33 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 102, + 106 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 11 + } + } + }, + "range": [ + 102, + 106 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 112, + 123 + ], + "loc": { + "start": { + "line": 8, + "column": 17 + }, + "end": { + "line": 8, + "column": 28 + } + } + }, + "range": [ + 95, + 124 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 29 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "ConsoleDriver", + "range": [ + 133, + 146 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 21 + } + } + }, + "imported": { + "type": "Identifier", + "name": "ConsoleDriver", + "range": [ + 133, + 146 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 21 + } + } + }, + "range": [ + 133, + 146 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 21 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Driver/ConsoleDriver", + "raw": "'./Driver/ConsoleDriver'", + "range": [ + 153, + 177 + ], + "loc": { + "start": { + "line": 9, + "column": 28 + }, + "end": { + "line": 9, + "column": 52 + } + } + }, + "range": [ + 125, + 178 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 53 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "RavenDriver", + "range": [ + 187, + 198 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 19 + } + } + }, + "imported": { + "type": "Identifier", + "name": "RavenDriver", + "range": [ + 187, + 198 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 19 + } + } + }, + "range": [ + 187, + 198 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 19 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Driver/RavenDriver", + "raw": "'./Driver/RavenDriver'", + "range": [ + 205, + 227 + ], + "loc": { + "start": { + "line": 10, + "column": 26 + }, + "end": { + "line": 10, + "column": 48 + } + } + }, + "range": [ + 179, + 228 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 49 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "RavenBrowserDriver", + "range": [ + 237, + 255 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 26 + } + } + }, + "imported": { + "type": "Identifier", + "name": "RavenBrowserDriver", + "range": [ + 237, + 255 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 26 + } + } + }, + "range": [ + 237, + 255 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 26 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Driver/RavenBrowserDriver", + "raw": "'./Driver/RavenBrowserDriver'", + "range": [ + 262, + 291 + ], + "loc": { + "start": { + "line": 11, + "column": 33 + }, + "end": { + "line": 11, + "column": 62 + } + } + }, + "range": [ + 229, + 292 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 63 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 301, + 315 + ], + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "imported": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 301, + 315 + ], + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "range": [ + 301, + 315 + ], + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 22 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Driver/AbstractDriver", + "raw": "'./Driver/AbstractDriver'", + "range": [ + 322, + 347 + ], + "loc": { + "start": { + "line": 12, + "column": 29 + }, + "end": { + "line": 12, + "column": 54 + } + } + }, + "range": [ + 293, + 348 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 55 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Logging manager\n ", + "range": [ + 350, + 376 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Log", + "range": [ + 390, + 393 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 16 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 402, + 408 + ], + "loc": { + "start": { + "line": 17, + "column": 25 + }, + "end": { + "line": 17, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "ContainerAware", + "range": [ + 409, + 423 + ], + "loc": { + "start": { + "line": 17, + "column": 32 + }, + "end": { + "line": 17, + "column": 46 + } + } + }, + "range": [ + 402, + 423 + ], + "loc": { + "start": { + "line": 17, + "column": 25 + }, + "end": { + "line": 17, + "column": 46 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 469, + 480 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "drivers", + "range": [ + 481, + 488 + ], + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 21 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 491, + 493 + ], + "loc": { + "start": { + "line": 21, + "column": 24 + }, + "end": { + "line": 21, + "column": 26 + } + } + }, + "range": [ + 481, + 493 + ], + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 26 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 501, + 506 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 501, + 508 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 11 + } + } + }, + "range": [ + 501, + 509 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 515, + 519 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_drivers", + "range": [ + 520, + 528 + ], + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 17 + } + } + }, + "range": [ + 515, + 528 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 17 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 535, + 539 + ], + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "Generic", + "range": [ + 540, + 547 + ], + "loc": { + "start": { + "line": 24, + "column": 29 + }, + "end": { + "line": 24, + "column": 36 + } + } + }, + "range": [ + 535, + 547 + ], + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "ObjectStorage", + "range": [ + 548, + 561 + ], + "loc": { + "start": { + "line": 24, + "column": 37 + }, + "end": { + "line": 24, + "column": 50 + } + } + }, + "range": [ + 535, + 561 + ], + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 24, + "column": 50 + } + } + }, + "arguments": [], + "range": [ + 531, + 563 + ], + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 24, + "column": 52 + } + } + }, + "range": [ + 515, + 563 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 52 + } + } + }, + "range": [ + 515, + 564 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 53 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "driverName", + "range": [ + 579, + 589 + ], + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 23 + } + } + }, + "init": null, + "range": [ + 579, + 589 + ], + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 23 + } + } + } + ], + "kind": "let", + "range": [ + 575, + 589 + ], + "loc": { + "start": { + "line": 26, + "column": 9 + }, + "end": { + "line": 26, + "column": 23 + } + } + }, + "right": { + "type": "Identifier", + "name": "drivers", + "range": [ + 593, + 600 + ], + "loc": { + "start": { + "line": 26, + "column": 27 + }, + "end": { + "line": 26, + "column": 34 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "drivers", + "range": [ + 615, + 622 + ], + "loc": { + "start": { + "line": 27, + "column": 11 + }, + "end": { + "line": 27, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 623, + 637 + ], + "loc": { + "start": { + "line": 27, + "column": 19 + }, + "end": { + "line": 27, + "column": 33 + } + } + }, + "range": [ + 615, + 637 + ], + "loc": { + "start": { + "line": 27, + "column": 11 + }, + "end": { + "line": 27, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "driverName", + "range": [ + 638, + 648 + ], + "loc": { + "start": { + "line": 27, + "column": 34 + }, + "end": { + "line": 27, + "column": 44 + } + } + } + ], + "range": [ + 615, + 649 + ], + "loc": { + "start": { + "line": 27, + "column": 11 + }, + "end": { + "line": 27, + "column": 45 + } + } + }, + "prefix": true, + "range": [ + 614, + 649 + ], + "loc": { + "start": { + "line": 27, + "column": 10 + }, + "end": { + "line": 27, + "column": 45 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 661, + 670 + ], + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 17 + } + } + } + ], + "range": [ + 651, + 678 + ], + "loc": { + "start": { + "line": 27, + "column": 47 + }, + "end": { + "line": 29, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 610, + 678 + ], + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 29, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 686, + 690 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "register", + "range": [ + 691, + 699 + ], + "loc": { + "start": { + "line": 31, + "column": 11 + }, + "end": { + "line": 31, + "column": 19 + } + } + }, + "range": [ + 686, + 699 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 19 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "driverName", + "range": [ + 700, + 710 + ], + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 30 + } + } + }, + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "drivers", + "range": [ + 712, + 719 + ], + "loc": { + "start": { + "line": 31, + "column": 32 + }, + "end": { + "line": 31, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "driverName", + "range": [ + 720, + 730 + ], + "loc": { + "start": { + "line": 31, + "column": 40 + }, + "end": { + "line": 31, + "column": 50 + } + } + }, + "range": [ + 712, + 731 + ], + "loc": { + "start": { + "line": 31, + "column": 32 + }, + "end": { + "line": 31, + "column": 51 + } + } + } + ], + "range": [ + 686, + 732 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 52 + } + } + }, + "range": [ + 686, + 733 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 53 + } + } + } + ], + "range": [ + 602, + 739 + ], + "loc": { + "start": { + "line": 26, + "column": 36 + }, + "end": { + "line": 32, + "column": 5 + } + } + }, + "each": false, + "range": [ + 570, + 739 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "range": [ + 495, + 743 + ], + "loc": { + "start": { + "line": 21, + "column": 28 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 480, + 743 + ], + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 469, + 743 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 33, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} drivers\n ", + "range": [ + 428, + 466 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 747, + 852 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 40, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "boot", + "range": [ + 855, + 859 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 41, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "kernel", + "range": [ + 860, + 866 + ], + "loc": { + "start": { + "line": 41, + "column": 7 + }, + "end": { + "line": 41, + "column": 13 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 868, + 876 + ], + "loc": { + "start": { + "line": 41, + "column": 15 + }, + "end": { + "line": 41, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "globals", + "range": [ + 933, + 940 + ], + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 15 + } + } + }, + "init": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 943, + 949 + ], + "loc": { + "start": { + "line": 43, + "column": 18 + }, + "end": { + "line": 43, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 950, + 956 + ], + "loc": { + "start": { + "line": 43, + "column": 25 + }, + "end": { + "line": 43, + "column": 31 + } + } + }, + "range": [ + 943, + 956 + ], + "loc": { + "start": { + "line": 43, + "column": 18 + }, + "end": { + "line": 43, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "globals", + "range": [ + 957, + 964 + ], + "loc": { + "start": { + "line": 43, + "column": 32 + }, + "end": { + "line": 43, + "column": 39 + } + } + }, + "range": [ + 943, + 964 + ], + "loc": { + "start": { + "line": 43, + "column": 18 + }, + "end": { + "line": 43, + "column": 39 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 968, + 974 + ], + "loc": { + "start": { + "line": 43, + "column": 43 + }, + "end": { + "line": 43, + "column": 49 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 975, + 981 + ], + "loc": { + "start": { + "line": 43, + "column": 50 + }, + "end": { + "line": 43, + "column": 56 + } + } + }, + "range": [ + 968, + 981 + ], + "loc": { + "start": { + "line": 43, + "column": 43 + }, + "end": { + "line": 43, + "column": 56 + } + } + }, + "range": [ + 943, + 981 + ], + "loc": { + "start": { + "line": 43, + "column": 18 + }, + "end": { + "line": 43, + "column": 56 + } + } + }, + "range": [ + 933, + 981 + ], + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 56 + } + } + } + ], + "kind": "let", + "range": [ + 929, + 982 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 57 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: remove this compatibility hook", + "range": [ + 884, + 924 + ], + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 44 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "drivers", + "range": [ + 992, + 999 + ], + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 45, + "column": 15 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "globals", + "range": [ + 1002, + 1009 + ], + "loc": { + "start": { + "line": 45, + "column": 18 + }, + "end": { + "line": 45, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "logDrivers", + "range": [ + 1010, + 1020 + ], + "loc": { + "start": { + "line": 45, + "column": 26 + }, + "end": { + "line": 45, + "column": 36 + } + } + }, + "range": [ + 1002, + 1020 + ], + "loc": { + "start": { + "line": 45, + "column": 18 + }, + "end": { + "line": 45, + "column": 36 + } + } + }, + "range": [ + 992, + 1020 + ], + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 45, + "column": 36 + } + } + } + ], + "kind": "let", + "range": [ + 988, + 1021 + ], + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 37 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "driverName", + "range": [ + 1036, + 1046 + ], + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 23 + } + } + }, + "init": null, + "range": [ + 1036, + 1046 + ], + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 23 + } + } + } + ], + "kind": "let", + "range": [ + 1032, + 1046 + ], + "loc": { + "start": { + "line": 47, + "column": 9 + }, + "end": { + "line": 47, + "column": 23 + } + } + }, + "right": { + "type": "Identifier", + "name": "drivers", + "range": [ + 1050, + 1057 + ], + "loc": { + "start": { + "line": 47, + "column": 27 + }, + "end": { + "line": 47, + "column": 34 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "drivers", + "range": [ + 1072, + 1079 + ], + "loc": { + "start": { + "line": 48, + "column": 11 + }, + "end": { + "line": 48, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 1080, + 1094 + ], + "loc": { + "start": { + "line": 48, + "column": 19 + }, + "end": { + "line": 48, + "column": 33 + } + } + }, + "range": [ + 1072, + 1094 + ], + "loc": { + "start": { + "line": 48, + "column": 11 + }, + "end": { + "line": 48, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "driverName", + "range": [ + 1095, + 1105 + ], + "loc": { + "start": { + "line": 48, + "column": 34 + }, + "end": { + "line": 48, + "column": 44 + } + } + } + ], + "range": [ + 1072, + 1106 + ], + "loc": { + "start": { + "line": 48, + "column": 11 + }, + "end": { + "line": 48, + "column": 45 + } + } + }, + "prefix": true, + "range": [ + 1071, + 1106 + ], + "loc": { + "start": { + "line": 48, + "column": 10 + }, + "end": { + "line": 48, + "column": 45 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 1118, + 1127 + ], + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 49, + "column": 17 + } + } + } + ], + "range": [ + 1108, + 1135 + ], + "loc": { + "start": { + "line": 48, + "column": 47 + }, + "end": { + "line": 50, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1067, + 1135 + ], + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 50, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1143, + 1147 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "register", + "range": [ + 1148, + 1156 + ], + "loc": { + "start": { + "line": 52, + "column": 11 + }, + "end": { + "line": 52, + "column": 19 + } + } + }, + "range": [ + 1143, + 1156 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 19 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "driverName", + "range": [ + 1157, + 1167 + ], + "loc": { + "start": { + "line": 52, + "column": 20 + }, + "end": { + "line": 52, + "column": 30 + } + } + }, + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "drivers", + "range": [ + 1169, + 1176 + ], + "loc": { + "start": { + "line": 52, + "column": 32 + }, + "end": { + "line": 52, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "driverName", + "range": [ + 1177, + 1187 + ], + "loc": { + "start": { + "line": 52, + "column": 40 + }, + "end": { + "line": 52, + "column": 50 + } + } + }, + "range": [ + 1169, + 1188 + ], + "loc": { + "start": { + "line": 52, + "column": 32 + }, + "end": { + "line": 52, + "column": 51 + } + } + } + ], + "range": [ + 1143, + 1189 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 52 + } + } + }, + "range": [ + 1143, + 1190 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 53 + } + } + } + ], + "range": [ + 1059, + 1196 + ], + "loc": { + "start": { + "line": 47, + "column": 36 + }, + "end": { + "line": 53, + "column": 5 + } + } + }, + "each": false, + "range": [ + 1027, + 1196 + ], + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 53, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1202, + 1210 + ], + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 55, + "column": 12 + } + } + }, + "arguments": [], + "range": [ + 1202, + 1212 + ], + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 55, + "column": 14 + } + } + }, + "range": [ + 1202, + 1213 + ], + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 55, + "column": 15 + } + } + } + ], + "range": [ + 878, + 1217 + ], + "loc": { + "start": { + "line": 41, + "column": 25 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 859, + 1217 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 855, + 1217 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 56, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 747, + 852 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 40, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n *\n * @param {String} type\n * @param {Array} args\n * @returns {AbstractDriver}\n ", + "range": [ + 1221, + 1317 + ], + "loc": { + "start": { + "line": 58, + "column": 2 + }, + "end": { + "line": 63, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "create", + "range": [ + 1320, + 1326 + ], + "loc": { + "start": { + "line": 64, + "column": 2 + }, + "end": { + "line": 64, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "type", + "range": [ + 1327, + 1331 + ], + "loc": { + "start": { + "line": 64, + "column": 9 + }, + "end": { + "line": 64, + "column": 13 + } + } + }, + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 1336, + 1340 + ], + "loc": { + "start": { + "line": 64, + "column": 18 + }, + "end": { + "line": 64, + "column": 22 + } + } + }, + "range": [ + 1333, + 1340 + ], + "loc": { + "start": { + "line": 64, + "column": 15 + }, + "end": { + "line": 64, + "column": 22 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "driver", + "range": [ + 1352, + 1358 + ], + "loc": { + "start": { + "line": 65, + "column": 8 + }, + "end": { + "line": 65, + "column": 14 + } + } + }, + "init": null, + "range": [ + 1352, + 1358 + ], + "loc": { + "start": { + "line": 65, + "column": 8 + }, + "end": { + "line": 65, + "column": 14 + } + } + } + ], + "kind": "var", + "range": [ + 1348, + 1359 + ], + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 65, + "column": 15 + } + } + }, + { + "type": "SwitchStatement", + "discriminant": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "type", + "range": [ + 1373, + 1377 + ], + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "toLowerCase", + "range": [ + 1378, + 1389 + ], + "loc": { + "start": { + "line": 67, + "column": 17 + }, + "end": { + "line": 67, + "column": 28 + } + } + }, + "range": [ + 1373, + 1389 + ], + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 28 + } + } + }, + "arguments": [], + "range": [ + 1373, + 1391 + ], + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 30 + } + } + }, + "cases": [ + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": "console", + "raw": "'console'", + "range": [ + 1406, + 1415 + ], + "loc": { + "start": { + "line": 68, + "column": 11 + }, + "end": { + "line": 68, + "column": 20 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "driver", + "range": [ + 1425, + 1431 + ], + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 14 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "ConsoleDriver", + "range": [ + 1438, + 1451 + ], + "loc": { + "start": { + "line": 69, + "column": 21 + }, + "end": { + "line": 69, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 1455, + 1459 + ], + "loc": { + "start": { + "line": 69, + "column": 38 + }, + "end": { + "line": 69, + "column": 42 + } + } + }, + "range": [ + 1452, + 1459 + ], + "loc": { + "start": { + "line": 69, + "column": 35 + }, + "end": { + "line": 69, + "column": 42 + } + } + } + ], + "range": [ + 1434, + 1460 + ], + "loc": { + "start": { + "line": 69, + "column": 17 + }, + "end": { + "line": 69, + "column": 43 + } + } + }, + "range": [ + 1425, + 1460 + ], + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 43 + } + } + }, + "range": [ + 1425, + 1461 + ], + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 44 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 1470, + 1476 + ], + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 14 + } + } + } + ], + "range": [ + 1401, + 1476 + ], + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 70, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": "raven", + "raw": "'raven'", + "range": [ + 1488, + 1495 + ], + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 18 + } + } + }, + "consequent": [], + "range": [ + 1483, + 1496 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 19 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": "sentry", + "raw": "'sentry'", + "range": [ + 1508, + 1516 + ], + "loc": { + "start": { + "line": 72, + "column": 11 + }, + "end": { + "line": 72, + "column": 19 + } + } + }, + "consequent": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "DriverPrototype", + "range": [ + 1530, + 1545 + ], + "loc": { + "start": { + "line": 73, + "column": 12 + }, + "end": { + "line": 73, + "column": 27 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1548, + 1552 + ], + "loc": { + "start": { + "line": 73, + "column": 30 + }, + "end": { + "line": 73, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "container", + "range": [ + 1553, + 1562 + ], + "loc": { + "start": { + "line": 73, + "column": 35 + }, + "end": { + "line": 73, + "column": 44 + } + } + }, + "range": [ + 1548, + 1562 + ], + "loc": { + "start": { + "line": 73, + "column": 30 + }, + "end": { + "line": 73, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 1563, + 1566 + ], + "loc": { + "start": { + "line": 73, + "column": 45 + }, + "end": { + "line": 73, + "column": 48 + } + } + }, + "range": [ + 1548, + 1566 + ], + "loc": { + "start": { + "line": 73, + "column": 30 + }, + "end": { + "line": 73, + "column": 48 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 1567, + 1573 + ], + "loc": { + "start": { + "line": 73, + "column": 49 + }, + "end": { + "line": 73, + "column": 55 + } + } + }, + "property": { + "type": "Identifier", + "name": "CONTEXT", + "range": [ + 1574, + 1581 + ], + "loc": { + "start": { + "line": 73, + "column": 56 + }, + "end": { + "line": 73, + "column": 63 + } + } + }, + "range": [ + 1567, + 1581 + ], + "loc": { + "start": { + "line": 73, + "column": 49 + }, + "end": { + "line": 73, + "column": 63 + } + } + } + ], + "range": [ + 1548, + 1582 + ], + "loc": { + "start": { + "line": 73, + "column": 30 + }, + "end": { + "line": 73, + "column": 64 + } + } + }, + "property": { + "type": "Identifier", + "name": "isFrontend", + "range": [ + 1583, + 1593 + ], + "loc": { + "start": { + "line": 73, + "column": 65 + }, + "end": { + "line": 73, + "column": 75 + } + } + }, + "range": [ + 1548, + 1593 + ], + "loc": { + "start": { + "line": 73, + "column": 30 + }, + "end": { + "line": 73, + "column": 75 + } + } + }, + "consequent": { + "type": "Identifier", + "name": "RavenBrowserDriver", + "range": [ + 1596, + 1614 + ], + "loc": { + "start": { + "line": 73, + "column": 78 + }, + "end": { + "line": 73, + "column": 96 + } + } + }, + "alternate": { + "type": "Identifier", + "name": "RavenDriver", + "range": [ + 1617, + 1628 + ], + "loc": { + "start": { + "line": 73, + "column": 99 + }, + "end": { + "line": 73, + "column": 110 + } + } + }, + "range": [ + 1548, + 1628 + ], + "loc": { + "start": { + "line": 73, + "column": 30 + }, + "end": { + "line": 73, + "column": 110 + } + } + }, + "range": [ + 1530, + 1628 + ], + "loc": { + "start": { + "line": 73, + "column": 12 + }, + "end": { + "line": 73, + "column": 110 + } + } + } + ], + "kind": "let", + "range": [ + 1526, + 1629 + ], + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 73, + "column": 111 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "driver", + "range": [ + 1639, + 1645 + ], + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 14 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "DriverPrototype", + "range": [ + 1652, + 1667 + ], + "loc": { + "start": { + "line": 75, + "column": 21 + }, + "end": { + "line": 75, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "args", + "range": [ + 1668, + 1672 + ], + "loc": { + "start": { + "line": 75, + "column": 37 + }, + "end": { + "line": 75, + "column": 41 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 1673, + 1674 + ], + "loc": { + "start": { + "line": 75, + "column": 42 + }, + "end": { + "line": 75, + "column": 43 + } + } + }, + "range": [ + 1668, + 1675 + ], + "loc": { + "start": { + "line": 75, + "column": 37 + }, + "end": { + "line": 75, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "dsn", + "range": [ + 1676, + 1679 + ], + "loc": { + "start": { + "line": 75, + "column": 45 + }, + "end": { + "line": 75, + "column": 48 + } + } + }, + "range": [ + 1668, + 1679 + ], + "loc": { + "start": { + "line": 75, + "column": 37 + }, + "end": { + "line": 75, + "column": 48 + } + } + } + ], + "range": [ + 1648, + 1680 + ], + "loc": { + "start": { + "line": 75, + "column": 17 + }, + "end": { + "line": 75, + "column": 49 + } + } + }, + "range": [ + 1639, + 1680 + ], + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 49 + } + } + }, + "range": [ + 1639, + 1681 + ], + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 50 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 1690, + 1696 + ], + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 14 + } + } + } + ], + "range": [ + 1503, + 1696 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 76, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": null, + "consequent": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 1730, + 1734 + ], + "loc": { + "start": { + "line": 78, + "column": 18 + }, + "end": { + "line": 78, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 1735, + 1744 + ], + "loc": { + "start": { + "line": 78, + "column": 23 + }, + "end": { + "line": 78, + "column": 32 + } + } + }, + "range": [ + 1730, + 1744 + ], + "loc": { + "start": { + "line": 78, + "column": 18 + }, + "end": { + "line": 78, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 1745, + 1769 + ], + "loc": { + "start": { + "line": 78, + "column": 33 + }, + "end": { + "line": 78, + "column": 57 + } + } + }, + "range": [ + 1730, + 1769 + ], + "loc": { + "start": { + "line": 78, + "column": 18 + }, + "end": { + "line": 78, + "column": 57 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "type", + "range": [ + 1781, + 1785 + ], + "loc": { + "start": { + "line": 79, + "column": 10 + }, + "end": { + "line": 79, + "column": 14 + } + } + }, + { + "type": "Literal", + "value": "[Console, Raven, Sentry]", + "raw": "'[Console, Raven, Sentry]'", + "range": [ + 1797, + 1823 + ], + "loc": { + "start": { + "line": 80, + "column": 10 + }, + "end": { + "line": 80, + "column": 36 + } + } + } + ], + "range": [ + 1726, + 1833 + ], + "loc": { + "start": { + "line": 78, + "column": 14 + }, + "end": { + "line": 81, + "column": 9 + } + } + }, + "range": [ + 1720, + 1834 + ], + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 81, + "column": 10 + } + } + } + ], + "range": [ + 1703, + 1834 + ], + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 81, + "column": 10 + } + } + } + ], + "range": [ + 1365, + 1840 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 82, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "driver", + "range": [ + 1853, + 1859 + ], + "loc": { + "start": { + "line": 84, + "column": 11 + }, + "end": { + "line": 84, + "column": 17 + } + } + }, + "range": [ + 1846, + 1860 + ], + "loc": { + "start": { + "line": 84, + "column": 4 + }, + "end": { + "line": 84, + "column": 18 + } + } + } + ], + "range": [ + 1342, + 1864 + ], + "loc": { + "start": { + "line": 64, + "column": 24 + }, + "end": { + "line": 85, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1326, + 1864 + ], + "loc": { + "start": { + "line": 64, + "column": 8 + }, + "end": { + "line": 85, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1320, + 1864 + ], + "loc": { + "start": { + "line": 64, + "column": 2 + }, + "end": { + "line": 85, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n *\n * @param {String} type\n * @param {Array} args\n * @returns {AbstractDriver}\n ", + "range": [ + 1221, + 1317 + ], + "loc": { + "start": { + "line": 58, + "column": 2 + }, + "end": { + "line": 63, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {AbstractDriver|String} driver\n * @param {Array} args\n * @returns {Log}\n ", + "range": [ + 1868, + 1965 + ], + "loc": { + "start": { + "line": 87, + "column": 2 + }, + "end": { + "line": 91, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "register", + "range": [ + 1968, + 1976 + ], + "loc": { + "start": { + "line": 92, + "column": 2 + }, + "end": { + "line": 92, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "driver", + "range": [ + 1977, + 1983 + ], + "loc": { + "start": { + "line": 92, + "column": 11 + }, + "end": { + "line": 92, + "column": 17 + } + } + }, + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 1988, + 1992 + ], + "loc": { + "start": { + "line": 92, + "column": 22 + }, + "end": { + "line": 92, + "column": 26 + } + } + }, + "range": [ + 1985, + 1992 + ], + "loc": { + "start": { + "line": 92, + "column": 19 + }, + "end": { + "line": 92, + "column": 26 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "Identifier", + "name": "driver", + "range": [ + 2011, + 2017 + ], + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 93, + "column": 21 + } + } + }, + "prefix": true, + "range": [ + 2004, + 2017 + ], + "loc": { + "start": { + "line": 93, + "column": 8 + }, + "end": { + "line": 93, + "column": 21 + } + } + }, + "right": { + "type": "Literal", + "value": "string", + "raw": "'string'", + "range": [ + 2022, + 2030 + ], + "loc": { + "start": { + "line": 93, + "column": 26 + }, + "end": { + "line": 93, + "column": 34 + } + } + }, + "range": [ + 2004, + 2030 + ], + "loc": { + "start": { + "line": 93, + "column": 8 + }, + "end": { + "line": 93, + "column": 34 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "driver", + "range": [ + 2040, + 2046 + ], + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 12 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2049, + 2053 + ], + "loc": { + "start": { + "line": 94, + "column": 15 + }, + "end": { + "line": 94, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "create", + "range": [ + 2054, + 2060 + ], + "loc": { + "start": { + "line": 94, + "column": 20 + }, + "end": { + "line": 94, + "column": 26 + } + } + }, + "range": [ + 2049, + 2060 + ], + "loc": { + "start": { + "line": 94, + "column": 15 + }, + "end": { + "line": 94, + "column": 26 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "driver", + "range": [ + 2061, + 2067 + ], + "loc": { + "start": { + "line": 94, + "column": 27 + }, + "end": { + "line": 94, + "column": 33 + } + } + }, + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 2072, + 2076 + ], + "loc": { + "start": { + "line": 94, + "column": 38 + }, + "end": { + "line": 94, + "column": 42 + } + } + }, + "range": [ + 2069, + 2076 + ], + "loc": { + "start": { + "line": 94, + "column": 35 + }, + "end": { + "line": 94, + "column": 42 + } + } + } + ], + "range": [ + 2049, + 2077 + ], + "loc": { + "start": { + "line": 94, + "column": 15 + }, + "end": { + "line": 94, + "column": 43 + } + } + }, + "range": [ + 2040, + 2077 + ], + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 43 + } + } + }, + "range": [ + 2040, + 2078 + ], + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 44 + } + } + } + ], + "range": [ + 2032, + 2084 + ], + "loc": { + "start": { + "line": 93, + "column": 36 + }, + "end": { + "line": 95, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 2000, + 2084 + ], + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 95, + "column": 5 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "Identifier", + "name": "driver", + "range": [ + 2096, + 2102 + ], + "loc": { + "start": { + "line": 97, + "column": 10 + }, + "end": { + "line": 97, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "AbstractDriver", + "range": [ + 2114, + 2128 + ], + "loc": { + "start": { + "line": 97, + "column": 28 + }, + "end": { + "line": 97, + "column": 42 + } + } + }, + "range": [ + 2096, + 2128 + ], + "loc": { + "start": { + "line": 97, + "column": 10 + }, + "end": { + "line": 97, + "column": 42 + } + } + }, + "prefix": true, + "range": [ + 2094, + 2129 + ], + "loc": { + "start": { + "line": 97, + "column": 8 + }, + "end": { + "line": 97, + "column": 43 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 2149, + 2153 + ], + "loc": { + "start": { + "line": 98, + "column": 16 + }, + "end": { + "line": 98, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 2154, + 2163 + ], + "loc": { + "start": { + "line": 98, + "column": 21 + }, + "end": { + "line": 98, + "column": 30 + } + } + }, + "range": [ + 2149, + 2163 + ], + "loc": { + "start": { + "line": 98, + "column": 16 + }, + "end": { + "line": 98, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "InvalidArgumentException", + "range": [ + 2164, + 2188 + ], + "loc": { + "start": { + "line": 98, + "column": 31 + }, + "end": { + "line": 98, + "column": 55 + } + } + }, + "range": [ + 2149, + 2188 + ], + "loc": { + "start": { + "line": 98, + "column": 16 + }, + "end": { + "line": 98, + "column": 55 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "driver", + "range": [ + 2189, + 2195 + ], + "loc": { + "start": { + "line": 98, + "column": 56 + }, + "end": { + "line": 98, + "column": 62 + } + } + }, + { + "type": "Literal", + "value": "AbstractDriver", + "raw": "'AbstractDriver'", + "range": [ + 2197, + 2213 + ], + "loc": { + "start": { + "line": 98, + "column": 64 + }, + "end": { + "line": 98, + "column": 80 + } + } + } + ], + "range": [ + 2145, + 2214 + ], + "loc": { + "start": { + "line": 98, + "column": 12 + }, + "end": { + "line": 98, + "column": 81 + } + } + }, + "range": [ + 2139, + 2215 + ], + "loc": { + "start": { + "line": 98, + "column": 6 + }, + "end": { + "line": 98, + "column": 82 + } + } + } + ], + "range": [ + 2131, + 2221 + ], + "loc": { + "start": { + "line": 97, + "column": 45 + }, + "end": { + "line": 99, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 2090, + 2221 + ], + "loc": { + "start": { + "line": 97, + "column": 4 + }, + "end": { + "line": 99, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2227, + 2231 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_drivers", + "range": [ + 2232, + 2240 + ], + "loc": { + "start": { + "line": 101, + "column": 9 + }, + "end": { + "line": 101, + "column": 17 + } + } + }, + "range": [ + 2227, + 2240 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "add", + "range": [ + 2241, + 2244 + ], + "loc": { + "start": { + "line": 101, + "column": 18 + }, + "end": { + "line": 101, + "column": 21 + } + } + }, + "range": [ + 2227, + 2244 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "driver", + "range": [ + 2245, + 2251 + ], + "loc": { + "start": { + "line": 101, + "column": 22 + }, + "end": { + "line": 101, + "column": 28 + } + } + } + ], + "range": [ + 2227, + 2252 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 29 + } + } + }, + "range": [ + 2227, + 2253 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 30 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 2266, + 2270 + ], + "loc": { + "start": { + "line": 103, + "column": 11 + }, + "end": { + "line": 103, + "column": 15 + } + } + }, + "range": [ + 2259, + 2271 + ], + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 103, + "column": 16 + } + } + } + ], + "range": [ + 1994, + 2275 + ], + "loc": { + "start": { + "line": 92, + "column": 28 + }, + "end": { + "line": 104, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1976, + 2275 + ], + "loc": { + "start": { + "line": 92, + "column": 10 + }, + "end": { + "line": 104, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1968, + 2275 + ], + "loc": { + "start": { + "line": 92, + "column": 2 + }, + "end": { + "line": 104, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {AbstractDriver|String} driver\n * @param {Array} args\n * @returns {Log}\n ", + "range": [ + 1868, + 1965 + ], + "loc": { + "start": { + "line": 87, + "column": 2 + }, + "end": { + "line": 91, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Core.Generic.ObjectStorage}\n ", + "range": [ + 2279, + 2331 + ], + "loc": { + "start": { + "line": 106, + "column": 2 + }, + "end": { + "line": 108, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "drivers", + "range": [ + 2338, + 2345 + ], + "loc": { + "start": { + "line": 109, + "column": 6 + }, + "end": { + "line": 109, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2361, + 2365 + ], + "loc": { + "start": { + "line": 110, + "column": 11 + }, + "end": { + "line": 110, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_drivers", + "range": [ + 2366, + 2374 + ], + "loc": { + "start": { + "line": 110, + "column": 16 + }, + "end": { + "line": 110, + "column": 24 + } + } + }, + "range": [ + 2361, + 2374 + ], + "loc": { + "start": { + "line": 110, + "column": 11 + }, + "end": { + "line": 110, + "column": 24 + } + } + }, + "range": [ + 2354, + 2375 + ], + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 25 + } + } + } + ], + "range": [ + 2348, + 2379 + ], + "loc": { + "start": { + "line": 109, + "column": 16 + }, + "end": { + "line": 111, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2345, + 2379 + ], + "loc": { + "start": { + "line": 109, + "column": 13 + }, + "end": { + "line": 111, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2334, + 2379 + ], + "loc": { + "start": { + "line": 109, + "column": 2 + }, + "end": { + "line": 111, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Core.Generic.ObjectStorage}\n ", + "range": [ + 2279, + 2331 + ], + "loc": { + "start": { + "line": 106, + "column": 2 + }, + "end": { + "line": 108, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n * @returns Log\n ", + "range": [ + 2383, + 2486 + ], + "loc": { + "start": { + "line": 113, + "column": 2 + }, + "end": { + "line": 118, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "log", + "range": [ + 2489, + 2492 + ], + "loc": { + "start": { + "line": 119, + "column": 2 + }, + "end": { + "line": 119, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "msg", + "range": [ + 2493, + 2496 + ], + "loc": { + "start": { + "line": 119, + "column": 6 + }, + "end": { + "line": 119, + "column": 9 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "level", + "range": [ + 2498, + 2503 + ], + "loc": { + "start": { + "line": 119, + "column": 11 + }, + "end": { + "line": 119, + "column": 16 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 2506, + 2509 + ], + "loc": { + "start": { + "line": 119, + "column": 19 + }, + "end": { + "line": 119, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "INFO", + "range": [ + 2510, + 2514 + ], + "loc": { + "start": { + "line": 119, + "column": 23 + }, + "end": { + "line": 119, + "column": 27 + } + } + }, + "range": [ + 2506, + 2514 + ], + "loc": { + "start": { + "line": 119, + "column": 19 + }, + "end": { + "line": 119, + "column": 27 + } + } + }, + "range": [ + 2498, + 2514 + ], + "loc": { + "start": { + "line": 119, + "column": 11 + }, + "end": { + "line": 119, + "column": 27 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "context", + "range": [ + 2516, + 2523 + ], + "loc": { + "start": { + "line": 119, + "column": 29 + }, + "end": { + "line": 119, + "column": 36 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 2526, + 2528 + ], + "loc": { + "start": { + "line": 119, + "column": 39 + }, + "end": { + "line": 119, + "column": 41 + } + } + }, + "range": [ + 2516, + 2528 + ], + "loc": { + "start": { + "line": 119, + "column": 29 + }, + "end": { + "line": 119, + "column": 41 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "driversArr", + "range": [ + 2540, + 2550 + ], + "loc": { + "start": { + "line": 120, + "column": 8 + }, + "end": { + "line": 120, + "column": 18 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2553, + 2557 + ], + "loc": { + "start": { + "line": 120, + "column": 21 + }, + "end": { + "line": 120, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "drivers", + "range": [ + 2558, + 2565 + ], + "loc": { + "start": { + "line": 120, + "column": 26 + }, + "end": { + "line": 120, + "column": 33 + } + } + }, + "range": [ + 2553, + 2565 + ], + "loc": { + "start": { + "line": 120, + "column": 21 + }, + "end": { + "line": 120, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "iterator", + "range": [ + 2566, + 2574 + ], + "loc": { + "start": { + "line": 120, + "column": 34 + }, + "end": { + "line": 120, + "column": 42 + } + } + }, + "range": [ + 2553, + 2574 + ], + "loc": { + "start": { + "line": 120, + "column": 21 + }, + "end": { + "line": 120, + "column": 42 + } + } + }, + "range": [ + 2540, + 2574 + ], + "loc": { + "start": { + "line": 120, + "column": 8 + }, + "end": { + "line": 120, + "column": 42 + } + } + } + ], + "kind": "let", + "range": [ + 2536, + 2575 + ], + "loc": { + "start": { + "line": 120, + "column": 4 + }, + "end": { + "line": 120, + "column": 43 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "driverKey", + "range": [ + 2590, + 2599 + ], + "loc": { + "start": { + "line": 122, + "column": 13 + }, + "end": { + "line": 122, + "column": 22 + } + } + }, + "init": null, + "range": [ + 2590, + 2599 + ], + "loc": { + "start": { + "line": 122, + "column": 13 + }, + "end": { + "line": 122, + "column": 22 + } + } + } + ], + "kind": "let", + "range": [ + 2586, + 2599 + ], + "loc": { + "start": { + "line": 122, + "column": 9 + }, + "end": { + "line": 122, + "column": 22 + } + } + }, + "right": { + "type": "Identifier", + "name": "driversArr", + "range": [ + 2603, + 2613 + ], + "loc": { + "start": { + "line": 122, + "column": 26 + }, + "end": { + "line": 122, + "column": 36 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "driversArr", + "range": [ + 2628, + 2638 + ], + "loc": { + "start": { + "line": 123, + "column": 11 + }, + "end": { + "line": 123, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 2639, + 2653 + ], + "loc": { + "start": { + "line": 123, + "column": 22 + }, + "end": { + "line": 123, + "column": 36 + } + } + }, + "range": [ + 2628, + 2653 + ], + "loc": { + "start": { + "line": 123, + "column": 11 + }, + "end": { + "line": 123, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "driverKey", + "range": [ + 2654, + 2663 + ], + "loc": { + "start": { + "line": 123, + "column": 37 + }, + "end": { + "line": 123, + "column": 46 + } + } + } + ], + "range": [ + 2628, + 2664 + ], + "loc": { + "start": { + "line": 123, + "column": 11 + }, + "end": { + "line": 123, + "column": 47 + } + } + }, + "prefix": true, + "range": [ + 2627, + 2664 + ], + "loc": { + "start": { + "line": 123, + "column": 10 + }, + "end": { + "line": 123, + "column": 47 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 2676, + 2685 + ], + "loc": { + "start": { + "line": 124, + "column": 8 + }, + "end": { + "line": 124, + "column": 17 + } + } + } + ], + "range": [ + 2666, + 2693 + ], + "loc": { + "start": { + "line": 123, + "column": 49 + }, + "end": { + "line": 125, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 2623, + 2693 + ], + "loc": { + "start": { + "line": 123, + "column": 6 + }, + "end": { + "line": 125, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "driver", + "range": [ + 2705, + 2711 + ], + "loc": { + "start": { + "line": 127, + "column": 10 + }, + "end": { + "line": 127, + "column": 16 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "driversArr", + "range": [ + 2714, + 2724 + ], + "loc": { + "start": { + "line": 127, + "column": 19 + }, + "end": { + "line": 127, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "driverKey", + "range": [ + 2725, + 2734 + ], + "loc": { + "start": { + "line": 127, + "column": 30 + }, + "end": { + "line": 127, + "column": 39 + } + } + }, + "range": [ + 2714, + 2735 + ], + "loc": { + "start": { + "line": 127, + "column": 19 + }, + "end": { + "line": 127, + "column": 40 + } + } + }, + "range": [ + 2705, + 2735 + ], + "loc": { + "start": { + "line": 127, + "column": 10 + }, + "end": { + "line": 127, + "column": 40 + } + } + } + ], + "kind": "let", + "range": [ + 2701, + 2736 + ], + "loc": { + "start": { + "line": 127, + "column": 6 + }, + "end": { + "line": 127, + "column": 41 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "driver", + "range": [ + 2744, + 2750 + ], + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "log", + "range": [ + 2751, + 2754 + ], + "loc": { + "start": { + "line": 129, + "column": 13 + }, + "end": { + "line": 129, + "column": 16 + } + } + }, + "range": [ + 2744, + 2754 + ], + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "msg", + "range": [ + 2755, + 2758 + ], + "loc": { + "start": { + "line": 129, + "column": 17 + }, + "end": { + "line": 129, + "column": 20 + } + } + }, + { + "type": "Identifier", + "name": "level", + "range": [ + 2760, + 2765 + ], + "loc": { + "start": { + "line": 129, + "column": 22 + }, + "end": { + "line": 129, + "column": 27 + } + } + }, + { + "type": "Identifier", + "name": "context", + "range": [ + 2767, + 2774 + ], + "loc": { + "start": { + "line": 129, + "column": 29 + }, + "end": { + "line": 129, + "column": 36 + } + } + } + ], + "range": [ + 2744, + 2775 + ], + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 37 + } + } + }, + "range": [ + 2744, + 2776 + ], + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 38 + } + } + } + ], + "range": [ + 2615, + 2782 + ], + "loc": { + "start": { + "line": 122, + "column": 38 + }, + "end": { + "line": 130, + "column": 5 + } + } + }, + "each": false, + "range": [ + 2581, + 2782 + ], + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 130, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 2795, + 2799 + ], + "loc": { + "start": { + "line": 132, + "column": 11 + }, + "end": { + "line": 132, + "column": 15 + } + } + }, + "range": [ + 2788, + 2800 + ], + "loc": { + "start": { + "line": 132, + "column": 4 + }, + "end": { + "line": 132, + "column": 16 + } + } + } + ], + "range": [ + 2530, + 2804 + ], + "loc": { + "start": { + "line": 119, + "column": 43 + }, + "end": { + "line": 133, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2492, + 2804 + ], + "loc": { + "start": { + "line": 119, + "column": 5 + }, + "end": { + "line": 133, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2489, + 2804 + ], + "loc": { + "start": { + "line": 119, + "column": 2 + }, + "end": { + "line": 133, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n * @returns Log\n ", + "range": [ + 2383, + 2486 + ], + "loc": { + "start": { + "line": 113, + "column": 2 + }, + "end": { + "line": 118, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 2808, + 2839 + ], + "loc": { + "start": { + "line": 135, + "column": 2 + }, + "end": { + "line": 137, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "LEVELS", + "range": [ + 2853, + 2859 + ], + "loc": { + "start": { + "line": 138, + "column": 13 + }, + "end": { + "line": 138, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ArrayExpression", + "elements": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 2883, + 2886 + ], + "loc": { + "start": { + "line": 140, + "column": 6 + }, + "end": { + "line": 140, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "EMERGENCY", + "range": [ + 2887, + 2896 + ], + "loc": { + "start": { + "line": 140, + "column": 10 + }, + "end": { + "line": 140, + "column": 19 + } + } + }, + "range": [ + 2883, + 2896 + ], + "loc": { + "start": { + "line": 140, + "column": 6 + }, + "end": { + "line": 140, + "column": 19 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 2904, + 2907 + ], + "loc": { + "start": { + "line": 141, + "column": 6 + }, + "end": { + "line": 141, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "ALERT", + "range": [ + 2908, + 2913 + ], + "loc": { + "start": { + "line": 141, + "column": 10 + }, + "end": { + "line": 141, + "column": 15 + } + } + }, + "range": [ + 2904, + 2913 + ], + "loc": { + "start": { + "line": 141, + "column": 6 + }, + "end": { + "line": 141, + "column": 15 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 2921, + 2924 + ], + "loc": { + "start": { + "line": 142, + "column": 6 + }, + "end": { + "line": 142, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "CRITICAL", + "range": [ + 2925, + 2933 + ], + "loc": { + "start": { + "line": 142, + "column": 10 + }, + "end": { + "line": 142, + "column": 18 + } + } + }, + "range": [ + 2921, + 2933 + ], + "loc": { + "start": { + "line": 142, + "column": 6 + }, + "end": { + "line": 142, + "column": 18 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 2941, + 2944 + ], + "loc": { + "start": { + "line": 143, + "column": 6 + }, + "end": { + "line": 143, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "ERROR", + "range": [ + 2945, + 2950 + ], + "loc": { + "start": { + "line": 143, + "column": 10 + }, + "end": { + "line": 143, + "column": 15 + } + } + }, + "range": [ + 2941, + 2950 + ], + "loc": { + "start": { + "line": 143, + "column": 6 + }, + "end": { + "line": 143, + "column": 15 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 2958, + 2961 + ], + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "WARNING", + "range": [ + 2962, + 2969 + ], + "loc": { + "start": { + "line": 144, + "column": 10 + }, + "end": { + "line": 144, + "column": 17 + } + } + }, + "range": [ + 2958, + 2969 + ], + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 17 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 2977, + 2980 + ], + "loc": { + "start": { + "line": 145, + "column": 6 + }, + "end": { + "line": 145, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "NOTICE", + "range": [ + 2981, + 2987 + ], + "loc": { + "start": { + "line": 145, + "column": 10 + }, + "end": { + "line": 145, + "column": 16 + } + } + }, + "range": [ + 2977, + 2987 + ], + "loc": { + "start": { + "line": 145, + "column": 6 + }, + "end": { + "line": 145, + "column": 16 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 2995, + 2998 + ], + "loc": { + "start": { + "line": 146, + "column": 6 + }, + "end": { + "line": 146, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "INFO", + "range": [ + 2999, + 3003 + ], + "loc": { + "start": { + "line": 146, + "column": 10 + }, + "end": { + "line": 146, + "column": 14 + } + } + }, + "range": [ + 2995, + 3003 + ], + "loc": { + "start": { + "line": 146, + "column": 6 + }, + "end": { + "line": 146, + "column": 14 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Log", + "range": [ + 3011, + 3014 + ], + "loc": { + "start": { + "line": 147, + "column": 6 + }, + "end": { + "line": 147, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "DEBUG", + "range": [ + 3015, + 3020 + ], + "loc": { + "start": { + "line": 147, + "column": 10 + }, + "end": { + "line": 147, + "column": 15 + } + } + }, + "range": [ + 3011, + 3020 + ], + "loc": { + "start": { + "line": 147, + "column": 6 + }, + "end": { + "line": 147, + "column": 15 + } + } + } + ], + "range": [ + 2875, + 3027 + ], + "loc": { + "start": { + "line": 139, + "column": 11 + }, + "end": { + "line": 148, + "column": 5 + } + } + }, + "range": [ + 2868, + 3028 + ], + "loc": { + "start": { + "line": 139, + "column": 4 + }, + "end": { + "line": 148, + "column": 6 + } + } + } + ], + "range": [ + 2862, + 3032 + ], + "loc": { + "start": { + "line": 138, + "column": 22 + }, + "end": { + "line": 149, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2859, + 3032 + ], + "loc": { + "start": { + "line": 138, + "column": 19 + }, + "end": { + "line": 149, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2842, + 3032 + ], + "loc": { + "start": { + "line": 138, + "column": 2 + }, + "end": { + "line": 149, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 2808, + 2839 + ], + "loc": { + "start": { + "line": 135, + "column": 2 + }, + "end": { + "line": 137, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3036, + 3068 + ], + "loc": { + "start": { + "line": 151, + "column": 2 + }, + "end": { + "line": 153, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "EMERGENCY", + "range": [ + 3082, + 3091 + ], + "loc": { + "start": { + "line": 154, + "column": 13 + }, + "end": { + "line": 154, + "column": 22 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "emergency", + "raw": "'emergency'", + "range": [ + 3107, + 3118 + ], + "loc": { + "start": { + "line": 155, + "column": 11 + }, + "end": { + "line": 155, + "column": 22 + } + } + }, + "range": [ + 3100, + 3119 + ], + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 155, + "column": 23 + } + } + } + ], + "range": [ + 3094, + 3123 + ], + "loc": { + "start": { + "line": 154, + "column": 25 + }, + "end": { + "line": 156, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3091, + 3123 + ], + "loc": { + "start": { + "line": 154, + "column": 22 + }, + "end": { + "line": 156, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3071, + 3123 + ], + "loc": { + "start": { + "line": 154, + "column": 2 + }, + "end": { + "line": 156, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3036, + 3068 + ], + "loc": { + "start": { + "line": 151, + "column": 2 + }, + "end": { + "line": 153, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3127, + 3159 + ], + "loc": { + "start": { + "line": 158, + "column": 2 + }, + "end": { + "line": 160, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "ALERT", + "range": [ + 3173, + 3178 + ], + "loc": { + "start": { + "line": 161, + "column": 13 + }, + "end": { + "line": 161, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "alert", + "raw": "'alert'", + "range": [ + 3194, + 3201 + ], + "loc": { + "start": { + "line": 162, + "column": 11 + }, + "end": { + "line": 162, + "column": 18 + } + } + }, + "range": [ + 3187, + 3202 + ], + "loc": { + "start": { + "line": 162, + "column": 4 + }, + "end": { + "line": 162, + "column": 19 + } + } + } + ], + "range": [ + 3181, + 3206 + ], + "loc": { + "start": { + "line": 161, + "column": 21 + }, + "end": { + "line": 163, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3178, + 3206 + ], + "loc": { + "start": { + "line": 161, + "column": 18 + }, + "end": { + "line": 163, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3162, + 3206 + ], + "loc": { + "start": { + "line": 161, + "column": 2 + }, + "end": { + "line": 163, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3127, + 3159 + ], + "loc": { + "start": { + "line": 158, + "column": 2 + }, + "end": { + "line": 160, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3210, + 3242 + ], + "loc": { + "start": { + "line": 165, + "column": 2 + }, + "end": { + "line": 167, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "CRITICAL", + "range": [ + 3256, + 3264 + ], + "loc": { + "start": { + "line": 168, + "column": 13 + }, + "end": { + "line": 168, + "column": 21 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "critical", + "raw": "'critical'", + "range": [ + 3280, + 3290 + ], + "loc": { + "start": { + "line": 169, + "column": 11 + }, + "end": { + "line": 169, + "column": 21 + } + } + }, + "range": [ + 3273, + 3291 + ], + "loc": { + "start": { + "line": 169, + "column": 4 + }, + "end": { + "line": 169, + "column": 22 + } + } + } + ], + "range": [ + 3267, + 3295 + ], + "loc": { + "start": { + "line": 168, + "column": 24 + }, + "end": { + "line": 170, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3264, + 3295 + ], + "loc": { + "start": { + "line": 168, + "column": 21 + }, + "end": { + "line": 170, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3245, + 3295 + ], + "loc": { + "start": { + "line": 168, + "column": 2 + }, + "end": { + "line": 170, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3210, + 3242 + ], + "loc": { + "start": { + "line": 165, + "column": 2 + }, + "end": { + "line": 167, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3299, + 3331 + ], + "loc": { + "start": { + "line": 172, + "column": 2 + }, + "end": { + "line": 174, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "ERROR", + "range": [ + 3345, + 3350 + ], + "loc": { + "start": { + "line": 175, + "column": 13 + }, + "end": { + "line": 175, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "error", + "raw": "'error'", + "range": [ + 3366, + 3373 + ], + "loc": { + "start": { + "line": 176, + "column": 11 + }, + "end": { + "line": 176, + "column": 18 + } + } + }, + "range": [ + 3359, + 3374 + ], + "loc": { + "start": { + "line": 176, + "column": 4 + }, + "end": { + "line": 176, + "column": 19 + } + } + } + ], + "range": [ + 3353, + 3378 + ], + "loc": { + "start": { + "line": 175, + "column": 21 + }, + "end": { + "line": 177, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3350, + 3378 + ], + "loc": { + "start": { + "line": 175, + "column": 18 + }, + "end": { + "line": 177, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3334, + 3378 + ], + "loc": { + "start": { + "line": 175, + "column": 2 + }, + "end": { + "line": 177, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3299, + 3331 + ], + "loc": { + "start": { + "line": 172, + "column": 2 + }, + "end": { + "line": 174, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3382, + 3414 + ], + "loc": { + "start": { + "line": 179, + "column": 2 + }, + "end": { + "line": 181, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "WARNING", + "range": [ + 3428, + 3435 + ], + "loc": { + "start": { + "line": 182, + "column": 13 + }, + "end": { + "line": 182, + "column": 20 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "warning", + "raw": "'warning'", + "range": [ + 3451, + 3460 + ], + "loc": { + "start": { + "line": 183, + "column": 11 + }, + "end": { + "line": 183, + "column": 20 + } + } + }, + "range": [ + 3444, + 3461 + ], + "loc": { + "start": { + "line": 183, + "column": 4 + }, + "end": { + "line": 183, + "column": 21 + } + } + } + ], + "range": [ + 3438, + 3465 + ], + "loc": { + "start": { + "line": 182, + "column": 23 + }, + "end": { + "line": 184, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3435, + 3465 + ], + "loc": { + "start": { + "line": 182, + "column": 20 + }, + "end": { + "line": 184, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3417, + 3465 + ], + "loc": { + "start": { + "line": 182, + "column": 2 + }, + "end": { + "line": 184, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3382, + 3414 + ], + "loc": { + "start": { + "line": 179, + "column": 2 + }, + "end": { + "line": 181, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3469, + 3501 + ], + "loc": { + "start": { + "line": 186, + "column": 2 + }, + "end": { + "line": 188, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "NOTICE", + "range": [ + 3515, + 3521 + ], + "loc": { + "start": { + "line": 189, + "column": 13 + }, + "end": { + "line": 189, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "notice", + "raw": "'notice'", + "range": [ + 3537, + 3545 + ], + "loc": { + "start": { + "line": 190, + "column": 11 + }, + "end": { + "line": 190, + "column": 19 + } + } + }, + "range": [ + 3530, + 3546 + ], + "loc": { + "start": { + "line": 190, + "column": 4 + }, + "end": { + "line": 190, + "column": 20 + } + } + } + ], + "range": [ + 3524, + 3550 + ], + "loc": { + "start": { + "line": 189, + "column": 22 + }, + "end": { + "line": 191, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3521, + 3550 + ], + "loc": { + "start": { + "line": 189, + "column": 19 + }, + "end": { + "line": 191, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3504, + 3550 + ], + "loc": { + "start": { + "line": 189, + "column": 2 + }, + "end": { + "line": 191, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3469, + 3501 + ], + "loc": { + "start": { + "line": 186, + "column": 2 + }, + "end": { + "line": 188, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3554, + 3586 + ], + "loc": { + "start": { + "line": 193, + "column": 2 + }, + "end": { + "line": 195, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "INFO", + "range": [ + 3600, + 3604 + ], + "loc": { + "start": { + "line": 196, + "column": 13 + }, + "end": { + "line": 196, + "column": 17 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "info", + "raw": "'info'", + "range": [ + 3620, + 3626 + ], + "loc": { + "start": { + "line": 197, + "column": 11 + }, + "end": { + "line": 197, + "column": 17 + } + } + }, + "range": [ + 3613, + 3627 + ], + "loc": { + "start": { + "line": 197, + "column": 4 + }, + "end": { + "line": 197, + "column": 18 + } + } + } + ], + "range": [ + 3607, + 3631 + ], + "loc": { + "start": { + "line": 196, + "column": 20 + }, + "end": { + "line": 198, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3604, + 3631 + ], + "loc": { + "start": { + "line": 196, + "column": 17 + }, + "end": { + "line": 198, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3589, + 3631 + ], + "loc": { + "start": { + "line": 196, + "column": 2 + }, + "end": { + "line": 198, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3554, + 3586 + ], + "loc": { + "start": { + "line": 193, + "column": 2 + }, + "end": { + "line": 195, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3635, + 3667 + ], + "loc": { + "start": { + "line": 200, + "column": 2 + }, + "end": { + "line": 202, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "DEBUG", + "range": [ + 3681, + 3686 + ], + "loc": { + "start": { + "line": 203, + "column": 13 + }, + "end": { + "line": 203, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "debug", + "raw": "'debug'", + "range": [ + 3702, + 3709 + ], + "loc": { + "start": { + "line": 204, + "column": 11 + }, + "end": { + "line": 204, + "column": 18 + } + } + }, + "range": [ + 3695, + 3710 + ], + "loc": { + "start": { + "line": 204, + "column": 4 + }, + "end": { + "line": 204, + "column": 19 + } + } + } + ], + "range": [ + 3689, + 3714 + ], + "loc": { + "start": { + "line": 203, + "column": 21 + }, + "end": { + "line": 205, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3686, + 3714 + ], + "loc": { + "start": { + "line": 203, + "column": 18 + }, + "end": { + "line": 205, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3670, + 3714 + ], + "loc": { + "start": { + "line": 203, + "column": 2 + }, + "end": { + "line": 205, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3635, + 3667 + ], + "loc": { + "start": { + "line": 200, + "column": 2 + }, + "end": { + "line": 202, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 424, + 3716 + ], + "loc": { + "start": { + "line": 17, + "column": 47 + }, + "end": { + "line": 206, + "column": 1 + } + } + }, + "range": [ + 384, + 3716 + ], + "loc": { + "start": { + "line": 17, + "column": 7 + }, + "end": { + "line": 206, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Logging manager\n ", + "range": [ + 350, + 376 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 377, + 3716 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 206, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Logging manager\n ", + "range": [ + 350, + 376 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 3716 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 206, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Logging manager\n ", + "range": [ + 350, + 376 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} drivers\n ", + "range": [ + 428, + 466 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 747, + 852 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 40, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: remove this compatibility hook", + "range": [ + 884, + 924 + ], + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 44 + } + } + }, + { + "type": "Block", + "value": "*\n *\n * @param {String} type\n * @param {Array} args\n * @returns {AbstractDriver}\n ", + "range": [ + 1221, + 1317 + ], + "loc": { + "start": { + "line": 58, + "column": 2 + }, + "end": { + "line": 63, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {AbstractDriver|String} driver\n * @param {Array} args\n * @returns {Log}\n ", + "range": [ + 1868, + 1965 + ], + "loc": { + "start": { + "line": 87, + "column": 2 + }, + "end": { + "line": 91, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Core.Generic.ObjectStorage}\n ", + "range": [ + 2279, + 2331 + ], + "loc": { + "start": { + "line": 106, + "column": 2 + }, + "end": { + "line": 108, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n * @returns Log\n ", + "range": [ + 2383, + 2486 + ], + "loc": { + "start": { + "line": 113, + "column": 2 + }, + "end": { + "line": 118, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 2808, + 2839 + ], + "loc": { + "start": { + "line": 135, + "column": 2 + }, + "end": { + "line": 137, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3036, + 3068 + ], + "loc": { + "start": { + "line": 151, + "column": 2 + }, + "end": { + "line": 153, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3127, + 3159 + ], + "loc": { + "start": { + "line": 158, + "column": 2 + }, + "end": { + "line": 160, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3210, + 3242 + ], + "loc": { + "start": { + "line": 165, + "column": 2 + }, + "end": { + "line": 167, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3299, + 3331 + ], + "loc": { + "start": { + "line": 172, + "column": 2 + }, + "end": { + "line": 174, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3382, + 3414 + ], + "loc": { + "start": { + "line": 179, + "column": 2 + }, + "end": { + "line": 181, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3469, + 3501 + ], + "loc": { + "start": { + "line": 186, + "column": 2 + }, + "end": { + "line": 188, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3554, + 3586 + ], + "loc": { + "start": { + "line": 193, + "column": 2 + }, + "end": { + "line": 195, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 3635, + 3667 + ], + "loc": { + "start": { + "line": 200, + "column": 2 + }, + "end": { + "line": 202, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-log/ast/source/bootstrap.js.json b/docs-api/deep-log/ast/source/bootstrap.js.json new file mode 100644 index 00000000..dd2aec56 --- /dev/null +++ b/docs-api/deep-log/ast/source/bootstrap.js.json @@ -0,0 +1,332 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 89, + 101 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + "range": [ + 89, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Log", + "range": [ + 112, + 115 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 11 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Log", + "range": [ + 112, + 115 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 11 + } + } + }, + "range": [ + 112, + 115 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Log", + "raw": "'./Log'", + "range": [ + 122, + 129 + ], + "loc": { + "start": { + "line": 9, + "column": 18 + }, + "end": { + "line": 9, + "column": 25 + } + } + }, + "range": [ + 104, + 130 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 26 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "exports", + "range": [ + 136, + 143 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + "init": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "module", + "range": [ + 146, + 152 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exports", + "range": [ + 153, + 160 + ], + "loc": { + "start": { + "line": 11, + "column": 21 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "range": [ + 146, + 160 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "right": { + "type": "Identifier", + "name": "Log", + "range": [ + 163, + 166 + ], + "loc": { + "start": { + "line": 11, + "column": 31 + }, + "end": { + "line": 11, + "column": 34 + } + } + }, + "range": [ + 146, + 166 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 34 + } + } + }, + "range": [ + 136, + 166 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 34 + } + } + } + ], + "kind": "let", + "range": [ + 132, + 167 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 35 + } + } + } + ], + "sourceType": "module", + "range": [ + 89, + 167 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 11, + "column": 35 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-log/badge.svg b/docs-api/deep-log/badge.svg new file mode 100644 index 00000000..8510c7c0 --- /dev/null +++ b/docs-api/deep-log/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 93% + 93% + + diff --git a/docs-api/deep-log/class/lib/Driver/AbstractDriver.js~AbstractDriver.html b/docs-api/deep-log/class/lib/Driver/AbstractDriver.js~AbstractDriver.html new file mode 100644 index 00000000..3a4c7bd2 --- /dev/null +++ b/docs-api/deep-log/class/lib/Driver/AbstractDriver.js~AbstractDriver.html @@ -0,0 +1,364 @@ + + + + + + AbstractDriver | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {AbstractDriver} from 'deep-log/lib/Driver/AbstractDriver.js'
    + public + class + + + + | source +
    + +
    +

    AbstractDriver

    + + + + + +

    Extends:

    deep-core~Core.OOP.Interface → AbstractDriver
    + + + + + + + + + +

    Abstract log driver

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

    Static Member Summary

    + + + + + + + + + +
    Static Public Members
    + public + static + get + + + +
    +

    + datetime: String: * +

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

    Static Method Summary

    + + + + + + + + + +
    Static Public Methods
    + public + static + + + + +
    +

    + plainifyContext(context: *): String +

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Static Public Members

    + +
    +

    + public + static + get + + + datetime: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Static Public Methods

    + +
    +

    + public + static + + + + plainifyContext(context: *): String + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    context*
    +
    +
    + +
    +

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

    + + + + + + + + +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/class/lib/Driver/ConsoleDriver.js~ConsoleDriver.html b/docs-api/deep-log/class/lib/Driver/ConsoleDriver.js~ConsoleDriver.html new file mode 100644 index 00000000..a52f9fac --- /dev/null +++ b/docs-api/deep-log/class/lib/Driver/ConsoleDriver.js~ConsoleDriver.html @@ -0,0 +1,283 @@ + + + + + + ConsoleDriver | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {ConsoleDriver} from 'deep-log/lib/Driver/ConsoleDriver.js'
    + public + class + + + + | source +
    + +
    +

    ConsoleDriver

    + + + + + +

    Extends:

    lib/Driver/AbstractDriver~AbstractDriver → ConsoleDriver
    + + + + + + + + + +

    Console native logging

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + log(msg: String, level: String, context: *) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

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

    Public Methods

    + +
    +

    + public + + + + + log(msg: String, level: String, context: *) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    msgString
    levelString
    context*
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/class/lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver.html b/docs-api/deep-log/class/lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver.html new file mode 100644 index 00000000..79a20be8 --- /dev/null +++ b/docs-api/deep-log/class/lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver.html @@ -0,0 +1,299 @@ + + + + + + RavenBrowserDriver | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {RavenBrowserDriver} from 'deep-log/lib/Driver/RavenBrowserDriver.js'
    + public + class + + + + | source +
    + +
    +

    RavenBrowserDriver

    + + + + + +

    Extends:

    lib/Driver/AbstractDriver~AbstractDriver → RavenBrowserDriver
    + + + + + + + + + +

    Raven/Sentry logging for browser

    +
    + + + + + + + +

    TODO:

    • replace it on compile time rather than runtime!
    +
    + + + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(dsn: String) +

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

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + log(msg: String, level: String, context: *) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(dsn: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    dsnString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + +

    Public Methods

    + +
    +

    + public + + + + + log(msg: String, level: String, context: *) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    msgString
    levelString
    context*
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/class/lib/Driver/RavenDriver.js~RavenDriver.html b/docs-api/deep-log/class/lib/Driver/RavenDriver.js~RavenDriver.html new file mode 100644 index 00000000..473921d5 --- /dev/null +++ b/docs-api/deep-log/class/lib/Driver/RavenDriver.js~RavenDriver.html @@ -0,0 +1,382 @@ + + + + + + RavenDriver | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {RavenDriver} from 'deep-log/lib/Driver/RavenDriver.js'
    + public + class + + + + | source +
    + +
    +

    RavenDriver

    + + + + + +

    Extends:

    lib/Driver/AbstractDriver~AbstractDriver → RavenDriver
    + + + + + + + + + +

    Raven/Sentry logging

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(dsn: String) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + clients: Raven.Client[]: * +

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

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + log(msg: String, level: String, context: *) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(dsn: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    dsnString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + clients: Raven.Client[]: * + + + + source + +

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

    Return:

    + + + + + +
    Raven.Client[]
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + log(msg: String, level: String, context: *) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    msgString
    levelString
    context*
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/class/lib/Exception/Exception.js~Exception.html b/docs-api/deep-log/class/lib/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..1b515a9e --- /dev/null +++ b/docs-api/deep-log/class/lib/Exception/Exception.js~Exception.html @@ -0,0 +1,198 @@ + + + + + + Exception | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Exception} from 'deep-log/lib/Exception/Exception.js'
    + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    deep-core~Core.Exception.Exception → Exception
    + + + + + + + + + +

    Thrown when any exception occurs

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/class/lib/Log.js~Log.html b/docs-api/deep-log/class/lib/Log.js~Log.html new file mode 100644 index 00000000..d0147412 --- /dev/null +++ b/docs-api/deep-log/class/lib/Log.js~Log.html @@ -0,0 +1,1358 @@ + + + + + + Log | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Log} from 'deep-log/lib/Log.js'
    + public + class + + + + | source +
    + +
    +

    Log

    + + + + + +

    Extends:

    deep-kernel~Kernel.ContainerAware → Log
    + + + + + + + + + +

    Logging manager

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

    Static Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + +
    +

    + ALERT: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + CRITICAL: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + DEBUG: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + EMERGENCY: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + ERROR: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + INFO: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + LEVELS: Array: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + NOTICE: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + WARNING: String: string +

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(drivers: Object) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + drivers: Core.Generic.ObjectStorage: * +

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

    Method Summary

    + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + boot(kernel: Kernel, callback: Function) +

    +
    +
    + + +
    Booting a certain service
    +
    +
    + + +
    + public + + + + + +
    +

    + create(type: String, args: Array): AbstractDriver +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + log(msg: String, level: String, context: *): * +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + register(driver: AbstractDriver | String, args: Array): Log +

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

    Static Public Members

    + +
    +

    + public + static + get + + + ALERT: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + CRITICAL: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + DEBUG: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + EMERGENCY: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + ERROR: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + INFO: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + LEVELS: Array: * + + + + source + +

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

    Return:

    + + + + + +
    Array
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + NOTICE: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + WARNING: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +

    Public Constructors

    + +
    +

    + public + + + + + constructor(drivers: Object) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    driversObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + drivers: Core.Generic.ObjectStorage: * + + + + source + +

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

    Return:

    + + + + + +
    Core.Generic.ObjectStorage
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + boot(kernel: Kernel, callback: Function) + + + + source + +

    + + + + +

    Booting a certain service

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    kernelKernel
    callbackFunction
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    + public + + + + + create(type: String, args: Array): AbstractDriver + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    typeString
    argsArray
    +
    +
    + +
    +

    Return:

    + + + + + +
    AbstractDriver
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + log(msg: String, level: String, context: *): * + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    msgString
    levelString
    context*
    +
    +
    + +
    +

    Return:

    + + + + + +
    *

    Log

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

    + public + + + + + register(driver: AbstractDriver | String, args: Array): Log + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    driverAbstractDriver | String
    argsArray
    +
    +
    + +
    +

    Return:

    + + + + + +
    Log
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/coverage.json b/docs-api/deep-log/coverage.json new file mode 100644 index 00000000..df25e57c --- /dev/null +++ b/docs-api/deep-log/coverage.json @@ -0,0 +1,41 @@ +{ + "coverage": "93.75%", + "expectCount": 32, + "actualCount": 30, + "files": { + "lib/Log.js": { + "expectCount": 16, + "actualCount": 16, + "undocumentLines": [] + }, + "lib/Driver/AbstractDriver.js": { + "expectCount": 4, + "actualCount": 3, + "undocumentLines": [ + 13 + ] + }, + "lib/Driver/ConsoleDriver.js": { + "expectCount": 3, + "actualCount": 2, + "undocumentLines": [ + 13 + ] + }, + "lib/Exception/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Driver/RavenBrowserDriver.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + }, + "lib/Driver/RavenDriver.js": { + "expectCount": 4, + "actualCount": 4, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/docs-api/deep-log/css/prettify-tomorrow.css b/docs-api/deep-log/css/prettify-tomorrow.css new file mode 100644 index 00000000..b6f92a78 --- /dev/null +++ b/docs-api/deep-log/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs-api/deep-log/css/style.css b/docs-api/deep-log/css/style.css new file mode 100644 index 00000000..4dc99a1b --- /dev/null +++ b/docs-api/deep-log/css/style.css @@ -0,0 +1,862 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Roboto', sans-serif; + overflow: auto; + font-size: 14px; + /*color: #4d4e53;*/ + color: rgba(0, 0, 0, .68); + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + background-color: #E2E2E2; + padding: 4px; + font-weight: 300; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 19px; +} + +p > code { + background-color: #f5f5f5; + border-radius: 3px; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0 4px; + border-radius: 3px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: white; + top: 0; + border-bottom: solid 1px #E02130; +} +.layout-container > header > a{ + margin: 0 5px; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid rgba(0, 0, 0, 0.1); +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation .nav-dir-path { + margin-top: 0.7em; + margin-bottom: 0.25em; + font-size: 0.8em; + color: #aaa; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #999; + color: white; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +pre.source-code { + background: #f5f5f5; + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150); +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #999; + color: white; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} + +table.test-summary thead { + background: #999; + color: white; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-describe .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; +} + +table.test-summary tr.test-describe .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-describe .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} + +.inner-link-active { + background: rgb(255, 255, 150); +} + +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + +/* coverage badge */ +.esdoc-coverage { + display: inline-block; + height: 20px; + vertical-align: top; +} + +h1 .esdoc-coverage { + position: relative; + top: -4px; +} + +.esdoc-coverage-wrap { + color: white; + font-size: 12px; + font-weight: 500; +} + +.esdoc-coverage-label { + padding: 3px 4px 3px 6px; + background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%); + border-radius: 4px 0 0 4px; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-ratio { + padding: 3px 6px 3px 4px; + border-radius: 0 4px 4px 0; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-low { + background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%); +} + +.esdoc-coverage-middle { + background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%); +} + +.esdoc-coverage-high { + background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%); +} + +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; + background-color: transparent; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} diff --git a/docs-api/deep-log/dump.json b/docs-api/deep-log/dump.json new file mode 100644 index 00000000..5aaf48dc --- /dev/null +++ b/docs-api/deep-log/dump.json @@ -0,0 +1,1872 @@ +[ + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Driver/AbstractDriver.js", + "memberof": null, + "longname": "lib/Driver/AbstractDriver.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/15/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\n\n/**\n * Abstract log driver\n */\nexport class AbstractDriver extends Core.OOP.Interface {\n constructor() {\n super(['log']);\n }\n\n /**\n * @param {*} context\n * @returns {String}\n */\n static plainifyContext(context) {\n let type = typeof context;\n var plainContext;\n\n if (type === 'object') {\n plainContext = JSON.stringify(context);\n } else if (context instanceof Object) {\n plainContext = `${type}: ${context.toString()}`;\n } else {\n plainContext = context.toString();\n }\n\n return plainContext;\n }\n\n /**\n * @returns {String}\n */\n static get datetime() {\n return new Date().toISOString();\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "AbstractDriver", + "memberof": "lib/Driver/AbstractDriver.js", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver", + "access": null, + "export": true, + "importPath": "deep-log/lib/Driver/AbstractDriver.js", + "importStyle": "{AbstractDriver}", + "description": "Abstract log driver", + "lineNumber": 12, + "interface": false, + "extends": [ + "deep-core~Core.OOP.Interface" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver#constructor", + "access": null, + "description": null, + "lineNumber": 13, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "plainifyContext", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver.plainifyContext", + "access": null, + "description": null, + "lineNumber": 21, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "context", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "datetime", + "memberof": "lib/Driver/AbstractDriver.js~AbstractDriver", + "longname": "lib/Driver/AbstractDriver.js~AbstractDriver.datetime", + "access": null, + "description": null, + "lineNumber": 39, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Driver/ConsoleDriver.js", + "memberof": null, + "longname": "lib/Driver/ConsoleDriver.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/15/15.\n */\n\n'use strict';\n\nimport {AbstractDriver} from './AbstractDriver';\n\n/**\n * Console native logging\n */\nexport class ConsoleDriver extends AbstractDriver {\n constructor() {\n super();\n }\n\n /**\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n */\n log(msg, level, context) {\n var datetime = AbstractDriver.datetime;\n\n console.log(`${level.toUpperCase()} on ${datetime}: `, msg, context);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "ConsoleDriver", + "memberof": "lib/Driver/ConsoleDriver.js", + "longname": "lib/Driver/ConsoleDriver.js~ConsoleDriver", + "access": null, + "export": true, + "importPath": "deep-log/lib/Driver/ConsoleDriver.js", + "importStyle": "{ConsoleDriver}", + "description": "Console native logging", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Driver/AbstractDriver~AbstractDriver" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Driver/ConsoleDriver.js~ConsoleDriver", + "longname": "lib/Driver/ConsoleDriver.js~ConsoleDriver#constructor", + "access": null, + "description": null, + "lineNumber": 13, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "log", + "memberof": "lib/Driver/ConsoleDriver.js~ConsoleDriver", + "longname": "lib/Driver/ConsoleDriver.js~ConsoleDriver#log", + "access": null, + "description": null, + "lineNumber": 22, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "msg", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "level", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "context", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Driver/RavenBrowserDriver.js", + "memberof": null, + "longname": "lib/Driver/RavenBrowserDriver.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/15/15.\n */\n\n'use strict';\n\nimport {AbstractDriver} from './AbstractDriver';\nimport {Log} from '../Log';\nimport Raven from 'raven';\nimport url from 'url';\n\n/**\n * Raven/Sentry logging for browser\n *\n * @todo replace it on compile time rather than runtime!\n */\nexport class RavenBrowserDriver extends AbstractDriver {\n /**\n * @param {String} dsn\n */\n constructor(dsn) {\n super();\n\n Raven.config(RavenBrowserDriver._prepareDsn(dsn)).install();\n }\n\n /**\n * @todo: tmp hook, remove it before persisting frontend config\n *\n * Remove password from url to not expose it into browser\n *\n * @param {String} dsn\n * @returns {String}\n */\n static _prepareDsn(dsn) {\n let parsedDsn = url.parse(dsn);\n parsedDsn.auth = parsedDsn.auth.split(':')[0];\n\n return url.format(parsedDsn);\n }\n\n /**\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n */\n log(msg, level, context) {\n let nativeLevel = RavenBrowserDriver._mapLevel(level);\n\n Raven.captureMessage(msg, {\n level: nativeLevel,\n extra: context,\n tags: {\n originalLevel: level,\n },\n });\n }\n\n /**\n * @param {String} level\n * @returns {string}\n * @private\n */\n static _mapLevel(level) {\n let nativeLevel = 'info';\n\n switch (level) {\n case Log.EMERGENCY:\n case Log.CRITICAL:\n nativeLevel = 'fatal';\n break;\n case Log.ALERT:\n case Log.WARNING:\n case Log.NOTICE:\n nativeLevel = 'warning';\n break;\n case Log.ERROR:\n nativeLevel = 'error';\n break;\n case Log.INFO:\n nativeLevel = 'info';\n break;\n case Log.DEBUG:\n nativeLevel = 'debug';\n break;\n }\n\n return nativeLevel;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "RavenBrowserDriver", + "memberof": "lib/Driver/RavenBrowserDriver.js", + "longname": "lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver", + "access": null, + "export": true, + "importPath": "deep-log/lib/Driver/RavenBrowserDriver.js", + "importStyle": "{RavenBrowserDriver}", + "description": "Raven/Sentry logging for browser", + "lineNumber": 17, + "todo": [ + "replace it on compile time rather than runtime!" + ], + "interface": false, + "extends": [ + "lib/Driver/AbstractDriver~AbstractDriver" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver", + "longname": "lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver#constructor", + "access": null, + "description": null, + "lineNumber": 21, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "dsn", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "_prepareDsn", + "memberof": "lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver", + "longname": "lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver._prepareDsn", + "access": null, + "description": null, + "lineNumber": 35, + "unknown": [ + { + "tagName": "@todo: tmp hook, remove it before persisting frontend config\n\nRemove password from url to not expose it into browser\n\n", + "tagValue": "" + }, + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "dsn", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "log", + "memberof": "lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver", + "longname": "lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver#log", + "access": null, + "description": null, + "lineNumber": 47, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "msg", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "level", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "context", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "_mapLevel", + "memberof": "lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver", + "longname": "lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver._mapLevel", + "access": "private", + "description": null, + "lineNumber": 64, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{string}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "level", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Driver/RavenDriver.js", + "memberof": null, + "longname": "lib/Driver/RavenDriver.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/15/15.\n */\n\n'use strict';\n\nimport {AbstractDriver} from './AbstractDriver';\nimport {Log} from '../Log';\nimport Raven from 'raven';\n\n/**\n * Raven/Sentry logging\n */\nexport class RavenDriver extends AbstractDriver {\n /**\n * @param {String} dsn\n */\n constructor(dsn) {\n super();\n\n this._clients = {};\n\n for (let levelKey in Log.LEVELS) {\n if (!Log.LEVELS.hasOwnProperty(levelKey)) {\n continue;\n }\n\n let level = Log.LEVELS[levelKey];\n\n let nativeLevel = RavenDriver._mapLevel(level);\n\n this._clients[nativeLevel] = new Raven.Client(dsn, {\n level: nativeLevel,\n });\n }\n }\n\n /**\n * @returns {Raven.Client[]}\n */\n get clients() {\n return this._clients;\n }\n\n /**\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n */\n log(msg, level, context) {\n let nativeLevel = RavenDriver._mapLevel(level);\n\n this._clients[nativeLevel].captureMessage(msg, {\n extra: context,\n tags: {\n originalLevel: level,\n },\n });\n }\n\n /**\n * @param {String} level\n * @returns {string}\n * @private\n */\n static _mapLevel(level) {\n let nativeLevel = 'info';\n\n switch (level) {\n case Log.EMERGENCY:\n case Log.CRITICAL:\n nativeLevel = 'fatal';\n break;\n case Log.ALERT:\n case Log.WARNING:\n case Log.NOTICE:\n nativeLevel = 'warning';\n break;\n case Log.ERROR:\n nativeLevel = 'error';\n break;\n case Log.INFO:\n nativeLevel = 'info';\n break;\n case Log.DEBUG:\n nativeLevel = 'debug';\n break;\n }\n\n return nativeLevel;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "RavenDriver", + "memberof": "lib/Driver/RavenDriver.js", + "longname": "lib/Driver/RavenDriver.js~RavenDriver", + "access": null, + "export": true, + "importPath": "deep-log/lib/Driver/RavenDriver.js", + "importStyle": "{RavenDriver}", + "description": "Raven/Sentry logging", + "lineNumber": 14, + "interface": false, + "extends": [ + "lib/Driver/AbstractDriver~AbstractDriver" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Driver/RavenDriver.js~RavenDriver", + "longname": "lib/Driver/RavenDriver.js~RavenDriver#constructor", + "access": null, + "description": null, + "lineNumber": 18, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "dsn", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_clients", + "memberof": "lib/Driver/RavenDriver.js~RavenDriver", + "longname": "lib/Driver/RavenDriver.js~RavenDriver#_clients", + "access": null, + "description": null, + "lineNumber": 21, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "clients", + "memberof": "lib/Driver/RavenDriver.js~RavenDriver", + "longname": "lib/Driver/RavenDriver.js~RavenDriver#clients", + "access": null, + "description": null, + "lineNumber": 41, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Raven.Client[]}" + } + ], + "return": { + "nullable": null, + "types": [ + "Raven.Client[]" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "log", + "memberof": "lib/Driver/RavenDriver.js~RavenDriver", + "longname": "lib/Driver/RavenDriver.js~RavenDriver#log", + "access": null, + "description": null, + "lineNumber": 50, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "msg", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "level", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "context", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "_mapLevel", + "memberof": "lib/Driver/RavenDriver.js~RavenDriver", + "longname": "lib/Driver/RavenDriver.js~RavenDriver._mapLevel", + "access": "private", + "description": null, + "lineNumber": 66, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{string}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "level", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/Exception.js", + "memberof": null, + "longname": "lib/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\n\n/**\n * Thrown when any exception occurs\n */\nexport class Exception extends Core.Exception.Exception {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Exception/Exception.js", + "longname": "lib/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-log/lib/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Thrown when any exception occurs", + "lineNumber": 12, + "interface": false, + "extends": [ + "deep-core~Core.Exception.Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/Exception.js~Exception", + "longname": "lib/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Log.js", + "memberof": null, + "longname": "lib/Log.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/15/15.\n */\n\n'use strict';\n\nimport Kernel from 'deep-kernel';\nimport Core from 'deep-core';\nimport {ConsoleDriver} from './Driver/ConsoleDriver';\nimport {RavenDriver} from './Driver/RavenDriver';\nimport {RavenBrowserDriver} from './Driver/RavenBrowserDriver';\nimport {AbstractDriver} from './Driver/AbstractDriver';\n\n/**\n * Logging manager\n */\nexport class Log extends Kernel.ContainerAware {\n /**\n * @param {Object} drivers\n */\n constructor(drivers = {}) {\n super();\n\n this._drivers = new Core.Generic.ObjectStorage();\n\n for (let driverName in drivers) {\n if (!drivers.hasOwnProperty(driverName)) {\n continue;\n }\n\n this.register(driverName, drivers[driverName]);\n }\n }\n\n /**\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n */\n boot(kernel, callback) {\n // @todo: remove this compatibility hook\n let globals = kernel.config.globals || kernel.config;\n\n let drivers = globals.logDrivers;\n\n for (let driverName in drivers) {\n if (!drivers.hasOwnProperty(driverName)) {\n continue;\n }\n\n this.register(driverName, drivers[driverName]);\n }\n\n callback();\n }\n\n /**\n *\n * @param {String} type\n * @param {Array} args\n * @returns {AbstractDriver}\n */\n create(type, ...args) {\n var driver;\n\n switch (type.toLowerCase()) {\n case 'console':\n driver = new ConsoleDriver(...args);\n break;\n case 'raven':\n case 'sentry':\n let DriverPrototype = this.container.get(Kernel.CONTEXT).isFrontend ? RavenBrowserDriver : RavenDriver;\n\n driver = new DriverPrototype(args[0].dsn);\n break;\n default:\n throw new Core.Exception.InvalidArgumentException(\n type,\n '[Console, Raven, Sentry]'\n );\n }\n\n return driver;\n }\n\n /**\n * @param {AbstractDriver|String} driver\n * @param {Array} args\n * @returns {Log}\n */\n register(driver, ...args) {\n if (typeof driver === 'string') {\n driver = this.create(driver, ...args);\n }\n\n if (!(driver instanceof AbstractDriver)) {\n throw new Core.Exception.InvalidArgumentException(driver, 'AbstractDriver');\n }\n\n this._drivers.add(driver);\n\n return this;\n }\n\n /**\n * @returns {Core.Generic.ObjectStorage}\n */\n get drivers() {\n return this._drivers;\n }\n\n /**\n * @param {String} msg\n * @param {String} level\n * @param {*} context\n * @returns Log\n */\n log(msg, level = Log.INFO, context = {}) {\n let driversArr = this.drivers.iterator;\n\n for (let driverKey in driversArr) {\n if (!driversArr.hasOwnProperty(driverKey)) {\n continue;\n }\n\n let driver = driversArr[driverKey];\n\n driver.log(msg, level, context);\n }\n\n return this;\n }\n\n /**\n * @returns {Array}\n */\n static get LEVELS() {\n return [\n Log.EMERGENCY,\n Log.ALERT,\n Log.CRITICAL,\n Log.ERROR,\n Log.WARNING,\n Log.NOTICE,\n Log.INFO,\n Log.DEBUG,\n ];\n }\n\n /**\n * @returns {String}\n */\n static get EMERGENCY() {\n return 'emergency';\n }\n\n /**\n * @returns {String}\n */\n static get ALERT() {\n return 'alert';\n }\n\n /**\n * @returns {String}\n */\n static get CRITICAL() {\n return 'critical';\n }\n\n /**\n * @returns {String}\n */\n static get ERROR() {\n return 'error';\n }\n\n /**\n * @returns {String}\n */\n static get WARNING() {\n return 'warning';\n }\n\n /**\n * @returns {String}\n */\n static get NOTICE() {\n return 'notice';\n }\n\n /**\n * @returns {String}\n */\n static get INFO() {\n return 'info';\n }\n\n /**\n * @returns {String}\n */\n static get DEBUG() {\n return 'debug';\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Log", + "memberof": "lib/Log.js", + "longname": "lib/Log.js~Log", + "access": null, + "export": true, + "importPath": "deep-log/lib/Log.js", + "importStyle": "{Log}", + "description": "Logging manager", + "lineNumber": 17, + "interface": false, + "extends": [ + "deep-kernel~Kernel.ContainerAware" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log#constructor", + "access": null, + "description": null, + "lineNumber": 21, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "drivers", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_drivers", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log#_drivers", + "access": null, + "description": null, + "lineNumber": 24, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "boot", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log#boot", + "access": null, + "description": "Booting a certain service", + "lineNumber": 41, + "params": [ + { + "nullable": null, + "types": [ + "Kernel" + ], + "spread": false, + "optional": false, + "name": "kernel", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "create", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log#create", + "access": null, + "description": "", + "lineNumber": 64, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{AbstractDriver}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "type", + "description": "" + }, + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "AbstractDriver" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "register", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log#register", + "access": null, + "description": null, + "lineNumber": 92, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Log}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "AbstractDriver", + "String" + ], + "spread": false, + "optional": false, + "name": "driver", + "description": "" + }, + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Log" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "drivers", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log#drivers", + "access": null, + "description": null, + "lineNumber": 109, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Core.Generic.ObjectStorage}" + } + ], + "return": { + "nullable": null, + "types": [ + "Core.Generic.ObjectStorage" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "log", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log#log", + "access": null, + "description": null, + "lineNumber": 119, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "Log" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "msg", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "level", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "context", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "Log" + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "LEVELS", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log.LEVELS", + "access": null, + "description": null, + "lineNumber": 138, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Array}" + } + ], + "return": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "EMERGENCY", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log.EMERGENCY", + "access": null, + "description": null, + "lineNumber": 154, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "ALERT", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log.ALERT", + "access": null, + "description": null, + "lineNumber": 161, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "CRITICAL", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log.CRITICAL", + "access": null, + "description": null, + "lineNumber": 168, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "ERROR", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log.ERROR", + "access": null, + "description": null, + "lineNumber": 175, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "WARNING", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log.WARNING", + "access": null, + "description": null, + "lineNumber": 182, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "NOTICE", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log.NOTICE", + "access": null, + "description": null, + "lineNumber": 189, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "INFO", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log.INFO", + "access": null, + "description": null, + "lineNumber": 196, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "DEBUG", + "memberof": "lib/Log.js~Log", + "longname": "lib/Log.js~Log.DEBUG", + "access": null, + "description": null, + "lineNumber": 203, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/bootstrap.js", + "memberof": null, + "longname": "lib/bootstrap.js", + "access": null, + "description": null, + "lineNumber": 7, + "content": "/**\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n */\n\n'use strict';\n\nimport {Log} from './Log';\n\nlet exports = module.exports = Log;\n" + }, + { + "kind": "variable", + "static": true, + "variation": null, + "name": "exports", + "memberof": "lib/bootstrap.js", + "longname": "lib/bootstrap.js~exports", + "access": null, + "export": false, + "importPath": "deep-log/lib/bootstrap.js", + "importStyle": null, + "description": null, + "lineNumber": 11, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~null", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Error", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Date", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~String", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~string", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Map", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Set", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "CanvasRenderingContext2D", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DocumentFragment", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Element", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Element", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Event", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Event", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Node", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Node", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NodeList", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~NodeList", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "XMLHttpRequest", + "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "access": null, + "description": null, + "builtinExternal": true + } +] \ No newline at end of file diff --git a/docs-api/deep-log/file/lib/Driver/AbstractDriver.js.html b/docs-api/deep-log/file/lib/Driver/AbstractDriver.js.html new file mode 100644 index 00000000..3d5d1c5d --- /dev/null +++ b/docs-api/deep-log/file/lib/Driver/AbstractDriver.js.html @@ -0,0 +1,102 @@ + + + + + + lib/Driver/AbstractDriver.js | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Driver/AbstractDriver.js

    +
    /**
    + * Created by AlexanderC on 6/15/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +
    +/**
    + * Abstract log driver
    + */
    +export class AbstractDriver extends Core.OOP.Interface {
    +  constructor() {
    +    super(['log']);
    +  }
    +
    +  /**
    +   * @param {*} context
    +   * @returns {String}
    +   */
    +  static plainifyContext(context) {
    +    let type = typeof context;
    +    var plainContext;
    +
    +    if (type === 'object') {
    +      plainContext = JSON.stringify(context);
    +    } else if (context instanceof Object) {
    +      plainContext = `${type}: ${context.toString()}`;
    +    } else {
    +      plainContext = context.toString();
    +    }
    +
    +    return plainContext;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get datetime() {
    +    return new Date().toISOString();
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/file/lib/Driver/ConsoleDriver.js.html b/docs-api/deep-log/file/lib/Driver/ConsoleDriver.js.html new file mode 100644 index 00000000..f4e5c3cb --- /dev/null +++ b/docs-api/deep-log/file/lib/Driver/ConsoleDriver.js.html @@ -0,0 +1,87 @@ + + + + + + lib/Driver/ConsoleDriver.js | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Driver/ConsoleDriver.js

    +
    /**
    + * Created by AlexanderC on 6/15/15.
    + */
    +
    +'use strict';
    +
    +import {AbstractDriver} from './AbstractDriver';
    +
    +/**
    + * Console native logging
    + */
    +export class ConsoleDriver extends AbstractDriver {
    +  constructor() {
    +    super();
    +  }
    +
    +  /**
    +   * @param {String} msg
    +   * @param {String} level
    +   * @param {*} context
    +   */
    +  log(msg, level, context) {
    +    var datetime = AbstractDriver.datetime;
    +
    +    console.log(`${level.toUpperCase()} on ${datetime}: `, msg, context);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/file/lib/Driver/RavenBrowserDriver.js.html b/docs-api/deep-log/file/lib/Driver/RavenBrowserDriver.js.html new file mode 100644 index 00000000..04675e91 --- /dev/null +++ b/docs-api/deep-log/file/lib/Driver/RavenBrowserDriver.js.html @@ -0,0 +1,150 @@ + + + + + + lib/Driver/RavenBrowserDriver.js | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Driver/RavenBrowserDriver.js

    +
    /**
    + * Created by AlexanderC on 6/15/15.
    + */
    +
    +'use strict';
    +
    +import {AbstractDriver} from './AbstractDriver';
    +import {Log} from '../Log';
    +import Raven from 'raven';
    +import url from 'url';
    +
    +/**
    + * Raven/Sentry logging for browser
    + *
    + * @todo replace it on compile time rather than runtime!
    + */
    +export class RavenBrowserDriver extends AbstractDriver {
    +  /**
    +   * @param {String} dsn
    +   */
    +  constructor(dsn) {
    +    super();
    +
    +    Raven.config(RavenBrowserDriver._prepareDsn(dsn)).install();
    +  }
    +
    +  /**
    +   * @todo: tmp hook, remove it before persisting frontend config
    +   *
    +   * Remove password from url to not expose it into browser
    +   *
    +   * @param {String} dsn
    +   * @returns {String}
    +   */
    +  static _prepareDsn(dsn) {
    +    let parsedDsn = url.parse(dsn);
    +    parsedDsn.auth = parsedDsn.auth.split(':')[0];
    +
    +    return url.format(parsedDsn);
    +  }
    +
    +  /**
    +   * @param {String} msg
    +   * @param {String} level
    +   * @param {*} context
    +   */
    +  log(msg, level, context) {
    +    let nativeLevel = RavenBrowserDriver._mapLevel(level);
    +
    +    Raven.captureMessage(msg, {
    +      level: nativeLevel,
    +      extra: context,
    +      tags: {
    +        originalLevel: level,
    +      },
    +    });
    +  }
    +
    +  /**
    +   * @param {String} level
    +   * @returns {string}
    +   * @private
    +   */
    +  static _mapLevel(level) {
    +    let nativeLevel = 'info';
    +
    +    switch (level) {
    +      case Log.EMERGENCY:
    +      case Log.CRITICAL:
    +        nativeLevel = 'fatal';
    +        break;
    +      case Log.ALERT:
    +      case Log.WARNING:
    +      case Log.NOTICE:
    +        nativeLevel = 'warning';
    +        break;
    +      case Log.ERROR:
    +        nativeLevel = 'error';
    +        break;
    +      case Log.INFO:
    +        nativeLevel = 'info';
    +        break;
    +      case Log.DEBUG:
    +        nativeLevel = 'debug';
    +        break;
    +    }
    +
    +    return nativeLevel;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/file/lib/Driver/RavenDriver.js.html b/docs-api/deep-log/file/lib/Driver/RavenDriver.js.html new file mode 100644 index 00000000..a6f24a62 --- /dev/null +++ b/docs-api/deep-log/file/lib/Driver/RavenDriver.js.html @@ -0,0 +1,152 @@ + + + + + + lib/Driver/RavenDriver.js | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Driver/RavenDriver.js

    +
    /**
    + * Created by AlexanderC on 6/15/15.
    + */
    +
    +'use strict';
    +
    +import {AbstractDriver} from './AbstractDriver';
    +import {Log} from '../Log';
    +import Raven from 'raven';
    +
    +/**
    + * Raven/Sentry logging
    + */
    +export class RavenDriver extends AbstractDriver {
    +  /**
    +   * @param {String} dsn
    +   */
    +  constructor(dsn) {
    +    super();
    +
    +    this._clients = {};
    +
    +    for (let levelKey in Log.LEVELS) {
    +      if (!Log.LEVELS.hasOwnProperty(levelKey)) {
    +        continue;
    +      }
    +
    +      let level = Log.LEVELS[levelKey];
    +
    +      let nativeLevel = RavenDriver._mapLevel(level);
    +
    +      this._clients[nativeLevel] = new Raven.Client(dsn, {
    +        level: nativeLevel,
    +      });
    +    }
    +  }
    +
    +  /**
    +   * @returns {Raven.Client[]}
    +   */
    +  get clients() {
    +    return this._clients;
    +  }
    +
    +  /**
    +   * @param {String} msg
    +   * @param {String} level
    +   * @param {*} context
    +   */
    +  log(msg, level, context) {
    +    let nativeLevel = RavenDriver._mapLevel(level);
    +
    +    this._clients[nativeLevel].captureMessage(msg, {
    +      extra: context,
    +      tags: {
    +        originalLevel: level,
    +      },
    +    });
    +  }
    +
    +  /**
    +   * @param {String} level
    +   * @returns {string}
    +   * @private
    +   */
    +  static _mapLevel(level) {
    +    let nativeLevel = 'info';
    +
    +    switch (level) {
    +      case Log.EMERGENCY:
    +      case Log.CRITICAL:
    +        nativeLevel = 'fatal';
    +        break;
    +      case Log.ALERT:
    +      case Log.WARNING:
    +      case Log.NOTICE:
    +        nativeLevel = 'warning';
    +        break;
    +      case Log.ERROR:
    +        nativeLevel = 'error';
    +        break;
    +      case Log.INFO:
    +        nativeLevel = 'info';
    +        break;
    +      case Log.DEBUG:
    +        nativeLevel = 'debug';
    +        break;
    +    }
    +
    +    return nativeLevel;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/file/lib/Exception/Exception.js.html b/docs-api/deep-log/file/lib/Exception/Exception.js.html new file mode 100644 index 00000000..045c7a06 --- /dev/null +++ b/docs-api/deep-log/file/lib/Exception/Exception.js.html @@ -0,0 +1,79 @@ + + + + + + lib/Exception/Exception.js | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/Exception.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +
    +/**
    + * Thrown when any exception occurs
    + */
    +export class Exception extends Core.Exception.Exception {
    +  /**
    +   * @param {Array} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/file/lib/Log.js.html b/docs-api/deep-log/file/lib/Log.js.html new file mode 100644 index 00000000..0ccc83dd --- /dev/null +++ b/docs-api/deep-log/file/lib/Log.js.html @@ -0,0 +1,266 @@ + + + + + + lib/Log.js | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Log.js

    +
    /**
    + * Created by AlexanderC on 6/15/15.
    + */
    +
    +'use strict';
    +
    +import Kernel from 'deep-kernel';
    +import Core from 'deep-core';
    +import {ConsoleDriver} from './Driver/ConsoleDriver';
    +import {RavenDriver} from './Driver/RavenDriver';
    +import {RavenBrowserDriver} from './Driver/RavenBrowserDriver';
    +import {AbstractDriver} from './Driver/AbstractDriver';
    +
    +/**
    + * Logging manager
    + */
    +export class Log extends Kernel.ContainerAware {
    +  /**
    +   * @param {Object} drivers
    +   */
    +  constructor(drivers = {}) {
    +    super();
    +
    +    this._drivers = new Core.Generic.ObjectStorage();
    +
    +    for (let driverName in drivers) {
    +      if (!drivers.hasOwnProperty(driverName)) {
    +        continue;
    +      }
    +
    +      this.register(driverName, drivers[driverName]);
    +    }
    +  }
    +
    +  /**
    +   * Booting a certain service
    +   *
    +   * @param {Kernel} kernel
    +   * @param {Function} callback
    +   */
    +  boot(kernel, callback) {
    +    // @todo: remove this compatibility hook
    +    let globals = kernel.config.globals || kernel.config;
    +
    +    let drivers = globals.logDrivers;
    +
    +    for (let driverName in drivers) {
    +      if (!drivers.hasOwnProperty(driverName)) {
    +        continue;
    +      }
    +
    +      this.register(driverName, drivers[driverName]);
    +    }
    +
    +    callback();
    +  }
    +
    +  /**
    +   *
    +   * @param {String} type
    +   * @param {Array} args
    +   * @returns {AbstractDriver}
    +   */
    +  create(type, ...args) {
    +    var driver;
    +
    +    switch (type.toLowerCase()) {
    +      case 'console':
    +        driver = new ConsoleDriver(...args);
    +        break;
    +      case 'raven':
    +      case 'sentry':
    +        let DriverPrototype = this.container.get(Kernel.CONTEXT).isFrontend ? RavenBrowserDriver : RavenDriver;
    +
    +        driver = new DriverPrototype(args[0].dsn);
    +        break;
    +      default:
    +        throw new Core.Exception.InvalidArgumentException(
    +          type,
    +          '[Console, Raven, Sentry]'
    +        );
    +    }
    +
    +    return driver;
    +  }
    +
    +  /**
    +   * @param {AbstractDriver|String} driver
    +   * @param {Array} args
    +   * @returns {Log}
    +   */
    +  register(driver, ...args) {
    +    if (typeof driver === 'string') {
    +      driver = this.create(driver, ...args);
    +    }
    +
    +    if (!(driver instanceof AbstractDriver)) {
    +      throw new Core.Exception.InvalidArgumentException(driver, 'AbstractDriver');
    +    }
    +
    +    this._drivers.add(driver);
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @returns {Core.Generic.ObjectStorage}
    +   */
    +  get drivers() {
    +    return this._drivers;
    +  }
    +
    +  /**
    +   * @param {String} msg
    +   * @param {String} level
    +   * @param {*} context
    +   * @returns Log
    +   */
    +  log(msg, level = Log.INFO, context = {}) {
    +    let driversArr = this.drivers.iterator;
    +
    +    for (let driverKey in driversArr) {
    +      if (!driversArr.hasOwnProperty(driverKey)) {
    +        continue;
    +      }
    +
    +      let driver = driversArr[driverKey];
    +
    +      driver.log(msg, level, context);
    +    }
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @returns {Array}
    +   */
    +  static get LEVELS() {
    +    return [
    +      Log.EMERGENCY,
    +      Log.ALERT,
    +      Log.CRITICAL,
    +      Log.ERROR,
    +      Log.WARNING,
    +      Log.NOTICE,
    +      Log.INFO,
    +      Log.DEBUG,
    +    ];
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get EMERGENCY() {
    +    return 'emergency';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get ALERT() {
    +    return 'alert';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get CRITICAL() {
    +    return 'critical';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get ERROR() {
    +    return 'error';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get WARNING() {
    +    return 'warning';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get NOTICE() {
    +    return 'notice';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get INFO() {
    +    return 'info';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get DEBUG() {
    +    return 'debug';
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/file/lib/bootstrap.js.html b/docs-api/deep-log/file/lib/bootstrap.js.html new file mode 100644 index 00000000..18bdf788 --- /dev/null +++ b/docs-api/deep-log/file/lib/bootstrap.js.html @@ -0,0 +1,71 @@ + + + + + + lib/bootstrap.js | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/bootstrap.js

    +
    /**
    + * Created by AlexanderC on 5/22/15.
    + *
    + * Bootstrap file loaded by npm as main
    + */
    +
    +'use strict';
    +
    +import {Log} from './Log';
    +
    +let exports = module.exports = Log;
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/identifiers.html b/docs-api/deep-log/identifiers.html new file mode 100644 index 00000000..6dedc1fe --- /dev/null +++ b/docs-api/deep-log/identifiers.html @@ -0,0 +1,219 @@ + + + + + + Index | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Identifier

    +

    Class Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Class Summary
    + public + + + + + +
    +

    + AbstractDriver +

    +
    +
    + + +
    Abstract log driver
    +
    +
    + + +
    + public + + + + + +
    +

    + ConsoleDriver +

    +
    +
    + + +
    Console native logging
    +
    +
    + + +
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Thrown when any exception occurs
    +
    +
    + + +
    + public + + + + + +
    +

    + Log +

    +
    +
    + + +
    Logging manager
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Raven/Sentry logging for browser
    +
    +
    + + +
    + public + + + + + +
    +

    + RavenDriver +

    +
    +
    + + +
    Raven/Sentry logging
    +
    +
    + + +
    +
    + + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/image/badge.svg b/docs-api/deep-log/image/badge.svg new file mode 100644 index 00000000..324db4c5 --- /dev/null +++ b/docs-api/deep-log/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/docs-api/deep-log/image/github.png b/docs-api/deep-log/image/github.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/docs-api/deep-log/image/github.png differ diff --git a/docs-api/deep-log/image/search.png b/docs-api/deep-log/image/search.png new file mode 100644 index 00000000..f5d84b69 Binary files /dev/null and b/docs-api/deep-log/image/search.png differ diff --git a/docs-api/deep-log/index.html b/docs-api/deep-log/index.html new file mode 100644 index 00000000..7372adbe --- /dev/null +++ b/docs-api/deep-log/index.html @@ -0,0 +1,192 @@ + + + + + + DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    deep-log

    +

    NPM Version +Build Status +Coverage Status +Codacy Badge +API Docs

    +

    deep-log is a node.js library, part of DEEP Framework.

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less.

    +

    DEEP for Businesses Join char on gitter.im

    +

    User Guide Documentation (to be updated later)

    +

    DEEP is enabling small and medium businesses, as well as enterprises to:

    +
      +
    • Rent applications on a monthly basis by needed functionality from DEEP Marketplace
    • +
    • Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS
    • +
    • Pay only for subscribed applications and stop paying when unsubscribing and not using anymore
    • +
    • Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences
    • +
    • Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability
    • +
    +
    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP for Developers Join char on gitter.im

    +

    API Guide Documentation

    +

    Developer Guide Documentation

    +

    DEEP is enabling developers and architects to:

    +
      +
    • Design microservices architecture on top of serverless environments from cloud providers like AWS
    • +
    • Build distributed software that combines and manages hardware and software in the same microservice
    • +
    • Use the framework's abstracted approach to build applications that could be cloud agnostic
    • +
    • Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same DEEP Microservice
    • +
    • Run in the cloud the software that was built by distributed teams and served self-service in large organizations
    • +
    • Monetize their work of art by uploading microservices to DEEP Marketplace
    • +
    +
    +

    DEEP Microservice is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with DEEP Microservices HelloWorld or DEEP Microservices ToDo App, as well as DEEP CLI (aka deepify).

    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP Architecture on AWS Join char on gitter.im

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    DEEP is using microservices architecture on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DEEP Abstracted LibraryDescriptionAWS Abstracted Service(s)
    deep-assetAssets Management LibraryAmazon S3
    deep-cacheCache Management LibraryAmazon ElastiCache
    deep-coreCore Management Library-
    deep-dbDatabase Management LibraryAmazon DynamoDB, Amazon SQS
    deep-diDependency Injection Management Library-
    deep-eventEvents Management LibraryAmazon Kinesis
    deep-fsFile System Management LibraryAmazon S3
    deep-kernelKernel Management Library-
    deep-logLogs Management LibraryAmazon CloudWatch Logs
    deep-notificationNotifications Management LibraryAmazon SNS
    deep-resourceResouces Management LibraryAWS Lambda, Amazon API Gateway
    deep-securitySecurity Management LibraryAWS IAM, Amazon Cognito
    deep-validationValidation Management Library-
    +

    Feedback

    +

    We are eager to get your feedback, so please use whatever communication channel you prefer:

    + +

    License

    +

    This repository can be used under the MIT license.

    +
    +

    See LICENSE for more details.

    +
    +

    Sponsors

    +

    This repository is being sponsored by:

    +
    +

    Mitoc Group

    +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-log/package.json b/docs-api/deep-log/package.json new file mode 100644 index 00000000..7d416532 --- /dev/null +++ b/docs-api/deep-log/package.json @@ -0,0 +1,66 @@ +{ + "name": "deep-log", + "version": "0.0.42", + "description": "DEEP Log Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Log" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "prepare-browserify": "npm install raven-js@1.1.*", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "*", + "deep-core": "*", + "raven": "0.7.*" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/docs-api/deep-log/script/inherited-summary.js b/docs-api/deep-log/script/inherited-summary.js new file mode 100644 index 00000000..0a35b6df --- /dev/null +++ b/docs-api/deep-log/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/docs-api/deep-log/script/inner-link.js b/docs-api/deep-log/script/inner-link.js new file mode 100644 index 00000000..99d76273 --- /dev/null +++ b/docs-api/deep-log/script/inner-link.js @@ -0,0 +1,29 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + var el = document.querySelector(location.hash); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = location.href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/docs-api/deep-log/script/patch-for-local.js b/docs-api/deep-log/script/patch-for-local.js new file mode 100644 index 00000000..5756d135 --- /dev/null +++ b/docs-api/deep-log/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/docs-api/deep-log/script/prettify/Apache-License-2.0.txt b/docs-api/deep-log/script/prettify/Apache-License-2.0.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/docs-api/deep-log/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs-api/deep-log/script/prettify/prettify.js b/docs-api/deep-log/script/prettify/prettify.js new file mode 100644 index 00000000..eef5ad7e --- /dev/null +++ b/docs-api/deep-log/script/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/docs-api/deep-log/script/search_index.js b/docs-api/deep-log/script/search_index.js new file mode 100644 index 00000000..82ff7cea --- /dev/null +++ b/docs-api/deep-log/script/search_index.js @@ -0,0 +1,560 @@ +window.esdocSearchIndex = [ + [ + "deep-log/lib/driver/abstractdriver.js~abstractdriver", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html", + "AbstractDriver deep-log/lib/Driver/AbstractDriver.js", + "class" + ], + [ + "deep-log/lib/driver/consoledriver.js~consoledriver", + "class/lib/Driver/ConsoleDriver.js~ConsoleDriver.html", + "ConsoleDriver deep-log/lib/Driver/ConsoleDriver.js", + "class" + ], + [ + "deep-log/lib/exception/exception.js~exception", + "class/lib/Exception/Exception.js~Exception.html", + "Exception deep-log/lib/Exception/Exception.js", + "class" + ], + [ + "deep-log/lib/log.js~log", + "class/lib/Log.js~Log.html", + "Log deep-log/lib/Log.js", + "class" + ], + [ + "deep-log/lib/driver/ravenbrowserdriver.js~ravenbrowserdriver", + "class/lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver.html", + "RavenBrowserDriver deep-log/lib/Driver/RavenBrowserDriver.js", + "class" + ], + [ + "deep-log/lib/driver/ravendriver.js~ravendriver", + "class/lib/Driver/RavenDriver.js~RavenDriver.html", + "RavenDriver deep-log/lib/Driver/RavenDriver.js", + "class" + ], + [ + "builtinexternal/ecmascriptexternal.js~array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~arraybuffer", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~dataview", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~DataView", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~date", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Date", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~error", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Error", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~evalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float64array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generator", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Generator", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generatorfunction", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~infinity", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~internalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~json", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~JSON", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~map", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Map", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~nan", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~NaN", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~promise", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Promise", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~proxy", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~rangeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~referenceerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~reflect", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~regexp", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~set", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Set", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~String", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~symbol", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~syntaxerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~typeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~urierror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~URIError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8clampedarray", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakmap", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakset", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~null", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~null", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~string", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~undefined", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~undefined", + "external" + ], + [ + "builtinexternal/webapiexternal.js~canvasrenderingcontext2d", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "external" + ], + [ + "builtinexternal/webapiexternal.js~documentfragment", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "external" + ], + [ + "builtinexternal/webapiexternal.js~element", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Element", + "external" + ], + [ + "builtinexternal/webapiexternal.js~event", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Event", + "external" + ], + [ + "builtinexternal/webapiexternal.js~node", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Node", + "external" + ], + [ + "builtinexternal/webapiexternal.js~nodelist", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~NodeList", + "external" + ], + [ + "builtinexternal/webapiexternal.js~xmlhttprequest", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "external" + ], + [ + "lib/driver/abstractdriver.js", + "file/lib/Driver/AbstractDriver.js.html", + "lib/Driver/AbstractDriver.js", + "file" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver#constructor", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#instance-constructor-constructor", + "lib/Driver/AbstractDriver.js~AbstractDriver#constructor", + "method" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver.datetime", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#static-get-datetime", + "lib/Driver/AbstractDriver.js~AbstractDriver.datetime", + "member" + ], + [ + "lib/driver/abstractdriver.js~abstractdriver.plainifycontext", + "class/lib/Driver/AbstractDriver.js~AbstractDriver.html#static-method-plainifyContext", + "lib/Driver/AbstractDriver.js~AbstractDriver.plainifyContext", + "method" + ], + [ + "lib/driver/consoledriver.js", + "file/lib/Driver/ConsoleDriver.js.html", + "lib/Driver/ConsoleDriver.js", + "file" + ], + [ + "lib/driver/consoledriver.js~consoledriver#constructor", + "class/lib/Driver/ConsoleDriver.js~ConsoleDriver.html#instance-constructor-constructor", + "lib/Driver/ConsoleDriver.js~ConsoleDriver#constructor", + "method" + ], + [ + "lib/driver/consoledriver.js~consoledriver#log", + "class/lib/Driver/ConsoleDriver.js~ConsoleDriver.html#instance-method-log", + "lib/Driver/ConsoleDriver.js~ConsoleDriver#log", + "method" + ], + [ + "lib/driver/ravenbrowserdriver.js", + "file/lib/Driver/RavenBrowserDriver.js.html", + "lib/Driver/RavenBrowserDriver.js", + "file" + ], + [ + "lib/driver/ravenbrowserdriver.js~ravenbrowserdriver#constructor", + "class/lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver.html#instance-constructor-constructor", + "lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver#constructor", + "method" + ], + [ + "lib/driver/ravenbrowserdriver.js~ravenbrowserdriver#log", + "class/lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver.html#instance-method-log", + "lib/Driver/RavenBrowserDriver.js~RavenBrowserDriver#log", + "method" + ], + [ + "lib/driver/ravendriver.js", + "file/lib/Driver/RavenDriver.js.html", + "lib/Driver/RavenDriver.js", + "file" + ], + [ + "lib/driver/ravendriver.js~ravendriver#clients", + "class/lib/Driver/RavenDriver.js~RavenDriver.html#instance-get-clients", + "lib/Driver/RavenDriver.js~RavenDriver#clients", + "member" + ], + [ + "lib/driver/ravendriver.js~ravendriver#constructor", + "class/lib/Driver/RavenDriver.js~RavenDriver.html#instance-constructor-constructor", + "lib/Driver/RavenDriver.js~RavenDriver#constructor", + "method" + ], + [ + "lib/driver/ravendriver.js~ravendriver#log", + "class/lib/Driver/RavenDriver.js~RavenDriver.html#instance-method-log", + "lib/Driver/RavenDriver.js~RavenDriver#log", + "method" + ], + [ + "lib/exception/exception.js", + "file/lib/Exception/Exception.js.html", + "lib/Exception/Exception.js", + "file" + ], + [ + "lib/exception/exception.js~exception#constructor", + "class/lib/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/log.js", + "file/lib/Log.js.html", + "lib/Log.js", + "file" + ], + [ + "lib/log.js~log#boot", + "class/lib/Log.js~Log.html#instance-method-boot", + "lib/Log.js~Log#boot", + "method" + ], + [ + "lib/log.js~log#constructor", + "class/lib/Log.js~Log.html#instance-constructor-constructor", + "lib/Log.js~Log#constructor", + "method" + ], + [ + "lib/log.js~log#create", + "class/lib/Log.js~Log.html#instance-method-create", + "lib/Log.js~Log#create", + "method" + ], + [ + "lib/log.js~log#drivers", + "class/lib/Log.js~Log.html#instance-get-drivers", + "lib/Log.js~Log#drivers", + "member" + ], + [ + "lib/log.js~log#log", + "class/lib/Log.js~Log.html#instance-method-log", + "lib/Log.js~Log#log", + "method" + ], + [ + "lib/log.js~log#register", + "class/lib/Log.js~Log.html#instance-method-register", + "lib/Log.js~Log#register", + "method" + ], + [ + "lib/log.js~log.alert", + "class/lib/Log.js~Log.html#static-get-ALERT", + "lib/Log.js~Log.ALERT", + "member" + ], + [ + "lib/log.js~log.critical", + "class/lib/Log.js~Log.html#static-get-CRITICAL", + "lib/Log.js~Log.CRITICAL", + "member" + ], + [ + "lib/log.js~log.debug", + "class/lib/Log.js~Log.html#static-get-DEBUG", + "lib/Log.js~Log.DEBUG", + "member" + ], + [ + "lib/log.js~log.emergency", + "class/lib/Log.js~Log.html#static-get-EMERGENCY", + "lib/Log.js~Log.EMERGENCY", + "member" + ], + [ + "lib/log.js~log.error", + "class/lib/Log.js~Log.html#static-get-ERROR", + "lib/Log.js~Log.ERROR", + "member" + ], + [ + "lib/log.js~log.info", + "class/lib/Log.js~Log.html#static-get-INFO", + "lib/Log.js~Log.INFO", + "member" + ], + [ + "lib/log.js~log.levels", + "class/lib/Log.js~Log.html#static-get-LEVELS", + "lib/Log.js~Log.LEVELS", + "member" + ], + [ + "lib/log.js~log.notice", + "class/lib/Log.js~Log.html#static-get-NOTICE", + "lib/Log.js~Log.NOTICE", + "member" + ], + [ + "lib/log.js~log.warning", + "class/lib/Log.js~Log.html#static-get-WARNING", + "lib/Log.js~Log.WARNING", + "member" + ], + [ + "lib/bootstrap.js", + "file/lib/bootstrap.js.html", + "lib/bootstrap.js", + "file" + ] +] \ No newline at end of file diff --git a/docs-api/deep-log/script/test-summary.js b/docs-api/deep-log/script/test-summary.js new file mode 100644 index 00000000..2f32cb00 --- /dev/null +++ b/docs-api/deep-log/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-describe')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-describe .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/docs-api/deep-log/source.html b/docs-api/deep-log/source.html new file mode 100644 index 00000000..82b2d1bc --- /dev/null +++ b/docs-api/deep-log/source.html @@ -0,0 +1,130 @@ + + + + + + Source | DEEP Log Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Source 30/32

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    lib/Driver/AbstractDriver.jsAbstractDriver75 %3/4741 byte422015-10-07 19:56:07 (UTC)
    lib/Driver/ConsoleDriver.jsConsoleDriver66 %2/3475 byte272015-09-04 12:52:17 (UTC)
    lib/Driver/RavenBrowserDriver.jsRavenBrowserDriver100 %3/31775 byte902015-08-04 12:23:10 (UTC)
    lib/Driver/RavenDriver.jsRavenDriver100 %4/41677 byte922015-09-05 11:34:30 (UTC)
    lib/Exception/Exception.jsException100 %2/2282 byte192015-10-07 19:56:07 (UTC)
    lib/Log.jsLog100 %16/163717 byte2062015-10-07 19:56:07 (UTC)
    lib/bootstrap.js--168 byte112015-09-04 12:52:17 (UTC)
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-notification/ast/source/Exception/Exception.js.json b/docs-api/deep-notification/ast/source/Exception/Exception.js.json new file mode 100644 index 00000000..a5724794 --- /dev/null +++ b/docs-api/deep-notification/ast/source/Exception/Exception.js.json @@ -0,0 +1,651 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 149, + 158 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 167, + 171 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 172, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "range": [ + 167, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 182, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "range": [ + 167, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 233, + 244 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 248, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 245, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 260, + 265 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 269, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 266, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 260, + 274 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 260, + 275 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 254, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 244, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 233, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 192, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 143, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 136, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 281 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-notification/ast/source/bootstrap.js.json b/docs-api/deep-notification/ast/source/bootstrap.js.json new file mode 100644 index 00000000..255c8245 --- /dev/null +++ b/docs-api/deep-notification/ast/source/bootstrap.js.json @@ -0,0 +1,241 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 89, + 101 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + "range": [ + 89, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "exports", + "range": [ + 108, + 115 + ], + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 11 + } + } + }, + "init": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "module", + "range": [ + 118, + 124 + ], + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exports", + "range": [ + 125, + 132 + ], + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 28 + } + } + }, + "range": [ + 118, + 132 + ], + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 28 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 135, + 137 + ], + "loc": { + "start": { + "line": 9, + "column": 31 + }, + "end": { + "line": 9, + "column": 33 + } + } + }, + "range": [ + 118, + 137 + ], + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 33 + } + } + }, + "range": [ + 108, + 137 + ], + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 33 + } + } + } + ], + "kind": "let", + "range": [ + 104, + 138 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 34 + } + } + } + ], + "sourceType": "module", + "range": [ + 89, + 138 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 34 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-notification/badge.svg b/docs-api/deep-notification/badge.svg new file mode 100644 index 00000000..e24552c4 --- /dev/null +++ b/docs-api/deep-notification/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 100% + 100% + + diff --git a/docs-api/deep-notification/class/lib/Exception/Exception.js~Exception.html b/docs-api/deep-notification/class/lib/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..126e61c2 --- /dev/null +++ b/docs-api/deep-notification/class/lib/Exception/Exception.js~Exception.html @@ -0,0 +1,193 @@ + + + + + + Exception | DEEP Notification Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    deep-core~Core.Exception.Exception → Exception
    + + + + + + + + + +

    Thrown when any exception occurs

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-notification/coverage.json b/docs-api/deep-notification/coverage.json new file mode 100644 index 00000000..c1190246 --- /dev/null +++ b/docs-api/deep-notification/coverage.json @@ -0,0 +1,12 @@ +{ + "coverage": "100%", + "expectCount": 2, + "actualCount": 2, + "files": { + "lib/Exception/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/docs-api/deep-notification/css/prettify-tomorrow.css b/docs-api/deep-notification/css/prettify-tomorrow.css new file mode 100644 index 00000000..b6f92a78 --- /dev/null +++ b/docs-api/deep-notification/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs-api/deep-notification/css/style.css b/docs-api/deep-notification/css/style.css new file mode 100644 index 00000000..4dc99a1b --- /dev/null +++ b/docs-api/deep-notification/css/style.css @@ -0,0 +1,862 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Roboto', sans-serif; + overflow: auto; + font-size: 14px; + /*color: #4d4e53;*/ + color: rgba(0, 0, 0, .68); + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + background-color: #E2E2E2; + padding: 4px; + font-weight: 300; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 19px; +} + +p > code { + background-color: #f5f5f5; + border-radius: 3px; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0 4px; + border-radius: 3px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: white; + top: 0; + border-bottom: solid 1px #E02130; +} +.layout-container > header > a{ + margin: 0 5px; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid rgba(0, 0, 0, 0.1); +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation .nav-dir-path { + margin-top: 0.7em; + margin-bottom: 0.25em; + font-size: 0.8em; + color: #aaa; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #999; + color: white; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +pre.source-code { + background: #f5f5f5; + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150); +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #999; + color: white; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} + +table.test-summary thead { + background: #999; + color: white; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-describe .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; +} + +table.test-summary tr.test-describe .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-describe .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} + +.inner-link-active { + background: rgb(255, 255, 150); +} + +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + +/* coverage badge */ +.esdoc-coverage { + display: inline-block; + height: 20px; + vertical-align: top; +} + +h1 .esdoc-coverage { + position: relative; + top: -4px; +} + +.esdoc-coverage-wrap { + color: white; + font-size: 12px; + font-weight: 500; +} + +.esdoc-coverage-label { + padding: 3px 4px 3px 6px; + background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%); + border-radius: 4px 0 0 4px; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-ratio { + padding: 3px 6px 3px 4px; + border-radius: 0 4px 4px 0; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-low { + background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%); +} + +.esdoc-coverage-middle { + background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%); +} + +.esdoc-coverage-high { + background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%); +} + +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; + background-color: transparent; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} diff --git a/docs-api/deep-notification/dump.json b/docs-api/deep-notification/dump.json new file mode 100644 index 00000000..24d2c619 --- /dev/null +++ b/docs-api/deep-notification/dump.json @@ -0,0 +1,736 @@ +[ + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/Exception.js", + "memberof": null, + "longname": "lib/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\n\n/**\n * Thrown when any exception occurs\n */\nexport class Exception extends Core.Exception.Exception {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Exception/Exception.js", + "longname": "lib/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-notification/lib/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Thrown when any exception occurs", + "lineNumber": 12, + "interface": false, + "extends": [ + "deep-core~Core.Exception.Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/Exception.js~Exception", + "longname": "lib/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/bootstrap.js", + "memberof": null, + "longname": "lib/bootstrap.js", + "access": null, + "description": null, + "lineNumber": 7, + "content": "/**\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n */\n\n'use strict';\n\nlet exports = module.exports = {};\n" + }, + { + "kind": "variable", + "static": true, + "variation": null, + "name": "exports", + "memberof": "lib/bootstrap.js", + "longname": "lib/bootstrap.js~exports", + "access": null, + "export": false, + "importPath": "deep-notification/lib/bootstrap.js", + "importStyle": null, + "description": null, + "lineNumber": 9, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~null", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Error", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Date", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~String", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~string", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Map", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Set", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "CanvasRenderingContext2D", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DocumentFragment", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Element", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Element", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Event", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Event", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Node", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Node", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NodeList", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~NodeList", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "XMLHttpRequest", + "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "access": null, + "description": null, + "builtinExternal": true + } +] \ No newline at end of file diff --git a/docs-api/deep-notification/file/lib/Exception/Exception.js.html b/docs-api/deep-notification/file/lib/Exception/Exception.js.html new file mode 100644 index 00000000..2dd9eb62 --- /dev/null +++ b/docs-api/deep-notification/file/lib/Exception/Exception.js.html @@ -0,0 +1,74 @@ + + + + + + lib/Exception/Exception.js | DEEP Notification Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/Exception.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +
    +/**
    + * Thrown when any exception occurs
    + */
    +export class Exception extends Core.Exception.Exception {
    +  /**
    +   * @param {Array} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-notification/file/lib/bootstrap.js.html b/docs-api/deep-notification/file/lib/bootstrap.js.html new file mode 100644 index 00000000..c5f78efb --- /dev/null +++ b/docs-api/deep-notification/file/lib/bootstrap.js.html @@ -0,0 +1,64 @@ + + + + + + lib/bootstrap.js | DEEP Notification Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/bootstrap.js

    +
    /**
    + * Created by AlexanderC on 5/22/15.
    + *
    + * Bootstrap file loaded by npm as main
    + */
    +
    +'use strict';
    +
    +let exports = module.exports = {};
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-notification/identifiers.html b/docs-api/deep-notification/identifiers.html new file mode 100644 index 00000000..ece8f62d --- /dev/null +++ b/docs-api/deep-notification/identifiers.html @@ -0,0 +1,89 @@ + + + + + + Index | DEEP Notification Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Identifier

    +

    Class Summary

    + + + + + + + + + +
    Static Public Class Summary
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Thrown when any exception occurs
    +
    +
    + + +
    +
    + + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-notification/image/badge.svg b/docs-api/deep-notification/image/badge.svg new file mode 100644 index 00000000..324db4c5 --- /dev/null +++ b/docs-api/deep-notification/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/docs-api/deep-notification/image/github.png b/docs-api/deep-notification/image/github.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/docs-api/deep-notification/image/github.png differ diff --git a/docs-api/deep-notification/image/search.png b/docs-api/deep-notification/image/search.png new file mode 100644 index 00000000..f5d84b69 Binary files /dev/null and b/docs-api/deep-notification/image/search.png differ diff --git a/docs-api/deep-notification/index.html b/docs-api/deep-notification/index.html new file mode 100644 index 00000000..57898f30 --- /dev/null +++ b/docs-api/deep-notification/index.html @@ -0,0 +1,187 @@ + + + + + + DEEP Notification Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    deep-notification

    +

    NPM Version +Build Status +Coverage Status +Codacy Badge +API Docs

    +

    deep-notification is a node.js library, part of DEEP Framework.

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less.

    +

    DEEP for Businesses Join char on gitter.im

    +

    User Guide Documentation (to be updated later)

    +

    DEEP is enabling small and medium businesses, as well as enterprises to:

    +
      +
    • Rent applications on a monthly basis by needed functionality from DEEP Marketplace
    • +
    • Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS
    • +
    • Pay only for subscribed applications and stop paying when unsubscribing and not using anymore
    • +
    • Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences
    • +
    • Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability
    • +
    +
    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP for Developers Join char on gitter.im

    +

    API Guide Documentation

    +

    Developer Guide Documentation

    +

    DEEP is enabling developers and architects to:

    +
      +
    • Design microservices architecture on top of serverless environments from cloud providers like AWS
    • +
    • Build distributed software that combines and manages hardware and software in the same microservice
    • +
    • Use the framework's abstracted approach to build applications that could be cloud agnostic
    • +
    • Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same DEEP Microservice
    • +
    • Run in the cloud the software that was built by distributed teams and served self-service in large organizations
    • +
    • Monetize their work of art by uploading microservices to DEEP Marketplace
    • +
    +
    +

    DEEP Microservice is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with DEEP Microservices HelloWorld or DEEP Microservices ToDo App, as well as DEEP CLI (aka deepify).

    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP Architecture on AWS Join char on gitter.im

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    DEEP is using microservices architecture on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DEEP Abstracted LibraryDescriptionAWS Abstracted Service(s)
    deep-assetAssets Management LibraryAmazon S3
    deep-cacheCache Management LibraryAmazon ElastiCache
    deep-coreCore Management Library-
    deep-dbDatabase Management LibraryAmazon DynamoDB, Amazon SQS
    deep-diDependency Injection Management Library-
    deep-eventEvents Management LibraryAmazon Kinesis
    deep-fsFile System Management LibraryAmazon S3
    deep-kernelKernel Management Library-
    deep-logLogs Management LibraryAmazon CloudWatch Logs
    deep-notificationNotifications Management LibraryAmazon SNS
    deep-resourceResouces Management LibraryAWS Lambda, Amazon API Gateway
    deep-securitySecurity Management LibraryAWS IAM, Amazon Cognito
    deep-validationValidation Management Library-
    +

    Feedback

    +

    We are eager to get your feedback, so please use whatever communication channel you prefer:

    + +

    License

    +

    This repository can be used under the MIT license.

    +
    +

    See LICENSE for more details.

    +
    +

    Sponsors

    +

    This repository is being sponsored by:

    +
    +

    Mitoc Group

    +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-notification/package.json b/docs-api/deep-notification/package.json new file mode 100644 index 00000000..083505f3 --- /dev/null +++ b/docs-api/deep-notification/package.json @@ -0,0 +1,64 @@ +{ + "name": "deep-notification", + "version": "0.0.37", + "description": "DEEP Notification Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Notification" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcovonly _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "*", + "deep-core": "*" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/docs-api/deep-notification/script/inherited-summary.js b/docs-api/deep-notification/script/inherited-summary.js new file mode 100644 index 00000000..0a35b6df --- /dev/null +++ b/docs-api/deep-notification/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/docs-api/deep-notification/script/inner-link.js b/docs-api/deep-notification/script/inner-link.js new file mode 100644 index 00000000..99d76273 --- /dev/null +++ b/docs-api/deep-notification/script/inner-link.js @@ -0,0 +1,29 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + var el = document.querySelector(location.hash); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = location.href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/docs-api/deep-notification/script/patch-for-local.js b/docs-api/deep-notification/script/patch-for-local.js new file mode 100644 index 00000000..5756d135 --- /dev/null +++ b/docs-api/deep-notification/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/docs-api/deep-notification/script/prettify/Apache-License-2.0.txt b/docs-api/deep-notification/script/prettify/Apache-License-2.0.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/docs-api/deep-notification/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs-api/deep-notification/script/prettify/prettify.js b/docs-api/deep-notification/script/prettify/prettify.js new file mode 100644 index 00000000..eef5ad7e --- /dev/null +++ b/docs-api/deep-notification/script/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/docs-api/deep-notification/script/search_index.js b/docs-api/deep-notification/script/search_index.js new file mode 100644 index 00000000..2b76a50a --- /dev/null +++ b/docs-api/deep-notification/script/search_index.js @@ -0,0 +1,350 @@ +window.esdocSearchIndex = [ + [ + "deep-notification/lib/exception/exception.js~exception", + "class/lib/Exception/Exception.js~Exception.html", + "Exception deep-notification/lib/Exception/Exception.js", + "class" + ], + [ + "builtinexternal/ecmascriptexternal.js~array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~arraybuffer", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~dataview", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~DataView", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~date", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Date", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~error", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Error", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~evalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float64array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generator", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Generator", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generatorfunction", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~infinity", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~internalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~json", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~JSON", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~map", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Map", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~nan", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~NaN", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~promise", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Promise", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~proxy", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~rangeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~referenceerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~reflect", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~regexp", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~set", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Set", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~String", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~symbol", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~syntaxerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~typeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~urierror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~URIError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8clampedarray", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakmap", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakset", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~null", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~null", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~string", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~undefined", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~undefined", + "external" + ], + [ + "builtinexternal/webapiexternal.js~canvasrenderingcontext2d", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "external" + ], + [ + "builtinexternal/webapiexternal.js~documentfragment", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "external" + ], + [ + "builtinexternal/webapiexternal.js~element", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Element", + "external" + ], + [ + "builtinexternal/webapiexternal.js~event", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Event", + "external" + ], + [ + "builtinexternal/webapiexternal.js~node", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Node", + "external" + ], + [ + "builtinexternal/webapiexternal.js~nodelist", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~NodeList", + "external" + ], + [ + "builtinexternal/webapiexternal.js~xmlhttprequest", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "external" + ], + [ + "lib/exception/exception.js", + "file/lib/Exception/Exception.js.html", + "lib/Exception/Exception.js", + "file" + ], + [ + "lib/exception/exception.js~exception#constructor", + "class/lib/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/bootstrap.js", + "file/lib/bootstrap.js.html", + "lib/bootstrap.js", + "file" + ] +] \ No newline at end of file diff --git a/docs-api/deep-notification/script/test-summary.js b/docs-api/deep-notification/script/test-summary.js new file mode 100644 index 00000000..2f32cb00 --- /dev/null +++ b/docs-api/deep-notification/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-describe')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-describe .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/docs-api/deep-notification/source.html b/docs-api/deep-notification/source.html new file mode 100644 index 00000000..3dae07f7 --- /dev/null +++ b/docs-api/deep-notification/source.html @@ -0,0 +1,85 @@ + + + + + + Source | DEEP Notification Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Source 2/2

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    lib/Exception/Exception.jsException100 %2/2282 byte192015-10-07 19:56:07 (UTC)
    lib/bootstrap.js--139 byte92015-09-04 12:52:17 (UTC)
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/ast/source/Exception/Exception.js.json b/docs-api/deep-resource/ast/source/Exception/Exception.js.json new file mode 100644 index 00000000..a5724794 --- /dev/null +++ b/docs-api/deep-resource/ast/source/Exception/Exception.js.json @@ -0,0 +1,651 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 149, + 158 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 167, + 171 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 172, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "range": [ + 167, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 182, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "range": [ + 167, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 233, + 244 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 248, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 245, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 260, + 265 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 269, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 266, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 260, + 274 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 260, + 275 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 254, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 244, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 233, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 192, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 143, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 136, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 281 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/ast/source/Exception/MissingResourceException.js.json b/docs-api/deep-resource/ast/source/Exception/MissingResourceException.js.json new file mode 100644 index 00000000..35860251 --- /dev/null +++ b/docs-api/deep-resource/ast/source/Exception/MissingResourceException.js.json @@ -0,0 +1,686 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested resource not found\n ", + "range": [ + 101, + 152 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "MissingResourceException", + "range": [ + 166, + 190 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 37 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 199, + 208 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 309, + 320 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "microserviceIdentifier", + "range": [ + 321, + 343 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 36 + } + } + }, + { + "type": "Identifier", + "name": "resourceIdentifier", + "range": [ + 345, + 363 + ], + "loc": { + "start": { + "line": 17, + "column": 38 + }, + "end": { + "line": 17, + "column": 56 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 371, + 376 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Missing resource ", + "cooked": "Missing resource " + }, + "tail": false, + "range": [ + 377, + 397 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 30 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " in ", + "cooked": " in " + }, + "tail": false, + "range": [ + 415, + 422 + ], + "loc": { + "start": { + "line": 18, + "column": 48 + }, + "end": { + "line": 18, + "column": 55 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 444, + 446 + ], + "loc": { + "start": { + "line": 18, + "column": 77 + }, + "end": { + "line": 18, + "column": 79 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "resourceIdentifier", + "range": [ + 397, + 415 + ], + "loc": { + "start": { + "line": 18, + "column": 30 + }, + "end": { + "line": 18, + "column": 48 + } + } + }, + { + "type": "Identifier", + "name": "microserviceIdentifier", + "range": [ + 422, + 444 + ], + "loc": { + "start": { + "line": 18, + "column": 55 + }, + "end": { + "line": 18, + "column": 77 + } + } + } + ], + "range": [ + 377, + 446 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 79 + } + } + } + ], + "range": [ + 371, + 447 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 80 + } + } + }, + "range": [ + 371, + 448 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 81 + } + } + } + ], + "range": [ + 365, + 452 + ], + "loc": { + "start": { + "line": 17, + "column": 58 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 320, + 452 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 309, + 452 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} microserviceIdentifier\n * @param {String} resourceIdentifier\n ", + "range": [ + 213, + 306 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 209, + 454 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 20, + "column": 1 + } + } + }, + "range": [ + 160, + 454 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested resource not found\n ", + "range": [ + 101, + 152 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 153, + 454 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested resource not found\n ", + "range": [ + 101, + 152 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 454 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when requested resource not found\n ", + "range": [ + 101, + 152 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} microserviceIdentifier\n * @param {String} resourceIdentifier\n ", + "range": [ + 213, + 306 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/ast/source/Resource.js.json b/docs-api/deep-resource/ast/source/Resource.js.json new file mode 100644 index 00000000..b5c70589 --- /dev/null +++ b/docs-api/deep-resource/ast/source/Resource.js.json @@ -0,0 +1,6156 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 68, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + }, + "range": [ + 68, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-kernel", + "raw": "'deep-kernel'", + "range": [ + 80, + 93 + ], + "loc": { + "start": { + "line": 7, + "column": 19 + }, + "end": { + "line": 7, + "column": 32 + } + } + }, + "range": [ + 61, + 94 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 33 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "ResourceInstance", + "range": [ + 115, + 131 + ], + "loc": { + "start": { + "line": 8, + "column": 20 + }, + "end": { + "line": 8, + "column": 36 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Instance", + "range": [ + 103, + 111 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 16 + } + } + }, + "range": [ + 103, + 131 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 36 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Resource/Instance", + "raw": "'./Resource/Instance'", + "range": [ + 138, + 159 + ], + "loc": { + "start": { + "line": 8, + "column": 43 + }, + "end": { + "line": 8, + "column": 64 + } + } + }, + "range": [ + 95, + 160 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 65 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "MissingResourceException", + "range": [ + 169, + 193 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 32 + } + } + }, + "imported": { + "type": "Identifier", + "name": "MissingResourceException", + "range": [ + 169, + 193 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 32 + } + } + }, + "range": [ + 169, + 193 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 32 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/MissingResourceException", + "raw": "'./Exception/MissingResourceException'", + "range": [ + 200, + 238 + ], + "loc": { + "start": { + "line": 9, + "column": 39 + }, + "end": { + "line": 9, + "column": 77 + } + } + }, + "range": [ + 161, + 239 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 78 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Bundle resource\n ", + "range": [ + 241, + 267 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Resource", + "range": [ + 281, + 289 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 21 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 298, + 304 + ], + "loc": { + "start": { + "line": 14, + "column": 30 + }, + "end": { + "line": 14, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "ContainerAware", + "range": [ + 305, + 319 + ], + "loc": { + "start": { + "line": 14, + "column": 37 + }, + "end": { + "line": 14, + "column": 51 + } + } + }, + "range": [ + 298, + 319 + ], + "loc": { + "start": { + "line": 14, + "column": 30 + }, + "end": { + "line": 14, + "column": 51 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 367, + 378 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "resources", + "range": [ + 379, + 388 + ], + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 23 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 391, + 393 + ], + "loc": { + "start": { + "line": 18, + "column": 26 + }, + "end": { + "line": 18, + "column": 28 + } + } + }, + "range": [ + 379, + 393 + ], + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 28 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 401, + 406 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 401, + 408 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 11 + } + } + }, + "range": [ + 401, + 409 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 415, + 419 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resources", + "range": [ + 420, + 430 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 19 + } + } + }, + "range": [ + 415, + 430 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 19 + } + } + }, + "right": { + "type": "Identifier", + "name": "resources", + "range": [ + 433, + 442 + ], + "loc": { + "start": { + "line": 21, + "column": 22 + }, + "end": { + "line": 21, + "column": 31 + } + } + }, + "range": [ + 415, + 442 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 31 + } + } + }, + "range": [ + 415, + 443 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 32 + } + } + } + ], + "range": [ + 395, + 447 + ], + "loc": { + "start": { + "line": 18, + "column": 30 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 378, + 447 + ], + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 367, + 447 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} resources\n ", + "range": [ + 324, + 364 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} identifier\n * @returns {Boolean}\n ", + "range": [ + 451, + 516 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "has", + "range": [ + 519, + 522 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 28, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "identifier", + "range": [ + 523, + 533 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 28, + "column": 16 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 548, + 552 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resources", + "range": [ + 553, + 563 + ], + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 26 + } + } + }, + "range": [ + 548, + 563 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 26 + } + } + }, + "property": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 564, + 568 + ], + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservice", + "range": [ + 569, + 581 + ], + "loc": { + "start": { + "line": 29, + "column": 32 + }, + "end": { + "line": 29, + "column": 44 + } + } + }, + "range": [ + 564, + 581 + ], + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "identifier", + "range": [ + 582, + 592 + ], + "loc": { + "start": { + "line": 29, + "column": 45 + }, + "end": { + "line": 29, + "column": 55 + } + } + }, + "range": [ + 564, + 592 + ], + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 55 + } + } + }, + "range": [ + 548, + 593 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 56 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 594, + 608 + ], + "loc": { + "start": { + "line": 29, + "column": 57 + }, + "end": { + "line": 29, + "column": 71 + } + } + }, + "range": [ + 548, + 608 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 71 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "identifier", + "range": [ + 609, + 619 + ], + "loc": { + "start": { + "line": 29, + "column": 72 + }, + "end": { + "line": 29, + "column": 82 + } + } + } + ], + "range": [ + 548, + 620 + ], + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 83 + } + } + }, + "range": [ + 541, + 621 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 84 + } + } + } + ], + "range": [ + 535, + 625 + ], + "loc": { + "start": { + "line": 28, + "column": 18 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 522, + 625 + ], + "loc": { + "start": { + "line": 28, + "column": 5 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 519, + 625 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} identifier\n * @returns {Boolean}\n ", + "range": [ + 451, + 516 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} identifier\n * @returns {ResourceInstance}\n ", + "range": [ + 629, + 703 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 35, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "get", + "range": [ + 706, + 709 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "identifier", + "range": [ + 710, + 720 + ], + "loc": { + "start": { + "line": 36, + "column": 6 + }, + "end": { + "line": 36, + "column": 16 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "identifier", + "range": [ + 728, + 738 + ], + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 14 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 741, + 745 + ], + "loc": { + "start": { + "line": 37, + "column": 17 + }, + "end": { + "line": 37, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resolvePath", + "range": [ + 746, + 758 + ], + "loc": { + "start": { + "line": 37, + "column": 22 + }, + "end": { + "line": 37, + "column": 34 + } + } + }, + "range": [ + 741, + 758 + ], + "loc": { + "start": { + "line": 37, + "column": 17 + }, + "end": { + "line": 37, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "identifier", + "range": [ + 759, + 769 + ], + "loc": { + "start": { + "line": 37, + "column": 35 + }, + "end": { + "line": 37, + "column": 45 + } + } + } + ], + "range": [ + 741, + 770 + ], + "loc": { + "start": { + "line": 37, + "column": 17 + }, + "end": { + "line": 37, + "column": 46 + } + } + }, + "range": [ + 728, + 770 + ], + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 46 + } + } + }, + "range": [ + 728, + 771 + ], + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 47 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "microserviceIdentifier", + "range": [ + 781, + 803 + ], + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 30 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 806, + 810 + ], + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservice", + "range": [ + 811, + 823 + ], + "loc": { + "start": { + "line": 39, + "column": 38 + }, + "end": { + "line": 39, + "column": 50 + } + } + }, + "range": [ + 806, + 823 + ], + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 50 + } + } + }, + "property": { + "type": "Identifier", + "name": "identifier", + "range": [ + 824, + 834 + ], + "loc": { + "start": { + "line": 39, + "column": 51 + }, + "end": { + "line": 39, + "column": 61 + } + } + }, + "range": [ + 806, + 834 + ], + "loc": { + "start": { + "line": 39, + "column": 33 + }, + "end": { + "line": 39, + "column": 61 + } + } + }, + "range": [ + 781, + 834 + ], + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 61 + } + } + } + ], + "kind": "let", + "range": [ + 777, + 835 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 62 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 846, + 850 + ], + "loc": { + "start": { + "line": 41, + "column": 9 + }, + "end": { + "line": 41, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "has", + "range": [ + 851, + 854 + ], + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 41, + "column": 17 + } + } + }, + "range": [ + 846, + 854 + ], + "loc": { + "start": { + "line": 41, + "column": 9 + }, + "end": { + "line": 41, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "identifier", + "range": [ + 855, + 865 + ], + "loc": { + "start": { + "line": 41, + "column": 18 + }, + "end": { + "line": 41, + "column": 28 + } + } + } + ], + "range": [ + 846, + 866 + ], + "loc": { + "start": { + "line": 41, + "column": 9 + }, + "end": { + "line": 41, + "column": 29 + } + } + }, + "prefix": true, + "range": [ + 845, + 866 + ], + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 29 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "MissingResourceException", + "range": [ + 886, + 910 + ], + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "microserviceIdentifier", + "range": [ + 911, + 933 + ], + "loc": { + "start": { + "line": 42, + "column": 41 + }, + "end": { + "line": 42, + "column": 63 + } + } + }, + { + "type": "Identifier", + "name": "identifier", + "range": [ + 935, + 945 + ], + "loc": { + "start": { + "line": 42, + "column": 65 + }, + "end": { + "line": 42, + "column": 75 + } + } + } + ], + "range": [ + 882, + 946 + ], + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 76 + } + } + }, + "range": [ + 876, + 947 + ], + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 77 + } + } + } + ], + "range": [ + 868, + 953 + ], + "loc": { + "start": { + "line": 41, + "column": 31 + }, + "end": { + "line": 43, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 841, + 953 + ], + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 43, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 966, + 970 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resources", + "range": [ + 971, + 981 + ], + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 26 + } + } + }, + "range": [ + 966, + 981 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "microserviceIdentifier", + "range": [ + 982, + 1004 + ], + "loc": { + "start": { + "line": 45, + "column": 27 + }, + "end": { + "line": 45, + "column": 49 + } + } + }, + "range": [ + 966, + 1005 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 50 + } + } + }, + "property": { + "type": "Identifier", + "name": "identifier", + "range": [ + 1006, + 1016 + ], + "loc": { + "start": { + "line": 45, + "column": 51 + }, + "end": { + "line": 45, + "column": 61 + } + } + }, + "range": [ + 966, + 1017 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 62 + } + } + }, + "range": [ + 959, + 1018 + ], + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 63 + } + } + } + ], + "range": [ + 722, + 1022 + ], + "loc": { + "start": { + "line": 36, + "column": 18 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 709, + 1022 + ], + "loc": { + "start": { + "line": 36, + "column": 5 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 706, + 1022 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 46, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} identifier\n * @returns {ResourceInstance}\n ", + "range": [ + 629, + 703 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 35, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1026, + 1058 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "list", + "range": [ + 1065, + 1069 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "map", + "range": [ + 1082, + 1085 + ], + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 11 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 1088, + 1090 + ], + "loc": { + "start": { + "line": 52, + "column": 14 + }, + "end": { + "line": 52, + "column": 16 + } + } + }, + "range": [ + 1082, + 1090 + ], + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 16 + } + } + } + ], + "kind": "let", + "range": [ + 1078, + 1091 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 17 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1106, + 1118 + ], + "loc": { + "start": { + "line": 54, + "column": 13 + }, + "end": { + "line": 54, + "column": 25 + } + } + }, + "init": null, + "range": [ + 1106, + 1118 + ], + "loc": { + "start": { + "line": 54, + "column": 13 + }, + "end": { + "line": 54, + "column": 25 + } + } + } + ], + "kind": "let", + "range": [ + 1102, + 1118 + ], + "loc": { + "start": { + "line": 54, + "column": 9 + }, + "end": { + "line": 54, + "column": 25 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1122, + 1126 + ], + "loc": { + "start": { + "line": 54, + "column": 29 + }, + "end": { + "line": 54, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resources", + "range": [ + 1127, + 1137 + ], + "loc": { + "start": { + "line": 54, + "column": 34 + }, + "end": { + "line": 54, + "column": 44 + } + } + }, + "range": [ + 1122, + 1137 + ], + "loc": { + "start": { + "line": 54, + "column": 29 + }, + "end": { + "line": 54, + "column": 44 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1152, + 1156 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resources", + "range": [ + 1157, + 1167 + ], + "loc": { + "start": { + "line": 55, + "column": 16 + }, + "end": { + "line": 55, + "column": 26 + } + } + }, + "range": [ + 1152, + 1167 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 1168, + 1182 + ], + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 41 + } + } + }, + "range": [ + 1152, + 1182 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 41 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "microservice", + "range": [ + 1183, + 1195 + ], + "loc": { + "start": { + "line": 55, + "column": 42 + }, + "end": { + "line": 55, + "column": 54 + } + } + } + ], + "range": [ + 1152, + 1196 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 55 + } + } + }, + "prefix": true, + "range": [ + 1151, + 1196 + ], + "loc": { + "start": { + "line": 55, + "column": 10 + }, + "end": { + "line": 55, + "column": 55 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 1208, + 1217 + ], + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 17 + } + } + } + ], + "range": [ + 1198, + 1225 + ], + "loc": { + "start": { + "line": 55, + "column": 57 + }, + "end": { + "line": 57, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1147, + 1225 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 57, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 1233, + 1236 + ], + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1237, + 1249 + ], + "loc": { + "start": { + "line": 59, + "column": 10 + }, + "end": { + "line": 59, + "column": 22 + } + } + }, + "range": [ + 1233, + 1250 + ], + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 23 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Object", + "range": [ + 1253, + 1259 + ], + "loc": { + "start": { + "line": 59, + "column": 26 + }, + "end": { + "line": 59, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "keys", + "range": [ + 1260, + 1264 + ], + "loc": { + "start": { + "line": 59, + "column": 33 + }, + "end": { + "line": 59, + "column": 37 + } + } + }, + "range": [ + 1253, + 1264 + ], + "loc": { + "start": { + "line": 59, + "column": 26 + }, + "end": { + "line": 59, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1265, + 1269 + ], + "loc": { + "start": { + "line": 59, + "column": 38 + }, + "end": { + "line": 59, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resources", + "range": [ + 1270, + 1280 + ], + "loc": { + "start": { + "line": 59, + "column": 43 + }, + "end": { + "line": 59, + "column": 53 + } + } + }, + "range": [ + 1265, + 1280 + ], + "loc": { + "start": { + "line": 59, + "column": 38 + }, + "end": { + "line": 59, + "column": 53 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1281, + 1293 + ], + "loc": { + "start": { + "line": 59, + "column": 54 + }, + "end": { + "line": 59, + "column": 66 + } + } + }, + "range": [ + 1265, + 1294 + ], + "loc": { + "start": { + "line": 59, + "column": 38 + }, + "end": { + "line": 59, + "column": 67 + } + } + } + ], + "range": [ + 1253, + 1295 + ], + "loc": { + "start": { + "line": 59, + "column": 26 + }, + "end": { + "line": 59, + "column": 68 + } + } + }, + "range": [ + 1233, + 1295 + ], + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 68 + } + } + }, + "range": [ + 1233, + 1296 + ], + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 69 + } + } + } + ], + "range": [ + 1139, + 1302 + ], + "loc": { + "start": { + "line": 54, + "column": 46 + }, + "end": { + "line": 60, + "column": 5 + } + } + }, + "each": false, + "range": [ + 1097, + 1302 + ], + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 60, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "map", + "range": [ + 1315, + 1318 + ], + "loc": { + "start": { + "line": 62, + "column": 11 + }, + "end": { + "line": 62, + "column": 14 + } + } + }, + "range": [ + 1308, + 1319 + ], + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 15 + } + } + } + ], + "range": [ + 1072, + 1323 + ], + "loc": { + "start": { + "line": 51, + "column": 13 + }, + "end": { + "line": 63, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1069, + 1323 + ], + "loc": { + "start": { + "line": 51, + "column": 10 + }, + "end": { + "line": 63, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1061, + 1323 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 63, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1026, + 1058 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 1327, + 1432 + ], + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "boot", + "range": [ + 1435, + 1439 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 71, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "kernel", + "range": [ + 1440, + 1446 + ], + "loc": { + "start": { + "line": 71, + "column": 7 + }, + "end": { + "line": 71, + "column": 13 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 1448, + 1456 + ], + "loc": { + "start": { + "line": 71, + "column": 15 + }, + "end": { + "line": 71, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "cache", + "range": [ + 1468, + 1473 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 13 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 1476, + 1482 + ], + "loc": { + "start": { + "line": 72, + "column": 16 + }, + "end": { + "line": 72, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "container", + "range": [ + 1483, + 1492 + ], + "loc": { + "start": { + "line": 72, + "column": 23 + }, + "end": { + "line": 72, + "column": 32 + } + } + }, + "range": [ + 1476, + 1492 + ], + "loc": { + "start": { + "line": 72, + "column": 16 + }, + "end": { + "line": 72, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 1493, + 1496 + ], + "loc": { + "start": { + "line": 72, + "column": 33 + }, + "end": { + "line": 72, + "column": 36 + } + } + }, + "range": [ + 1476, + 1496 + ], + "loc": { + "start": { + "line": 72, + "column": 16 + }, + "end": { + "line": 72, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "cache", + "raw": "'cache'", + "range": [ + 1497, + 1504 + ], + "loc": { + "start": { + "line": 72, + "column": 37 + }, + "end": { + "line": 72, + "column": 44 + } + } + } + ], + "range": [ + 1476, + 1505 + ], + "loc": { + "start": { + "line": 72, + "column": 16 + }, + "end": { + "line": 72, + "column": 45 + } + } + }, + "range": [ + 1468, + 1505 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 45 + } + } + } + ], + "kind": "let", + "range": [ + 1464, + 1506 + ], + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 72, + "column": 46 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "security", + "range": [ + 1515, + 1523 + ], + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 73, + "column": 16 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 1526, + 1532 + ], + "loc": { + "start": { + "line": 73, + "column": 19 + }, + "end": { + "line": 73, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "container", + "range": [ + 1533, + 1542 + ], + "loc": { + "start": { + "line": 73, + "column": 26 + }, + "end": { + "line": 73, + "column": 35 + } + } + }, + "range": [ + 1526, + 1542 + ], + "loc": { + "start": { + "line": 73, + "column": 19 + }, + "end": { + "line": 73, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 1543, + 1546 + ], + "loc": { + "start": { + "line": 73, + "column": 36 + }, + "end": { + "line": 73, + "column": 39 + } + } + }, + "range": [ + 1526, + 1546 + ], + "loc": { + "start": { + "line": 73, + "column": 19 + }, + "end": { + "line": 73, + "column": 39 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "security", + "raw": "'security'", + "range": [ + 1547, + 1557 + ], + "loc": { + "start": { + "line": 73, + "column": 40 + }, + "end": { + "line": 73, + "column": 50 + } + } + } + ], + "range": [ + 1526, + 1558 + ], + "loc": { + "start": { + "line": 73, + "column": 19 + }, + "end": { + "line": 73, + "column": 51 + } + } + }, + "range": [ + 1515, + 1558 + ], + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 73, + "column": 51 + } + } + } + ], + "kind": "let", + "range": [ + 1511, + 1559 + ], + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 73, + "column": 52 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "resourcesVector", + "range": [ + 1569, + 1584 + ], + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 23 + } + } + }, + "init": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 1587, + 1589 + ], + "loc": { + "start": { + "line": 75, + "column": 26 + }, + "end": { + "line": 75, + "column": 28 + } + } + }, + "range": [ + 1569, + 1589 + ], + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 28 + } + } + } + ], + "kind": "let", + "range": [ + 1565, + 1590 + ], + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 29 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "microserviceKey", + "range": [ + 1605, + 1620 + ], + "loc": { + "start": { + "line": 77, + "column": 13 + }, + "end": { + "line": 77, + "column": 28 + } + } + }, + "init": null, + "range": [ + 1605, + 1620 + ], + "loc": { + "start": { + "line": 77, + "column": 13 + }, + "end": { + "line": 77, + "column": 28 + } + } + } + ], + "kind": "let", + "range": [ + 1601, + 1620 + ], + "loc": { + "start": { + "line": 77, + "column": 9 + }, + "end": { + "line": 77, + "column": 28 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 1624, + 1630 + ], + "loc": { + "start": { + "line": 77, + "column": 32 + }, + "end": { + "line": 77, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservices", + "range": [ + 1631, + 1644 + ], + "loc": { + "start": { + "line": 77, + "column": 39 + }, + "end": { + "line": 77, + "column": 52 + } + } + }, + "range": [ + 1624, + 1644 + ], + "loc": { + "start": { + "line": 77, + "column": 32 + }, + "end": { + "line": 77, + "column": 52 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 1659, + 1665 + ], + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservices", + "range": [ + 1666, + 1679 + ], + "loc": { + "start": { + "line": 78, + "column": 18 + }, + "end": { + "line": 78, + "column": 31 + } + } + }, + "range": [ + 1659, + 1679 + ], + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 1680, + 1694 + ], + "loc": { + "start": { + "line": 78, + "column": 32 + }, + "end": { + "line": 78, + "column": 46 + } + } + }, + "range": [ + 1659, + 1694 + ], + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 46 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "microserviceKey", + "range": [ + 1695, + 1710 + ], + "loc": { + "start": { + "line": 78, + "column": 47 + }, + "end": { + "line": 78, + "column": 62 + } + } + } + ], + "range": [ + 1659, + 1711 + ], + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 63 + } + } + }, + "prefix": true, + "range": [ + 1658, + 1711 + ], + "loc": { + "start": { + "line": 78, + "column": 10 + }, + "end": { + "line": 78, + "column": 63 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 1723, + 1732 + ], + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 17 + } + } + } + ], + "range": [ + 1713, + 1740 + ], + "loc": { + "start": { + "line": 78, + "column": 65 + }, + "end": { + "line": 80, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1654, + 1740 + ], + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 80, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1752, + 1764 + ], + "loc": { + "start": { + "line": 82, + "column": 10 + }, + "end": { + "line": 82, + "column": 22 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 1767, + 1773 + ], + "loc": { + "start": { + "line": 82, + "column": 25 + }, + "end": { + "line": 82, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "microservices", + "range": [ + 1774, + 1787 + ], + "loc": { + "start": { + "line": 82, + "column": 32 + }, + "end": { + "line": 82, + "column": 45 + } + } + }, + "range": [ + 1767, + 1787 + ], + "loc": { + "start": { + "line": 82, + "column": 25 + }, + "end": { + "line": 82, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "microserviceKey", + "range": [ + 1788, + 1803 + ], + "loc": { + "start": { + "line": 82, + "column": 46 + }, + "end": { + "line": 82, + "column": 61 + } + } + }, + "range": [ + 1767, + 1804 + ], + "loc": { + "start": { + "line": 82, + "column": 25 + }, + "end": { + "line": 82, + "column": 62 + } + } + }, + "range": [ + 1752, + 1804 + ], + "loc": { + "start": { + "line": 82, + "column": 10 + }, + "end": { + "line": 82, + "column": 62 + } + } + } + ], + "kind": "let", + "range": [ + 1748, + 1805 + ], + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 63 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1813, + 1817 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resources", + "range": [ + 1818, + 1828 + ], + "loc": { + "start": { + "line": 84, + "column": 11 + }, + "end": { + "line": 84, + "column": 21 + } + } + }, + "range": [ + 1813, + 1828 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 21 + } + } + }, + "property": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1829, + 1841 + ], + "loc": { + "start": { + "line": 84, + "column": 22 + }, + "end": { + "line": 84, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "identifier", + "range": [ + 1842, + 1852 + ], + "loc": { + "start": { + "line": 84, + "column": 35 + }, + "end": { + "line": 84, + "column": 45 + } + } + }, + "range": [ + 1829, + 1852 + ], + "loc": { + "start": { + "line": 84, + "column": 22 + }, + "end": { + "line": 84, + "column": 45 + } + } + }, + "range": [ + 1813, + 1853 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 46 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 1856, + 1858 + ], + "loc": { + "start": { + "line": 84, + "column": 49 + }, + "end": { + "line": 84, + "column": 51 + } + } + }, + "range": [ + 1813, + 1858 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 51 + } + } + }, + "range": [ + 1813, + 1859 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 52 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "resourceName", + "range": [ + 1876, + 1888 + ], + "loc": { + "start": { + "line": 86, + "column": 15 + }, + "end": { + "line": 86, + "column": 27 + } + } + }, + "init": null, + "range": [ + 1876, + 1888 + ], + "loc": { + "start": { + "line": 86, + "column": 15 + }, + "end": { + "line": 86, + "column": 27 + } + } + } + ], + "kind": "let", + "range": [ + 1872, + 1888 + ], + "loc": { + "start": { + "line": 86, + "column": 11 + }, + "end": { + "line": 86, + "column": 27 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1892, + 1904 + ], + "loc": { + "start": { + "line": 86, + "column": 31 + }, + "end": { + "line": 86, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "name": "rawResources", + "range": [ + 1905, + 1917 + ], + "loc": { + "start": { + "line": 86, + "column": 44 + }, + "end": { + "line": 86, + "column": 56 + } + } + }, + "range": [ + 1892, + 1917 + ], + "loc": { + "start": { + "line": 86, + "column": 31 + }, + "end": { + "line": 86, + "column": 56 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "microservice", + "range": [ + 1934, + 1946 + ], + "loc": { + "start": { + "line": 87, + "column": 13 + }, + "end": { + "line": 87, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "rawResources", + "range": [ + 1947, + 1959 + ], + "loc": { + "start": { + "line": 87, + "column": 26 + }, + "end": { + "line": 87, + "column": 38 + } + } + }, + "range": [ + 1934, + 1959 + ], + "loc": { + "start": { + "line": 87, + "column": 13 + }, + "end": { + "line": 87, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 1960, + 1974 + ], + "loc": { + "start": { + "line": 87, + "column": 39 + }, + "end": { + "line": 87, + "column": 53 + } + } + }, + "range": [ + 1934, + 1974 + ], + "loc": { + "start": { + "line": 87, + "column": 13 + }, + "end": { + "line": 87, + "column": 53 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "resourceName", + "range": [ + 1975, + 1987 + ], + "loc": { + "start": { + "line": 87, + "column": 54 + }, + "end": { + "line": 87, + "column": 66 + } + } + } + ], + "range": [ + 1934, + 1988 + ], + "loc": { + "start": { + "line": 87, + "column": 13 + }, + "end": { + "line": 87, + "column": 67 + } + } + }, + "prefix": true, + "range": [ + 1933, + 1988 + ], + "loc": { + "start": { + "line": 87, + "column": 12 + }, + "end": { + "line": 87, + "column": 67 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 2002, + 2011 + ], + "loc": { + "start": { + "line": 88, + "column": 10 + }, + "end": { + "line": 88, + "column": 19 + } + } + } + ], + "range": [ + 1990, + 2021 + ], + "loc": { + "start": { + "line": 87, + "column": 69 + }, + "end": { + "line": 89, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 1929, + 2021 + ], + "loc": { + "start": { + "line": 87, + "column": 8 + }, + "end": { + "line": 89, + "column": 9 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "resource", + "range": [ + 2035, + 2043 + ], + "loc": { + "start": { + "line": 91, + "column": 12 + }, + "end": { + "line": 91, + "column": 20 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "ResourceInstance", + "range": [ + 2050, + 2066 + ], + "loc": { + "start": { + "line": 91, + "column": 27 + }, + "end": { + "line": 91, + "column": 43 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "resourceName", + "range": [ + 2078, + 2090 + ], + "loc": { + "start": { + "line": 92, + "column": 10 + }, + "end": { + "line": 92, + "column": 22 + } + } + }, + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "microservice", + "range": [ + 2102, + 2114 + ], + "loc": { + "start": { + "line": 93, + "column": 10 + }, + "end": { + "line": 93, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "rawResources", + "range": [ + 2115, + 2127 + ], + "loc": { + "start": { + "line": 93, + "column": 23 + }, + "end": { + "line": 93, + "column": 35 + } + } + }, + "range": [ + 2102, + 2127 + ], + "loc": { + "start": { + "line": 93, + "column": 10 + }, + "end": { + "line": 93, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "resourceName", + "range": [ + 2128, + 2140 + ], + "loc": { + "start": { + "line": 93, + "column": 36 + }, + "end": { + "line": 93, + "column": 48 + } + } + }, + "range": [ + 2102, + 2141 + ], + "loc": { + "start": { + "line": 93, + "column": 10 + }, + "end": { + "line": 93, + "column": 49 + } + } + } + ], + "range": [ + 2046, + 2151 + ], + "loc": { + "start": { + "line": 91, + "column": 23 + }, + "end": { + "line": 94, + "column": 9 + } + } + }, + "range": [ + 2035, + 2151 + ], + "loc": { + "start": { + "line": 91, + "column": 12 + }, + "end": { + "line": 94, + "column": 9 + } + } + } + ], + "kind": "let", + "range": [ + 2031, + 2152 + ], + "loc": { + "start": { + "line": 91, + "column": 8 + }, + "end": { + "line": 94, + "column": 10 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "resource", + "range": [ + 2162, + 2170 + ], + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 96, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "cache", + "range": [ + 2171, + 2176 + ], + "loc": { + "start": { + "line": 96, + "column": 17 + }, + "end": { + "line": 96, + "column": 22 + } + } + }, + "range": [ + 2162, + 2176 + ], + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 96, + "column": 22 + } + } + }, + "right": { + "type": "Identifier", + "name": "cache", + "range": [ + 2179, + 2184 + ], + "loc": { + "start": { + "line": 96, + "column": 25 + }, + "end": { + "line": 96, + "column": 30 + } + } + }, + "range": [ + 2162, + 2184 + ], + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 96, + "column": 30 + } + } + }, + "range": [ + 2162, + 2185 + ], + "loc": { + "start": { + "line": 96, + "column": 8 + }, + "end": { + "line": 96, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "resource", + "range": [ + 2194, + 2202 + ], + "loc": { + "start": { + "line": 97, + "column": 8 + }, + "end": { + "line": 97, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "localBackend", + "range": [ + 2203, + 2215 + ], + "loc": { + "start": { + "line": 97, + "column": 17 + }, + "end": { + "line": 97, + "column": 29 + } + } + }, + "range": [ + 2194, + 2215 + ], + "loc": { + "start": { + "line": 97, + "column": 8 + }, + "end": { + "line": 97, + "column": 29 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2218, + 2222 + ], + "loc": { + "start": { + "line": 97, + "column": 32 + }, + "end": { + "line": 97, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "_localBackend", + "range": [ + 2223, + 2236 + ], + "loc": { + "start": { + "line": 97, + "column": 37 + }, + "end": { + "line": 97, + "column": 50 + } + } + }, + "range": [ + 2218, + 2236 + ], + "loc": { + "start": { + "line": 97, + "column": 32 + }, + "end": { + "line": 97, + "column": 50 + } + } + }, + "range": [ + 2194, + 2236 + ], + "loc": { + "start": { + "line": 97, + "column": 8 + }, + "end": { + "line": 97, + "column": 50 + } + } + }, + "range": [ + 2194, + 2237 + ], + "loc": { + "start": { + "line": 97, + "column": 8 + }, + "end": { + "line": 97, + "column": 51 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2247, + 2251 + ], + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resources", + "range": [ + 2252, + 2262 + ], + "loc": { + "start": { + "line": 99, + "column": 13 + }, + "end": { + "line": 99, + "column": 23 + } + } + }, + "range": [ + 2247, + 2262 + ], + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 23 + } + } + }, + "property": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "microservice", + "range": [ + 2263, + 2275 + ], + "loc": { + "start": { + "line": 99, + "column": 24 + }, + "end": { + "line": 99, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "identifier", + "range": [ + 2276, + 2286 + ], + "loc": { + "start": { + "line": 99, + "column": 37 + }, + "end": { + "line": 99, + "column": 47 + } + } + }, + "range": [ + 2263, + 2286 + ], + "loc": { + "start": { + "line": 99, + "column": 24 + }, + "end": { + "line": 99, + "column": 47 + } + } + }, + "range": [ + 2247, + 2287 + ], + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "name": "resourceName", + "range": [ + 2288, + 2300 + ], + "loc": { + "start": { + "line": 99, + "column": 49 + }, + "end": { + "line": 99, + "column": 61 + } + } + }, + "range": [ + 2247, + 2301 + ], + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 62 + } + } + }, + "right": { + "type": "Identifier", + "name": "resource", + "range": [ + 2304, + 2312 + ], + "loc": { + "start": { + "line": 99, + "column": 65 + }, + "end": { + "line": 99, + "column": 73 + } + } + }, + "range": [ + 2247, + 2312 + ], + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 73 + } + } + }, + "range": [ + 2247, + 2313 + ], + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 74 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "resourcesVector", + "range": [ + 2323, + 2338 + ], + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 101, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "push", + "range": [ + 2339, + 2343 + ], + "loc": { + "start": { + "line": 101, + "column": 24 + }, + "end": { + "line": 101, + "column": 28 + } + } + }, + "range": [ + 2323, + 2343 + ], + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 101, + "column": 28 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "resource", + "range": [ + 2344, + 2352 + ], + "loc": { + "start": { + "line": 101, + "column": 29 + }, + "end": { + "line": 101, + "column": 37 + } + } + } + ], + "range": [ + 2323, + 2353 + ], + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 101, + "column": 38 + } + } + }, + "range": [ + 2323, + 2354 + ], + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 101, + "column": 39 + } + } + } + ], + "range": [ + 1919, + 2362 + ], + "loc": { + "start": { + "line": 86, + "column": 58 + }, + "end": { + "line": 102, + "column": 7 + } + } + }, + "each": false, + "range": [ + 1867, + 2362 + ], + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 102, + "column": 7 + } + } + } + ], + "range": [ + 1646, + 2368 + ], + "loc": { + "start": { + "line": 77, + "column": 54 + }, + "end": { + "line": 103, + "column": 5 + } + } + }, + "each": false, + "range": [ + 1596, + 2368 + ], + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 103, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "security", + "range": [ + 2374, + 2382 + ], + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "onTokenAvailable", + "range": [ + 2383, + 2399 + ], + "loc": { + "start": { + "line": 105, + "column": 13 + }, + "end": { + "line": 105, + "column": 29 + } + } + }, + "range": [ + 2374, + 2399 + ], + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "token", + "range": [ + 2401, + 2406 + ], + "loc": { + "start": { + "line": 105, + "column": 31 + }, + "end": { + "line": 105, + "column": 36 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "credentials", + "range": [ + 2423, + 2434 + ], + "loc": { + "start": { + "line": 106, + "column": 10 + }, + "end": { + "line": 106, + "column": 21 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "token", + "range": [ + 2437, + 2442 + ], + "loc": { + "start": { + "line": 106, + "column": 24 + }, + "end": { + "line": 106, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "credentials", + "range": [ + 2443, + 2454 + ], + "loc": { + "start": { + "line": 106, + "column": 30 + }, + "end": { + "line": 106, + "column": 41 + } + } + }, + "range": [ + 2437, + 2454 + ], + "loc": { + "start": { + "line": 106, + "column": 24 + }, + "end": { + "line": 106, + "column": 41 + } + } + }, + "range": [ + 2423, + 2454 + ], + "loc": { + "start": { + "line": 106, + "column": 10 + }, + "end": { + "line": 106, + "column": 41 + } + } + } + ], + "kind": "let", + "range": [ + 2419, + 2455 + ], + "loc": { + "start": { + "line": 106, + "column": 6 + }, + "end": { + "line": 106, + "column": 42 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "resourceKey", + "range": [ + 2472, + 2483 + ], + "loc": { + "start": { + "line": 108, + "column": 15 + }, + "end": { + "line": 108, + "column": 26 + } + } + }, + "init": null, + "range": [ + 2472, + 2483 + ], + "loc": { + "start": { + "line": 108, + "column": 15 + }, + "end": { + "line": 108, + "column": 26 + } + } + } + ], + "kind": "let", + "range": [ + 2468, + 2483 + ], + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 108, + "column": 26 + } + } + }, + "right": { + "type": "Identifier", + "name": "resourcesVector", + "range": [ + 2487, + 2502 + ], + "loc": { + "start": { + "line": 108, + "column": 30 + }, + "end": { + "line": 108, + "column": 45 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "resourcesVector", + "range": [ + 2519, + 2534 + ], + "loc": { + "start": { + "line": 109, + "column": 13 + }, + "end": { + "line": 109, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 2535, + 2549 + ], + "loc": { + "start": { + "line": 109, + "column": 29 + }, + "end": { + "line": 109, + "column": 43 + } + } + }, + "range": [ + 2519, + 2549 + ], + "loc": { + "start": { + "line": 109, + "column": 13 + }, + "end": { + "line": 109, + "column": 43 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "resourceKey", + "range": [ + 2550, + 2561 + ], + "loc": { + "start": { + "line": 109, + "column": 44 + }, + "end": { + "line": 109, + "column": 55 + } + } + } + ], + "range": [ + 2519, + 2562 + ], + "loc": { + "start": { + "line": 109, + "column": 13 + }, + "end": { + "line": 109, + "column": 56 + } + } + }, + "prefix": true, + "range": [ + 2518, + 2562 + ], + "loc": { + "start": { + "line": 109, + "column": 12 + }, + "end": { + "line": 109, + "column": 56 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 2576, + 2585 + ], + "loc": { + "start": { + "line": 110, + "column": 10 + }, + "end": { + "line": 110, + "column": 19 + } + } + } + ], + "range": [ + 2564, + 2595 + ], + "loc": { + "start": { + "line": 109, + "column": 58 + }, + "end": { + "line": 111, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 2514, + 2595 + ], + "loc": { + "start": { + "line": 109, + "column": 8 + }, + "end": { + "line": 111, + "column": 9 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "resource", + "range": [ + 2609, + 2617 + ], + "loc": { + "start": { + "line": 113, + "column": 12 + }, + "end": { + "line": 113, + "column": 20 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "resourcesVector", + "range": [ + 2620, + 2635 + ], + "loc": { + "start": { + "line": 113, + "column": 23 + }, + "end": { + "line": 113, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "resourceKey", + "range": [ + 2636, + 2647 + ], + "loc": { + "start": { + "line": 113, + "column": 39 + }, + "end": { + "line": 113, + "column": 50 + } + } + }, + "range": [ + 2620, + 2648 + ], + "loc": { + "start": { + "line": 113, + "column": 23 + }, + "end": { + "line": 113, + "column": 51 + } + } + }, + "range": [ + 2609, + 2648 + ], + "loc": { + "start": { + "line": 113, + "column": 12 + }, + "end": { + "line": 113, + "column": 51 + } + } + } + ], + "kind": "let", + "range": [ + 2605, + 2649 + ], + "loc": { + "start": { + "line": 113, + "column": 8 + }, + "end": { + "line": 113, + "column": 52 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "resource", + "range": [ + 2659, + 2667 + ], + "loc": { + "start": { + "line": 115, + "column": 8 + }, + "end": { + "line": 115, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "securityCredentials", + "range": [ + 2668, + 2687 + ], + "loc": { + "start": { + "line": 115, + "column": 17 + }, + "end": { + "line": 115, + "column": 36 + } + } + }, + "range": [ + 2659, + 2687 + ], + "loc": { + "start": { + "line": 115, + "column": 8 + }, + "end": { + "line": 115, + "column": 36 + } + } + }, + "right": { + "type": "Identifier", + "name": "credentials", + "range": [ + 2690, + 2701 + ], + "loc": { + "start": { + "line": 115, + "column": 39 + }, + "end": { + "line": 115, + "column": 50 + } + } + }, + "range": [ + 2659, + 2701 + ], + "loc": { + "start": { + "line": 115, + "column": 8 + }, + "end": { + "line": 115, + "column": 50 + } + } + }, + "range": [ + 2659, + 2702 + ], + "loc": { + "start": { + "line": 115, + "column": 8 + }, + "end": { + "line": 115, + "column": 51 + } + } + } + ], + "range": [ + 2504, + 2710 + ], + "loc": { + "start": { + "line": 108, + "column": 47 + }, + "end": { + "line": 116, + "column": 7 + } + } + }, + "each": false, + "range": [ + 2463, + 2710 + ], + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 116, + "column": 7 + } + } + } + ], + "range": [ + 2411, + 2716 + ], + "loc": { + "start": { + "line": 105, + "column": 41 + }, + "end": { + "line": 117, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2400, + 2716 + ], + "loc": { + "start": { + "line": 105, + "column": 30 + }, + "end": { + "line": 117, + "column": 5 + } + } + } + ], + "range": [ + 2374, + 2717 + ], + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 117, + "column": 6 + } + } + }, + "range": [ + 2374, + 2718 + ], + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 117, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 2724, + 2732 + ], + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 119, + "column": 12 + } + } + }, + "arguments": [], + "range": [ + 2724, + 2734 + ], + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 119, + "column": 14 + } + } + }, + "range": [ + 2724, + 2735 + ], + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 119, + "column": 15 + } + } + } + ], + "range": [ + 1458, + 2739 + ], + "loc": { + "start": { + "line": 71, + "column": 25 + }, + "end": { + "line": 120, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1439, + 2739 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 120, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1435, + 2739 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 120, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 1327, + 1432 + ], + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 320, + 2741 + ], + "loc": { + "start": { + "line": 14, + "column": 52 + }, + "end": { + "line": 121, + "column": 1 + } + } + }, + "range": [ + 275, + 2741 + ], + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 121, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Bundle resource\n ", + "range": [ + 241, + 267 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 268, + 2741 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 121, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Bundle resource\n ", + "range": [ + 241, + 267 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 2741 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 121, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Bundle resource\n ", + "range": [ + 241, + 267 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} resources\n ", + "range": [ + 324, + 364 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} identifier\n * @returns {Boolean}\n ", + "range": [ + 451, + 516 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} identifier\n * @returns {ResourceInstance}\n ", + "range": [ + 629, + 703 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 35, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1026, + 1058 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 1327, + 1432 + ], + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/ast/source/Resource/Action.js.json b/docs-api/deep-resource/ast/source/Resource/Action.js.json new file mode 100644 index 00000000..c37489b2 --- /dev/null +++ b/docs-api/deep-resource/ast/source/Resource/Action.js.json @@ -0,0 +1,5094 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 41, + 53 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 41, + 54 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 8/4/15.\n ", + "range": [ + 0, + 39 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "UnknownMethodException", + "range": [ + 64, + 86 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 30 + } + } + }, + "imported": { + "type": "Identifier", + "name": "UnknownMethodException", + "range": [ + 64, + 86 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 30 + } + } + }, + "range": [ + 64, + 86 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 30 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/UnknownMethodException", + "raw": "'./Exception/UnknownMethodException'", + "range": [ + 93, + 129 + ], + "loc": { + "start": { + "line": 7, + "column": 37 + }, + "end": { + "line": 7, + "column": 73 + } + } + }, + "range": [ + 56, + 130 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 74 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Request", + "range": [ + 139, + 146 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Request", + "range": [ + 139, + 146 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + } + } + }, + "range": [ + 139, + 146 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Request", + "raw": "'./Request'", + "range": [ + 153, + 164 + ], + "loc": { + "start": { + "line": 8, + "column": 22 + }, + "end": { + "line": 8, + "column": 33 + } + } + }, + "range": [ + 131, + 165 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 34 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "LocalRequest", + "range": [ + 174, + 186 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 20 + } + } + }, + "imported": { + "type": "Identifier", + "name": "LocalRequest", + "range": [ + 174, + 186 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 20 + } + } + }, + "range": [ + 174, + 186 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 20 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./LocalRequest", + "raw": "'./LocalRequest'", + "range": [ + 193, + 209 + ], + "loc": { + "start": { + "line": 9, + "column": 27 + }, + "end": { + "line": 9, + "column": 43 + } + } + }, + "range": [ + 166, + 210 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 44 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Resource action\n ", + "range": [ + 212, + 238 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Action", + "range": [ + 252, + 258 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 19 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 443, + 454 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 23, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "resource", + "range": [ + 455, + 463 + ], + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 23, + "column": 22 + } + } + }, + { + "type": "Identifier", + "name": "name", + "range": [ + 465, + 469 + ], + "loc": { + "start": { + "line": 23, + "column": 24 + }, + "end": { + "line": 23, + "column": 28 + } + } + }, + { + "type": "Identifier", + "name": "type", + "range": [ + 471, + 475 + ], + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 34 + } + } + }, + { + "type": "Identifier", + "name": "methods", + "range": [ + 477, + 484 + ], + "loc": { + "start": { + "line": 23, + "column": 36 + }, + "end": { + "line": 23, + "column": 43 + } + } + }, + { + "type": "Identifier", + "name": "source", + "range": [ + 486, + 492 + ], + "loc": { + "start": { + "line": 23, + "column": 45 + }, + "end": { + "line": 23, + "column": 51 + } + } + }, + { + "type": "Identifier", + "name": "region", + "range": [ + 494, + 500 + ], + "loc": { + "start": { + "line": 23, + "column": 53 + }, + "end": { + "line": 23, + "column": 59 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 508, + 512 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resource", + "range": [ + 513, + 522 + ], + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 18 + } + } + }, + "range": [ + 508, + 522 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 18 + } + } + }, + "right": { + "type": "Identifier", + "name": "resource", + "range": [ + 525, + 533 + ], + "loc": { + "start": { + "line": 24, + "column": 21 + }, + "end": { + "line": 24, + "column": 29 + } + } + }, + "range": [ + 508, + 533 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 29 + } + } + }, + "range": [ + 508, + 534 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 30 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 539, + 543 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_name", + "range": [ + 544, + 549 + ], + "loc": { + "start": { + "line": 25, + "column": 9 + }, + "end": { + "line": 25, + "column": 14 + } + } + }, + "range": [ + 539, + 549 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 14 + } + } + }, + "right": { + "type": "Identifier", + "name": "name", + "range": [ + 552, + 556 + ], + "loc": { + "start": { + "line": 25, + "column": 17 + }, + "end": { + "line": 25, + "column": 21 + } + } + }, + "range": [ + 539, + 556 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 21 + } + } + }, + "range": [ + 539, + 557 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 22 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 562, + 566 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_type", + "range": [ + 567, + 572 + ], + "loc": { + "start": { + "line": 26, + "column": 9 + }, + "end": { + "line": 26, + "column": 14 + } + } + }, + "range": [ + 562, + 572 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 14 + } + } + }, + "right": { + "type": "Identifier", + "name": "type", + "range": [ + 575, + 579 + ], + "loc": { + "start": { + "line": 26, + "column": 17 + }, + "end": { + "line": 26, + "column": 21 + } + } + }, + "range": [ + 562, + 579 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 21 + } + } + }, + "range": [ + 562, + 580 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 22 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 585, + 589 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_methods", + "range": [ + 590, + 598 + ], + "loc": { + "start": { + "line": 27, + "column": 9 + }, + "end": { + "line": 27, + "column": 17 + } + } + }, + "range": [ + 585, + 598 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 17 + } + } + }, + "right": { + "type": "Identifier", + "name": "methods", + "range": [ + 601, + 608 + ], + "loc": { + "start": { + "line": 27, + "column": 20 + }, + "end": { + "line": 27, + "column": 27 + } + } + }, + "range": [ + 585, + 608 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 27 + } + } + }, + "range": [ + 585, + 609 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 614, + 618 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_source", + "range": [ + 619, + 626 + ], + "loc": { + "start": { + "line": 28, + "column": 9 + }, + "end": { + "line": 28, + "column": 16 + } + } + }, + "range": [ + 614, + 626 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "source", + "range": [ + 629, + 635 + ], + "loc": { + "start": { + "line": 28, + "column": 19 + }, + "end": { + "line": 28, + "column": 25 + } + } + }, + "range": [ + 614, + 635 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 25 + } + } + }, + "range": [ + 614, + 636 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 26 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 641, + 645 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_region", + "range": [ + 646, + 653 + ], + "loc": { + "start": { + "line": 29, + "column": 9 + }, + "end": { + "line": 29, + "column": 16 + } + } + }, + "range": [ + 641, + 653 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "region", + "range": [ + 656, + 662 + ], + "loc": { + "start": { + "line": 29, + "column": 19 + }, + "end": { + "line": 29, + "column": 25 + } + } + }, + "range": [ + 641, + 662 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 25 + } + } + }, + "range": [ + 641, + 663 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 26 + } + } + } + ], + "range": [ + 502, + 667 + ], + "loc": { + "start": { + "line": 23, + "column": 61 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 454, + 667 + ], + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 443, + 667 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Instance} resource\n * @param {String} name\n * @param {String} type\n * @param {Array} methods\n * @param {String} source\n * @param {String} region\n ", + "range": [ + 263, + 440 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} payload\n * @param {String} method\n ", + "range": [ + 671, + 737 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 35, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "request", + "range": [ + 740, + 747 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 36, + "column": 9 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "payload", + "range": [ + 748, + 755 + ], + "loc": { + "start": { + "line": 36, + "column": 10 + }, + "end": { + "line": 36, + "column": 17 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 758, + 760 + ], + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 22 + } + } + }, + "range": [ + 748, + 760 + ], + "loc": { + "start": { + "line": 36, + "column": 10 + }, + "end": { + "line": 36, + "column": 22 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "method", + "range": [ + 762, + 768 + ], + "loc": { + "start": { + "line": 36, + "column": 24 + }, + "end": { + "line": 36, + "column": 30 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 771, + 775 + ], + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 36, + "column": 37 + } + } + }, + "range": [ + 762, + 775 + ], + "loc": { + "start": { + "line": 36, + "column": 24 + }, + "end": { + "line": 36, + "column": 37 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "method", + "range": [ + 783, + 789 + ], + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 10 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "Identifier", + "name": "method", + "range": [ + 792, + 798 + ], + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 19 + } + } + }, + "right": { + "type": "ConditionalExpression", + "test": { + "type": "BinaryExpression", + "operator": ">", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 803, + 807 + ], + "loc": { + "start": { + "line": 37, + "column": 24 + }, + "end": { + "line": 37, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "_methods", + "range": [ + 808, + 816 + ], + "loc": { + "start": { + "line": 37, + "column": 29 + }, + "end": { + "line": 37, + "column": 37 + } + } + }, + "range": [ + 803, + 816 + ], + "loc": { + "start": { + "line": 37, + "column": 24 + }, + "end": { + "line": 37, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 817, + 823 + ], + "loc": { + "start": { + "line": 37, + "column": 38 + }, + "end": { + "line": 37, + "column": 44 + } + } + }, + "range": [ + 803, + 823 + ], + "loc": { + "start": { + "line": 37, + "column": 24 + }, + "end": { + "line": 37, + "column": 44 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 826, + 827 + ], + "loc": { + "start": { + "line": 37, + "column": 47 + }, + "end": { + "line": 37, + "column": 48 + } + } + }, + "range": [ + 803, + 827 + ], + "loc": { + "start": { + "line": 37, + "column": 24 + }, + "end": { + "line": 37, + "column": 48 + } + } + }, + "consequent": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 830, + 834 + ], + "loc": { + "start": { + "line": 37, + "column": 51 + }, + "end": { + "line": 37, + "column": 55 + } + } + }, + "property": { + "type": "Identifier", + "name": "_methods", + "range": [ + 835, + 843 + ], + "loc": { + "start": { + "line": 37, + "column": 56 + }, + "end": { + "line": 37, + "column": 64 + } + } + }, + "range": [ + 830, + 843 + ], + "loc": { + "start": { + "line": 37, + "column": 51 + }, + "end": { + "line": 37, + "column": 64 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 844, + 845 + ], + "loc": { + "start": { + "line": 37, + "column": 65 + }, + "end": { + "line": 37, + "column": 66 + } + } + }, + "range": [ + 830, + 846 + ], + "loc": { + "start": { + "line": 37, + "column": 51 + }, + "end": { + "line": 37, + "column": 67 + } + } + }, + "alternate": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Instance", + "range": [ + 849, + 857 + ], + "loc": { + "start": { + "line": 37, + "column": 70 + }, + "end": { + "line": 37, + "column": 78 + } + } + }, + "property": { + "type": "Identifier", + "name": "HTTP_VERBS", + "range": [ + 858, + 868 + ], + "loc": { + "start": { + "line": 37, + "column": 79 + }, + "end": { + "line": 37, + "column": 89 + } + } + }, + "range": [ + 849, + 868 + ], + "loc": { + "start": { + "line": 37, + "column": 70 + }, + "end": { + "line": 37, + "column": 89 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 869, + 870 + ], + "loc": { + "start": { + "line": 37, + "column": 90 + }, + "end": { + "line": 37, + "column": 91 + } + } + }, + "range": [ + 849, + 871 + ], + "loc": { + "start": { + "line": 37, + "column": 70 + }, + "end": { + "line": 37, + "column": 92 + } + } + }, + "range": [ + 803, + 871 + ], + "loc": { + "start": { + "line": 37, + "column": 24 + }, + "end": { + "line": 37, + "column": 92 + } + } + }, + "range": [ + 792, + 872 + ], + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 93 + } + } + }, + "range": [ + 783, + 872 + ], + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 93 + } + } + }, + "range": [ + 783, + 873 + ], + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 94 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "BinaryExpression", + "operator": ">", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 883, + 887 + ], + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_methods", + "range": [ + 888, + 896 + ], + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 21 + } + } + }, + "range": [ + 883, + 896 + ], + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 897, + 903 + ], + "loc": { + "start": { + "line": 39, + "column": 22 + }, + "end": { + "line": 39, + "column": 28 + } + } + }, + "range": [ + 883, + 903 + ], + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 28 + } + } + }, + "right": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 906, + 907 + ], + "loc": { + "start": { + "line": 39, + "column": 31 + }, + "end": { + "line": 39, + "column": 32 + } + } + }, + "range": [ + 883, + 907 + ], + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 32 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 911, + 915 + ], + "loc": { + "start": { + "line": 39, + "column": 36 + }, + "end": { + "line": 39, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "_methods", + "range": [ + 916, + 924 + ], + "loc": { + "start": { + "line": 39, + "column": 41 + }, + "end": { + "line": 39, + "column": 49 + } + } + }, + "range": [ + 911, + 924 + ], + "loc": { + "start": { + "line": 39, + "column": 36 + }, + "end": { + "line": 39, + "column": 49 + } + } + }, + "property": { + "type": "Identifier", + "name": "indexOf", + "range": [ + 925, + 932 + ], + "loc": { + "start": { + "line": 39, + "column": 50 + }, + "end": { + "line": 39, + "column": 57 + } + } + }, + "range": [ + 911, + 932 + ], + "loc": { + "start": { + "line": 39, + "column": 36 + }, + "end": { + "line": 39, + "column": 57 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "method", + "range": [ + 933, + 939 + ], + "loc": { + "start": { + "line": 39, + "column": 58 + }, + "end": { + "line": 39, + "column": 64 + } + } + } + ], + "range": [ + 911, + 940 + ], + "loc": { + "start": { + "line": 39, + "column": 36 + }, + "end": { + "line": 39, + "column": 65 + } + } + }, + "right": { + "type": "UnaryExpression", + "operator": "-", + "argument": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 946, + 947 + ], + "loc": { + "start": { + "line": 39, + "column": 71 + }, + "end": { + "line": 39, + "column": 72 + } + } + }, + "prefix": true, + "range": [ + 945, + 947 + ], + "loc": { + "start": { + "line": 39, + "column": 70 + }, + "end": { + "line": 39, + "column": 72 + } + } + }, + "range": [ + 911, + 947 + ], + "loc": { + "start": { + "line": 39, + "column": 36 + }, + "end": { + "line": 39, + "column": 72 + } + } + }, + "range": [ + 883, + 947 + ], + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 72 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "UnknownMethodException", + "range": [ + 967, + 989 + ], + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 40, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "method", + "range": [ + 990, + 996 + ], + "loc": { + "start": { + "line": 40, + "column": 39 + }, + "end": { + "line": 40, + "column": 45 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 998, + 1002 + ], + "loc": { + "start": { + "line": 40, + "column": 47 + }, + "end": { + "line": 40, + "column": 51 + } + } + }, + "property": { + "type": "Identifier", + "name": "_methods", + "range": [ + 1003, + 1011 + ], + "loc": { + "start": { + "line": 40, + "column": 52 + }, + "end": { + "line": 40, + "column": 60 + } + } + }, + "range": [ + 998, + 1011 + ], + "loc": { + "start": { + "line": 40, + "column": 47 + }, + "end": { + "line": 40, + "column": 60 + } + } + } + ], + "range": [ + 963, + 1012 + ], + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 61 + } + } + }, + "range": [ + 957, + 1013 + ], + "loc": { + "start": { + "line": 40, + "column": 6 + }, + "end": { + "line": 40, + "column": 62 + } + } + } + ], + "range": [ + 949, + 1019 + ], + "loc": { + "start": { + "line": 39, + "column": 74 + }, + "end": { + "line": 41, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 879, + 1019 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 41, + "column": 5 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "RequestImplementation", + "range": [ + 1029, + 1050 + ], + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 29 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1053, + 1057 + ], + "loc": { + "start": { + "line": 43, + "column": 32 + }, + "end": { + "line": 43, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resource", + "range": [ + 1058, + 1067 + ], + "loc": { + "start": { + "line": 43, + "column": 37 + }, + "end": { + "line": 43, + "column": 46 + } + } + }, + "range": [ + 1053, + 1067 + ], + "loc": { + "start": { + "line": 43, + "column": 32 + }, + "end": { + "line": 43, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "localBackend", + "range": [ + 1068, + 1080 + ], + "loc": { + "start": { + "line": 43, + "column": 47 + }, + "end": { + "line": 43, + "column": 59 + } + } + }, + "range": [ + 1053, + 1080 + ], + "loc": { + "start": { + "line": 43, + "column": 32 + }, + "end": { + "line": 43, + "column": 59 + } + } + }, + "consequent": { + "type": "Identifier", + "name": "LocalRequest", + "range": [ + 1083, + 1095 + ], + "loc": { + "start": { + "line": 43, + "column": 62 + }, + "end": { + "line": 43, + "column": 74 + } + } + }, + "alternate": { + "type": "Identifier", + "name": "Request", + "range": [ + 1098, + 1105 + ], + "loc": { + "start": { + "line": 43, + "column": 77 + }, + "end": { + "line": 43, + "column": 84 + } + } + }, + "range": [ + 1053, + 1105 + ], + "loc": { + "start": { + "line": 43, + "column": 32 + }, + "end": { + "line": 43, + "column": 84 + } + } + }, + "range": [ + 1029, + 1105 + ], + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 84 + } + } + } + ], + "kind": "let", + "range": [ + 1025, + 1106 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 85 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "requestObject", + "range": [ + 1115, + 1128 + ], + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 21 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "RequestImplementation", + "range": [ + 1135, + 1156 + ], + "loc": { + "start": { + "line": 44, + "column": 28 + }, + "end": { + "line": 44, + "column": 49 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 1157, + 1161 + ], + "loc": { + "start": { + "line": 44, + "column": 50 + }, + "end": { + "line": 44, + "column": 54 + } + } + }, + { + "type": "Identifier", + "name": "payload", + "range": [ + 1163, + 1170 + ], + "loc": { + "start": { + "line": 44, + "column": 56 + }, + "end": { + "line": 44, + "column": 63 + } + } + }, + { + "type": "Identifier", + "name": "method", + "range": [ + 1172, + 1178 + ], + "loc": { + "start": { + "line": 44, + "column": 65 + }, + "end": { + "line": 44, + "column": 71 + } + } + } + ], + "range": [ + 1131, + 1179 + ], + "loc": { + "start": { + "line": 44, + "column": 24 + }, + "end": { + "line": 44, + "column": 72 + } + } + }, + "range": [ + 1115, + 1179 + ], + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 72 + } + } + } + ], + "kind": "let", + "range": [ + 1111, + 1180 + ], + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 73 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1190, + 1194 + ], + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resource", + "range": [ + 1195, + 1204 + ], + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 22 + } + } + }, + "range": [ + 1190, + 1204 + ], + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "cache", + "range": [ + 1205, + 1210 + ], + "loc": { + "start": { + "line": 46, + "column": 23 + }, + "end": { + "line": 46, + "column": 28 + } + } + }, + "range": [ + 1190, + 1210 + ], + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 28 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "requestObject", + "range": [ + 1220, + 1233 + ], + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "cacheImpl", + "range": [ + 1234, + 1243 + ], + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 29 + } + } + }, + "range": [ + 1220, + 1243 + ], + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 29 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1246, + 1250 + ], + "loc": { + "start": { + "line": 47, + "column": 32 + }, + "end": { + "line": 47, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resource", + "range": [ + 1251, + 1260 + ], + "loc": { + "start": { + "line": 47, + "column": 37 + }, + "end": { + "line": 47, + "column": 46 + } + } + }, + "range": [ + 1246, + 1260 + ], + "loc": { + "start": { + "line": 47, + "column": 32 + }, + "end": { + "line": 47, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "cache", + "range": [ + 1261, + 1266 + ], + "loc": { + "start": { + "line": 47, + "column": 47 + }, + "end": { + "line": 47, + "column": 52 + } + } + }, + "range": [ + 1246, + 1266 + ], + "loc": { + "start": { + "line": 47, + "column": 32 + }, + "end": { + "line": 47, + "column": 52 + } + } + }, + "range": [ + 1220, + 1266 + ], + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 52 + } + } + }, + "range": [ + 1220, + 1267 + ], + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 53 + } + } + } + ], + "range": [ + 1212, + 1273 + ], + "loc": { + "start": { + "line": 46, + "column": 30 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1186, + 1273 + ], + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "requestObject", + "range": [ + 1286, + 1299 + ], + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 50, + "column": 24 + } + } + }, + "range": [ + 1279, + 1300 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 25 + } + } + } + ], + "range": [ + 777, + 1304 + ], + "loc": { + "start": { + "line": 36, + "column": 39 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 747, + 1304 + ], + "loc": { + "start": { + "line": 36, + "column": 9 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 740, + 1304 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} payload\n * @param {String} method\n ", + "range": [ + 671, + 737 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 35, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Instance}\n ", + "range": [ + 1308, + 1342 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "resource", + "range": [ + 1349, + 1357 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1373, + 1377 + ], + "loc": { + "start": { + "line": 57, + "column": 11 + }, + "end": { + "line": 57, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_resource", + "range": [ + 1378, + 1387 + ], + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 25 + } + } + }, + "range": [ + 1373, + 1387 + ], + "loc": { + "start": { + "line": 57, + "column": 11 + }, + "end": { + "line": 57, + "column": 25 + } + } + }, + "range": [ + 1366, + 1388 + ], + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 26 + } + } + } + ], + "range": [ + 1360, + 1392 + ], + "loc": { + "start": { + "line": 56, + "column": 17 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1357, + 1392 + ], + "loc": { + "start": { + "line": 56, + "column": 14 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1345, + 1392 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 58, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Instance}\n ", + "range": [ + 1308, + 1342 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1396, + 1428 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "name", + "range": [ + 1435, + 1439 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1455, + 1459 + ], + "loc": { + "start": { + "line": 64, + "column": 11 + }, + "end": { + "line": 64, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_name", + "range": [ + 1460, + 1465 + ], + "loc": { + "start": { + "line": 64, + "column": 16 + }, + "end": { + "line": 64, + "column": 21 + } + } + }, + "range": [ + 1455, + 1465 + ], + "loc": { + "start": { + "line": 64, + "column": 11 + }, + "end": { + "line": 64, + "column": 21 + } + } + }, + "range": [ + 1448, + 1466 + ], + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 22 + } + } + } + ], + "range": [ + 1442, + 1470 + ], + "loc": { + "start": { + "line": 63, + "column": 13 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1439, + 1470 + ], + "loc": { + "start": { + "line": 63, + "column": 10 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1431, + 1470 + ], + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 65, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1396, + 1428 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1474, + 1506 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "type", + "range": [ + 1513, + 1517 + ], + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1533, + 1537 + ], + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_type", + "range": [ + 1538, + 1543 + ], + "loc": { + "start": { + "line": 71, + "column": 16 + }, + "end": { + "line": 71, + "column": 21 + } + } + }, + "range": [ + 1533, + 1543 + ], + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 21 + } + } + }, + "range": [ + 1526, + 1544 + ], + "loc": { + "start": { + "line": 71, + "column": 4 + }, + "end": { + "line": 71, + "column": 22 + } + } + } + ], + "range": [ + 1520, + 1548 + ], + "loc": { + "start": { + "line": 70, + "column": 13 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1517, + 1548 + ], + "loc": { + "start": { + "line": 70, + "column": 10 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1509, + 1548 + ], + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 72, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1474, + 1506 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1552, + 1583 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 76, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "methods", + "range": [ + 1590, + 1597 + ], + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 77, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1613, + 1617 + ], + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_methods", + "range": [ + 1618, + 1626 + ], + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 24 + } + } + }, + "range": [ + 1613, + 1626 + ], + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 24 + } + } + }, + "range": [ + 1606, + 1627 + ], + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 25 + } + } + } + ], + "range": [ + 1600, + 1631 + ], + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 79, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1597, + 1631 + ], + "loc": { + "start": { + "line": 77, + "column": 13 + }, + "end": { + "line": 79, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1586, + 1631 + ], + "loc": { + "start": { + "line": 77, + "column": 2 + }, + "end": { + "line": 79, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1552, + 1583 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 76, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1635, + 1667 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "source", + "range": [ + 1674, + 1680 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1696, + 1700 + ], + "loc": { + "start": { + "line": 85, + "column": 11 + }, + "end": { + "line": 85, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_source", + "range": [ + 1701, + 1708 + ], + "loc": { + "start": { + "line": 85, + "column": 16 + }, + "end": { + "line": 85, + "column": 23 + } + } + }, + "range": [ + 1696, + 1708 + ], + "loc": { + "start": { + "line": 85, + "column": 11 + }, + "end": { + "line": 85, + "column": 23 + } + } + }, + "range": [ + 1689, + 1709 + ], + "loc": { + "start": { + "line": 85, + "column": 4 + }, + "end": { + "line": 85, + "column": 24 + } + } + } + ], + "range": [ + 1683, + 1713 + ], + "loc": { + "start": { + "line": 84, + "column": 15 + }, + "end": { + "line": 86, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1680, + 1713 + ], + "loc": { + "start": { + "line": 84, + "column": 12 + }, + "end": { + "line": 86, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1670, + 1713 + ], + "loc": { + "start": { + "line": 84, + "column": 2 + }, + "end": { + "line": 86, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1635, + 1667 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1717, + 1749 + ], + "loc": { + "start": { + "line": 88, + "column": 2 + }, + "end": { + "line": 90, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "region", + "range": [ + 1756, + 1762 + ], + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1778, + 1782 + ], + "loc": { + "start": { + "line": 92, + "column": 11 + }, + "end": { + "line": 92, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_region", + "range": [ + 1783, + 1790 + ], + "loc": { + "start": { + "line": 92, + "column": 16 + }, + "end": { + "line": 92, + "column": 23 + } + } + }, + "range": [ + 1778, + 1790 + ], + "loc": { + "start": { + "line": 92, + "column": 11 + }, + "end": { + "line": 92, + "column": 23 + } + } + }, + "range": [ + 1771, + 1791 + ], + "loc": { + "start": { + "line": 92, + "column": 4 + }, + "end": { + "line": 92, + "column": 24 + } + } + } + ], + "range": [ + 1765, + 1795 + ], + "loc": { + "start": { + "line": 91, + "column": 15 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1762, + 1795 + ], + "loc": { + "start": { + "line": 91, + "column": 12 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1752, + 1795 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 93, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1717, + 1749 + ], + "loc": { + "start": { + "line": 88, + "column": 2 + }, + "end": { + "line": 90, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1799, + 1830 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "HTTP_VERBS", + "range": [ + 1844, + 1854 + ], + "loc": { + "start": { + "line": 98, + "column": 13 + }, + "end": { + "line": 98, + "column": 23 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "GET", + "raw": "'GET'", + "range": [ + 1871, + 1876 + ], + "loc": { + "start": { + "line": 99, + "column": 12 + }, + "end": { + "line": 99, + "column": 17 + } + } + }, + { + "type": "Literal", + "value": "POST", + "raw": "'POST'", + "range": [ + 1878, + 1884 + ], + "loc": { + "start": { + "line": 99, + "column": 19 + }, + "end": { + "line": 99, + "column": 25 + } + } + }, + { + "type": "Literal", + "value": "DELETE", + "raw": "'DELETE'", + "range": [ + 1886, + 1894 + ], + "loc": { + "start": { + "line": 99, + "column": 27 + }, + "end": { + "line": 99, + "column": 35 + } + } + }, + { + "type": "Literal", + "value": "HEAD", + "raw": "'HEAD'", + "range": [ + 1896, + 1902 + ], + "loc": { + "start": { + "line": 99, + "column": 37 + }, + "end": { + "line": 99, + "column": 43 + } + } + }, + { + "type": "Literal", + "value": "PUT", + "raw": "'PUT'", + "range": [ + 1904, + 1909 + ], + "loc": { + "start": { + "line": 99, + "column": 45 + }, + "end": { + "line": 99, + "column": 50 + } + } + }, + { + "type": "Literal", + "value": "OPTIONS", + "raw": "'OPTIONS'", + "range": [ + 1911, + 1920 + ], + "loc": { + "start": { + "line": 99, + "column": 52 + }, + "end": { + "line": 99, + "column": 61 + } + } + }, + { + "type": "Literal", + "value": "PATCH", + "raw": "'PATCH'", + "range": [ + 1922, + 1929 + ], + "loc": { + "start": { + "line": 99, + "column": 63 + }, + "end": { + "line": 99, + "column": 70 + } + } + } + ], + "range": [ + 1870, + 1930 + ], + "loc": { + "start": { + "line": 99, + "column": 11 + }, + "end": { + "line": 99, + "column": 71 + } + } + }, + "range": [ + 1863, + 1931 + ], + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 72 + } + } + } + ], + "range": [ + 1857, + 1935 + ], + "loc": { + "start": { + "line": 98, + "column": 26 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1854, + 1935 + ], + "loc": { + "start": { + "line": 98, + "column": 23 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1833, + 1935 + ], + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 100, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1799, + 1830 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1939, + 1971 + ], + "loc": { + "start": { + "line": 102, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "LAMBDA", + "range": [ + 1985, + 1991 + ], + "loc": { + "start": { + "line": 105, + "column": 13 + }, + "end": { + "line": 105, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "lambda", + "raw": "'lambda'", + "range": [ + 2007, + 2015 + ], + "loc": { + "start": { + "line": 106, + "column": 11 + }, + "end": { + "line": 106, + "column": 19 + } + } + }, + "range": [ + 2000, + 2016 + ], + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 106, + "column": 20 + } + } + } + ], + "range": [ + 1994, + 2020 + ], + "loc": { + "start": { + "line": 105, + "column": 22 + }, + "end": { + "line": 107, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1991, + 2020 + ], + "loc": { + "start": { + "line": 105, + "column": 19 + }, + "end": { + "line": 107, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1974, + 2020 + ], + "loc": { + "start": { + "line": 105, + "column": 2 + }, + "end": { + "line": 107, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1939, + 1971 + ], + "loc": { + "start": { + "line": 102, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2024, + 2056 + ], + "loc": { + "start": { + "line": 109, + "column": 2 + }, + "end": { + "line": 111, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "EXTERNAL", + "range": [ + 2070, + 2078 + ], + "loc": { + "start": { + "line": 112, + "column": 13 + }, + "end": { + "line": 112, + "column": 21 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "external", + "raw": "'external'", + "range": [ + 2094, + 2104 + ], + "loc": { + "start": { + "line": 113, + "column": 11 + }, + "end": { + "line": 113, + "column": 21 + } + } + }, + "range": [ + 2087, + 2105 + ], + "loc": { + "start": { + "line": 113, + "column": 4 + }, + "end": { + "line": 113, + "column": 22 + } + } + } + ], + "range": [ + 2081, + 2109 + ], + "loc": { + "start": { + "line": 112, + "column": 24 + }, + "end": { + "line": 114, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2078, + 2109 + ], + "loc": { + "start": { + "line": 112, + "column": 21 + }, + "end": { + "line": 114, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2059, + 2109 + ], + "loc": { + "start": { + "line": 112, + "column": 2 + }, + "end": { + "line": 114, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2024, + 2056 + ], + "loc": { + "start": { + "line": 109, + "column": 2 + }, + "end": { + "line": 111, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 259, + 2111 + ], + "loc": { + "start": { + "line": 14, + "column": 20 + }, + "end": { + "line": 115, + "column": 1 + } + } + }, + "range": [ + 246, + 2111 + ], + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 115, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Resource action\n ", + "range": [ + 212, + 238 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 239, + 2111 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 115, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Resource action\n ", + "range": [ + 212, + 238 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 41, + 2111 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 115, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 8/4/15.\n ", + "range": [ + 0, + 39 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Resource action\n ", + "range": [ + 212, + 238 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Instance} resource\n * @param {String} name\n * @param {String} type\n * @param {Array} methods\n * @param {String} source\n * @param {String} region\n ", + "range": [ + 263, + 440 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} payload\n * @param {String} method\n ", + "range": [ + 671, + 737 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 35, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Instance}\n ", + "range": [ + 1308, + 1342 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1396, + 1428 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1474, + 1506 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1552, + 1583 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 76, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1635, + 1667 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1717, + 1749 + ], + "loc": { + "start": { + "line": 88, + "column": 2 + }, + "end": { + "line": 90, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Array}\n ", + "range": [ + 1799, + 1830 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1939, + 1971 + ], + "loc": { + "start": { + "line": 102, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2024, + 2056 + ], + "loc": { + "start": { + "line": 109, + "column": 2 + }, + "end": { + "line": 111, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/ast/source/Resource/Exception/CachedRequestException.js.json b/docs-api/deep-resource/ast/source/Resource/Exception/CachedRequestException.js.json new file mode 100644 index 00000000..5fa189e3 --- /dev/null +++ b/docs-api/deep-resource/ast/source/Resource/Exception/CachedRequestException.js.json @@ -0,0 +1,551 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 8/21/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../Exception/Exception", + "raw": "'../../Exception/Exception'", + "range": [ + 85, + 112 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 51 + } + } + }, + "range": [ + 61, + 113 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 52 + } + } + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "CachedRequestException", + "range": [ + 128, + 150 + ], + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 35 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 159, + 168 + ], + "loc": { + "start": { + "line": 9, + "column": 44 + }, + "end": { + "line": 9, + "column": 53 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 216, + 227 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "exception", + "range": [ + 228, + 237 + ], + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 245, + 250 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Error while working with cached response: ", + "cooked": "Error while working with cached response: " + }, + "tail": false, + "range": [ + 251, + 296 + ], + "loc": { + "start": { + "line": 14, + "column": 10 + }, + "end": { + "line": 14, + "column": 55 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 305, + 307 + ], + "loc": { + "start": { + "line": 14, + "column": 64 + }, + "end": { + "line": 14, + "column": 66 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "exception", + "range": [ + 296, + 305 + ], + "loc": { + "start": { + "line": 14, + "column": 55 + }, + "end": { + "line": 14, + "column": 64 + } + } + } + ], + "range": [ + 251, + 307 + ], + "loc": { + "start": { + "line": 14, + "column": 10 + }, + "end": { + "line": 14, + "column": 66 + } + } + } + ], + "range": [ + 245, + 308 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 67 + } + } + }, + "range": [ + 245, + 309 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 68 + } + } + } + ], + "range": [ + 239, + 313 + ], + "loc": { + "start": { + "line": 13, + "column": 25 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 227, + 313 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 216, + 313 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} exception\n ", + "range": [ + 173, + 213 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 12, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 169, + 315 + ], + "loc": { + "start": { + "line": 9, + "column": 54 + }, + "end": { + "line": 16, + "column": 1 + } + } + }, + "range": [ + 122, + 315 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 115, + 315 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + } + } + ], + "sourceType": "module", + "range": [ + 46, + 315 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 8/21/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} exception\n ", + "range": [ + 173, + 213 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 12, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/ast/source/Resource/Exception/MissingActionException.js.json b/docs-api/deep-resource/ast/source/Resource/Exception/MissingActionException.js.json new file mode 100644 index 00000000..d61250ef --- /dev/null +++ b/docs-api/deep-resource/ast/source/Resource/Exception/MissingActionException.js.json @@ -0,0 +1,686 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 42, + 54 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 42, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 8/04/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../Exception/Exception", + "raw": "'../../Exception/Exception'", + "range": [ + 81, + 108 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 51 + } + } + }, + "range": [ + 57, + 109 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 52 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested resource action not found\n ", + "range": [ + 111, + 169 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "MissingActionException", + "range": [ + 183, + 205 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 214, + 223 + ], + "loc": { + "start": { + "line": 12, + "column": 44 + }, + "end": { + "line": 12, + "column": 53 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 306, + 317 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "resourceName", + "range": [ + 318, + 330 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 26 + } + } + }, + { + "type": "Identifier", + "name": "actionName", + "range": [ + 332, + 342 + ], + "loc": { + "start": { + "line": 17, + "column": 28 + }, + "end": { + "line": 17, + "column": 38 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 350, + 355 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Missing action ", + "cooked": "Missing action " + }, + "tail": false, + "range": [ + 356, + 374 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 28 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " in ", + "cooked": " in " + }, + "tail": false, + "range": [ + 384, + 391 + ], + "loc": { + "start": { + "line": 18, + "column": 38 + }, + "end": { + "line": 18, + "column": 45 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " resource.", + "cooked": " resource." + }, + "tail": true, + "range": [ + 403, + 415 + ], + "loc": { + "start": { + "line": 18, + "column": 57 + }, + "end": { + "line": 18, + "column": 69 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "actionName", + "range": [ + 374, + 384 + ], + "loc": { + "start": { + "line": 18, + "column": 28 + }, + "end": { + "line": 18, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "resourceName", + "range": [ + 391, + 403 + ], + "loc": { + "start": { + "line": 18, + "column": 45 + }, + "end": { + "line": 18, + "column": 57 + } + } + } + ], + "range": [ + 356, + 415 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 69 + } + } + } + ], + "range": [ + 350, + 416 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 70 + } + } + }, + "range": [ + 350, + 417 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 71 + } + } + } + ], + "range": [ + 344, + 421 + ], + "loc": { + "start": { + "line": 17, + "column": 40 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 317, + 421 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 306, + 421 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} resourceName\n * @param {String} actionName\n ", + "range": [ + 228, + 303 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 224, + 423 + ], + "loc": { + "start": { + "line": 12, + "column": 54 + }, + "end": { + "line": 20, + "column": 1 + } + } + }, + "range": [ + 177, + 423 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested resource action not found\n ", + "range": [ + 111, + 169 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 170, + 423 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested resource action not found\n ", + "range": [ + 111, + 169 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 42, + 423 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 8/04/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when requested resource action not found\n ", + "range": [ + 111, + 169 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} resourceName\n * @param {String} actionName\n ", + "range": [ + 228, + 303 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/ast/source/Resource/Exception/MissingCacheImplementationException.js.json b/docs-api/deep-resource/ast/source/Resource/Exception/MissingCacheImplementationException.js.json new file mode 100644 index 00000000..c5b09bd0 --- /dev/null +++ b/docs-api/deep-resource/ast/source/Resource/Exception/MissingCacheImplementationException.js.json @@ -0,0 +1,453 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../Exception/Exception", + "raw": "'../../Exception/Exception'", + "range": [ + 85, + 112 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 51 + } + } + }, + "range": [ + 61, + 113 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 52 + } + } + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "MissingCacheImplementationException", + "range": [ + 128, + 163 + ], + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 48 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 172, + 181 + ], + "loc": { + "start": { + "line": 9, + "column": 57 + }, + "end": { + "line": 9, + "column": 66 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 186, + 197 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 10, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 206, + 211 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Missing cache implementation in Request object", + "cooked": "Missing cache implementation in Request object" + }, + "tail": true, + "range": [ + 212, + 260 + ], + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 58 + } + } + } + ], + "expressions": [], + "range": [ + 212, + 260 + ], + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 58 + } + } + } + ], + "range": [ + 206, + 261 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 59 + } + } + }, + "range": [ + 206, + 262 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 60 + } + } + } + ], + "range": [ + 200, + 266 + ], + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 197, + 266 + ], + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 186, + 266 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 12, + "column": 3 + } + }, + "static": false + } + ], + "range": [ + 182, + 268 + ], + "loc": { + "start": { + "line": 9, + "column": 67 + }, + "end": { + "line": 13, + "column": 1 + } + } + }, + "range": [ + 122, + 268 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 13, + "column": 1 + } + }, + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 115, + 268 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 13, + "column": 1 + } + } + } + ], + "sourceType": "module", + "range": [ + 46, + 268 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 13, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/ast/source/Resource/Exception/UnknownMethodException.js.json b/docs-api/deep-resource/ast/source/Resource/Exception/UnknownMethodException.js.json new file mode 100644 index 00000000..a3c617b4 --- /dev/null +++ b/docs-api/deep-resource/ast/source/Resource/Exception/UnknownMethodException.js.json @@ -0,0 +1,833 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../Exception/Exception", + "raw": "'../../Exception/Exception'", + "range": [ + 85, + 112 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 51 + } + } + }, + "range": [ + 61, + 113 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 52 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested method is missing from allowed vector\n ", + "range": [ + 115, + 185 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "UnknownMethodException", + "range": [ + 199, + 221 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 230, + 239 + ], + "loc": { + "start": { + "line": 12, + "column": 44 + }, + "end": { + "line": 12, + "column": 53 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 330, + 341 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "requestedMethod", + "range": [ + 342, + 357 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 29 + } + } + }, + { + "type": "Identifier", + "name": "availableMethods", + "range": [ + 359, + 375 + ], + "loc": { + "start": { + "line": 17, + "column": 31 + }, + "end": { + "line": 17, + "column": 47 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "availableList", + "range": [ + 387, + 400 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 21 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "availableMethods", + "range": [ + 403, + 419 + ], + "loc": { + "start": { + "line": 18, + "column": 24 + }, + "end": { + "line": 18, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "join", + "range": [ + 420, + 424 + ], + "loc": { + "start": { + "line": 18, + "column": 41 + }, + "end": { + "line": 18, + "column": 45 + } + } + }, + "range": [ + 403, + 424 + ], + "loc": { + "start": { + "line": 18, + "column": 24 + }, + "end": { + "line": 18, + "column": 45 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": ", ", + "raw": "', '", + "range": [ + 425, + 429 + ], + "loc": { + "start": { + "line": 18, + "column": 46 + }, + "end": { + "line": 18, + "column": 50 + } + } + } + ], + "range": [ + 403, + 430 + ], + "loc": { + "start": { + "line": 18, + "column": 24 + }, + "end": { + "line": 18, + "column": 51 + } + } + }, + "range": [ + 387, + 430 + ], + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 51 + } + } + } + ], + "kind": "let", + "range": [ + 383, + 431 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 52 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 437, + 442 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Requested method ", + "cooked": "Requested method " + }, + "tail": false, + "range": [ + 443, + 463 + ], + "loc": { + "start": { + "line": 20, + "column": 10 + }, + "end": { + "line": 20, + "column": 30 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " must be one of ", + "cooked": " must be one of " + }, + "tail": false, + "range": [ + 478, + 497 + ], + "loc": { + "start": { + "line": 20, + "column": 45 + }, + "end": { + "line": 20, + "column": 64 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 510, + 512 + ], + "loc": { + "start": { + "line": 20, + "column": 77 + }, + "end": { + "line": 20, + "column": 79 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "requestedMethod", + "range": [ + 463, + 478 + ], + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 45 + } + } + }, + { + "type": "Identifier", + "name": "availableList", + "range": [ + 497, + 510 + ], + "loc": { + "start": { + "line": 20, + "column": 64 + }, + "end": { + "line": 20, + "column": 77 + } + } + } + ], + "range": [ + 443, + 512 + ], + "loc": { + "start": { + "line": 20, + "column": 10 + }, + "end": { + "line": 20, + "column": 79 + } + } + } + ], + "range": [ + 437, + 513 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 80 + } + } + }, + "range": [ + 437, + 514 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 81 + } + } + } + ], + "range": [ + 377, + 518 + ], + "loc": { + "start": { + "line": 17, + "column": 49 + }, + "end": { + "line": 21, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 341, + 518 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 21, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 330, + 518 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 21, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} requestedMethod\n * @param {Array} availableMethods\n ", + "range": [ + 244, + 327 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 240, + 520 + ], + "loc": { + "start": { + "line": 12, + "column": 54 + }, + "end": { + "line": 22, + "column": 1 + } + } + }, + "range": [ + 193, + 520 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested method is missing from allowed vector\n ", + "range": [ + 115, + 185 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 186, + 520 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested method is missing from allowed vector\n ", + "range": [ + 115, + 185 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 520 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when requested method is missing from allowed vector\n ", + "range": [ + 115, + 185 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} requestedMethod\n * @param {Array} availableMethods\n ", + "range": [ + 244, + 327 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/ast/source/Resource/Instance.js.json b/docs-api/deep-resource/ast/source/Resource/Instance.js.json new file mode 100644 index 00000000..966d6648 --- /dev/null +++ b/docs-api/deep-resource/ast/source/Resource/Instance.js.json @@ -0,0 +1,5563 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "MissingActionException", + "range": [ + 69, + 91 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 30 + } + } + }, + "imported": { + "type": "Identifier", + "name": "MissingActionException", + "range": [ + 69, + 91 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 30 + } + } + }, + "range": [ + 69, + 91 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 30 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/MissingActionException", + "raw": "'./Exception/MissingActionException'", + "range": [ + 98, + 134 + ], + "loc": { + "start": { + "line": 7, + "column": 37 + }, + "end": { + "line": 7, + "column": 73 + } + } + }, + "range": [ + 61, + 135 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 74 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Action", + "range": [ + 144, + 150 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 14 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Action", + "range": [ + 144, + 150 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 14 + } + } + }, + "range": [ + 144, + 150 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 14 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Action", + "raw": "'./Action'", + "range": [ + 157, + 167 + ], + "loc": { + "start": { + "line": 8, + "column": 21 + }, + "end": { + "line": 8, + "column": 31 + } + } + }, + "range": [ + 136, + 168 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 32 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Resource instance\n ", + "range": [ + 170, + 198 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Instance", + "range": [ + 212, + 220 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 21 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 295, + 306 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 307, + 311 + ], + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 18 + } + } + }, + { + "type": "Identifier", + "name": "rawActions", + "range": [ + 313, + 323 + ], + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 30 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 331, + 335 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_name", + "range": [ + 336, + 341 + ], + "loc": { + "start": { + "line": 19, + "column": 9 + }, + "end": { + "line": 19, + "column": 14 + } + } + }, + "range": [ + 331, + 341 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 14 + } + } + }, + "right": { + "type": "Identifier", + "name": "name", + "range": [ + 344, + 348 + ], + "loc": { + "start": { + "line": 19, + "column": 17 + }, + "end": { + "line": 19, + "column": 21 + } + } + }, + "range": [ + 331, + 348 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 21 + } + } + }, + "range": [ + 331, + 349 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 22 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 354, + 358 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawActions", + "range": [ + 359, + 370 + ], + "loc": { + "start": { + "line": 20, + "column": 9 + }, + "end": { + "line": 20, + "column": 20 + } + } + }, + "range": [ + 354, + 370 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 20 + } + } + }, + "right": { + "type": "Identifier", + "name": "rawActions", + "range": [ + 373, + 383 + ], + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 33 + } + } + }, + "range": [ + 354, + 383 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 33 + } + } + }, + "range": [ + 354, + 384 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 34 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 389, + 393 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_actions", + "range": [ + 394, + 402 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 17 + } + } + }, + "range": [ + 389, + 402 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 17 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 405, + 409 + ], + "loc": { + "start": { + "line": 21, + "column": 20 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + "range": [ + 389, + 409 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + "range": [ + 389, + 410 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 25 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 415, + 419 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_localBackend", + "range": [ + 420, + 433 + ], + "loc": { + "start": { + "line": 22, + "column": 9 + }, + "end": { + "line": 22, + "column": 22 + } + } + }, + "range": [ + 415, + 433 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 22 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 436, + 441 + ], + "loc": { + "start": { + "line": 22, + "column": 25 + }, + "end": { + "line": 22, + "column": 30 + } + } + }, + "range": [ + 415, + 441 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 30 + } + } + }, + "range": [ + 415, + 442 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 447, + 451 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cache", + "range": [ + 452, + 458 + ], + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 15 + } + } + }, + "range": [ + 447, + 458 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 15 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 461, + 465 + ], + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 22 + } + } + }, + "range": [ + 447, + 465 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 22 + } + } + }, + "range": [ + 447, + 466 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 23 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 472, + 476 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_securityCredentials", + "range": [ + 477, + 497 + ], + "loc": { + "start": { + "line": 25, + "column": 9 + }, + "end": { + "line": 25, + "column": 29 + } + } + }, + "range": [ + 472, + 497 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 29 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "accessKeyId", + "range": [ + 508, + 519 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 17 + } + } + }, + "value": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 521, + 525 + ], + "loc": { + "start": { + "line": 26, + "column": 19 + }, + "end": { + "line": 26, + "column": 23 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 508, + 525 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 23 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "secretAccessKey", + "range": [ + 533, + 548 + ], + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 21 + } + } + }, + "value": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 550, + 554 + ], + "loc": { + "start": { + "line": 27, + "column": 23 + }, + "end": { + "line": 27, + "column": 27 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 533, + 554 + ], + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 27 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "sessionToken", + "range": [ + 562, + 574 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 28, + "column": 18 + } + } + }, + "value": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 576, + 580 + ], + "loc": { + "start": { + "line": 28, + "column": 20 + }, + "end": { + "line": 28, + "column": 24 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 562, + 580 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 28, + "column": 24 + } + } + } + ], + "range": [ + 500, + 587 + ], + "loc": { + "start": { + "line": 25, + "column": 32 + }, + "end": { + "line": 29, + "column": 5 + } + } + }, + "range": [ + 472, + 587 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 29, + "column": 5 + } + } + }, + "range": [ + 472, + 588 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 29, + "column": 6 + } + } + } + ], + "range": [ + 325, + 592 + ], + "loc": { + "start": { + "line": 18, + "column": 32 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 306, + 592 + ], + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 295, + 592 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @param {Object} rawActions\n ", + "range": [ + 225, + 292 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 596, + 628 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "securityCredentials", + "range": [ + 635, + 654 + ], + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 35, + "column": 25 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 670, + 674 + ], + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 36, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_securityCredentials", + "range": [ + 675, + 695 + ], + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 36, + "column": 36 + } + } + }, + "range": [ + 670, + 695 + ], + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 36, + "column": 36 + } + } + }, + "range": [ + 663, + 696 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 37 + } + } + } + ], + "range": [ + 657, + 700 + ], + "loc": { + "start": { + "line": 35, + "column": 28 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 654, + 700 + ], + "loc": { + "start": { + "line": 35, + "column": 25 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 631, + 700 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 596, + 628 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} credentials\n ", + "range": [ + 704, + 746 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "securityCredentials", + "range": [ + 753, + 772 + ], + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 25 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "credentials", + "range": [ + 773, + 784 + ], + "loc": { + "start": { + "line": 42, + "column": 26 + }, + "end": { + "line": 42, + "column": 37 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 792, + 796 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_securityCredentials", + "range": [ + 797, + 817 + ], + "loc": { + "start": { + "line": 43, + "column": 9 + }, + "end": { + "line": 43, + "column": 29 + } + } + }, + "range": [ + 792, + 817 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 29 + } + } + }, + "right": { + "type": "Identifier", + "name": "credentials", + "range": [ + 820, + 831 + ], + "loc": { + "start": { + "line": 43, + "column": 32 + }, + "end": { + "line": 43, + "column": 43 + } + } + }, + "range": [ + 792, + 831 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 43 + } + } + }, + "range": [ + 792, + 832 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 44 + } + } + } + ], + "range": [ + 786, + 836 + ], + "loc": { + "start": { + "line": 42, + "column": 39 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 772, + 836 + ], + "loc": { + "start": { + "line": 42, + "column": 25 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 749, + 836 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} credentials\n ", + "range": [ + 704, + 746 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 840, + 872 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "name", + "range": [ + 879, + 883 + ], + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 49, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 899, + 903 + ], + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 50, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_name", + "range": [ + 904, + 909 + ], + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 21 + } + } + }, + "range": [ + 899, + 909 + ], + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 50, + "column": 21 + } + } + }, + "range": [ + 892, + 910 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 22 + } + } + } + ], + "range": [ + 886, + 914 + ], + "loc": { + "start": { + "line": 49, + "column": 13 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 883, + 914 + ], + "loc": { + "start": { + "line": 49, + "column": 10 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 875, + 914 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 840, + 872 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 918, + 950 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "cache", + "range": [ + 957, + 962 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 11 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 978, + 982 + ], + "loc": { + "start": { + "line": 57, + "column": 11 + }, + "end": { + "line": 57, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cache", + "range": [ + 983, + 989 + ], + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 22 + } + } + }, + "range": [ + 978, + 989 + ], + "loc": { + "start": { + "line": 57, + "column": 11 + }, + "end": { + "line": 57, + "column": 22 + } + } + }, + "range": [ + 971, + 990 + ], + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 23 + } + } + } + ], + "range": [ + 965, + 994 + ], + "loc": { + "start": { + "line": 56, + "column": 14 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 962, + 994 + ], + "loc": { + "start": { + "line": 56, + "column": 11 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 953, + 994 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 58, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 918, + 950 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} cache\n ", + "range": [ + 998, + 1034 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "cache", + "range": [ + 1041, + 1046 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 11 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "cache", + "range": [ + 1047, + 1052 + ], + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 17 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1060, + 1064 + ], + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cache", + "range": [ + 1065, + 1071 + ], + "loc": { + "start": { + "line": 64, + "column": 9 + }, + "end": { + "line": 64, + "column": 15 + } + } + }, + "range": [ + 1060, + 1071 + ], + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 15 + } + } + }, + "right": { + "type": "Identifier", + "name": "cache", + "range": [ + 1074, + 1079 + ], + "loc": { + "start": { + "line": 64, + "column": 18 + }, + "end": { + "line": 64, + "column": 23 + } + } + }, + "range": [ + 1060, + 1079 + ], + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 23 + } + } + }, + "range": [ + 1060, + 1080 + ], + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 24 + } + } + } + ], + "range": [ + 1054, + 1084 + ], + "loc": { + "start": { + "line": 63, + "column": 19 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1046, + 1084 + ], + "loc": { + "start": { + "line": 63, + "column": 11 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 1037, + 1084 + ], + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 65, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} cache\n ", + "range": [ + 998, + 1034 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 1088, + 1121 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "localBackend", + "range": [ + 1128, + 1140 + ], + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1156, + 1160 + ], + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_localBackend", + "range": [ + 1161, + 1174 + ], + "loc": { + "start": { + "line": 71, + "column": 16 + }, + "end": { + "line": 71, + "column": 29 + } + } + }, + "range": [ + 1156, + 1174 + ], + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 29 + } + } + }, + "range": [ + 1149, + 1175 + ], + "loc": { + "start": { + "line": 71, + "column": 4 + }, + "end": { + "line": 71, + "column": 30 + } + } + } + ], + "range": [ + 1143, + 1179 + ], + "loc": { + "start": { + "line": 70, + "column": 21 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1140, + 1179 + ], + "loc": { + "start": { + "line": 70, + "column": 18 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1124, + 1179 + ], + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 72, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 1088, + 1121 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Boolean} state\n ", + "range": [ + 1183, + 1220 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 76, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "localBackend", + "range": [ + 1227, + 1239 + ], + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 77, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "state", + "range": [ + 1240, + 1245 + ], + "loc": { + "start": { + "line": 77, + "column": 19 + }, + "end": { + "line": 77, + "column": 24 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1253, + 1257 + ], + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_localBackend", + "range": [ + 1258, + 1271 + ], + "loc": { + "start": { + "line": 78, + "column": 9 + }, + "end": { + "line": 78, + "column": 22 + } + } + }, + "range": [ + 1253, + 1271 + ], + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 22 + } + } + }, + "right": { + "type": "Identifier", + "name": "state", + "range": [ + 1274, + 1279 + ], + "loc": { + "start": { + "line": 78, + "column": 25 + }, + "end": { + "line": 78, + "column": 30 + } + } + }, + "range": [ + 1253, + 1279 + ], + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 30 + } + } + }, + "range": [ + 1253, + 1280 + ], + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 31 + } + } + } + ], + "range": [ + 1247, + 1284 + ], + "loc": { + "start": { + "line": 77, + "column": 26 + }, + "end": { + "line": 79, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1239, + 1284 + ], + "loc": { + "start": { + "line": 77, + "column": 18 + }, + "end": { + "line": 79, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 1223, + 1284 + ], + "loc": { + "start": { + "line": 77, + "column": 2 + }, + "end": { + "line": 79, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Boolean} state\n ", + "range": [ + 1183, + 1220 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 76, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1288, + 1320 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "actions", + "range": [ + 1327, + 1334 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1347, + 1351 + ], + "loc": { + "start": { + "line": 85, + "column": 8 + }, + "end": { + "line": 85, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_actions", + "range": [ + 1352, + 1360 + ], + "loc": { + "start": { + "line": 85, + "column": 13 + }, + "end": { + "line": 85, + "column": 21 + } + } + }, + "range": [ + 1347, + 1360 + ], + "loc": { + "start": { + "line": 85, + "column": 8 + }, + "end": { + "line": 85, + "column": 21 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1365, + 1369 + ], + "loc": { + "start": { + "line": 85, + "column": 26 + }, + "end": { + "line": 85, + "column": 30 + } + } + }, + "range": [ + 1347, + 1369 + ], + "loc": { + "start": { + "line": 85, + "column": 8 + }, + "end": { + "line": 85, + "column": 30 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1379, + 1383 + ], + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_actions", + "range": [ + 1384, + 1392 + ], + "loc": { + "start": { + "line": 86, + "column": 11 + }, + "end": { + "line": 86, + "column": 19 + } + } + }, + "range": [ + 1379, + 1392 + ], + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 19 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 1395, + 1397 + ], + "loc": { + "start": { + "line": 86, + "column": 22 + }, + "end": { + "line": 86, + "column": 24 + } + } + }, + "range": [ + 1379, + 1397 + ], + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 24 + } + } + }, + "range": [ + 1379, + 1398 + ], + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 25 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "actionName", + "range": [ + 1415, + 1425 + ], + "loc": { + "start": { + "line": 88, + "column": 15 + }, + "end": { + "line": 88, + "column": 25 + } + } + }, + "init": null, + "range": [ + 1415, + 1425 + ], + "loc": { + "start": { + "line": 88, + "column": 15 + }, + "end": { + "line": 88, + "column": 25 + } + } + } + ], + "kind": "let", + "range": [ + 1411, + 1425 + ], + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 25 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1429, + 1433 + ], + "loc": { + "start": { + "line": 88, + "column": 29 + }, + "end": { + "line": 88, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawActions", + "range": [ + 1434, + 1445 + ], + "loc": { + "start": { + "line": 88, + "column": 34 + }, + "end": { + "line": 88, + "column": 45 + } + } + }, + "range": [ + 1429, + 1445 + ], + "loc": { + "start": { + "line": 88, + "column": 29 + }, + "end": { + "line": 88, + "column": 45 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1462, + 1466 + ], + "loc": { + "start": { + "line": 89, + "column": 13 + }, + "end": { + "line": 89, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawActions", + "range": [ + 1467, + 1478 + ], + "loc": { + "start": { + "line": 89, + "column": 18 + }, + "end": { + "line": 89, + "column": 29 + } + } + }, + "range": [ + 1462, + 1478 + ], + "loc": { + "start": { + "line": 89, + "column": 13 + }, + "end": { + "line": 89, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 1479, + 1493 + ], + "loc": { + "start": { + "line": 89, + "column": 30 + }, + "end": { + "line": 89, + "column": 44 + } + } + }, + "range": [ + 1462, + 1493 + ], + "loc": { + "start": { + "line": 89, + "column": 13 + }, + "end": { + "line": 89, + "column": 44 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "actionName", + "range": [ + 1494, + 1504 + ], + "loc": { + "start": { + "line": 89, + "column": 45 + }, + "end": { + "line": 89, + "column": 55 + } + } + } + ], + "range": [ + 1462, + 1505 + ], + "loc": { + "start": { + "line": 89, + "column": 13 + }, + "end": { + "line": 89, + "column": 56 + } + } + }, + "prefix": true, + "range": [ + 1461, + 1505 + ], + "loc": { + "start": { + "line": 89, + "column": 12 + }, + "end": { + "line": 89, + "column": 56 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 1519, + 1528 + ], + "loc": { + "start": { + "line": 90, + "column": 10 + }, + "end": { + "line": 90, + "column": 19 + } + } + } + ], + "range": [ + 1507, + 1538 + ], + "loc": { + "start": { + "line": 89, + "column": 58 + }, + "end": { + "line": 91, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 1457, + 1538 + ], + "loc": { + "start": { + "line": 89, + "column": 8 + }, + "end": { + "line": 91, + "column": 9 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "actionMetadata", + "range": [ + 1552, + 1566 + ], + "loc": { + "start": { + "line": 93, + "column": 12 + }, + "end": { + "line": 93, + "column": 26 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1569, + 1573 + ], + "loc": { + "start": { + "line": 93, + "column": 29 + }, + "end": { + "line": 93, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawActions", + "range": [ + 1574, + 1585 + ], + "loc": { + "start": { + "line": 93, + "column": 34 + }, + "end": { + "line": 93, + "column": 45 + } + } + }, + "range": [ + 1569, + 1585 + ], + "loc": { + "start": { + "line": 93, + "column": 29 + }, + "end": { + "line": 93, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "actionName", + "range": [ + 1586, + 1596 + ], + "loc": { + "start": { + "line": 93, + "column": 46 + }, + "end": { + "line": 93, + "column": 56 + } + } + }, + "range": [ + 1569, + 1597 + ], + "loc": { + "start": { + "line": 93, + "column": 29 + }, + "end": { + "line": 93, + "column": 57 + } + } + }, + "range": [ + 1552, + 1597 + ], + "loc": { + "start": { + "line": 93, + "column": 12 + }, + "end": { + "line": 93, + "column": 57 + } + } + } + ], + "kind": "let", + "range": [ + 1548, + 1598 + ], + "loc": { + "start": { + "line": 93, + "column": 8 + }, + "end": { + "line": 93, + "column": 58 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1608, + 1612 + ], + "loc": { + "start": { + "line": 95, + "column": 8 + }, + "end": { + "line": 95, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_actions", + "range": [ + 1613, + 1621 + ], + "loc": { + "start": { + "line": 95, + "column": 13 + }, + "end": { + "line": 95, + "column": 21 + } + } + }, + "range": [ + 1608, + 1621 + ], + "loc": { + "start": { + "line": 95, + "column": 8 + }, + "end": { + "line": 95, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "actionName", + "range": [ + 1622, + 1632 + ], + "loc": { + "start": { + "line": 95, + "column": 22 + }, + "end": { + "line": 95, + "column": 32 + } + } + }, + "range": [ + 1608, + 1633 + ], + "loc": { + "start": { + "line": 95, + "column": 8 + }, + "end": { + "line": 95, + "column": 33 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Action", + "range": [ + 1640, + 1646 + ], + "loc": { + "start": { + "line": 95, + "column": 40 + }, + "end": { + "line": 95, + "column": 46 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 1658, + 1662 + ], + "loc": { + "start": { + "line": 96, + "column": 10 + }, + "end": { + "line": 96, + "column": 14 + } + } + }, + { + "type": "Identifier", + "name": "actionName", + "range": [ + 1674, + 1684 + ], + "loc": { + "start": { + "line": 97, + "column": 10 + }, + "end": { + "line": 97, + "column": 20 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "actionMetadata", + "range": [ + 1696, + 1710 + ], + "loc": { + "start": { + "line": 98, + "column": 10 + }, + "end": { + "line": 98, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 1711, + 1715 + ], + "loc": { + "start": { + "line": 98, + "column": 25 + }, + "end": { + "line": 98, + "column": 29 + } + } + }, + "range": [ + 1696, + 1715 + ], + "loc": { + "start": { + "line": 98, + "column": 10 + }, + "end": { + "line": 98, + "column": 29 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "actionMetadata", + "range": [ + 1727, + 1741 + ], + "loc": { + "start": { + "line": 99, + "column": 10 + }, + "end": { + "line": 99, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "methods", + "range": [ + 1742, + 1749 + ], + "loc": { + "start": { + "line": 99, + "column": 25 + }, + "end": { + "line": 99, + "column": 32 + } + } + }, + "range": [ + 1727, + 1749 + ], + "loc": { + "start": { + "line": 99, + "column": 10 + }, + "end": { + "line": 99, + "column": 32 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "actionMetadata", + "range": [ + 1761, + 1775 + ], + "loc": { + "start": { + "line": 100, + "column": 10 + }, + "end": { + "line": 100, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "source", + "range": [ + 1776, + 1782 + ], + "loc": { + "start": { + "line": 100, + "column": 25 + }, + "end": { + "line": 100, + "column": 31 + } + } + }, + "range": [ + 1761, + 1782 + ], + "loc": { + "start": { + "line": 100, + "column": 10 + }, + "end": { + "line": 100, + "column": 31 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "actionMetadata", + "range": [ + 1794, + 1808 + ], + "loc": { + "start": { + "line": 101, + "column": 10 + }, + "end": { + "line": 101, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "region", + "range": [ + 1809, + 1815 + ], + "loc": { + "start": { + "line": 101, + "column": 25 + }, + "end": { + "line": 101, + "column": 31 + } + } + }, + "range": [ + 1794, + 1815 + ], + "loc": { + "start": { + "line": 101, + "column": 10 + }, + "end": { + "line": 101, + "column": 31 + } + } + } + ], + "range": [ + 1636, + 1825 + ], + "loc": { + "start": { + "line": 95, + "column": 36 + }, + "end": { + "line": 102, + "column": 9 + } + } + }, + "range": [ + 1608, + 1825 + ], + "loc": { + "start": { + "line": 95, + "column": 8 + }, + "end": { + "line": 102, + "column": 9 + } + } + }, + "range": [ + 1608, + 1826 + ], + "loc": { + "start": { + "line": 95, + "column": 8 + }, + "end": { + "line": 102, + "column": 10 + } + } + } + ], + "range": [ + 1447, + 1834 + ], + "loc": { + "start": { + "line": 88, + "column": 47 + }, + "end": { + "line": 103, + "column": 7 + } + } + }, + "each": false, + "range": [ + 1406, + 1834 + ], + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 103, + "column": 7 + } + } + } + ], + "range": [ + 1371, + 1840 + ], + "loc": { + "start": { + "line": 85, + "column": 32 + }, + "end": { + "line": 104, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1343, + 1840 + ], + "loc": { + "start": { + "line": 85, + "column": 4 + }, + "end": { + "line": 104, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1853, + 1857 + ], + "loc": { + "start": { + "line": 106, + "column": 11 + }, + "end": { + "line": 106, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_actions", + "range": [ + 1858, + 1866 + ], + "loc": { + "start": { + "line": 106, + "column": 16 + }, + "end": { + "line": 106, + "column": 24 + } + } + }, + "range": [ + 1853, + 1866 + ], + "loc": { + "start": { + "line": 106, + "column": 11 + }, + "end": { + "line": 106, + "column": 24 + } + } + }, + "range": [ + 1846, + 1867 + ], + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 106, + "column": 25 + } + } + } + ], + "range": [ + 1337, + 1871 + ], + "loc": { + "start": { + "line": 84, + "column": 16 + }, + "end": { + "line": 107, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1334, + 1871 + ], + "loc": { + "start": { + "line": 84, + "column": 13 + }, + "end": { + "line": 107, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1323, + 1871 + ], + "loc": { + "start": { + "line": 84, + "column": 2 + }, + "end": { + "line": 107, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1288, + 1320 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} actionName\n * @returns {boolean}\n ", + "range": [ + 1875, + 1940 + ], + "loc": { + "start": { + "line": 109, + "column": 2 + }, + "end": { + "line": 112, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "has", + "range": [ + 1943, + 1946 + ], + "loc": { + "start": { + "line": 113, + "column": 2 + }, + "end": { + "line": 113, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "actionName", + "range": [ + 1947, + 1957 + ], + "loc": { + "start": { + "line": 113, + "column": 6 + }, + "end": { + "line": 113, + "column": 16 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1972, + 1976 + ], + "loc": { + "start": { + "line": 114, + "column": 11 + }, + "end": { + "line": 114, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "actions", + "range": [ + 1977, + 1984 + ], + "loc": { + "start": { + "line": 114, + "column": 16 + }, + "end": { + "line": 114, + "column": 23 + } + } + }, + "range": [ + 1972, + 1984 + ], + "loc": { + "start": { + "line": 114, + "column": 11 + }, + "end": { + "line": 114, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 1985, + 1999 + ], + "loc": { + "start": { + "line": 114, + "column": 24 + }, + "end": { + "line": 114, + "column": 38 + } + } + }, + "range": [ + 1972, + 1999 + ], + "loc": { + "start": { + "line": 114, + "column": 11 + }, + "end": { + "line": 114, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "actionName", + "range": [ + 2000, + 2010 + ], + "loc": { + "start": { + "line": 114, + "column": 39 + }, + "end": { + "line": 114, + "column": 49 + } + } + } + ], + "range": [ + 1972, + 2011 + ], + "loc": { + "start": { + "line": 114, + "column": 11 + }, + "end": { + "line": 114, + "column": 50 + } + } + }, + "range": [ + 1965, + 2012 + ], + "loc": { + "start": { + "line": 114, + "column": 4 + }, + "end": { + "line": 114, + "column": 51 + } + } + } + ], + "range": [ + 1959, + 2016 + ], + "loc": { + "start": { + "line": 113, + "column": 18 + }, + "end": { + "line": 115, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1946, + 2016 + ], + "loc": { + "start": { + "line": 113, + "column": 5 + }, + "end": { + "line": 115, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1943, + 2016 + ], + "loc": { + "start": { + "line": 113, + "column": 2 + }, + "end": { + "line": 115, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} actionName\n * @returns {boolean}\n ", + "range": [ + 1875, + 1940 + ], + "loc": { + "start": { + "line": 109, + "column": 2 + }, + "end": { + "line": 112, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param actionName\n * @returns {Action}\n ", + "range": [ + 2020, + 2075 + ], + "loc": { + "start": { + "line": 117, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "action", + "range": [ + 2078, + 2084 + ], + "loc": { + "start": { + "line": 121, + "column": 2 + }, + "end": { + "line": 121, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "actionName", + "range": [ + 2085, + 2095 + ], + "loc": { + "start": { + "line": 121, + "column": 9 + }, + "end": { + "line": 121, + "column": 19 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2108, + 2112 + ], + "loc": { + "start": { + "line": 122, + "column": 9 + }, + "end": { + "line": 122, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "has", + "range": [ + 2113, + 2116 + ], + "loc": { + "start": { + "line": 122, + "column": 14 + }, + "end": { + "line": 122, + "column": 17 + } + } + }, + "range": [ + 2108, + 2116 + ], + "loc": { + "start": { + "line": 122, + "column": 9 + }, + "end": { + "line": 122, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "actionName", + "range": [ + 2117, + 2127 + ], + "loc": { + "start": { + "line": 122, + "column": 18 + }, + "end": { + "line": 122, + "column": 28 + } + } + } + ], + "range": [ + 2108, + 2128 + ], + "loc": { + "start": { + "line": 122, + "column": 9 + }, + "end": { + "line": 122, + "column": 29 + } + } + }, + "prefix": true, + "range": [ + 2107, + 2128 + ], + "loc": { + "start": { + "line": 122, + "column": 8 + }, + "end": { + "line": 122, + "column": 29 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "MissingActionException", + "range": [ + 2148, + 2170 + ], + "loc": { + "start": { + "line": 123, + "column": 16 + }, + "end": { + "line": 123, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2171, + 2175 + ], + "loc": { + "start": { + "line": 123, + "column": 39 + }, + "end": { + "line": 123, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 2176, + 2180 + ], + "loc": { + "start": { + "line": 123, + "column": 44 + }, + "end": { + "line": 123, + "column": 48 + } + } + }, + "range": [ + 2171, + 2180 + ], + "loc": { + "start": { + "line": 123, + "column": 39 + }, + "end": { + "line": 123, + "column": 48 + } + } + }, + { + "type": "Identifier", + "name": "actionName", + "range": [ + 2182, + 2192 + ], + "loc": { + "start": { + "line": 123, + "column": 50 + }, + "end": { + "line": 123, + "column": 60 + } + } + } + ], + "range": [ + 2144, + 2193 + ], + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 123, + "column": 61 + } + } + }, + "range": [ + 2138, + 2194 + ], + "loc": { + "start": { + "line": 123, + "column": 6 + }, + "end": { + "line": 123, + "column": 62 + } + } + } + ], + "range": [ + 2130, + 2200 + ], + "loc": { + "start": { + "line": 122, + "column": 31 + }, + "end": { + "line": 124, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 2103, + 2200 + ], + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 124, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2213, + 2217 + ], + "loc": { + "start": { + "line": 126, + "column": 11 + }, + "end": { + "line": 126, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "actions", + "range": [ + 2218, + 2225 + ], + "loc": { + "start": { + "line": 126, + "column": 16 + }, + "end": { + "line": 126, + "column": 23 + } + } + }, + "range": [ + 2213, + 2225 + ], + "loc": { + "start": { + "line": 126, + "column": 11 + }, + "end": { + "line": 126, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "actionName", + "range": [ + 2226, + 2236 + ], + "loc": { + "start": { + "line": 126, + "column": 24 + }, + "end": { + "line": 126, + "column": 34 + } + } + }, + "range": [ + 2213, + 2237 + ], + "loc": { + "start": { + "line": 126, + "column": 11 + }, + "end": { + "line": 126, + "column": 35 + } + } + }, + "range": [ + 2206, + 2238 + ], + "loc": { + "start": { + "line": 126, + "column": 4 + }, + "end": { + "line": 126, + "column": 36 + } + } + } + ], + "range": [ + 2097, + 2242 + ], + "loc": { + "start": { + "line": 121, + "column": 21 + }, + "end": { + "line": 127, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2084, + 2242 + ], + "loc": { + "start": { + "line": 121, + "column": 8 + }, + "end": { + "line": 127, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2078, + 2242 + ], + "loc": { + "start": { + "line": 121, + "column": 2 + }, + "end": { + "line": 127, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param actionName\n * @returns {Action}\n ", + "range": [ + 2020, + 2075 + ], + "loc": { + "start": { + "line": 117, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} actionName\n * @param {*} args\n ", + "range": [ + 2246, + 2308 + ], + "loc": { + "start": { + "line": 129, + "column": 2 + }, + "end": { + "line": 132, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "request", + "range": [ + 2311, + 2318 + ], + "loc": { + "start": { + "line": 133, + "column": 2 + }, + "end": { + "line": 133, + "column": 9 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "actionName", + "range": [ + 2319, + 2329 + ], + "loc": { + "start": { + "line": 133, + "column": 10 + }, + "end": { + "line": 133, + "column": 20 + } + } + }, + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 2334, + 2338 + ], + "loc": { + "start": { + "line": 133, + "column": 25 + }, + "end": { + "line": 133, + "column": 29 + } + } + }, + "range": [ + 2331, + 2338 + ], + "loc": { + "start": { + "line": 133, + "column": 22 + }, + "end": { + "line": 133, + "column": 29 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2353, + 2357 + ], + "loc": { + "start": { + "line": 134, + "column": 11 + }, + "end": { + "line": 134, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "action", + "range": [ + 2358, + 2364 + ], + "loc": { + "start": { + "line": 134, + "column": 16 + }, + "end": { + "line": 134, + "column": 22 + } + } + }, + "range": [ + 2353, + 2364 + ], + "loc": { + "start": { + "line": 134, + "column": 11 + }, + "end": { + "line": 134, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "actionName", + "range": [ + 2365, + 2375 + ], + "loc": { + "start": { + "line": 134, + "column": 23 + }, + "end": { + "line": 134, + "column": 33 + } + } + } + ], + "range": [ + 2353, + 2376 + ], + "loc": { + "start": { + "line": 134, + "column": 11 + }, + "end": { + "line": 134, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "request", + "range": [ + 2377, + 2384 + ], + "loc": { + "start": { + "line": 134, + "column": 35 + }, + "end": { + "line": 134, + "column": 42 + } + } + }, + "range": [ + 2353, + 2384 + ], + "loc": { + "start": { + "line": 134, + "column": 11 + }, + "end": { + "line": 134, + "column": 42 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 2388, + 2392 + ], + "loc": { + "start": { + "line": 134, + "column": 46 + }, + "end": { + "line": 134, + "column": 50 + } + } + }, + "range": [ + 2385, + 2392 + ], + "loc": { + "start": { + "line": 134, + "column": 43 + }, + "end": { + "line": 134, + "column": 50 + } + } + } + ], + "range": [ + 2353, + 2393 + ], + "loc": { + "start": { + "line": 134, + "column": 11 + }, + "end": { + "line": 134, + "column": 51 + } + } + }, + "range": [ + 2346, + 2394 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 134, + "column": 52 + } + } + } + ], + "range": [ + 2340, + 2398 + ], + "loc": { + "start": { + "line": 133, + "column": 31 + }, + "end": { + "line": 135, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2318, + 2398 + ], + "loc": { + "start": { + "line": 133, + "column": 9 + }, + "end": { + "line": 135, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2311, + 2398 + ], + "loc": { + "start": { + "line": 133, + "column": 2 + }, + "end": { + "line": 135, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} actionName\n * @param {*} args\n ", + "range": [ + 2246, + 2308 + ], + "loc": { + "start": { + "line": 129, + "column": 2 + }, + "end": { + "line": 132, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 221, + 2400 + ], + "loc": { + "start": { + "line": 13, + "column": 22 + }, + "end": { + "line": 136, + "column": 1 + } + } + }, + "range": [ + 206, + 2400 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 136, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Resource instance\n ", + "range": [ + 170, + 198 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 199, + 2400 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 136, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Resource instance\n ", + "range": [ + 170, + 198 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 2400 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 136, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Resource instance\n ", + "range": [ + 170, + 198 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} name\n * @param {Object} rawActions\n ", + "range": [ + 225, + 292 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 596, + 628 + ], + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} credentials\n ", + "range": [ + 704, + 746 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 840, + 872 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 918, + 950 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} cache\n ", + "range": [ + 998, + 1034 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 1088, + 1121 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 69, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Boolean} state\n ", + "range": [ + 1183, + 1220 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 76, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1288, + 1320 + ], + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} actionName\n * @returns {boolean}\n ", + "range": [ + 1875, + 1940 + ], + "loc": { + "start": { + "line": 109, + "column": 2 + }, + "end": { + "line": 112, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param actionName\n * @returns {Action}\n ", + "range": [ + 2020, + 2075 + ], + "loc": { + "start": { + "line": 117, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} actionName\n * @param {*} args\n ", + "range": [ + 2246, + 2308 + ], + "loc": { + "start": { + "line": 129, + "column": 2 + }, + "end": { + "line": 132, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/ast/source/Resource/LambdaResponse.js.json b/docs-api/deep-resource/ast/source/Resource/LambdaResponse.js.json new file mode 100644 index 00000000..6428f141 --- /dev/null +++ b/docs-api/deep-resource/ast/source/Resource/LambdaResponse.js.json @@ -0,0 +1,4989 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Response", + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Response", + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Response", + "raw": "'./Response'", + "range": [ + 84, + 96 + ], + "loc": { + "start": { + "line": 7, + "column": 23 + }, + "end": { + "line": 7, + "column": 35 + } + } + }, + "range": [ + 61, + 97 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 36 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Response object\n ", + "range": [ + 99, + 125 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "LambdaResponse", + "range": [ + 139, + 153 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 27 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Response", + "range": [ + 162, + 170 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 44 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 270, + 281 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "request", + "range": [ + 282, + 289 + ], + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 21 + } + } + }, + { + "type": "Identifier", + "name": "data", + "range": [ + 291, + 295 + ], + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 27 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 297, + 302 + ], + "loc": { + "start": { + "line": 18, + "column": 29 + }, + "end": { + "line": 18, + "column": 34 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 310, + 315 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "arguments", + "range": [ + 319, + 328 + ], + "loc": { + "start": { + "line": 19, + "column": 13 + }, + "end": { + "line": 19, + "column": 22 + } + } + }, + "range": [ + 316, + 328 + ], + "loc": { + "start": { + "line": 19, + "column": 10 + }, + "end": { + "line": 19, + "column": 22 + } + } + } + ], + "range": [ + 310, + 329 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 23 + } + } + }, + "range": [ + 310, + 330 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 24 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 336, + 340 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_errorType", + "range": [ + 341, + 351 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 19 + } + } + }, + "range": [ + 336, + 351 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 354, + 358 + ], + "loc": { + "start": { + "line": 21, + "column": 22 + }, + "end": { + "line": 21, + "column": 26 + } + } + }, + "range": [ + 336, + 358 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 26 + } + } + }, + "range": [ + 336, + 359 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 27 + } + } + } + ], + "range": [ + 304, + 363 + ], + "loc": { + "start": { + "line": 18, + "column": 36 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 281, + 363 + ], + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 270, + 363 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Request} request\n * @param {Object} data\n * @param {String} error\n ", + "range": [ + 175, + 267 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 367, + 399 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "data", + "range": [ + 406, + 410 + ], + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 423, + 427 + ], + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 428, + 433 + ], + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 18 + } + } + }, + "range": [ + 423, + 433 + ], + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 18 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 450, + 454 + ], + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 455, + 460 + ], + "loc": { + "start": { + "line": 29, + "column": 18 + }, + "end": { + "line": 29, + "column": 23 + } + } + }, + "range": [ + 450, + 460 + ], + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 23 + } + } + }, + "range": [ + 443, + 461 + ], + "loc": { + "start": { + "line": 29, + "column": 6 + }, + "end": { + "line": 29, + "column": 24 + } + } + } + ], + "range": [ + 435, + 467 + ], + "loc": { + "start": { + "line": 28, + "column": 20 + }, + "end": { + "line": 30, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 419, + 467 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 30, + "column": 5 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 477, + 481 + ], + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawData", + "range": [ + 482, + 490 + ], + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 21 + } + } + }, + "range": [ + 477, + 490 + ], + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 21 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "response", + "range": [ + 504, + 512 + ], + "loc": { + "start": { + "line": 33, + "column": 10 + }, + "end": { + "line": 33, + "column": 18 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 515, + 519 + ], + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "parse", + "range": [ + 520, + 525 + ], + "loc": { + "start": { + "line": 33, + "column": 26 + }, + "end": { + "line": 33, + "column": 31 + } + } + }, + "range": [ + 515, + 525 + ], + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 526, + 530 + ], + "loc": { + "start": { + "line": 33, + "column": 32 + }, + "end": { + "line": 33, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawData", + "range": [ + 531, + 539 + ], + "loc": { + "start": { + "line": 33, + "column": 37 + }, + "end": { + "line": 33, + "column": 45 + } + } + }, + "range": [ + 526, + 539 + ], + "loc": { + "start": { + "line": 33, + "column": 32 + }, + "end": { + "line": 33, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Payload", + "range": [ + 540, + 547 + ], + "loc": { + "start": { + "line": 33, + "column": 46 + }, + "end": { + "line": 33, + "column": 53 + } + } + }, + "range": [ + 526, + 547 + ], + "loc": { + "start": { + "line": 33, + "column": 32 + }, + "end": { + "line": 33, + "column": 53 + } + } + } + ], + "range": [ + 515, + 548 + ], + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 54 + } + } + }, + "range": [ + 504, + 548 + ], + "loc": { + "start": { + "line": 33, + "column": 10 + }, + "end": { + "line": 33, + "column": 54 + } + } + } + ], + "kind": "var", + "range": [ + 500, + 549 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 55 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "response", + "range": [ + 560, + 568 + ], + "loc": { + "start": { + "line": 34, + "column": 10 + }, + "end": { + "line": 34, + "column": 18 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 579, + 587 + ], + "loc": { + "start": { + "line": 34, + "column": 29 + }, + "end": { + "line": 34, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "errorMessage", + "range": [ + 588, + 600 + ], + "loc": { + "start": { + "line": 34, + "column": 38 + }, + "end": { + "line": 34, + "column": 50 + } + } + }, + "range": [ + 579, + 600 + ], + "loc": { + "start": { + "line": 34, + "column": 29 + }, + "end": { + "line": 34, + "column": 50 + } + } + }, + "prefix": true, + "range": [ + 572, + 600 + ], + "loc": { + "start": { + "line": 34, + "column": 22 + }, + "end": { + "line": 34, + "column": 50 + } + } + }, + "right": { + "type": "Literal", + "value": "undefined", + "raw": "'undefined'", + "range": [ + 605, + 616 + ], + "loc": { + "start": { + "line": 34, + "column": 55 + }, + "end": { + "line": 34, + "column": 66 + } + } + }, + "range": [ + 572, + 616 + ], + "loc": { + "start": { + "line": 34, + "column": 22 + }, + "end": { + "line": 34, + "column": 66 + } + } + }, + "range": [ + 560, + 616 + ], + "loc": { + "start": { + "line": 34, + "column": 10 + }, + "end": { + "line": 34, + "column": 66 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 628, + 632 + ], + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 633, + 638 + ], + "loc": { + "start": { + "line": 35, + "column": 13 + }, + "end": { + "line": 35, + "column": 18 + } + } + }, + "range": [ + 628, + 638 + ], + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 18 + } + } + }, + "right": { + "type": "Identifier", + "name": "response", + "range": [ + 641, + 649 + ], + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 29 + } + } + }, + "range": [ + 628, + 649 + ], + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 29 + } + } + }, + "range": [ + 628, + 650 + ], + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 30 + } + } + } + ], + "range": [ + 618, + 658 + ], + "loc": { + "start": { + "line": 34, + "column": 68 + }, + "end": { + "line": 36, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 556, + 658 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 36, + "column": 7 + } + } + } + ], + "range": [ + 492, + 664 + ], + "loc": { + "start": { + "line": 32, + "column": 23 + }, + "end": { + "line": 37, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 473, + 664 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 37, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 677, + 681 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 682, + 687 + ], + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 21 + } + } + }, + "range": [ + 677, + 687 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 21 + } + } + }, + "range": [ + 670, + 688 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 22 + } + } + } + ], + "range": [ + 413, + 692 + ], + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 410, + 692 + ], + "loc": { + "start": { + "line": 27, + "column": 10 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 402, + 692 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 40, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 367, + 399 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 696, + 728 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "error", + "range": [ + 735, + 740 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 11 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 753, + 757 + ], + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 758, + 764 + ], + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 19 + } + } + }, + "range": [ + 753, + 764 + ], + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 19 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 781, + 785 + ], + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 786, + 792 + ], + "loc": { + "start": { + "line": 47, + "column": 18 + }, + "end": { + "line": 47, + "column": 24 + } + } + }, + "range": [ + 781, + 792 + ], + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 24 + } + } + }, + "range": [ + 774, + 793 + ], + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 25 + } + } + } + ], + "range": [ + 766, + 799 + ], + "loc": { + "start": { + "line": 46, + "column": 21 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 749, + 799 + ], + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 809, + 813 + ], + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawError", + "range": [ + 814, + 823 + ], + "loc": { + "start": { + "line": 50, + "column": 13 + }, + "end": { + "line": 50, + "column": 22 + } + } + }, + "range": [ + 809, + 823 + ], + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 22 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 833, + 837 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 838, + 844 + ], + "loc": { + "start": { + "line": 51, + "column": 11 + }, + "end": { + "line": 51, + "column": 17 + } + } + }, + "range": [ + 833, + 844 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 17 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 847, + 851 + ], + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawError", + "range": [ + 852, + 861 + ], + "loc": { + "start": { + "line": 51, + "column": 25 + }, + "end": { + "line": 51, + "column": 34 + } + } + }, + "range": [ + 847, + 861 + ], + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 34 + } + } + }, + "range": [ + 833, + 861 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 34 + } + } + }, + "range": [ + 833, + 862 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 35 + } + } + } + ], + "range": [ + 825, + 868 + ], + "loc": { + "start": { + "line": 50, + "column": 24 + }, + "end": { + "line": 52, + "column": 5 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "response", + "range": [ + 886, + 894 + ], + "loc": { + "start": { + "line": 53, + "column": 10 + }, + "end": { + "line": 53, + "column": 18 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 897, + 901 + ], + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "parse", + "range": [ + 902, + 907 + ], + "loc": { + "start": { + "line": 53, + "column": 26 + }, + "end": { + "line": 53, + "column": 31 + } + } + }, + "range": [ + 897, + 907 + ], + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 908, + 912 + ], + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 53, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawData", + "range": [ + 913, + 921 + ], + "loc": { + "start": { + "line": 53, + "column": 37 + }, + "end": { + "line": 53, + "column": 45 + } + } + }, + "range": [ + 908, + 921 + ], + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 53, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Payload", + "range": [ + 922, + 929 + ], + "loc": { + "start": { + "line": 53, + "column": 46 + }, + "end": { + "line": 53, + "column": 53 + } + } + }, + "range": [ + 908, + 929 + ], + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 53, + "column": 53 + } + } + } + ], + "range": [ + 897, + 930 + ], + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 54 + } + } + }, + "range": [ + 886, + 930 + ], + "loc": { + "start": { + "line": 53, + "column": 10 + }, + "end": { + "line": 53, + "column": 54 + } + } + } + ], + "kind": "var", + "range": [ + 882, + 931 + ], + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 55 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "response", + "range": [ + 942, + 950 + ], + "loc": { + "start": { + "line": 54, + "column": 10 + }, + "end": { + "line": 54, + "column": 18 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 961, + 969 + ], + "loc": { + "start": { + "line": 54, + "column": 29 + }, + "end": { + "line": 54, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "errorMessage", + "range": [ + 970, + 982 + ], + "loc": { + "start": { + "line": 54, + "column": 38 + }, + "end": { + "line": 54, + "column": 50 + } + } + }, + "range": [ + 961, + 982 + ], + "loc": { + "start": { + "line": 54, + "column": 29 + }, + "end": { + "line": 54, + "column": 50 + } + } + }, + "prefix": true, + "range": [ + 954, + 982 + ], + "loc": { + "start": { + "line": 54, + "column": 22 + }, + "end": { + "line": 54, + "column": 50 + } + } + }, + "right": { + "type": "Literal", + "value": "undefined", + "raw": "'undefined'", + "range": [ + 987, + 998 + ], + "loc": { + "start": { + "line": 54, + "column": 55 + }, + "end": { + "line": 54, + "column": 66 + } + } + }, + "range": [ + 954, + 998 + ], + "loc": { + "start": { + "line": 54, + "column": 22 + }, + "end": { + "line": 54, + "column": 66 + } + } + }, + "range": [ + 942, + 998 + ], + "loc": { + "start": { + "line": 54, + "column": 10 + }, + "end": { + "line": 54, + "column": 66 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1010, + 1014 + ], + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 1015, + 1021 + ], + "loc": { + "start": { + "line": 55, + "column": 13 + }, + "end": { + "line": 55, + "column": 19 + } + } + }, + "range": [ + 1010, + 1021 + ], + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 19 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 1024, + 1032 + ], + "loc": { + "start": { + "line": 55, + "column": 22 + }, + "end": { + "line": 55, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "errorMessage", + "range": [ + 1033, + 1045 + ], + "loc": { + "start": { + "line": 55, + "column": 31 + }, + "end": { + "line": 55, + "column": 43 + } + } + }, + "range": [ + 1024, + 1045 + ], + "loc": { + "start": { + "line": 55, + "column": 22 + }, + "end": { + "line": 55, + "column": 43 + } + } + }, + "range": [ + 1010, + 1045 + ], + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 43 + } + } + }, + "range": [ + 1010, + 1046 + ], + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 44 + } + } + } + ], + "range": [ + 1000, + 1054 + ], + "loc": { + "start": { + "line": 54, + "column": 68 + }, + "end": { + "line": 56, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 938, + 1054 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 56, + "column": 7 + } + } + } + ], + "range": [ + 874, + 1060 + ], + "loc": { + "start": { + "line": 52, + "column": 11 + }, + "end": { + "line": 57, + "column": 5 + } + } + }, + "range": [ + 805, + 1060 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 57, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1073, + 1077 + ], + "loc": { + "start": { + "line": 59, + "column": 11 + }, + "end": { + "line": 59, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 1078, + 1084 + ], + "loc": { + "start": { + "line": 59, + "column": 16 + }, + "end": { + "line": 59, + "column": 22 + } + } + }, + "range": [ + 1073, + 1084 + ], + "loc": { + "start": { + "line": 59, + "column": 11 + }, + "end": { + "line": 59, + "column": 22 + } + } + }, + "range": [ + 1066, + 1085 + ], + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 23 + } + } + } + ], + "range": [ + 743, + 1089 + ], + "loc": { + "start": { + "line": 45, + "column": 14 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 740, + 1089 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 731, + 1089 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 60, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 696, + 728 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1093, + 1125 + ], + "loc": { + "start": { + "line": 62, + "column": 2 + }, + "end": { + "line": 64, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "errorType", + "range": [ + 1132, + 1141 + ], + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1154, + 1158 + ], + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 66, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_errorType", + "range": [ + 1159, + 1169 + ], + "loc": { + "start": { + "line": 66, + "column": 13 + }, + "end": { + "line": 66, + "column": 23 + } + } + }, + "range": [ + 1154, + 1169 + ], + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 66, + "column": 23 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1186, + 1190 + ], + "loc": { + "start": { + "line": 67, + "column": 13 + }, + "end": { + "line": 67, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_errorType", + "range": [ + 1191, + 1201 + ], + "loc": { + "start": { + "line": 67, + "column": 18 + }, + "end": { + "line": 67, + "column": 28 + } + } + }, + "range": [ + 1186, + 1201 + ], + "loc": { + "start": { + "line": 67, + "column": 13 + }, + "end": { + "line": 67, + "column": 28 + } + } + }, + "range": [ + 1179, + 1202 + ], + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 29 + } + } + } + ], + "range": [ + 1171, + 1208 + ], + "loc": { + "start": { + "line": 66, + "column": 25 + }, + "end": { + "line": 68, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1150, + 1208 + ], + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 68, + "column": 5 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1218, + 1222 + ], + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawError", + "range": [ + 1223, + 1232 + ], + "loc": { + "start": { + "line": 70, + "column": 13 + }, + "end": { + "line": 70, + "column": 22 + } + } + }, + "range": [ + 1218, + 1232 + ], + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 22 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1242, + 1246 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_errorType", + "range": [ + 1247, + 1257 + ], + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 21 + } + } + }, + "range": [ + 1242, + 1257 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 21 + } + } + }, + "right": { + "type": "ConditionalExpression", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1261, + 1265 + ], + "loc": { + "start": { + "line": 71, + "column": 25 + }, + "end": { + "line": 71, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawError", + "range": [ + 1266, + 1275 + ], + "loc": { + "start": { + "line": 71, + "column": 30 + }, + "end": { + "line": 71, + "column": 39 + } + } + }, + "range": [ + 1261, + 1275 + ], + "loc": { + "start": { + "line": 71, + "column": 25 + }, + "end": { + "line": 71, + "column": 39 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1279, + 1283 + ], + "loc": { + "start": { + "line": 71, + "column": 43 + }, + "end": { + "line": 71, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawError", + "range": [ + 1284, + 1293 + ], + "loc": { + "start": { + "line": 71, + "column": 48 + }, + "end": { + "line": 71, + "column": 57 + } + } + }, + "range": [ + 1279, + 1293 + ], + "loc": { + "start": { + "line": 71, + "column": 43 + }, + "end": { + "line": 71, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 1294, + 1298 + ], + "loc": { + "start": { + "line": 71, + "column": 58 + }, + "end": { + "line": 71, + "column": 62 + } + } + }, + "range": [ + 1279, + 1298 + ], + "loc": { + "start": { + "line": 71, + "column": 43 + }, + "end": { + "line": 71, + "column": 62 + } + } + }, + "range": [ + 1261, + 1298 + ], + "loc": { + "start": { + "line": 71, + "column": 25 + }, + "end": { + "line": 71, + "column": 62 + } + } + }, + "consequent": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1302, + 1306 + ], + "loc": { + "start": { + "line": 71, + "column": 66 + }, + "end": { + "line": 71, + "column": 70 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawError", + "range": [ + 1307, + 1316 + ], + "loc": { + "start": { + "line": 71, + "column": 71 + }, + "end": { + "line": 71, + "column": 80 + } + } + }, + "range": [ + 1302, + 1316 + ], + "loc": { + "start": { + "line": 71, + "column": 66 + }, + "end": { + "line": 71, + "column": 80 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 1317, + 1321 + ], + "loc": { + "start": { + "line": 71, + "column": 81 + }, + "end": { + "line": 71, + "column": 85 + } + } + }, + "range": [ + 1302, + 1321 + ], + "loc": { + "start": { + "line": 71, + "column": 66 + }, + "end": { + "line": 71, + "column": 85 + } + } + }, + "alternate": { + "type": "Literal", + "value": "Error", + "raw": "'Error'", + "range": [ + 1324, + 1331 + ], + "loc": { + "start": { + "line": 71, + "column": 88 + }, + "end": { + "line": 71, + "column": 95 + } + } + }, + "range": [ + 1260, + 1331 + ], + "loc": { + "start": { + "line": 71, + "column": 24 + }, + "end": { + "line": 71, + "column": 95 + } + } + }, + "range": [ + 1242, + 1331 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 95 + } + } + }, + "range": [ + 1242, + 1332 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 96 + } + } + } + ], + "range": [ + 1234, + 1338 + ], + "loc": { + "start": { + "line": 70, + "column": 24 + }, + "end": { + "line": 72, + "column": 5 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "response", + "range": [ + 1356, + 1364 + ], + "loc": { + "start": { + "line": 73, + "column": 10 + }, + "end": { + "line": 73, + "column": 18 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 1367, + 1371 + ], + "loc": { + "start": { + "line": 73, + "column": 21 + }, + "end": { + "line": 73, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "parse", + "range": [ + 1372, + 1377 + ], + "loc": { + "start": { + "line": 73, + "column": 26 + }, + "end": { + "line": 73, + "column": 31 + } + } + }, + "range": [ + 1367, + 1377 + ], + "loc": { + "start": { + "line": 73, + "column": 21 + }, + "end": { + "line": 73, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1378, + 1382 + ], + "loc": { + "start": { + "line": 73, + "column": 32 + }, + "end": { + "line": 73, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawData", + "range": [ + 1383, + 1391 + ], + "loc": { + "start": { + "line": 73, + "column": 37 + }, + "end": { + "line": 73, + "column": 45 + } + } + }, + "range": [ + 1378, + 1391 + ], + "loc": { + "start": { + "line": 73, + "column": 32 + }, + "end": { + "line": 73, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Payload", + "range": [ + 1392, + 1399 + ], + "loc": { + "start": { + "line": 73, + "column": 46 + }, + "end": { + "line": 73, + "column": 53 + } + } + }, + "range": [ + 1378, + 1399 + ], + "loc": { + "start": { + "line": 73, + "column": 32 + }, + "end": { + "line": 73, + "column": 53 + } + } + } + ], + "range": [ + 1367, + 1400 + ], + "loc": { + "start": { + "line": 73, + "column": 21 + }, + "end": { + "line": 73, + "column": 54 + } + } + }, + "range": [ + 1356, + 1400 + ], + "loc": { + "start": { + "line": 73, + "column": 10 + }, + "end": { + "line": 73, + "column": 54 + } + } + } + ], + "kind": "var", + "range": [ + 1352, + 1401 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 55 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "response", + "range": [ + 1412, + 1420 + ], + "loc": { + "start": { + "line": 74, + "column": 10 + }, + "end": { + "line": 74, + "column": 18 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 1431, + 1439 + ], + "loc": { + "start": { + "line": 74, + "column": 29 + }, + "end": { + "line": 74, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "errorType", + "range": [ + 1440, + 1449 + ], + "loc": { + "start": { + "line": 74, + "column": 38 + }, + "end": { + "line": 74, + "column": 47 + } + } + }, + "range": [ + 1431, + 1449 + ], + "loc": { + "start": { + "line": 74, + "column": 29 + }, + "end": { + "line": 74, + "column": 47 + } + } + }, + "prefix": true, + "range": [ + 1424, + 1449 + ], + "loc": { + "start": { + "line": 74, + "column": 22 + }, + "end": { + "line": 74, + "column": 47 + } + } + }, + "right": { + "type": "Literal", + "value": "undefined", + "raw": "'undefined'", + "range": [ + 1454, + 1465 + ], + "loc": { + "start": { + "line": 74, + "column": 52 + }, + "end": { + "line": 74, + "column": 63 + } + } + }, + "range": [ + 1424, + 1465 + ], + "loc": { + "start": { + "line": 74, + "column": 22 + }, + "end": { + "line": 74, + "column": 63 + } + } + }, + "range": [ + 1412, + 1465 + ], + "loc": { + "start": { + "line": 74, + "column": 10 + }, + "end": { + "line": 74, + "column": 63 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1477, + 1481 + ], + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_errorType", + "range": [ + 1482, + 1492 + ], + "loc": { + "start": { + "line": 75, + "column": 13 + }, + "end": { + "line": 75, + "column": 23 + } + } + }, + "range": [ + 1477, + 1492 + ], + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 23 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 1495, + 1503 + ], + "loc": { + "start": { + "line": 75, + "column": 26 + }, + "end": { + "line": 75, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "errorType", + "range": [ + 1504, + 1513 + ], + "loc": { + "start": { + "line": 75, + "column": 35 + }, + "end": { + "line": 75, + "column": 44 + } + } + }, + "range": [ + 1495, + 1513 + ], + "loc": { + "start": { + "line": 75, + "column": 26 + }, + "end": { + "line": 75, + "column": 44 + } + } + }, + "range": [ + 1477, + 1513 + ], + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 44 + } + } + }, + "range": [ + 1477, + 1514 + ], + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 45 + } + } + } + ], + "range": [ + 1467, + 1522 + ], + "loc": { + "start": { + "line": 74, + "column": 65 + }, + "end": { + "line": 76, + "column": 7 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1538, + 1542 + ], + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_errorType", + "range": [ + 1543, + 1553 + ], + "loc": { + "start": { + "line": 77, + "column": 13 + }, + "end": { + "line": 77, + "column": 23 + } + } + }, + "range": [ + 1538, + 1553 + ], + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 23 + } + } + }, + "right": { + "type": "Literal", + "value": "Error", + "raw": "'Error'", + "range": [ + 1556, + 1563 + ], + "loc": { + "start": { + "line": 77, + "column": 26 + }, + "end": { + "line": 77, + "column": 33 + } + } + }, + "range": [ + 1538, + 1563 + ], + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 33 + } + } + }, + "range": [ + 1538, + 1564 + ], + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 34 + } + } + } + ], + "range": [ + 1528, + 1572 + ], + "loc": { + "start": { + "line": 76, + "column": 13 + }, + "end": { + "line": 78, + "column": 7 + } + } + }, + "range": [ + 1408, + 1572 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 78, + "column": 7 + } + } + } + ], + "range": [ + 1344, + 1578 + ], + "loc": { + "start": { + "line": 72, + "column": 11 + }, + "end": { + "line": 79, + "column": 5 + } + } + }, + "range": [ + 1214, + 1578 + ], + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 79, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1591, + 1595 + ], + "loc": { + "start": { + "line": 81, + "column": 11 + }, + "end": { + "line": 81, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_errorType", + "range": [ + 1596, + 1606 + ], + "loc": { + "start": { + "line": 81, + "column": 16 + }, + "end": { + "line": 81, + "column": 26 + } + } + }, + "range": [ + 1591, + 1606 + ], + "loc": { + "start": { + "line": 81, + "column": 11 + }, + "end": { + "line": 81, + "column": 26 + } + } + }, + "range": [ + 1584, + 1607 + ], + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 27 + } + } + } + ], + "range": [ + 1144, + 1611 + ], + "loc": { + "start": { + "line": 65, + "column": 18 + }, + "end": { + "line": 82, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1141, + 1611 + ], + "loc": { + "start": { + "line": 65, + "column": 15 + }, + "end": { + "line": 82, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1128, + 1611 + ], + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 82, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1093, + 1125 + ], + "loc": { + "start": { + "line": 62, + "column": 2 + }, + "end": { + "line": 64, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1615, + 1647 + ], + "loc": { + "start": { + "line": 84, + "column": 2 + }, + "end": { + "line": 86, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "statusCode", + "range": [ + 1654, + 1664 + ], + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1677, + 1681 + ], + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 88, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_statusCode", + "range": [ + 1682, + 1693 + ], + "loc": { + "start": { + "line": 88, + "column": 13 + }, + "end": { + "line": 88, + "column": 24 + } + } + }, + "range": [ + 1677, + 1693 + ], + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 88, + "column": 24 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1710, + 1714 + ], + "loc": { + "start": { + "line": 89, + "column": 13 + }, + "end": { + "line": 89, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_statusCode", + "range": [ + 1715, + 1726 + ], + "loc": { + "start": { + "line": 89, + "column": 18 + }, + "end": { + "line": 89, + "column": 29 + } + } + }, + "range": [ + 1710, + 1726 + ], + "loc": { + "start": { + "line": 89, + "column": 13 + }, + "end": { + "line": 89, + "column": 29 + } + } + }, + "range": [ + 1703, + 1727 + ], + "loc": { + "start": { + "line": 89, + "column": 6 + }, + "end": { + "line": 89, + "column": 30 + } + } + } + ], + "range": [ + 1695, + 1733 + ], + "loc": { + "start": { + "line": 88, + "column": 26 + }, + "end": { + "line": 90, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1673, + 1733 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 90, + "column": 5 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1743, + 1747 + ], + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 92, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawData", + "range": [ + 1748, + 1756 + ], + "loc": { + "start": { + "line": 92, + "column": 13 + }, + "end": { + "line": 92, + "column": 21 + } + } + }, + "range": [ + 1743, + 1756 + ], + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 92, + "column": 21 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1766, + 1770 + ], + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_statusCode", + "range": [ + 1771, + 1782 + ], + "loc": { + "start": { + "line": 93, + "column": 11 + }, + "end": { + "line": 93, + "column": 22 + } + } + }, + "range": [ + 1766, + 1782 + ], + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 22 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1785, + 1789 + ], + "loc": { + "start": { + "line": 93, + "column": 25 + }, + "end": { + "line": 93, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawData", + "range": [ + 1790, + 1798 + ], + "loc": { + "start": { + "line": 93, + "column": 30 + }, + "end": { + "line": 93, + "column": 38 + } + } + }, + "range": [ + 1785, + 1798 + ], + "loc": { + "start": { + "line": 93, + "column": 25 + }, + "end": { + "line": 93, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "StatusCode", + "range": [ + 1799, + 1809 + ], + "loc": { + "start": { + "line": 93, + "column": 39 + }, + "end": { + "line": 93, + "column": 49 + } + } + }, + "range": [ + 1785, + 1809 + ], + "loc": { + "start": { + "line": 93, + "column": 25 + }, + "end": { + "line": 93, + "column": 49 + } + } + }, + "range": [ + 1766, + 1809 + ], + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 49 + } + } + }, + "range": [ + 1766, + 1810 + ], + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 50 + } + } + } + ], + "range": [ + 1758, + 1816 + ], + "loc": { + "start": { + "line": 92, + "column": 23 + }, + "end": { + "line": 94, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1739, + 1816 + ], + "loc": { + "start": { + "line": 92, + "column": 4 + }, + "end": { + "line": 94, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1829, + 1833 + ], + "loc": { + "start": { + "line": 96, + "column": 11 + }, + "end": { + "line": 96, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_statusCode", + "range": [ + 1834, + 1845 + ], + "loc": { + "start": { + "line": 96, + "column": 16 + }, + "end": { + "line": 96, + "column": 27 + } + } + }, + "range": [ + 1829, + 1845 + ], + "loc": { + "start": { + "line": 96, + "column": 11 + }, + "end": { + "line": 96, + "column": 27 + } + } + }, + "range": [ + 1822, + 1846 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 96, + "column": 28 + } + } + } + ], + "range": [ + 1667, + 1850 + ], + "loc": { + "start": { + "line": 87, + "column": 19 + }, + "end": { + "line": 97, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1664, + 1850 + ], + "loc": { + "start": { + "line": 87, + "column": 16 + }, + "end": { + "line": 97, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1650, + 1850 + ], + "loc": { + "start": { + "line": 87, + "column": 2 + }, + "end": { + "line": 97, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1615, + 1647 + ], + "loc": { + "start": { + "line": 84, + "column": 2 + }, + "end": { + "line": 86, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 171, + 1852 + ], + "loc": { + "start": { + "line": 12, + "column": 45 + }, + "end": { + "line": 98, + "column": 1 + } + } + }, + "range": [ + 133, + 1852 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 98, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Response object\n ", + "range": [ + 99, + 125 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 126, + 1852 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 98, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Response object\n ", + "range": [ + 99, + 125 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 1852 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 98, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Response object\n ", + "range": [ + 99, + 125 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Request} request\n * @param {Object} data\n * @param {String} error\n ", + "range": [ + 175, + 267 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 367, + 399 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 696, + 728 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1093, + 1125 + ], + "loc": { + "start": { + "line": 62, + "column": 2 + }, + "end": { + "line": 64, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1615, + 1647 + ], + "loc": { + "start": { + "line": 84, + "column": 2 + }, + "end": { + "line": 86, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/ast/source/Resource/LocalRequest.js.json b/docs-api/deep-resource/ast/source/Resource/LocalRequest.js.json new file mode 100644 index 00000000..ae4fd778 --- /dev/null +++ b/docs-api/deep-resource/ast/source/Resource/LocalRequest.js.json @@ -0,0 +1,2737 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "SuperagentResponse", + "range": [ + 69, + 87 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 26 + } + } + }, + "imported": { + "type": "Identifier", + "name": "SuperagentResponse", + "range": [ + 69, + 87 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 26 + } + } + }, + "range": [ + 69, + 87 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 26 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./SuperagentResponse", + "raw": "'./SuperagentResponse'", + "range": [ + 94, + 116 + ], + "loc": { + "start": { + "line": 7, + "column": 33 + }, + "end": { + "line": 7, + "column": 55 + } + } + }, + "range": [ + 61, + 117 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 56 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Request", + "range": [ + 126, + 133 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Request", + "range": [ + 126, + 133 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + } + } + }, + "range": [ + 126, + 133 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Request", + "raw": "'./Request'", + "range": [ + 140, + 151 + ], + "loc": { + "start": { + "line": 8, + "column": 22 + }, + "end": { + "line": 8, + "column": 33 + } + } + }, + "range": [ + 118, + 152 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 34 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Action", + "range": [ + 161, + 167 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 14 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Action", + "range": [ + 161, + 167 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 14 + } + } + }, + "range": [ + 161, + 167 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 14 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Action", + "raw": "'./Action'", + "range": [ + 174, + 184 + ], + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 31 + } + } + }, + "range": [ + 153, + 185 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 32 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Http", + "range": [ + 193, + 197 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 11 + } + } + }, + "range": [ + 193, + 197 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "superagent", + "raw": "'superagent'", + "range": [ + 203, + 215 + ], + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 29 + } + } + }, + "range": [ + 186, + 216 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 30 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Resource request instance\n ", + "range": [ + 218, + 254 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "LocalRequest", + "range": [ + 268, + 280 + ], + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 25 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Request", + "range": [ + 289, + 296 + ], + "loc": { + "start": { + "line": 15, + "column": 34 + }, + "end": { + "line": 15, + "column": 41 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 301, + 312 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 316, + 320 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 313, + 320 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 328, + 333 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 337, + 341 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 334, + 341 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 328, + 342 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 328, + 343 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 322, + 347 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 312, + 347 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 301, + 347 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {LocalRequest|*}\n ", + "range": [ + 351, + 423 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_send", + "range": [ + 426, + 431 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 7 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 432, + 440 + ], + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 443, + 447 + ], + "loc": { + "start": { + "line": 24, + "column": 19 + }, + "end": { + "line": 24, + "column": 23 + } + } + }, + "range": [ + 432, + 447 + ], + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "actionType", + "range": [ + 459, + 469 + ], + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 18 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 472, + 476 + ], + "loc": { + "start": { + "line": 25, + "column": 21 + }, + "end": { + "line": 25, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 477, + 484 + ], + "loc": { + "start": { + "line": 25, + "column": 26 + }, + "end": { + "line": 25, + "column": 33 + } + } + }, + "range": [ + 472, + 484 + ], + "loc": { + "start": { + "line": 25, + "column": 21 + }, + "end": { + "line": 25, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 485, + 489 + ], + "loc": { + "start": { + "line": 25, + "column": 34 + }, + "end": { + "line": 25, + "column": 38 + } + } + }, + "range": [ + 472, + 489 + ], + "loc": { + "start": { + "line": 25, + "column": 21 + }, + "end": { + "line": 25, + "column": 38 + } + } + }, + "range": [ + 459, + 489 + ], + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 38 + } + } + } + ], + "kind": "let", + "range": [ + 455, + 490 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 39 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "Identifier", + "name": "actionType", + "range": [ + 500, + 510 + ], + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 18 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Action", + "range": [ + 515, + 521 + ], + "loc": { + "start": { + "line": 27, + "column": 23 + }, + "end": { + "line": 27, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "LAMBDA", + "range": [ + 522, + 528 + ], + "loc": { + "start": { + "line": 27, + "column": 30 + }, + "end": { + "line": 27, + "column": 36 + } + } + }, + "range": [ + 515, + 528 + ], + "loc": { + "start": { + "line": 27, + "column": 23 + }, + "end": { + "line": 27, + "column": 36 + } + } + }, + "range": [ + 500, + 528 + ], + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 36 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "data", + "range": [ + 542, + 546 + ], + "loc": { + "start": { + "line": 28, + "column": 10 + }, + "end": { + "line": 28, + "column": 14 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "lambda", + "range": [ + 559, + 565 + ], + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 14 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 567, + 571 + ], + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 572, + 579 + ], + "loc": { + "start": { + "line": 29, + "column": 21 + }, + "end": { + "line": 29, + "column": 28 + } + } + }, + "range": [ + 567, + 579 + ], + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "source", + "range": [ + 580, + 586 + ], + "loc": { + "start": { + "line": 29, + "column": 29 + }, + "end": { + "line": 29, + "column": 35 + } + } + }, + "range": [ + 567, + 586 + ], + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "original", + "range": [ + 587, + 595 + ], + "loc": { + "start": { + "line": 29, + "column": 36 + }, + "end": { + "line": 29, + "column": 44 + } + } + }, + "range": [ + 567, + 595 + ], + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 44 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 559, + 595 + ], + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 44 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "payload", + "range": [ + 605, + 612 + ], + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 15 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 614, + 618 + ], + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "payload", + "range": [ + 619, + 626 + ], + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 29 + } + } + }, + "range": [ + 614, + 626 + ], + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 29 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 605, + 626 + ], + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 29 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "method", + "range": [ + 636, + 642 + ], + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 14 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 644, + 648 + ], + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "_method", + "range": [ + 649, + 656 + ], + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 28 + } + } + }, + "range": [ + 644, + 656 + ], + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 28 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 636, + 656 + ], + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 28 + } + } + } + ], + "range": [ + 549, + 665 + ], + "loc": { + "start": { + "line": 28, + "column": 17 + }, + "end": { + "line": 32, + "column": 7 + } + } + }, + "range": [ + 542, + 665 + ], + "loc": { + "start": { + "line": 28, + "column": 10 + }, + "end": { + "line": 32, + "column": 7 + } + } + } + ], + "kind": "let", + "range": [ + 538, + 666 + ], + "loc": { + "start": { + "line": 28, + "column": 6 + }, + "end": { + "line": 32, + "column": 8 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Http", + "range": [ + 674, + 678 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "post", + "range": [ + 679, + 683 + ], + "loc": { + "start": { + "line": 34, + "column": 11 + }, + "end": { + "line": 34, + "column": 15 + } + } + }, + "range": [ + 674, + 683 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LocalRequest", + "range": [ + 684, + 696 + ], + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "LOCAL_LAMBDA_ENDPOINT", + "range": [ + 697, + 718 + ], + "loc": { + "start": { + "line": 34, + "column": 29 + }, + "end": { + "line": 34, + "column": 50 + } + } + }, + "range": [ + 684, + 718 + ], + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 34, + "column": 50 + } + } + } + ], + "range": [ + 674, + 719 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 51 + } + } + }, + "property": { + "type": "Identifier", + "name": "send", + "range": [ + 729, + 733 + ], + "loc": { + "start": { + "line": 35, + "column": 9 + }, + "end": { + "line": 35, + "column": 13 + } + } + }, + "range": [ + 674, + 733 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 35, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "data", + "range": [ + 734, + 738 + ], + "loc": { + "start": { + "line": 35, + "column": 14 + }, + "end": { + "line": 35, + "column": 18 + } + } + } + ], + "range": [ + 674, + 739 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 35, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "end", + "range": [ + 749, + 752 + ], + "loc": { + "start": { + "line": 36, + "column": 9 + }, + "end": { + "line": 36, + "column": 12 + } + } + }, + "range": [ + 674, + 752 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 36, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 762, + 767 + ], + "loc": { + "start": { + "line": 36, + "column": 22 + }, + "end": { + "line": 36, + "column": 27 + } + } + }, + { + "type": "Identifier", + "name": "response", + "range": [ + 769, + 777 + ], + "loc": { + "start": { + "line": 36, + "column": 29 + }, + "end": { + "line": 36, + "column": 37 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 791, + 799 + ], + "loc": { + "start": { + "line": 37, + "column": 10 + }, + "end": { + "line": 37, + "column": 18 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 803, + 811 + ], + "loc": { + "start": { + "line": 37, + "column": 22 + }, + "end": { + "line": 37, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "SuperagentResponse", + "range": [ + 816, + 834 + ], + "loc": { + "start": { + "line": 37, + "column": 35 + }, + "end": { + "line": 37, + "column": 53 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 835, + 839 + ], + "loc": { + "start": { + "line": 37, + "column": 54 + }, + "end": { + "line": 37, + "column": 58 + } + } + }, + { + "type": "Identifier", + "name": "response", + "range": [ + 841, + 849 + ], + "loc": { + "start": { + "line": 37, + "column": 60 + }, + "end": { + "line": 37, + "column": 68 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 851, + 856 + ], + "loc": { + "start": { + "line": 37, + "column": 70 + }, + "end": { + "line": 37, + "column": 75 + } + } + } + ], + "range": [ + 812, + 857 + ], + "loc": { + "start": { + "line": 37, + "column": 31 + }, + "end": { + "line": 37, + "column": 76 + } + } + } + ], + "range": [ + 803, + 858 + ], + "loc": { + "start": { + "line": 37, + "column": 22 + }, + "end": { + "line": 37, + "column": 77 + } + } + }, + "range": [ + 791, + 858 + ], + "loc": { + "start": { + "line": 37, + "column": 10 + }, + "end": { + "line": 37, + "column": 77 + } + } + }, + "range": [ + 791, + 859 + ], + "loc": { + "start": { + "line": 37, + "column": 10 + }, + "end": { + "line": 37, + "column": 78 + } + } + } + ], + "range": [ + 779, + 869 + ], + "loc": { + "start": { + "line": 36, + "column": 39 + }, + "end": { + "line": 38, + "column": 9 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 753, + 869 + ], + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 38, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 870, + 874 + ], + "loc": { + "start": { + "line": 38, + "column": 10 + }, + "end": { + "line": 38, + "column": 14 + } + } + }, + "range": [ + 753, + 874 + ], + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 38, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 875, + 879 + ], + "loc": { + "start": { + "line": 38, + "column": 15 + }, + "end": { + "line": 38, + "column": 19 + } + } + } + ], + "range": [ + 753, + 880 + ], + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 38, + "column": 20 + } + } + } + ], + "range": [ + 674, + 881 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 38, + "column": 21 + } + } + }, + "range": [ + 674, + 882 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 38, + "column": 22 + } + } + } + ], + "range": [ + 530, + 888 + ], + "loc": { + "start": { + "line": 27, + "column": 38 + }, + "end": { + "line": 39, + "column": 5 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 909, + 913 + ], + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 40, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "prototype", + "range": [ + 914, + 923 + ], + "loc": { + "start": { + "line": 40, + "column": 18 + }, + "end": { + "line": 40, + "column": 27 + } + } + }, + "range": [ + 909, + 923 + ], + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 40, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "useNative", + "range": [ + 924, + 933 + ], + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 37 + } + } + }, + "range": [ + 909, + 933 + ], + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 40, + "column": 37 + } + } + }, + "arguments": [], + "range": [ + 909, + 935 + ], + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 40, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "_send", + "range": [ + 936, + 941 + ], + "loc": { + "start": { + "line": 40, + "column": 40 + }, + "end": { + "line": 40, + "column": 45 + } + } + }, + "range": [ + 909, + 941 + ], + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 40, + "column": 45 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "arguments", + "range": [ + 945, + 954 + ], + "loc": { + "start": { + "line": 40, + "column": 49 + }, + "end": { + "line": 40, + "column": 58 + } + } + }, + "range": [ + 942, + 954 + ], + "loc": { + "start": { + "line": 40, + "column": 46 + }, + "end": { + "line": 40, + "column": 58 + } + } + } + ], + "range": [ + 909, + 955 + ], + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 40, + "column": 59 + } + } + }, + "range": [ + 902, + 956 + ], + "loc": { + "start": { + "line": 40, + "column": 6 + }, + "end": { + "line": 40, + "column": 60 + } + } + } + ], + "range": [ + 894, + 962 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 41, + "column": 5 + } + } + }, + "range": [ + 496, + 962 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 41, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 975, + 979 + ], + "loc": { + "start": { + "line": 43, + "column": 11 + }, + "end": { + "line": 43, + "column": 15 + } + } + }, + "range": [ + 968, + 980 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 16 + } + } + } + ], + "range": [ + 449, + 984 + ], + "loc": { + "start": { + "line": 24, + "column": 25 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 431, + 984 + ], + "loc": { + "start": { + "line": 24, + "column": 7 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 426, + 984 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 44, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {LocalRequest|*}\n ", + "range": [ + 351, + 423 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 988, + 1020 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "LOCAL_LAMBDA_ENDPOINT", + "range": [ + 1034, + 1055 + ], + "loc": { + "start": { + "line": 49, + "column": 13 + }, + "end": { + "line": 49, + "column": 34 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "/_/lambda", + "raw": "'/_/lambda'", + "range": [ + 1071, + 1082 + ], + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 50, + "column": 22 + } + } + }, + "range": [ + 1064, + 1083 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 23 + } + } + } + ], + "range": [ + 1058, + 1087 + ], + "loc": { + "start": { + "line": 49, + "column": 37 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1055, + 1087 + ], + "loc": { + "start": { + "line": 49, + "column": 34 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1023, + 1087 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 988, + 1020 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 297, + 1089 + ], + "loc": { + "start": { + "line": 15, + "column": 42 + }, + "end": { + "line": 52, + "column": 1 + } + } + }, + "range": [ + 262, + 1089 + ], + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 52, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Resource request instance\n ", + "range": [ + 218, + 254 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 255, + 1089 + ], + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 52, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Resource request instance\n ", + "range": [ + 218, + 254 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 1089 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 52, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Resource request instance\n ", + "range": [ + 218, + 254 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {LocalRequest|*}\n ", + "range": [ + 351, + 423 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 988, + 1020 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/ast/source/Resource/Request.js.json b/docs-api/deep-resource/ast/source/Resource/Request.js.json new file mode 100644 index 00000000..7981b192 --- /dev/null +++ b/docs-api/deep-resource/ast/source/Resource/Request.js.json @@ -0,0 +1,21049 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "SuperagentResponse", + "range": [ + 69, + 87 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 26 + } + } + }, + "imported": { + "type": "Identifier", + "name": "SuperagentResponse", + "range": [ + 69, + 87 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 26 + } + } + }, + "range": [ + 69, + 87 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 26 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./SuperagentResponse", + "raw": "'./SuperagentResponse'", + "range": [ + 94, + 116 + ], + "loc": { + "start": { + "line": 7, + "column": 33 + }, + "end": { + "line": 7, + "column": 55 + } + } + }, + "range": [ + 61, + 117 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 56 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "LambdaResponse", + "range": [ + 126, + 140 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 22 + } + } + }, + "imported": { + "type": "Identifier", + "name": "LambdaResponse", + "range": [ + 126, + 140 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 22 + } + } + }, + "range": [ + 126, + 140 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 22 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./LambdaResponse", + "raw": "'./LambdaResponse'", + "range": [ + 147, + 165 + ], + "loc": { + "start": { + "line": 8, + "column": 29 + }, + "end": { + "line": 8, + "column": 47 + } + } + }, + "range": [ + 118, + 166 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 48 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Response", + "range": [ + 175, + 183 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 16 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Response", + "range": [ + 175, + 183 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 16 + } + } + }, + "range": [ + 175, + 183 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 16 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Response", + "raw": "'./Response'", + "range": [ + 190, + 202 + ], + "loc": { + "start": { + "line": 9, + "column": 23 + }, + "end": { + "line": 9, + "column": 35 + } + } + }, + "range": [ + 167, + 203 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 36 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 212, + 221 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 212, + 221 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 17 + } + } + }, + "range": [ + 212, + 221 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../Exception/Exception", + "raw": "'../Exception/Exception'", + "range": [ + 228, + 252 + ], + "loc": { + "start": { + "line": 10, + "column": 24 + }, + "end": { + "line": 10, + "column": 48 + } + } + }, + "range": [ + 204, + 253 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 49 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Action", + "range": [ + 262, + 268 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 14 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Action", + "range": [ + 262, + 268 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 14 + } + } + }, + "range": [ + 262, + 268 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 14 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Action", + "raw": "'./Action'", + "range": [ + 275, + 285 + ], + "loc": { + "start": { + "line": 11, + "column": 21 + }, + "end": { + "line": 11, + "column": 31 + } + } + }, + "range": [ + 254, + 286 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 32 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Http", + "range": [ + 294, + 298 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 12, + "column": 11 + } + } + }, + "range": [ + 294, + 298 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 12, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "superagent", + "raw": "'superagent'", + "range": [ + 304, + 316 + ], + "loc": { + "start": { + "line": 12, + "column": 17 + }, + "end": { + "line": 12, + "column": 29 + } + } + }, + "range": [ + 287, + 317 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 30 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "AWS", + "range": [ + 325, + 328 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 13, + "column": 10 + } + } + }, + "range": [ + 325, + 328 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 13, + "column": 10 + } + } + } + ], + "source": { + "type": "Literal", + "value": "aws-sdk", + "raw": "'aws-sdk'", + "range": [ + 334, + 343 + ], + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 13, + "column": 25 + } + } + }, + "range": [ + 318, + 344 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 13, + "column": 26 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "MissingCacheImplementationException", + "range": [ + 353, + 388 + ], + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 43 + } + } + }, + "imported": { + "type": "Identifier", + "name": "MissingCacheImplementationException", + "range": [ + 353, + 388 + ], + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 43 + } + } + }, + "range": [ + 353, + 388 + ], + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 43 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/MissingCacheImplementationException", + "raw": "'./Exception/MissingCacheImplementationException'", + "range": [ + 395, + 444 + ], + "loc": { + "start": { + "line": 14, + "column": 50 + }, + "end": { + "line": 14, + "column": 99 + } + } + }, + "range": [ + 345, + 445 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 100 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "CachedRequestException", + "range": [ + 454, + 476 + ], + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 30 + } + } + }, + "imported": { + "type": "Identifier", + "name": "CachedRequestException", + "range": [ + 454, + 476 + ], + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 30 + } + } + }, + "range": [ + 454, + 476 + ], + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 30 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/CachedRequestException", + "raw": "'./Exception/CachedRequestException'", + "range": [ + 483, + 519 + ], + "loc": { + "start": { + "line": 15, + "column": 37 + }, + "end": { + "line": 15, + "column": 73 + } + } + }, + "range": [ + 446, + 520 + ], + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 74 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "aws4", + "range": [ + 528, + 532 + ], + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 16, + "column": 11 + } + } + }, + "range": [ + 528, + 532 + ], + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 16, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "aws4", + "raw": "'aws4'", + "range": [ + 538, + 544 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 23 + } + } + }, + "range": [ + 521, + 545 + ], + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 16, + "column": 24 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "parseUrl", + "range": [ + 553, + 561 + ], + "loc": { + "start": { + "line": 17, + "column": 7 + }, + "end": { + "line": 17, + "column": 15 + } + } + }, + "range": [ + 553, + 561 + ], + "loc": { + "start": { + "line": 17, + "column": 7 + }, + "end": { + "line": 17, + "column": 15 + } + } + } + ], + "source": { + "type": "Literal", + "value": "parse-url", + "raw": "'parse-url'", + "range": [ + 567, + 578 + ], + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 32 + } + } + }, + "range": [ + 546, + 579 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 17, + "column": 33 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Action request instance\n ", + "range": [ + 581, + 615 + ], + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 21, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Request", + "range": [ + 629, + 636 + ], + "loc": { + "start": { + "line": 22, + "column": 13 + }, + "end": { + "line": 22, + "column": 20 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 738, + 749 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 28, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "action", + "range": [ + 750, + 756 + ], + "loc": { + "start": { + "line": 28, + "column": 14 + }, + "end": { + "line": 28, + "column": 20 + } + } + }, + { + "type": "Identifier", + "name": "payload", + "range": [ + 758, + 765 + ], + "loc": { + "start": { + "line": 28, + "column": 22 + }, + "end": { + "line": 28, + "column": 29 + } + } + }, + { + "type": "Identifier", + "name": "method", + "range": [ + 767, + 773 + ], + "loc": { + "start": { + "line": 28, + "column": 31 + }, + "end": { + "line": 28, + "column": 37 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 781, + 785 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 786, + 793 + ], + "loc": { + "start": { + "line": 29, + "column": 9 + }, + "end": { + "line": 29, + "column": 16 + } + } + }, + "range": [ + 781, + 793 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "action", + "range": [ + 796, + 802 + ], + "loc": { + "start": { + "line": 29, + "column": 19 + }, + "end": { + "line": 29, + "column": 25 + } + } + }, + "range": [ + 781, + 802 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 25 + } + } + }, + "range": [ + 781, + 803 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 26 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 808, + 812 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_payload", + "range": [ + 813, + 821 + ], + "loc": { + "start": { + "line": 30, + "column": 9 + }, + "end": { + "line": 30, + "column": 17 + } + } + }, + "range": [ + 808, + 821 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 17 + } + } + }, + "right": { + "type": "Identifier", + "name": "payload", + "range": [ + 824, + 831 + ], + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 27 + } + } + }, + "range": [ + 808, + 831 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 27 + } + } + }, + "range": [ + 808, + 832 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 837, + 841 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_method", + "range": [ + 842, + 849 + ], + "loc": { + "start": { + "line": 31, + "column": 9 + }, + "end": { + "line": 31, + "column": 16 + } + } + }, + "range": [ + 837, + 849 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 16 + } + } + }, + "right": { + "type": "Identifier", + "name": "method", + "range": [ + 852, + 858 + ], + "loc": { + "start": { + "line": 31, + "column": 19 + }, + "end": { + "line": 31, + "column": 25 + } + } + }, + "range": [ + 837, + 858 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 25 + } + } + }, + "range": [ + 837, + 859 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 26 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 864, + 868 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_lambda", + "range": [ + 869, + 876 + ], + "loc": { + "start": { + "line": 32, + "column": 9 + }, + "end": { + "line": 32, + "column": 16 + } + } + }, + "range": [ + 864, + 876 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 879, + 883 + ], + "loc": { + "start": { + "line": 32, + "column": 19 + }, + "end": { + "line": 32, + "column": 23 + } + } + }, + "range": [ + 864, + 883 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 23 + } + } + }, + "range": [ + 864, + 884 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 24 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 890, + 894 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cacheImpl", + "range": [ + 895, + 905 + ], + "loc": { + "start": { + "line": 34, + "column": 9 + }, + "end": { + "line": 34, + "column": 19 + } + } + }, + "range": [ + 890, + 905 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 908, + 912 + ], + "loc": { + "start": { + "line": 34, + "column": 22 + }, + "end": { + "line": 34, + "column": 26 + } + } + }, + "range": [ + 890, + 912 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 26 + } + } + }, + "range": [ + 890, + 913 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 27 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 918, + 922 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cacheTtl", + "range": [ + 923, + 932 + ], + "loc": { + "start": { + "line": 35, + "column": 9 + }, + "end": { + "line": 35, + "column": 18 + } + } + }, + "range": [ + 918, + 932 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 18 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Request", + "range": [ + 935, + 942 + ], + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "TTL_FOREVER", + "range": [ + 943, + 954 + ], + "loc": { + "start": { + "line": 35, + "column": 29 + }, + "end": { + "line": 35, + "column": 40 + } + } + }, + "range": [ + 935, + 954 + ], + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 40 + } + } + }, + "range": [ + 918, + 954 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 40 + } + } + }, + "range": [ + 918, + 955 + ], + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 41 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 960, + 964 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cached", + "range": [ + 965, + 972 + ], + "loc": { + "start": { + "line": 36, + "column": 9 + }, + "end": { + "line": 36, + "column": 16 + } + } + }, + "range": [ + 960, + 972 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 975, + 980 + ], + "loc": { + "start": { + "line": 36, + "column": 19 + }, + "end": { + "line": 36, + "column": 24 + } + } + }, + "range": [ + 960, + 980 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 24 + } + } + }, + "range": [ + 960, + 981 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 25 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 987, + 991 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_native", + "range": [ + 992, + 999 + ], + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 16 + } + } + }, + "range": [ + 987, + 999 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1002, + 1006 + ], + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 38, + "column": 23 + } + } + }, + "range": [ + 987, + 1006 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 23 + } + } + }, + "range": [ + 987, + 1007 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 24 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " @todo: change to false on an stable API Gateway version", + "range": [ + 1008, + 1066 + ], + "loc": { + "start": { + "line": 38, + "column": 25 + }, + "end": { + "line": 38, + "column": 83 + } + } + } + ] + } + ], + "range": [ + 775, + 1070 + ], + "loc": { + "start": { + "line": 28, + "column": 39 + }, + "end": { + "line": 39, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 749, + 1070 + ], + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 39, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 738, + 1070 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 39, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Action} action\n * @param {Object} payload\n * @param {String} method\n ", + "range": [ + 641, + 735 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 1074, + 1107 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "native", + "range": [ + 1114, + 1120 + ], + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1136, + 1140 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_native", + "range": [ + 1141, + 1148 + ], + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 23 + } + } + }, + "range": [ + 1136, + 1148 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 23 + } + } + }, + "range": [ + 1129, + 1149 + ], + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 24 + } + } + } + ], + "range": [ + 1123, + 1153 + ], + "loc": { + "start": { + "line": 44, + "column": 15 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1120, + 1153 + ], + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1110, + 1153 + ], + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 46, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: change to false on an stable API Gateway version", + "range": [ + 1008, + 1066 + ], + "loc": { + "start": { + "line": 38, + "column": 25 + }, + "end": { + "line": 38, + "column": 83 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 1074, + 1107 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 1157, + 1190 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "useDirectCall", + "range": [ + 1193, + 1206 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 51, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1215, + 1219 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_native", + "range": [ + 1220, + 1227 + ], + "loc": { + "start": { + "line": 52, + "column": 9 + }, + "end": { + "line": 52, + "column": 16 + } + } + }, + "range": [ + 1215, + 1227 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1230, + 1234 + ], + "loc": { + "start": { + "line": 52, + "column": 19 + }, + "end": { + "line": 52, + "column": 23 + } + } + }, + "range": [ + 1215, + 1234 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 23 + } + } + }, + "range": [ + 1215, + 1235 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 24 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 1247, + 1251 + ], + "loc": { + "start": { + "line": 53, + "column": 11 + }, + "end": { + "line": 53, + "column": 15 + } + } + }, + "range": [ + 1240, + 1252 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 16 + } + } + } + ], + "range": [ + 1209, + 1256 + ], + "loc": { + "start": { + "line": 51, + "column": 18 + }, + "end": { + "line": 54, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1206, + 1256 + ], + "loc": { + "start": { + "line": 51, + "column": 15 + }, + "end": { + "line": 54, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1193, + 1256 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 54, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 1157, + 1190 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 1260, + 1293 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 58, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "isCached", + "range": [ + 1300, + 1308 + ], + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1324, + 1328 + ], + "loc": { + "start": { + "line": 60, + "column": 11 + }, + "end": { + "line": 60, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cacheImpl", + "range": [ + 1329, + 1339 + ], + "loc": { + "start": { + "line": 60, + "column": 16 + }, + "end": { + "line": 60, + "column": 26 + } + } + }, + "range": [ + 1324, + 1339 + ], + "loc": { + "start": { + "line": 60, + "column": 11 + }, + "end": { + "line": 60, + "column": 26 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1343, + 1347 + ], + "loc": { + "start": { + "line": 60, + "column": 30 + }, + "end": { + "line": 60, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cached", + "range": [ + 1348, + 1355 + ], + "loc": { + "start": { + "line": 60, + "column": 35 + }, + "end": { + "line": 60, + "column": 42 + } + } + }, + "range": [ + 1343, + 1355 + ], + "loc": { + "start": { + "line": 60, + "column": 30 + }, + "end": { + "line": 60, + "column": 42 + } + } + }, + "range": [ + 1324, + 1355 + ], + "loc": { + "start": { + "line": 60, + "column": 11 + }, + "end": { + "line": 60, + "column": 42 + } + } + }, + "range": [ + 1317, + 1356 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 43 + } + } + } + ], + "range": [ + 1311, + 1360 + ], + "loc": { + "start": { + "line": 59, + "column": 17 + }, + "end": { + "line": 61, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1308, + 1360 + ], + "loc": { + "start": { + "line": 59, + "column": 14 + }, + "end": { + "line": 61, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1296, + 1360 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 61, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 1260, + 1293 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 58, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 1364, + 1397 + ], + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "enableCache", + "range": [ + 1400, + 1411 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 66, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1420, + 1424 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cached", + "range": [ + 1425, + 1432 + ], + "loc": { + "start": { + "line": 67, + "column": 9 + }, + "end": { + "line": 67, + "column": 16 + } + } + }, + "range": [ + 1420, + 1432 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1435, + 1439 + ], + "loc": { + "start": { + "line": 67, + "column": 19 + }, + "end": { + "line": 67, + "column": 23 + } + } + }, + "range": [ + 1420, + 1439 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 23 + } + } + }, + "range": [ + 1420, + 1440 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 24 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 1452, + 1456 + ], + "loc": { + "start": { + "line": 68, + "column": 11 + }, + "end": { + "line": 68, + "column": 15 + } + } + }, + "range": [ + 1445, + 1457 + ], + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 68, + "column": 16 + } + } + } + ], + "range": [ + 1414, + 1461 + ], + "loc": { + "start": { + "line": 66, + "column": 16 + }, + "end": { + "line": 69, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1411, + 1461 + ], + "loc": { + "start": { + "line": 66, + "column": 13 + }, + "end": { + "line": 69, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1400, + 1461 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 69, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 1364, + 1397 + ], + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 1465, + 1498 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 73, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "disableCache", + "range": [ + 1501, + 1513 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 74, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1522, + 1526 + ], + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cached", + "range": [ + 1527, + 1534 + ], + "loc": { + "start": { + "line": 75, + "column": 9 + }, + "end": { + "line": 75, + "column": 16 + } + } + }, + "range": [ + 1522, + 1534 + ], + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 1537, + 1542 + ], + "loc": { + "start": { + "line": 75, + "column": 19 + }, + "end": { + "line": 75, + "column": 24 + } + } + }, + "range": [ + 1522, + 1542 + ], + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 24 + } + } + }, + "range": [ + 1522, + 1543 + ], + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 25 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 1555, + 1559 + ], + "loc": { + "start": { + "line": 76, + "column": 11 + }, + "end": { + "line": 76, + "column": 15 + } + } + }, + "range": [ + 1548, + 1560 + ], + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 16 + } + } + } + ], + "range": [ + 1516, + 1564 + ], + "loc": { + "start": { + "line": 74, + "column": 17 + }, + "end": { + "line": 77, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1513, + 1564 + ], + "loc": { + "start": { + "line": 74, + "column": 14 + }, + "end": { + "line": 77, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1501, + 1564 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 77, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 1465, + 1498 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 73, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Number} ttl\n * @returns {Request}\n ", + "range": [ + 1568, + 1626 + ], + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 82, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "cache", + "range": [ + 1629, + 1634 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 83, + "column": 7 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "ttl", + "range": [ + 1635, + 1638 + ], + "loc": { + "start": { + "line": 83, + "column": 8 + }, + "end": { + "line": 83, + "column": 11 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Request", + "range": [ + 1641, + 1648 + ], + "loc": { + "start": { + "line": 83, + "column": 14 + }, + "end": { + "line": 83, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "TTL_FOREVER", + "range": [ + 1649, + 1660 + ], + "loc": { + "start": { + "line": 83, + "column": 22 + }, + "end": { + "line": 83, + "column": 33 + } + } + }, + "range": [ + 1641, + 1660 + ], + "loc": { + "start": { + "line": 83, + "column": 14 + }, + "end": { + "line": 83, + "column": 33 + } + } + }, + "range": [ + 1635, + 1660 + ], + "loc": { + "start": { + "line": 83, + "column": 8 + }, + "end": { + "line": 83, + "column": 33 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1673, + 1677 + ], + "loc": { + "start": { + "line": 84, + "column": 9 + }, + "end": { + "line": 84, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cacheImpl", + "range": [ + 1678, + 1688 + ], + "loc": { + "start": { + "line": 84, + "column": 14 + }, + "end": { + "line": 84, + "column": 24 + } + } + }, + "range": [ + 1673, + 1688 + ], + "loc": { + "start": { + "line": 84, + "column": 9 + }, + "end": { + "line": 84, + "column": 24 + } + } + }, + "prefix": true, + "range": [ + 1672, + 1688 + ], + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 24 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "MissingCacheImplementationException", + "range": [ + 1708, + 1743 + ], + "loc": { + "start": { + "line": 85, + "column": 16 + }, + "end": { + "line": 85, + "column": 51 + } + } + }, + "arguments": [], + "range": [ + 1704, + 1745 + ], + "loc": { + "start": { + "line": 85, + "column": 12 + }, + "end": { + "line": 85, + "column": 53 + } + } + }, + "range": [ + 1698, + 1746 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 54 + } + } + } + ], + "range": [ + 1690, + 1752 + ], + "loc": { + "start": { + "line": 84, + "column": 26 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1668, + 1752 + ], + "loc": { + "start": { + "line": 84, + "column": 4 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1758, + 1762 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cacheTtl", + "range": [ + 1763, + 1772 + ], + "loc": { + "start": { + "line": 88, + "column": 9 + }, + "end": { + "line": 88, + "column": 18 + } + } + }, + "range": [ + 1758, + 1772 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 18 + } + } + }, + "right": { + "type": "Identifier", + "name": "ttl", + "range": [ + 1775, + 1778 + ], + "loc": { + "start": { + "line": 88, + "column": 21 + }, + "end": { + "line": 88, + "column": 24 + } + } + }, + "range": [ + 1758, + 1778 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 24 + } + } + }, + "range": [ + 1758, + 1779 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 25 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1784, + 1788 + ], + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 89, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "enableCache", + "range": [ + 1789, + 1800 + ], + "loc": { + "start": { + "line": 89, + "column": 9 + }, + "end": { + "line": 89, + "column": 20 + } + } + }, + "range": [ + 1784, + 1800 + ], + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 89, + "column": 20 + } + } + }, + "arguments": [], + "range": [ + 1784, + 1802 + ], + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 89, + "column": 22 + } + } + }, + "range": [ + 1784, + 1803 + ], + "loc": { + "start": { + "line": 89, + "column": 4 + }, + "end": { + "line": 89, + "column": 23 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 1816, + 1820 + ], + "loc": { + "start": { + "line": 91, + "column": 11 + }, + "end": { + "line": 91, + "column": 15 + } + } + }, + "range": [ + 1809, + 1821 + ], + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 16 + } + } + } + ], + "range": [ + 1662, + 1825 + ], + "loc": { + "start": { + "line": 83, + "column": 35 + }, + "end": { + "line": 92, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1634, + 1825 + ], + "loc": { + "start": { + "line": 83, + "column": 7 + }, + "end": { + "line": 92, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1629, + 1825 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 92, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Number} ttl\n * @returns {Request}\n ", + "range": [ + 1568, + 1626 + ], + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 82, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 1829, + 1861 + ], + "loc": { + "start": { + "line": 94, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "cacheTtl", + "range": [ + 1868, + 1876 + ], + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1892, + 1896 + ], + "loc": { + "start": { + "line": 98, + "column": 11 + }, + "end": { + "line": 98, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cacheTtl", + "range": [ + 1897, + 1906 + ], + "loc": { + "start": { + "line": 98, + "column": 16 + }, + "end": { + "line": 98, + "column": 25 + } + } + }, + "range": [ + 1892, + 1906 + ], + "loc": { + "start": { + "line": 98, + "column": 11 + }, + "end": { + "line": 98, + "column": 25 + } + } + }, + "range": [ + 1885, + 1907 + ], + "loc": { + "start": { + "line": 98, + "column": 4 + }, + "end": { + "line": 98, + "column": 26 + } + } + } + ], + "range": [ + 1879, + 1911 + ], + "loc": { + "start": { + "line": 97, + "column": 17 + }, + "end": { + "line": 99, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1876, + 1911 + ], + "loc": { + "start": { + "line": 97, + "column": 14 + }, + "end": { + "line": 99, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1864, + 1911 + ], + "loc": { + "start": { + "line": 97, + "column": 2 + }, + "end": { + "line": 99, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 1829, + 1861 + ], + "loc": { + "start": { + "line": 94, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Number} ttl\n ", + "range": [ + 1915, + 1949 + ], + "loc": { + "start": { + "line": 101, + "column": 2 + }, + "end": { + "line": 103, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "cacheTtl", + "range": [ + 1956, + 1964 + ], + "loc": { + "start": { + "line": 104, + "column": 6 + }, + "end": { + "line": 104, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "ttl", + "range": [ + 1965, + 1968 + ], + "loc": { + "start": { + "line": 104, + "column": 15 + }, + "end": { + "line": 104, + "column": 18 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1976, + 1980 + ], + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cacheTtl", + "range": [ + 1981, + 1990 + ], + "loc": { + "start": { + "line": 105, + "column": 9 + }, + "end": { + "line": 105, + "column": 18 + } + } + }, + "range": [ + 1976, + 1990 + ], + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 18 + } + } + }, + "right": { + "type": "Identifier", + "name": "ttl", + "range": [ + 1993, + 1996 + ], + "loc": { + "start": { + "line": 105, + "column": 21 + }, + "end": { + "line": 105, + "column": 24 + } + } + }, + "range": [ + 1976, + 1996 + ], + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 24 + } + } + }, + "range": [ + 1976, + 1997 + ], + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 25 + } + } + } + ], + "range": [ + 1970, + 2001 + ], + "loc": { + "start": { + "line": 104, + "column": 20 + }, + "end": { + "line": 106, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1964, + 2001 + ], + "loc": { + "start": { + "line": 104, + "column": 14 + }, + "end": { + "line": 106, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 1952, + 2001 + ], + "loc": { + "start": { + "line": 104, + "column": 2 + }, + "end": { + "line": 106, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Number} ttl\n ", + "range": [ + 1915, + 1949 + ], + "loc": { + "start": { + "line": 101, + "column": 2 + }, + "end": { + "line": 103, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2005, + 2037 + ], + "loc": { + "start": { + "line": 108, + "column": 2 + }, + "end": { + "line": 110, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "cacheImpl", + "range": [ + 2044, + 2053 + ], + "loc": { + "start": { + "line": 111, + "column": 6 + }, + "end": { + "line": 111, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2069, + 2073 + ], + "loc": { + "start": { + "line": 112, + "column": 11 + }, + "end": { + "line": 112, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cacheImpl", + "range": [ + 2074, + 2084 + ], + "loc": { + "start": { + "line": 112, + "column": 16 + }, + "end": { + "line": 112, + "column": 26 + } + } + }, + "range": [ + 2069, + 2084 + ], + "loc": { + "start": { + "line": 112, + "column": 11 + }, + "end": { + "line": 112, + "column": 26 + } + } + }, + "range": [ + 2062, + 2085 + ], + "loc": { + "start": { + "line": 112, + "column": 4 + }, + "end": { + "line": 112, + "column": 27 + } + } + } + ], + "range": [ + 2056, + 2089 + ], + "loc": { + "start": { + "line": 111, + "column": 18 + }, + "end": { + "line": 113, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2053, + 2089 + ], + "loc": { + "start": { + "line": 111, + "column": 15 + }, + "end": { + "line": 113, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2040, + 2089 + ], + "loc": { + "start": { + "line": 111, + "column": 2 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2005, + 2037 + ], + "loc": { + "start": { + "line": 108, + "column": 2 + }, + "end": { + "line": 110, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} cache\n ", + "range": [ + 2093, + 2129 + ], + "loc": { + "start": { + "line": 115, + "column": 2 + }, + "end": { + "line": 117, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "cacheImpl", + "range": [ + 2136, + 2145 + ], + "loc": { + "start": { + "line": 118, + "column": 6 + }, + "end": { + "line": 118, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "cache", + "range": [ + 2146, + 2151 + ], + "loc": { + "start": { + "line": 118, + "column": 16 + }, + "end": { + "line": 118, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2159, + 2163 + ], + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 119, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cacheImpl", + "range": [ + 2164, + 2174 + ], + "loc": { + "start": { + "line": 119, + "column": 9 + }, + "end": { + "line": 119, + "column": 19 + } + } + }, + "range": [ + 2159, + 2174 + ], + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 119, + "column": 19 + } + } + }, + "right": { + "type": "Identifier", + "name": "cache", + "range": [ + 2177, + 2182 + ], + "loc": { + "start": { + "line": 119, + "column": 22 + }, + "end": { + "line": 119, + "column": 27 + } + } + }, + "range": [ + 2159, + 2182 + ], + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 119, + "column": 27 + } + } + }, + "range": [ + 2159, + 2183 + ], + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 119, + "column": 28 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " @todo: do we really have to force it?", + "range": [ + 2189, + 2229 + ], + "loc": { + "start": { + "line": 121, + "column": 4 + }, + "end": { + "line": 121, + "column": 44 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2234, + 2238 + ], + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 122, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "cache", + "range": [ + 2239, + 2244 + ], + "loc": { + "start": { + "line": 122, + "column": 9 + }, + "end": { + "line": 122, + "column": 14 + } + } + }, + "range": [ + 2234, + 2244 + ], + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 122, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Request", + "range": [ + 2245, + 2252 + ], + "loc": { + "start": { + "line": 122, + "column": 15 + }, + "end": { + "line": 122, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "TTL_DEFAULT", + "range": [ + 2253, + 2264 + ], + "loc": { + "start": { + "line": 122, + "column": 23 + }, + "end": { + "line": 122, + "column": 34 + } + } + }, + "range": [ + 2245, + 2264 + ], + "loc": { + "start": { + "line": 122, + "column": 15 + }, + "end": { + "line": 122, + "column": 34 + } + } + } + ], + "range": [ + 2234, + 2265 + ], + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 122, + "column": 35 + } + } + }, + "range": [ + 2234, + 2266 + ], + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 122, + "column": 36 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: do we really have to force it?", + "range": [ + 2189, + 2229 + ], + "loc": { + "start": { + "line": 121, + "column": 4 + }, + "end": { + "line": 121, + "column": 44 + } + } + } + ] + } + ], + "range": [ + 2153, + 2270 + ], + "loc": { + "start": { + "line": 118, + "column": 23 + }, + "end": { + "line": 123, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2145, + 2270 + ], + "loc": { + "start": { + "line": 118, + "column": 15 + }, + "end": { + "line": 123, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 2132, + 2270 + ], + "loc": { + "start": { + "line": 118, + "column": 2 + }, + "end": { + "line": 123, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} cache\n ", + "range": [ + 2093, + 2129 + ], + "loc": { + "start": { + "line": 115, + "column": 2 + }, + "end": { + "line": 117, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n * @private\n ", + "range": [ + 2274, + 2320 + ], + "loc": { + "start": { + "line": 125, + "column": 2 + }, + "end": { + "line": 128, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_buildCacheKey", + "range": [ + 2323, + 2337 + ], + "loc": { + "start": { + "line": 129, + "column": 2 + }, + "end": { + "line": 129, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "payload", + "range": [ + 2350, + 2357 + ], + "loc": { + "start": { + "line": 130, + "column": 8 + }, + "end": { + "line": 130, + "column": 15 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 2360, + 2364 + ], + "loc": { + "start": { + "line": 130, + "column": 18 + }, + "end": { + "line": 130, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "stringify", + "range": [ + 2365, + 2374 + ], + "loc": { + "start": { + "line": 130, + "column": 23 + }, + "end": { + "line": 130, + "column": 32 + } + } + }, + "range": [ + 2360, + 2374 + ], + "loc": { + "start": { + "line": 130, + "column": 18 + }, + "end": { + "line": 130, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2375, + 2379 + ], + "loc": { + "start": { + "line": 130, + "column": 33 + }, + "end": { + "line": 130, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "_payload", + "range": [ + 2380, + 2388 + ], + "loc": { + "start": { + "line": 130, + "column": 38 + }, + "end": { + "line": 130, + "column": 46 + } + } + }, + "range": [ + 2375, + 2388 + ], + "loc": { + "start": { + "line": 130, + "column": 33 + }, + "end": { + "line": 130, + "column": 46 + } + } + } + ], + "range": [ + 2360, + 2389 + ], + "loc": { + "start": { + "line": 130, + "column": 18 + }, + "end": { + "line": 130, + "column": 47 + } + } + }, + "range": [ + 2350, + 2389 + ], + "loc": { + "start": { + "line": 130, + "column": 8 + }, + "end": { + "line": 130, + "column": 47 + } + } + } + ], + "kind": "let", + "range": [ + 2346, + 2390 + ], + "loc": { + "start": { + "line": 130, + "column": 4 + }, + "end": { + "line": 130, + "column": 48 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": false, + "range": [ + 2403, + 2406 + ], + "loc": { + "start": { + "line": 132, + "column": 11 + }, + "end": { + "line": 132, + "column": 14 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ":", + "cooked": ":" + }, + "tail": false, + "range": [ + 2418, + 2422 + ], + "loc": { + "start": { + "line": 132, + "column": 26 + }, + "end": { + "line": 132, + "column": 30 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ":", + "cooked": ":" + }, + "tail": false, + "range": [ + 2439, + 2443 + ], + "loc": { + "start": { + "line": 132, + "column": 47 + }, + "end": { + "line": 132, + "column": 51 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "#", + "cooked": "#" + }, + "tail": false, + "range": [ + 2462, + 2466 + ], + "loc": { + "start": { + "line": 132, + "column": 70 + }, + "end": { + "line": 132, + "column": 74 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 2473, + 2475 + ], + "loc": { + "start": { + "line": 132, + "column": 81 + }, + "end": { + "line": 132, + "column": 83 + } + } + } + ], + "expressions": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2406, + 2410 + ], + "loc": { + "start": { + "line": 132, + "column": 14 + }, + "end": { + "line": 132, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "_method", + "range": [ + 2411, + 2418 + ], + "loc": { + "start": { + "line": 132, + "column": 19 + }, + "end": { + "line": 132, + "column": 26 + } + } + }, + "range": [ + 2406, + 2418 + ], + "loc": { + "start": { + "line": 132, + "column": 14 + }, + "end": { + "line": 132, + "column": 26 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2422, + 2426 + ], + "loc": { + "start": { + "line": 132, + "column": 30 + }, + "end": { + "line": 132, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 2427, + 2434 + ], + "loc": { + "start": { + "line": 132, + "column": 35 + }, + "end": { + "line": 132, + "column": 42 + } + } + }, + "range": [ + 2422, + 2434 + ], + "loc": { + "start": { + "line": 132, + "column": 30 + }, + "end": { + "line": 132, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 2435, + 2439 + ], + "loc": { + "start": { + "line": 132, + "column": 43 + }, + "end": { + "line": 132, + "column": 47 + } + } + }, + "range": [ + 2422, + 2439 + ], + "loc": { + "start": { + "line": 132, + "column": 30 + }, + "end": { + "line": 132, + "column": 47 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2443, + 2447 + ], + "loc": { + "start": { + "line": 132, + "column": 51 + }, + "end": { + "line": 132, + "column": 55 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 2448, + 2455 + ], + "loc": { + "start": { + "line": 132, + "column": 56 + }, + "end": { + "line": 132, + "column": 63 + } + } + }, + "range": [ + 2443, + 2455 + ], + "loc": { + "start": { + "line": 132, + "column": 51 + }, + "end": { + "line": 132, + "column": 63 + } + } + }, + "property": { + "type": "Identifier", + "name": "source", + "range": [ + 2456, + 2462 + ], + "loc": { + "start": { + "line": 132, + "column": 64 + }, + "end": { + "line": 132, + "column": 70 + } + } + }, + "range": [ + 2443, + 2462 + ], + "loc": { + "start": { + "line": 132, + "column": 51 + }, + "end": { + "line": 132, + "column": 70 + } + } + }, + { + "type": "Identifier", + "name": "payload", + "range": [ + 2466, + 2473 + ], + "loc": { + "start": { + "line": 132, + "column": 74 + }, + "end": { + "line": 132, + "column": 81 + } + } + } + ], + "range": [ + 2403, + 2475 + ], + "loc": { + "start": { + "line": 132, + "column": 11 + }, + "end": { + "line": 132, + "column": 83 + } + } + }, + "range": [ + 2396, + 2476 + ], + "loc": { + "start": { + "line": 132, + "column": 4 + }, + "end": { + "line": 132, + "column": 84 + } + } + } + ], + "range": [ + 2340, + 2480 + ], + "loc": { + "start": { + "line": 129, + "column": 19 + }, + "end": { + "line": 133, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2337, + 2480 + ], + "loc": { + "start": { + "line": 129, + "column": 16 + }, + "end": { + "line": 133, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2323, + 2480 + ], + "loc": { + "start": { + "line": 129, + "column": 2 + }, + "end": { + "line": 133, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n * @private\n ", + "range": [ + 2274, + 2320 + ], + "loc": { + "start": { + "line": 125, + "column": 2 + }, + "end": { + "line": 128, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Response} response\n * @returns {String}\n * @private\n ", + "range": [ + 2484, + 2562 + ], + "loc": { + "start": { + "line": 135, + "column": 2 + }, + "end": { + "line": 139, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_stringifyResponse", + "range": [ + 2572, + 2590 + ], + "loc": { + "start": { + "line": 140, + "column": 9 + }, + "end": { + "line": 140, + "column": 27 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "response", + "range": [ + 2591, + 2599 + ], + "loc": { + "start": { + "line": 140, + "column": 28 + }, + "end": { + "line": 140, + "column": 36 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 2614, + 2618 + ], + "loc": { + "start": { + "line": 141, + "column": 11 + }, + "end": { + "line": 141, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "stringify", + "range": [ + 2619, + 2628 + ], + "loc": { + "start": { + "line": 141, + "column": 16 + }, + "end": { + "line": 141, + "column": 25 + } + } + }, + "range": [ + 2614, + 2628 + ], + "loc": { + "start": { + "line": 141, + "column": 11 + }, + "end": { + "line": 141, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "_class", + "range": [ + 2637, + 2643 + ], + "loc": { + "start": { + "line": 142, + "column": 6 + }, + "end": { + "line": 142, + "column": 12 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 2645, + 2653 + ], + "loc": { + "start": { + "line": 142, + "column": 14 + }, + "end": { + "line": 142, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "constructor", + "range": [ + 2654, + 2665 + ], + "loc": { + "start": { + "line": 142, + "column": 23 + }, + "end": { + "line": 142, + "column": 34 + } + } + }, + "range": [ + 2645, + 2665 + ], + "loc": { + "start": { + "line": 142, + "column": 14 + }, + "end": { + "line": 142, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 2666, + 2670 + ], + "loc": { + "start": { + "line": 142, + "column": 35 + }, + "end": { + "line": 142, + "column": 39 + } + } + }, + "range": [ + 2645, + 2670 + ], + "loc": { + "start": { + "line": 142, + "column": 14 + }, + "end": { + "line": 142, + "column": 39 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 2637, + 2670 + ], + "loc": { + "start": { + "line": 142, + "column": 6 + }, + "end": { + "line": 142, + "column": 39 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "data", + "range": [ + 2678, + 2682 + ], + "loc": { + "start": { + "line": 143, + "column": 6 + }, + "end": { + "line": 143, + "column": 10 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 2684, + 2692 + ], + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 143, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "rawData", + "range": [ + 2693, + 2700 + ], + "loc": { + "start": { + "line": 143, + "column": 21 + }, + "end": { + "line": 143, + "column": 28 + } + } + }, + "range": [ + 2684, + 2700 + ], + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 143, + "column": 28 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 2678, + 2700 + ], + "loc": { + "start": { + "line": 143, + "column": 6 + }, + "end": { + "line": 143, + "column": 28 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "error", + "range": [ + 2708, + 2713 + ], + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 11 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 2715, + 2723 + ], + "loc": { + "start": { + "line": 144, + "column": 13 + }, + "end": { + "line": 144, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "rawError", + "range": [ + 2724, + 2732 + ], + "loc": { + "start": { + "line": 144, + "column": 22 + }, + "end": { + "line": 144, + "column": 30 + } + } + }, + "range": [ + 2715, + 2732 + ], + "loc": { + "start": { + "line": 144, + "column": 13 + }, + "end": { + "line": 144, + "column": 30 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 2708, + 2732 + ], + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 30 + } + } + } + ], + "range": [ + 2629, + 2739 + ], + "loc": { + "start": { + "line": 141, + "column": 26 + }, + "end": { + "line": 145, + "column": 5 + } + } + } + ], + "range": [ + 2614, + 2740 + ], + "loc": { + "start": { + "line": 141, + "column": 11 + }, + "end": { + "line": 145, + "column": 6 + } + } + }, + "range": [ + 2607, + 2741 + ], + "loc": { + "start": { + "line": 141, + "column": 4 + }, + "end": { + "line": 145, + "column": 7 + } + } + } + ], + "range": [ + 2601, + 2745 + ], + "loc": { + "start": { + "line": 140, + "column": 38 + }, + "end": { + "line": 146, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2590, + 2745 + ], + "loc": { + "start": { + "line": 140, + "column": 27 + }, + "end": { + "line": 146, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2565, + 2745 + ], + "loc": { + "start": { + "line": 140, + "column": 2 + }, + "end": { + "line": 146, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Response} response\n * @returns {String}\n * @private\n ", + "range": [ + 2484, + 2562 + ], + "loc": { + "start": { + "line": 135, + "column": 2 + }, + "end": { + "line": 139, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} rawData\n * @returns {Response}\n * @private\n ", + "range": [ + 2749, + 2826 + ], + "loc": { + "start": { + "line": 148, + "column": 2 + }, + "end": { + "line": 152, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_rebuildResponse", + "range": [ + 2829, + 2845 + ], + "loc": { + "start": { + "line": 153, + "column": 2 + }, + "end": { + "line": 153, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "rawData", + "range": [ + 2846, + 2853 + ], + "loc": { + "start": { + "line": 153, + "column": 19 + }, + "end": { + "line": 153, + "column": 26 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "response", + "range": [ + 2865, + 2873 + ], + "loc": { + "start": { + "line": 154, + "column": 8 + }, + "end": { + "line": 154, + "column": 16 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 2876, + 2880 + ], + "loc": { + "start": { + "line": 154, + "column": 19 + }, + "end": { + "line": 154, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "parse", + "range": [ + 2881, + 2886 + ], + "loc": { + "start": { + "line": 154, + "column": 24 + }, + "end": { + "line": 154, + "column": 29 + } + } + }, + "range": [ + 2876, + 2886 + ], + "loc": { + "start": { + "line": 154, + "column": 19 + }, + "end": { + "line": 154, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "rawData", + "range": [ + 2887, + 2894 + ], + "loc": { + "start": { + "line": 154, + "column": 30 + }, + "end": { + "line": 154, + "column": 37 + } + } + } + ], + "range": [ + 2876, + 2895 + ], + "loc": { + "start": { + "line": 154, + "column": 19 + }, + "end": { + "line": 154, + "column": 38 + } + } + }, + "range": [ + 2865, + 2895 + ], + "loc": { + "start": { + "line": 154, + "column": 8 + }, + "end": { + "line": 154, + "column": 38 + } + } + } + ], + "kind": "let", + "range": [ + 2861, + 2896 + ], + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 39 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "response", + "range": [ + 2907, + 2915 + ], + "loc": { + "start": { + "line": 156, + "column": 9 + }, + "end": { + "line": 156, + "column": 17 + } + } + }, + "prefix": true, + "range": [ + 2906, + 2915 + ], + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 17 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "CachedRequestException", + "range": [ + 2935, + 2957 + ], + "loc": { + "start": { + "line": 157, + "column": 16 + }, + "end": { + "line": 157, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Unable to unpack cached JSON object from ", + "cooked": "Unable to unpack cached JSON object from " + }, + "tail": false, + "range": [ + 2958, + 3002 + ], + "loc": { + "start": { + "line": 157, + "column": 39 + }, + "end": { + "line": 157, + "column": 83 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 3009, + 3011 + ], + "loc": { + "start": { + "line": 157, + "column": 90 + }, + "end": { + "line": 157, + "column": 92 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "rawData", + "range": [ + 3002, + 3009 + ], + "loc": { + "start": { + "line": 157, + "column": 83 + }, + "end": { + "line": 157, + "column": 90 + } + } + } + ], + "range": [ + 2958, + 3011 + ], + "loc": { + "start": { + "line": 157, + "column": 39 + }, + "end": { + "line": 157, + "column": 92 + } + } + } + ], + "range": [ + 2931, + 3012 + ], + "loc": { + "start": { + "line": 157, + "column": 12 + }, + "end": { + "line": 157, + "column": 93 + } + } + }, + "range": [ + 2925, + 3013 + ], + "loc": { + "start": { + "line": 157, + "column": 6 + }, + "end": { + "line": 157, + "column": 94 + } + } + } + ], + "range": [ + 2917, + 3019 + ], + "loc": { + "start": { + "line": 156, + "column": 19 + }, + "end": { + "line": 158, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 2902, + 3019 + ], + "loc": { + "start": { + "line": 156, + "column": 4 + }, + "end": { + "line": 158, + "column": 5 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "ResponseImpl", + "range": [ + 3029, + 3041 + ], + "loc": { + "start": { + "line": 160, + "column": 8 + }, + "end": { + "line": 160, + "column": 20 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Request", + "range": [ + 3044, + 3051 + ], + "loc": { + "start": { + "line": 160, + "column": 23 + }, + "end": { + "line": 160, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "_chooseResponseImpl", + "range": [ + 3052, + 3071 + ], + "loc": { + "start": { + "line": 160, + "column": 31 + }, + "end": { + "line": 160, + "column": 50 + } + } + }, + "range": [ + 3044, + 3071 + ], + "loc": { + "start": { + "line": 160, + "column": 23 + }, + "end": { + "line": 160, + "column": 50 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 3072, + 3080 + ], + "loc": { + "start": { + "line": 160, + "column": 51 + }, + "end": { + "line": 160, + "column": 59 + } + } + }, + "property": { + "type": "Identifier", + "name": "_class", + "range": [ + 3081, + 3087 + ], + "loc": { + "start": { + "line": 160, + "column": 60 + }, + "end": { + "line": 160, + "column": 66 + } + } + }, + "range": [ + 3072, + 3087 + ], + "loc": { + "start": { + "line": 160, + "column": 51 + }, + "end": { + "line": 160, + "column": 66 + } + } + } + ], + "range": [ + 3044, + 3088 + ], + "loc": { + "start": { + "line": 160, + "column": 23 + }, + "end": { + "line": 160, + "column": 67 + } + } + }, + "range": [ + 3029, + 3088 + ], + "loc": { + "start": { + "line": 160, + "column": 8 + }, + "end": { + "line": 160, + "column": 67 + } + } + } + ], + "kind": "let", + "range": [ + 3025, + 3089 + ], + "loc": { + "start": { + "line": 160, + "column": 4 + }, + "end": { + "line": 160, + "column": 68 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "ResponseImpl", + "range": [ + 3100, + 3112 + ], + "loc": { + "start": { + "line": 162, + "column": 9 + }, + "end": { + "line": 162, + "column": 21 + } + } + }, + "prefix": true, + "range": [ + 3099, + 3112 + ], + "loc": { + "start": { + "line": 162, + "column": 8 + }, + "end": { + "line": 162, + "column": 21 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Exception", + "range": [ + 3132, + 3141 + ], + "loc": { + "start": { + "line": 163, + "column": 16 + }, + "end": { + "line": 163, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Unknown Response implementation ", + "cooked": "Unknown Response implementation " + }, + "tail": false, + "range": [ + 3142, + 3177 + ], + "loc": { + "start": { + "line": 163, + "column": 26 + }, + "end": { + "line": 163, + "column": 61 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 3192, + 3194 + ], + "loc": { + "start": { + "line": 163, + "column": 76 + }, + "end": { + "line": 163, + "column": 78 + } + } + } + ], + "expressions": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 3177, + 3185 + ], + "loc": { + "start": { + "line": 163, + "column": 61 + }, + "end": { + "line": 163, + "column": 69 + } + } + }, + "property": { + "type": "Identifier", + "name": "_class", + "range": [ + 3186, + 3192 + ], + "loc": { + "start": { + "line": 163, + "column": 70 + }, + "end": { + "line": 163, + "column": 76 + } + } + }, + "range": [ + 3177, + 3192 + ], + "loc": { + "start": { + "line": 163, + "column": 61 + }, + "end": { + "line": 163, + "column": 76 + } + } + } + ], + "range": [ + 3142, + 3194 + ], + "loc": { + "start": { + "line": 163, + "column": 26 + }, + "end": { + "line": 163, + "column": 78 + } + } + } + ], + "range": [ + 3128, + 3195 + ], + "loc": { + "start": { + "line": 163, + "column": 12 + }, + "end": { + "line": 163, + "column": 79 + } + } + }, + "range": [ + 3122, + 3196 + ], + "loc": { + "start": { + "line": 163, + "column": 6 + }, + "end": { + "line": 163, + "column": 80 + } + } + } + ], + "range": [ + 3114, + 3202 + ], + "loc": { + "start": { + "line": 162, + "column": 23 + }, + "end": { + "line": 164, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 3095, + 3202 + ], + "loc": { + "start": { + "line": 162, + "column": 4 + }, + "end": { + "line": 164, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "ResponseImpl", + "range": [ + 3219, + 3231 + ], + "loc": { + "start": { + "line": 166, + "column": 15 + }, + "end": { + "line": 166, + "column": 27 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 3232, + 3236 + ], + "loc": { + "start": { + "line": 166, + "column": 28 + }, + "end": { + "line": 166, + "column": 32 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 3238, + 3246 + ], + "loc": { + "start": { + "line": 166, + "column": 34 + }, + "end": { + "line": 166, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "name": "data", + "range": [ + 3247, + 3251 + ], + "loc": { + "start": { + "line": 166, + "column": 43 + }, + "end": { + "line": 166, + "column": 47 + } + } + }, + "range": [ + 3238, + 3251 + ], + "loc": { + "start": { + "line": 166, + "column": 34 + }, + "end": { + "line": 166, + "column": 47 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 3253, + 3261 + ], + "loc": { + "start": { + "line": 166, + "column": 49 + }, + "end": { + "line": 166, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "name": "error", + "range": [ + 3262, + 3267 + ], + "loc": { + "start": { + "line": 166, + "column": 58 + }, + "end": { + "line": 166, + "column": 63 + } + } + }, + "range": [ + 3253, + 3267 + ], + "loc": { + "start": { + "line": 166, + "column": 49 + }, + "end": { + "line": 166, + "column": 63 + } + } + } + ], + "range": [ + 3215, + 3268 + ], + "loc": { + "start": { + "line": 166, + "column": 11 + }, + "end": { + "line": 166, + "column": 64 + } + } + }, + "range": [ + 3208, + 3269 + ], + "loc": { + "start": { + "line": 166, + "column": 4 + }, + "end": { + "line": 166, + "column": 65 + } + } + } + ], + "range": [ + 2855, + 3273 + ], + "loc": { + "start": { + "line": 153, + "column": 28 + }, + "end": { + "line": 167, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2845, + 3273 + ], + "loc": { + "start": { + "line": 153, + "column": 18 + }, + "end": { + "line": 167, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2829, + 3273 + ], + "loc": { + "start": { + "line": 153, + "column": 2 + }, + "end": { + "line": 167, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} rawData\n * @returns {Response}\n * @private\n ", + "range": [ + 2749, + 2826 + ], + "loc": { + "start": { + "line": 148, + "column": 2 + }, + "end": { + "line": 152, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} className\n * @returns {*}\n * @private\n ", + "range": [ + 3277, + 3349 + ], + "loc": { + "start": { + "line": 169, + "column": 2 + }, + "end": { + "line": 173, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_chooseResponseImpl", + "range": [ + 3359, + 3378 + ], + "loc": { + "start": { + "line": 174, + "column": 9 + }, + "end": { + "line": 174, + "column": 28 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "className", + "range": [ + 3379, + 3388 + ], + "loc": { + "start": { + "line": 174, + "column": 29 + }, + "end": { + "line": 174, + "column": 38 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "implMap", + "range": [ + 3400, + 3407 + ], + "loc": { + "start": { + "line": 175, + "column": 8 + }, + "end": { + "line": 175, + "column": 15 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 3410, + 3412 + ], + "loc": { + "start": { + "line": 175, + "column": 18 + }, + "end": { + "line": 175, + "column": 20 + } + } + }, + "range": [ + 3400, + 3412 + ], + "loc": { + "start": { + "line": 175, + "column": 8 + }, + "end": { + "line": 175, + "column": 20 + } + } + } + ], + "kind": "let", + "range": [ + 3396, + 3413 + ], + "loc": { + "start": { + "line": 175, + "column": 4 + }, + "end": { + "line": 175, + "column": 21 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "implMap", + "range": [ + 3419, + 3426 + ], + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 177, + "column": 11 + } + } + }, + "property": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Response", + "range": [ + 3427, + 3435 + ], + "loc": { + "start": { + "line": 177, + "column": 12 + }, + "end": { + "line": 177, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 3436, + 3440 + ], + "loc": { + "start": { + "line": 177, + "column": 21 + }, + "end": { + "line": 177, + "column": 25 + } + } + }, + "range": [ + 3427, + 3440 + ], + "loc": { + "start": { + "line": 177, + "column": 12 + }, + "end": { + "line": 177, + "column": 25 + } + } + }, + "range": [ + 3419, + 3441 + ], + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 177, + "column": 26 + } + } + }, + "right": { + "type": "Identifier", + "name": "Response", + "range": [ + 3444, + 3452 + ], + "loc": { + "start": { + "line": 177, + "column": 29 + }, + "end": { + "line": 177, + "column": 37 + } + } + }, + "range": [ + 3419, + 3452 + ], + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 177, + "column": 37 + } + } + }, + "range": [ + 3419, + 3453 + ], + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 177, + "column": 38 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "implMap", + "range": [ + 3458, + 3465 + ], + "loc": { + "start": { + "line": 178, + "column": 4 + }, + "end": { + "line": 178, + "column": 11 + } + } + }, + "property": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "LambdaResponse", + "range": [ + 3466, + 3480 + ], + "loc": { + "start": { + "line": 178, + "column": 12 + }, + "end": { + "line": 178, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 3481, + 3485 + ], + "loc": { + "start": { + "line": 178, + "column": 27 + }, + "end": { + "line": 178, + "column": 31 + } + } + }, + "range": [ + 3466, + 3485 + ], + "loc": { + "start": { + "line": 178, + "column": 12 + }, + "end": { + "line": 178, + "column": 31 + } + } + }, + "range": [ + 3458, + 3486 + ], + "loc": { + "start": { + "line": 178, + "column": 4 + }, + "end": { + "line": 178, + "column": 32 + } + } + }, + "right": { + "type": "Identifier", + "name": "LambdaResponse", + "range": [ + 3489, + 3503 + ], + "loc": { + "start": { + "line": 178, + "column": 35 + }, + "end": { + "line": 178, + "column": 49 + } + } + }, + "range": [ + 3458, + 3503 + ], + "loc": { + "start": { + "line": 178, + "column": 4 + }, + "end": { + "line": 178, + "column": 49 + } + } + }, + "range": [ + 3458, + 3504 + ], + "loc": { + "start": { + "line": 178, + "column": 4 + }, + "end": { + "line": 178, + "column": 50 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "implMap", + "range": [ + 3509, + 3516 + ], + "loc": { + "start": { + "line": 179, + "column": 4 + }, + "end": { + "line": 179, + "column": 11 + } + } + }, + "property": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "SuperagentResponse", + "range": [ + 3517, + 3535 + ], + "loc": { + "start": { + "line": 179, + "column": 12 + }, + "end": { + "line": 179, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 3536, + 3540 + ], + "loc": { + "start": { + "line": 179, + "column": 31 + }, + "end": { + "line": 179, + "column": 35 + } + } + }, + "range": [ + 3517, + 3540 + ], + "loc": { + "start": { + "line": 179, + "column": 12 + }, + "end": { + "line": 179, + "column": 35 + } + } + }, + "range": [ + 3509, + 3541 + ], + "loc": { + "start": { + "line": 179, + "column": 4 + }, + "end": { + "line": 179, + "column": 36 + } + } + }, + "right": { + "type": "Identifier", + "name": "SuperagentResponse", + "range": [ + 3544, + 3562 + ], + "loc": { + "start": { + "line": 179, + "column": 39 + }, + "end": { + "line": 179, + "column": 57 + } + } + }, + "range": [ + 3509, + 3562 + ], + "loc": { + "start": { + "line": 179, + "column": 4 + }, + "end": { + "line": 179, + "column": 57 + } + } + }, + "range": [ + 3509, + 3563 + ], + "loc": { + "start": { + "line": 179, + "column": 4 + }, + "end": { + "line": 179, + "column": 58 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "implMap", + "range": [ + 3576, + 3583 + ], + "loc": { + "start": { + "line": 181, + "column": 11 + }, + "end": { + "line": 181, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "className", + "range": [ + 3584, + 3593 + ], + "loc": { + "start": { + "line": 181, + "column": 19 + }, + "end": { + "line": 181, + "column": 28 + } + } + }, + "range": [ + 3576, + 3594 + ], + "loc": { + "start": { + "line": 181, + "column": 11 + }, + "end": { + "line": 181, + "column": 29 + } + } + }, + "range": [ + 3569, + 3595 + ], + "loc": { + "start": { + "line": 181, + "column": 4 + }, + "end": { + "line": 181, + "column": 30 + } + } + } + ], + "range": [ + 3390, + 3599 + ], + "loc": { + "start": { + "line": 174, + "column": 40 + }, + "end": { + "line": 182, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3378, + 3599 + ], + "loc": { + "start": { + "line": 174, + "column": 28 + }, + "end": { + "line": 182, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 3352, + 3599 + ], + "loc": { + "start": { + "line": 174, + "column": 2 + }, + "end": { + "line": 182, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} className\n * @returns {*}\n * @private\n ", + "range": [ + 3277, + 3349 + ], + "loc": { + "start": { + "line": 169, + "column": 2 + }, + "end": { + "line": 173, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 3603, + 3644 + ], + "loc": { + "start": { + "line": 184, + "column": 2 + }, + "end": { + "line": 186, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "invalidateCache", + "range": [ + 3647, + 3662 + ], + "loc": { + "start": { + "line": 187, + "column": 2 + }, + "end": { + "line": 187, + "column": 17 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 3663, + 3671 + ], + "loc": { + "start": { + "line": 187, + "column": 18 + }, + "end": { + "line": 187, + "column": 26 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 3674, + 3678 + ], + "loc": { + "start": { + "line": 187, + "column": 29 + }, + "end": { + "line": 187, + "column": 33 + } + } + }, + "range": [ + 3663, + 3678 + ], + "loc": { + "start": { + "line": 187, + "column": 18 + }, + "end": { + "line": 187, + "column": 33 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3691, + 3695 + ], + "loc": { + "start": { + "line": 188, + "column": 9 + }, + "end": { + "line": 188, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "isCached", + "range": [ + 3696, + 3704 + ], + "loc": { + "start": { + "line": 188, + "column": 14 + }, + "end": { + "line": 188, + "column": 22 + } + } + }, + "range": [ + 3691, + 3704 + ], + "loc": { + "start": { + "line": 188, + "column": 9 + }, + "end": { + "line": 188, + "column": 22 + } + } + }, + "prefix": true, + "range": [ + 3690, + 3704 + ], + "loc": { + "start": { + "line": 188, + "column": 8 + }, + "end": { + "line": 188, + "column": 22 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 3714, + 3722 + ], + "loc": { + "start": { + "line": 189, + "column": 6 + }, + "end": { + "line": 189, + "column": 14 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 3726, + 3734 + ], + "loc": { + "start": { + "line": 189, + "column": 18 + }, + "end": { + "line": 189, + "column": 26 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 3735, + 3739 + ], + "loc": { + "start": { + "line": 189, + "column": 27 + }, + "end": { + "line": 189, + "column": 31 + } + } + } + ], + "range": [ + 3726, + 3740 + ], + "loc": { + "start": { + "line": 189, + "column": 18 + }, + "end": { + "line": 189, + "column": 32 + } + } + }, + "range": [ + 3714, + 3740 + ], + "loc": { + "start": { + "line": 189, + "column": 6 + }, + "end": { + "line": 189, + "column": 32 + } + } + }, + "range": [ + 3714, + 3741 + ], + "loc": { + "start": { + "line": 189, + "column": 6 + }, + "end": { + "line": 189, + "column": 33 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 3756, + 3760 + ], + "loc": { + "start": { + "line": 191, + "column": 13 + }, + "end": { + "line": 191, + "column": 17 + } + } + }, + "range": [ + 3749, + 3761 + ], + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 18 + } + } + } + ], + "range": [ + 3706, + 3767 + ], + "loc": { + "start": { + "line": 188, + "column": 24 + }, + "end": { + "line": 192, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 3686, + 3767 + ], + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 192, + "column": 5 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "cache", + "range": [ + 3777, + 3782 + ], + "loc": { + "start": { + "line": 194, + "column": 8 + }, + "end": { + "line": 194, + "column": 13 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3785, + 3789 + ], + "loc": { + "start": { + "line": 194, + "column": 16 + }, + "end": { + "line": 194, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cacheImpl", + "range": [ + 3790, + 3800 + ], + "loc": { + "start": { + "line": 194, + "column": 21 + }, + "end": { + "line": 194, + "column": 31 + } + } + }, + "range": [ + 3785, + 3800 + ], + "loc": { + "start": { + "line": 194, + "column": 16 + }, + "end": { + "line": 194, + "column": 31 + } + } + }, + "range": [ + 3777, + 3800 + ], + "loc": { + "start": { + "line": 194, + "column": 8 + }, + "end": { + "line": 194, + "column": 31 + } + } + } + ], + "kind": "let", + "range": [ + 3773, + 3801 + ], + "loc": { + "start": { + "line": 194, + "column": 4 + }, + "end": { + "line": 194, + "column": 32 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "cacheKey", + "range": [ + 3810, + 3818 + ], + "loc": { + "start": { + "line": 195, + "column": 8 + }, + "end": { + "line": 195, + "column": 16 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3821, + 3825 + ], + "loc": { + "start": { + "line": 195, + "column": 19 + }, + "end": { + "line": 195, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buildCacheKey", + "range": [ + 3826, + 3840 + ], + "loc": { + "start": { + "line": 195, + "column": 24 + }, + "end": { + "line": 195, + "column": 38 + } + } + }, + "range": [ + 3821, + 3840 + ], + "loc": { + "start": { + "line": 195, + "column": 19 + }, + "end": { + "line": 195, + "column": 38 + } + } + }, + "arguments": [], + "range": [ + 3821, + 3842 + ], + "loc": { + "start": { + "line": 195, + "column": 19 + }, + "end": { + "line": 195, + "column": 40 + } + } + }, + "range": [ + 3810, + 3842 + ], + "loc": { + "start": { + "line": 195, + "column": 8 + }, + "end": { + "line": 195, + "column": 40 + } + } + } + ], + "kind": "let", + "range": [ + 3806, + 3843 + ], + "loc": { + "start": { + "line": 195, + "column": 4 + }, + "end": { + "line": 195, + "column": 41 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "cache", + "range": [ + 3849, + 3854 + ], + "loc": { + "start": { + "line": 197, + "column": 4 + }, + "end": { + "line": 197, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "has", + "range": [ + 3855, + 3858 + ], + "loc": { + "start": { + "line": 197, + "column": 10 + }, + "end": { + "line": 197, + "column": 13 + } + } + }, + "range": [ + 3849, + 3858 + ], + "loc": { + "start": { + "line": 197, + "column": 4 + }, + "end": { + "line": 197, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cacheKey", + "range": [ + 3859, + 3867 + ], + "loc": { + "start": { + "line": 197, + "column": 14 + }, + "end": { + "line": 197, + "column": 22 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 3878, + 3883 + ], + "loc": { + "start": { + "line": 197, + "column": 33 + }, + "end": { + "line": 197, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "result", + "range": [ + 3885, + 3891 + ], + "loc": { + "start": { + "line": 197, + "column": 40 + }, + "end": { + "line": 197, + "column": 46 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "error", + "range": [ + 3905, + 3910 + ], + "loc": { + "start": { + "line": 198, + "column": 10 + }, + "end": { + "line": 198, + "column": 15 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "CachedRequestException", + "range": [ + 3932, + 3954 + ], + "loc": { + "start": { + "line": 199, + "column": 18 + }, + "end": { + "line": 199, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 3955, + 3960 + ], + "loc": { + "start": { + "line": 199, + "column": 41 + }, + "end": { + "line": 199, + "column": 46 + } + } + } + ], + "range": [ + 3928, + 3961 + ], + "loc": { + "start": { + "line": 199, + "column": 14 + }, + "end": { + "line": 199, + "column": 47 + } + } + }, + "range": [ + 3922, + 3962 + ], + "loc": { + "start": { + "line": 199, + "column": 8 + }, + "end": { + "line": 199, + "column": 48 + } + } + } + ], + "range": [ + 3912, + 3970 + ], + "loc": { + "start": { + "line": 198, + "column": 17 + }, + "end": { + "line": 200, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 3901, + 3970 + ], + "loc": { + "start": { + "line": 198, + "column": 6 + }, + "end": { + "line": 200, + "column": 7 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "result", + "range": [ + 3982, + 3988 + ], + "loc": { + "start": { + "line": 202, + "column": 10 + }, + "end": { + "line": 202, + "column": 16 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "cache", + "range": [ + 4000, + 4005 + ], + "loc": { + "start": { + "line": 203, + "column": 8 + }, + "end": { + "line": 203, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "invalidate", + "range": [ + 4006, + 4016 + ], + "loc": { + "start": { + "line": 203, + "column": 14 + }, + "end": { + "line": 203, + "column": 24 + } + } + }, + "range": [ + 4000, + 4016 + ], + "loc": { + "start": { + "line": 203, + "column": 8 + }, + "end": { + "line": 203, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cacheKey", + "range": [ + 4017, + 4025 + ], + "loc": { + "start": { + "line": 203, + "column": 25 + }, + "end": { + "line": 203, + "column": 33 + } + } + }, + { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 4027, + 4028 + ], + "loc": { + "start": { + "line": 203, + "column": 35 + }, + "end": { + "line": 203, + "column": 36 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 4039, + 4044 + ], + "loc": { + "start": { + "line": 203, + "column": 47 + }, + "end": { + "line": 203, + "column": 52 + } + } + }, + { + "type": "Identifier", + "name": "result", + "range": [ + 4046, + 4052 + ], + "loc": { + "start": { + "line": 203, + "column": 54 + }, + "end": { + "line": 203, + "column": 60 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "error", + "range": [ + 4070, + 4075 + ], + "loc": { + "start": { + "line": 204, + "column": 14 + }, + "end": { + "line": 204, + "column": 19 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "CachedRequestException", + "range": [ + 4101, + 4123 + ], + "loc": { + "start": { + "line": 205, + "column": 22 + }, + "end": { + "line": 205, + "column": 44 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 4124, + 4129 + ], + "loc": { + "start": { + "line": 205, + "column": 45 + }, + "end": { + "line": 205, + "column": 50 + } + } + } + ], + "range": [ + 4097, + 4130 + ], + "loc": { + "start": { + "line": 205, + "column": 18 + }, + "end": { + "line": 205, + "column": 51 + } + } + }, + "range": [ + 4091, + 4131 + ], + "loc": { + "start": { + "line": 205, + "column": 12 + }, + "end": { + "line": 205, + "column": 52 + } + } + } + ], + "range": [ + 4077, + 4143 + ], + "loc": { + "start": { + "line": 204, + "column": 21 + }, + "end": { + "line": 206, + "column": 11 + } + } + }, + "alternate": null, + "range": [ + 4066, + 4143 + ], + "loc": { + "start": { + "line": 204, + "column": 10 + }, + "end": { + "line": 206, + "column": 11 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 4155, + 4163 + ], + "loc": { + "start": { + "line": 208, + "column": 10 + }, + "end": { + "line": 208, + "column": 18 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 4167, + 4175 + ], + "loc": { + "start": { + "line": 208, + "column": 22 + }, + "end": { + "line": 208, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "result", + "range": [ + 4176, + 4182 + ], + "loc": { + "start": { + "line": 208, + "column": 31 + }, + "end": { + "line": 208, + "column": 37 + } + } + } + ], + "range": [ + 4167, + 4183 + ], + "loc": { + "start": { + "line": 208, + "column": 22 + }, + "end": { + "line": 208, + "column": 38 + } + } + }, + "range": [ + 4155, + 4183 + ], + "loc": { + "start": { + "line": 208, + "column": 10 + }, + "end": { + "line": 208, + "column": 38 + } + } + }, + "range": [ + 4155, + 4184 + ], + "loc": { + "start": { + "line": 208, + "column": 10 + }, + "end": { + "line": 208, + "column": 39 + } + } + } + ], + "range": [ + 4054, + 4194 + ], + "loc": { + "start": { + "line": 203, + "column": 62 + }, + "end": { + "line": 209, + "column": 9 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4030, + 4194 + ], + "loc": { + "start": { + "line": 203, + "column": 38 + }, + "end": { + "line": 209, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 4195, + 4199 + ], + "loc": { + "start": { + "line": 209, + "column": 10 + }, + "end": { + "line": 209, + "column": 14 + } + } + }, + "range": [ + 4030, + 4199 + ], + "loc": { + "start": { + "line": 203, + "column": 38 + }, + "end": { + "line": 209, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 4200, + 4204 + ], + "loc": { + "start": { + "line": 209, + "column": 15 + }, + "end": { + "line": 209, + "column": 19 + } + } + } + ], + "range": [ + 4030, + 4205 + ], + "loc": { + "start": { + "line": 203, + "column": 38 + }, + "end": { + "line": 209, + "column": 20 + } + } + } + ], + "range": [ + 4000, + 4206 + ], + "loc": { + "start": { + "line": 203, + "column": 8 + }, + "end": { + "line": 209, + "column": 21 + } + } + }, + "range": [ + 4000, + 4207 + ], + "loc": { + "start": { + "line": 203, + "column": 8 + }, + "end": { + "line": 209, + "column": 22 + } + } + }, + { + "type": "ReturnStatement", + "argument": null, + "range": [ + 4217, + 4224 + ], + "loc": { + "start": { + "line": 211, + "column": 8 + }, + "end": { + "line": 211, + "column": 15 + } + } + } + ], + "range": [ + 3990, + 4232 + ], + "loc": { + "start": { + "line": 202, + "column": 18 + }, + "end": { + "line": 212, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 3978, + 4232 + ], + "loc": { + "start": { + "line": 202, + "column": 6 + }, + "end": { + "line": 212, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 4240, + 4248 + ], + "loc": { + "start": { + "line": 214, + "column": 6 + }, + "end": { + "line": 214, + "column": 14 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 4252, + 4260 + ], + "loc": { + "start": { + "line": 214, + "column": 18 + }, + "end": { + "line": 214, + "column": 26 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 4261, + 4265 + ], + "loc": { + "start": { + "line": 214, + "column": 27 + }, + "end": { + "line": 214, + "column": 31 + } + } + } + ], + "range": [ + 4252, + 4266 + ], + "loc": { + "start": { + "line": 214, + "column": 18 + }, + "end": { + "line": 214, + "column": 32 + } + } + }, + "range": [ + 4240, + 4266 + ], + "loc": { + "start": { + "line": 214, + "column": 6 + }, + "end": { + "line": 214, + "column": 32 + } + } + }, + "range": [ + 4240, + 4267 + ], + "loc": { + "start": { + "line": 214, + "column": 6 + }, + "end": { + "line": 214, + "column": 33 + } + } + } + ], + "range": [ + 3893, + 4273 + ], + "loc": { + "start": { + "line": 197, + "column": 48 + }, + "end": { + "line": 215, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3869, + 4273 + ], + "loc": { + "start": { + "line": 197, + "column": 24 + }, + "end": { + "line": 215, + "column": 5 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 4274, + 4278 + ], + "loc": { + "start": { + "line": 215, + "column": 6 + }, + "end": { + "line": 215, + "column": 10 + } + } + }, + "range": [ + 3869, + 4278 + ], + "loc": { + "start": { + "line": 197, + "column": 24 + }, + "end": { + "line": 215, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 4279, + 4283 + ], + "loc": { + "start": { + "line": 215, + "column": 11 + }, + "end": { + "line": 215, + "column": 15 + } + } + } + ], + "range": [ + 3869, + 4284 + ], + "loc": { + "start": { + "line": 197, + "column": 24 + }, + "end": { + "line": 215, + "column": 16 + } + } + } + ], + "range": [ + 3849, + 4285 + ], + "loc": { + "start": { + "line": 197, + "column": 4 + }, + "end": { + "line": 215, + "column": 17 + } + } + }, + "range": [ + 3849, + 4286 + ], + "loc": { + "start": { + "line": 197, + "column": 4 + }, + "end": { + "line": 215, + "column": 18 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 4299, + 4303 + ], + "loc": { + "start": { + "line": 217, + "column": 11 + }, + "end": { + "line": 217, + "column": 15 + } + } + }, + "range": [ + 4292, + 4304 + ], + "loc": { + "start": { + "line": 217, + "column": 4 + }, + "end": { + "line": 217, + "column": 16 + } + } + } + ], + "range": [ + 3680, + 4308 + ], + "loc": { + "start": { + "line": 187, + "column": 35 + }, + "end": { + "line": 218, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3662, + 4308 + ], + "loc": { + "start": { + "line": 187, + "column": 17 + }, + "end": { + "line": 218, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 3647, + 4308 + ], + "loc": { + "start": { + "line": 187, + "column": 2 + }, + "end": { + "line": 218, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 3603, + 3644 + ], + "loc": { + "start": { + "line": 184, + "column": 2 + }, + "end": { + "line": 186, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 4312, + 4353 + ], + "loc": { + "start": { + "line": 220, + "column": 2 + }, + "end": { + "line": 222, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "send", + "range": [ + 4356, + 4360 + ], + "loc": { + "start": { + "line": 223, + "column": 2 + }, + "end": { + "line": 223, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 4361, + 4369 + ], + "loc": { + "start": { + "line": 223, + "column": 7 + }, + "end": { + "line": 223, + "column": 15 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 4372, + 4376 + ], + "loc": { + "start": { + "line": 223, + "column": 18 + }, + "end": { + "line": 223, + "column": 22 + } + } + }, + "range": [ + 4361, + 4376 + ], + "loc": { + "start": { + "line": 223, + "column": 7 + }, + "end": { + "line": 223, + "column": 22 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4389, + 4393 + ], + "loc": { + "start": { + "line": 224, + "column": 9 + }, + "end": { + "line": 224, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "isCached", + "range": [ + 4394, + 4402 + ], + "loc": { + "start": { + "line": 224, + "column": 14 + }, + "end": { + "line": 224, + "column": 22 + } + } + }, + "range": [ + 4389, + 4402 + ], + "loc": { + "start": { + "line": 224, + "column": 9 + }, + "end": { + "line": 224, + "column": 22 + } + } + }, + "prefix": true, + "range": [ + 4388, + 4402 + ], + "loc": { + "start": { + "line": 224, + "column": 8 + }, + "end": { + "line": 224, + "column": 22 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4419, + 4423 + ], + "loc": { + "start": { + "line": 225, + "column": 13 + }, + "end": { + "line": 225, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_send", + "range": [ + 4424, + 4429 + ], + "loc": { + "start": { + "line": 225, + "column": 18 + }, + "end": { + "line": 225, + "column": 23 + } + } + }, + "range": [ + 4419, + 4429 + ], + "loc": { + "start": { + "line": 225, + "column": 13 + }, + "end": { + "line": 225, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 4430, + 4438 + ], + "loc": { + "start": { + "line": 225, + "column": 24 + }, + "end": { + "line": 225, + "column": 32 + } + } + } + ], + "range": [ + 4419, + 4439 + ], + "loc": { + "start": { + "line": 225, + "column": 13 + }, + "end": { + "line": 225, + "column": 33 + } + } + }, + "range": [ + 4412, + 4440 + ], + "loc": { + "start": { + "line": 225, + "column": 6 + }, + "end": { + "line": 225, + "column": 34 + } + } + } + ], + "range": [ + 4404, + 4446 + ], + "loc": { + "start": { + "line": 224, + "column": 24 + }, + "end": { + "line": 226, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 4384, + 4446 + ], + "loc": { + "start": { + "line": 224, + "column": 4 + }, + "end": { + "line": 226, + "column": 5 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "cache", + "range": [ + 4456, + 4461 + ], + "loc": { + "start": { + "line": 228, + "column": 8 + }, + "end": { + "line": 228, + "column": 13 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4464, + 4468 + ], + "loc": { + "start": { + "line": 228, + "column": 16 + }, + "end": { + "line": 228, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cacheImpl", + "range": [ + 4469, + 4479 + ], + "loc": { + "start": { + "line": 228, + "column": 21 + }, + "end": { + "line": 228, + "column": 31 + } + } + }, + "range": [ + 4464, + 4479 + ], + "loc": { + "start": { + "line": 228, + "column": 16 + }, + "end": { + "line": 228, + "column": 31 + } + } + }, + "range": [ + 4456, + 4479 + ], + "loc": { + "start": { + "line": 228, + "column": 8 + }, + "end": { + "line": 228, + "column": 31 + } + } + } + ], + "kind": "let", + "range": [ + 4452, + 4480 + ], + "loc": { + "start": { + "line": 228, + "column": 4 + }, + "end": { + "line": 228, + "column": 32 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "invalidateCache", + "range": [ + 4489, + 4504 + ], + "loc": { + "start": { + "line": 229, + "column": 8 + }, + "end": { + "line": 229, + "column": 23 + } + } + }, + "init": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4507, + 4511 + ], + "loc": { + "start": { + "line": 229, + "column": 26 + }, + "end": { + "line": 229, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cacheTtl", + "range": [ + 4512, + 4521 + ], + "loc": { + "start": { + "line": 229, + "column": 31 + }, + "end": { + "line": 229, + "column": 40 + } + } + }, + "range": [ + 4507, + 4521 + ], + "loc": { + "start": { + "line": 229, + "column": 26 + }, + "end": { + "line": 229, + "column": 40 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Request", + "range": [ + 4526, + 4533 + ], + "loc": { + "start": { + "line": 229, + "column": 45 + }, + "end": { + "line": 229, + "column": 52 + } + } + }, + "property": { + "type": "Identifier", + "name": "TTL_INVALIDATE", + "range": [ + 4534, + 4548 + ], + "loc": { + "start": { + "line": 229, + "column": 53 + }, + "end": { + "line": 229, + "column": 67 + } + } + }, + "range": [ + 4526, + 4548 + ], + "loc": { + "start": { + "line": 229, + "column": 45 + }, + "end": { + "line": 229, + "column": 67 + } + } + }, + "range": [ + 4507, + 4548 + ], + "loc": { + "start": { + "line": 229, + "column": 26 + }, + "end": { + "line": 229, + "column": 67 + } + } + }, + "range": [ + 4489, + 4548 + ], + "loc": { + "start": { + "line": 229, + "column": 8 + }, + "end": { + "line": 229, + "column": 67 + } + } + } + ], + "kind": "let", + "range": [ + 4485, + 4549 + ], + "loc": { + "start": { + "line": 229, + "column": 4 + }, + "end": { + "line": 229, + "column": 68 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "cacheKey", + "range": [ + 4558, + 4566 + ], + "loc": { + "start": { + "line": 230, + "column": 8 + }, + "end": { + "line": 230, + "column": 16 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4569, + 4573 + ], + "loc": { + "start": { + "line": 230, + "column": 19 + }, + "end": { + "line": 230, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "_buildCacheKey", + "range": [ + 4574, + 4588 + ], + "loc": { + "start": { + "line": 230, + "column": 24 + }, + "end": { + "line": 230, + "column": 38 + } + } + }, + "range": [ + 4569, + 4588 + ], + "loc": { + "start": { + "line": 230, + "column": 19 + }, + "end": { + "line": 230, + "column": 38 + } + } + }, + "arguments": [], + "range": [ + 4569, + 4590 + ], + "loc": { + "start": { + "line": 230, + "column": 19 + }, + "end": { + "line": 230, + "column": 40 + } + } + }, + "range": [ + 4558, + 4590 + ], + "loc": { + "start": { + "line": 230, + "column": 8 + }, + "end": { + "line": 230, + "column": 40 + } + } + } + ], + "kind": "let", + "range": [ + 4554, + 4591 + ], + "loc": { + "start": { + "line": 230, + "column": 4 + }, + "end": { + "line": 230, + "column": 41 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "cache", + "range": [ + 4597, + 4602 + ], + "loc": { + "start": { + "line": 232, + "column": 4 + }, + "end": { + "line": 232, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "has", + "range": [ + 4603, + 4606 + ], + "loc": { + "start": { + "line": 232, + "column": 10 + }, + "end": { + "line": 232, + "column": 13 + } + } + }, + "range": [ + 4597, + 4606 + ], + "loc": { + "start": { + "line": 232, + "column": 4 + }, + "end": { + "line": 232, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cacheKey", + "range": [ + 4607, + 4615 + ], + "loc": { + "start": { + "line": 232, + "column": 14 + }, + "end": { + "line": 232, + "column": 22 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 4626, + 4631 + ], + "loc": { + "start": { + "line": 232, + "column": 33 + }, + "end": { + "line": 232, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "result", + "range": [ + 4633, + 4639 + ], + "loc": { + "start": { + "line": 232, + "column": 40 + }, + "end": { + "line": 232, + "column": 46 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "error", + "range": [ + 4653, + 4658 + ], + "loc": { + "start": { + "line": 233, + "column": 10 + }, + "end": { + "line": 233, + "column": 15 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "CachedRequestException", + "range": [ + 4680, + 4702 + ], + "loc": { + "start": { + "line": 234, + "column": 18 + }, + "end": { + "line": 234, + "column": 40 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 4703, + 4708 + ], + "loc": { + "start": { + "line": 234, + "column": 41 + }, + "end": { + "line": 234, + "column": 46 + } + } + } + ], + "range": [ + 4676, + 4709 + ], + "loc": { + "start": { + "line": 234, + "column": 14 + }, + "end": { + "line": 234, + "column": 47 + } + } + }, + "range": [ + 4670, + 4710 + ], + "loc": { + "start": { + "line": 234, + "column": 8 + }, + "end": { + "line": 234, + "column": 48 + } + } + } + ], + "range": [ + 4660, + 4718 + ], + "loc": { + "start": { + "line": 233, + "column": 17 + }, + "end": { + "line": 235, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 4649, + 4718 + ], + "loc": { + "start": { + "line": 233, + "column": 6 + }, + "end": { + "line": 235, + "column": 7 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "result", + "range": [ + 4730, + 4736 + ], + "loc": { + "start": { + "line": 237, + "column": 10 + }, + "end": { + "line": 237, + "column": 16 + } + } + }, + "right": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "invalidateCache", + "range": [ + 4741, + 4756 + ], + "loc": { + "start": { + "line": 237, + "column": 21 + }, + "end": { + "line": 237, + "column": 36 + } + } + }, + "prefix": true, + "range": [ + 4740, + 4756 + ], + "loc": { + "start": { + "line": 237, + "column": 20 + }, + "end": { + "line": 237, + "column": 36 + } + } + }, + "range": [ + 4730, + 4756 + ], + "loc": { + "start": { + "line": 237, + "column": 10 + }, + "end": { + "line": 237, + "column": 36 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "cache", + "range": [ + 4768, + 4773 + ], + "loc": { + "start": { + "line": 238, + "column": 8 + }, + "end": { + "line": 238, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 4774, + 4777 + ], + "loc": { + "start": { + "line": 238, + "column": 14 + }, + "end": { + "line": 238, + "column": 17 + } + } + }, + "range": [ + 4768, + 4777 + ], + "loc": { + "start": { + "line": 238, + "column": 8 + }, + "end": { + "line": 238, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cacheKey", + "range": [ + 4778, + 4786 + ], + "loc": { + "start": { + "line": 238, + "column": 18 + }, + "end": { + "line": 238, + "column": 26 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 4797, + 4802 + ], + "loc": { + "start": { + "line": 238, + "column": 37 + }, + "end": { + "line": 238, + "column": 42 + } + } + }, + { + "type": "Identifier", + "name": "result", + "range": [ + 4804, + 4810 + ], + "loc": { + "start": { + "line": 238, + "column": 44 + }, + "end": { + "line": 238, + "column": 50 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "error", + "range": [ + 4828, + 4833 + ], + "loc": { + "start": { + "line": 239, + "column": 14 + }, + "end": { + "line": 239, + "column": 19 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "CachedRequestException", + "range": [ + 4859, + 4881 + ], + "loc": { + "start": { + "line": 240, + "column": 22 + }, + "end": { + "line": 240, + "column": 44 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 4882, + 4887 + ], + "loc": { + "start": { + "line": 240, + "column": 45 + }, + "end": { + "line": 240, + "column": 50 + } + } + } + ], + "range": [ + 4855, + 4888 + ], + "loc": { + "start": { + "line": 240, + "column": 18 + }, + "end": { + "line": 240, + "column": 51 + } + } + }, + "range": [ + 4849, + 4889 + ], + "loc": { + "start": { + "line": 240, + "column": 12 + }, + "end": { + "line": 240, + "column": 52 + } + } + } + ], + "range": [ + 4835, + 4901 + ], + "loc": { + "start": { + "line": 239, + "column": 21 + }, + "end": { + "line": 241, + "column": 11 + } + } + }, + "alternate": null, + "range": [ + 4824, + 4901 + ], + "loc": { + "start": { + "line": 239, + "column": 10 + }, + "end": { + "line": 241, + "column": 11 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 4913, + 4921 + ], + "loc": { + "start": { + "line": 243, + "column": 10 + }, + "end": { + "line": 243, + "column": 18 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 4925, + 4933 + ], + "loc": { + "start": { + "line": 243, + "column": 22 + }, + "end": { + "line": 243, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4934, + 4938 + ], + "loc": { + "start": { + "line": 243, + "column": 31 + }, + "end": { + "line": 243, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rebuildResponse", + "range": [ + 4939, + 4955 + ], + "loc": { + "start": { + "line": 243, + "column": 36 + }, + "end": { + "line": 243, + "column": 52 + } + } + }, + "range": [ + 4934, + 4955 + ], + "loc": { + "start": { + "line": 243, + "column": 31 + }, + "end": { + "line": 243, + "column": 52 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "result", + "range": [ + 4956, + 4962 + ], + "loc": { + "start": { + "line": 243, + "column": 53 + }, + "end": { + "line": 243, + "column": 59 + } + } + } + ], + "range": [ + 4934, + 4963 + ], + "loc": { + "start": { + "line": 243, + "column": 31 + }, + "end": { + "line": 243, + "column": 60 + } + } + } + ], + "range": [ + 4925, + 4964 + ], + "loc": { + "start": { + "line": 243, + "column": 22 + }, + "end": { + "line": 243, + "column": 61 + } + } + }, + "range": [ + 4913, + 4964 + ], + "loc": { + "start": { + "line": 243, + "column": 10 + }, + "end": { + "line": 243, + "column": 61 + } + } + }, + "range": [ + 4913, + 4965 + ], + "loc": { + "start": { + "line": 243, + "column": 10 + }, + "end": { + "line": 243, + "column": 62 + } + } + } + ], + "range": [ + 4812, + 4975 + ], + "loc": { + "start": { + "line": 238, + "column": 52 + }, + "end": { + "line": 244, + "column": 9 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4788, + 4975 + ], + "loc": { + "start": { + "line": 238, + "column": 28 + }, + "end": { + "line": 244, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 4976, + 4980 + ], + "loc": { + "start": { + "line": 244, + "column": 10 + }, + "end": { + "line": 244, + "column": 14 + } + } + }, + "range": [ + 4788, + 4980 + ], + "loc": { + "start": { + "line": 238, + "column": 28 + }, + "end": { + "line": 244, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 4981, + 4985 + ], + "loc": { + "start": { + "line": 244, + "column": 15 + }, + "end": { + "line": 244, + "column": 19 + } + } + } + ], + "range": [ + 4788, + 4986 + ], + "loc": { + "start": { + "line": 238, + "column": 28 + }, + "end": { + "line": 244, + "column": 20 + } + } + } + ], + "range": [ + 4768, + 4987 + ], + "loc": { + "start": { + "line": 238, + "column": 8 + }, + "end": { + "line": 244, + "column": 21 + } + } + }, + "range": [ + 4768, + 4988 + ], + "loc": { + "start": { + "line": 238, + "column": 8 + }, + "end": { + "line": 244, + "column": 22 + } + } + }, + { + "type": "ReturnStatement", + "argument": null, + "range": [ + 4998, + 5005 + ], + "loc": { + "start": { + "line": 246, + "column": 8 + }, + "end": { + "line": 246, + "column": 15 + } + } + } + ], + "range": [ + 4758, + 5013 + ], + "loc": { + "start": { + "line": 237, + "column": 38 + }, + "end": { + "line": 247, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 4726, + 5013 + ], + "loc": { + "start": { + "line": 237, + "column": 6 + }, + "end": { + "line": 247, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5021, + 5025 + ], + "loc": { + "start": { + "line": 249, + "column": 6 + }, + "end": { + "line": 249, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_send", + "range": [ + 5026, + 5031 + ], + "loc": { + "start": { + "line": 249, + "column": 11 + }, + "end": { + "line": 249, + "column": 16 + } + } + }, + "range": [ + 5021, + 5031 + ], + "loc": { + "start": { + "line": 249, + "column": 6 + }, + "end": { + "line": 249, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "response", + "range": [ + 5041, + 5049 + ], + "loc": { + "start": { + "line": 249, + "column": 26 + }, + "end": { + "line": 249, + "column": 34 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "cache", + "range": [ + 5061, + 5066 + ], + "loc": { + "start": { + "line": 250, + "column": 8 + }, + "end": { + "line": 250, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 5067, + 5070 + ], + "loc": { + "start": { + "line": 250, + "column": 14 + }, + "end": { + "line": 250, + "column": 17 + } + } + }, + "range": [ + 5061, + 5070 + ], + "loc": { + "start": { + "line": 250, + "column": 8 + }, + "end": { + "line": 250, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cacheKey", + "range": [ + 5071, + 5079 + ], + "loc": { + "start": { + "line": 250, + "column": 18 + }, + "end": { + "line": 250, + "column": 26 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Request", + "range": [ + 5081, + 5088 + ], + "loc": { + "start": { + "line": 250, + "column": 28 + }, + "end": { + "line": 250, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "_stringifyResponse", + "range": [ + 5089, + 5107 + ], + "loc": { + "start": { + "line": 250, + "column": 36 + }, + "end": { + "line": 250, + "column": 54 + } + } + }, + "range": [ + 5081, + 5107 + ], + "loc": { + "start": { + "line": 250, + "column": 28 + }, + "end": { + "line": 250, + "column": 54 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "response", + "range": [ + 5108, + 5116 + ], + "loc": { + "start": { + "line": 250, + "column": 55 + }, + "end": { + "line": 250, + "column": 63 + } + } + } + ], + "range": [ + 5081, + 5117 + ], + "loc": { + "start": { + "line": 250, + "column": 28 + }, + "end": { + "line": 250, + "column": 64 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5119, + 5123 + ], + "loc": { + "start": { + "line": 250, + "column": 66 + }, + "end": { + "line": 250, + "column": 70 + } + } + }, + "property": { + "type": "Identifier", + "name": "_cacheTtl", + "range": [ + 5124, + 5133 + ], + "loc": { + "start": { + "line": 250, + "column": 71 + }, + "end": { + "line": 250, + "column": 80 + } + } + }, + "range": [ + 5119, + 5133 + ], + "loc": { + "start": { + "line": 250, + "column": 66 + }, + "end": { + "line": 250, + "column": 80 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 5144, + 5149 + ], + "loc": { + "start": { + "line": 250, + "column": 91 + }, + "end": { + "line": 250, + "column": 96 + } + } + }, + { + "type": "Identifier", + "name": "result", + "range": [ + 5151, + 5157 + ], + "loc": { + "start": { + "line": 250, + "column": 98 + }, + "end": { + "line": 250, + "column": 104 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "Identifier", + "name": "result", + "range": [ + 5176, + 5182 + ], + "loc": { + "start": { + "line": 251, + "column": 15 + }, + "end": { + "line": 251, + "column": 21 + } + } + }, + "prefix": true, + "range": [ + 5175, + 5182 + ], + "loc": { + "start": { + "line": 251, + "column": 14 + }, + "end": { + "line": 251, + "column": 21 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "Identifier", + "name": "error", + "range": [ + 5198, + 5203 + ], + "loc": { + "start": { + "line": 252, + "column": 12 + }, + "end": { + "line": 252, + "column": 17 + } + } + }, + "right": { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Unable to persist request cache under key ", + "cooked": "Unable to persist request cache under key " + }, + "tail": false, + "range": [ + 5206, + 5251 + ], + "loc": { + "start": { + "line": 252, + "column": 20 + }, + "end": { + "line": 252, + "column": 65 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 5259, + 5261 + ], + "loc": { + "start": { + "line": 252, + "column": 73 + }, + "end": { + "line": 252, + "column": 75 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "cacheKey", + "range": [ + 5251, + 5259 + ], + "loc": { + "start": { + "line": 252, + "column": 65 + }, + "end": { + "line": 252, + "column": 73 + } + } + } + ], + "range": [ + 5206, + 5261 + ], + "loc": { + "start": { + "line": 252, + "column": 20 + }, + "end": { + "line": 252, + "column": 75 + } + } + }, + "range": [ + 5198, + 5261 + ], + "loc": { + "start": { + "line": 252, + "column": 12 + }, + "end": { + "line": 252, + "column": 75 + } + } + }, + "range": [ + 5198, + 5262 + ], + "loc": { + "start": { + "line": 252, + "column": 12 + }, + "end": { + "line": 252, + "column": 76 + } + } + } + ], + "range": [ + 5184, + 5274 + ], + "loc": { + "start": { + "line": 251, + "column": 23 + }, + "end": { + "line": 253, + "column": 11 + } + } + }, + "alternate": null, + "range": [ + 5171, + 5274 + ], + "loc": { + "start": { + "line": 251, + "column": 10 + }, + "end": { + "line": 253, + "column": 11 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "error", + "range": [ + 5290, + 5295 + ], + "loc": { + "start": { + "line": 255, + "column": 14 + }, + "end": { + "line": 255, + "column": 19 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "CachedRequestException", + "range": [ + 5321, + 5343 + ], + "loc": { + "start": { + "line": 256, + "column": 22 + }, + "end": { + "line": 256, + "column": 44 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 5344, + 5349 + ], + "loc": { + "start": { + "line": 256, + "column": 45 + }, + "end": { + "line": 256, + "column": 50 + } + } + } + ], + "range": [ + 5317, + 5350 + ], + "loc": { + "start": { + "line": 256, + "column": 18 + }, + "end": { + "line": 256, + "column": 51 + } + } + }, + "range": [ + 5311, + 5351 + ], + "loc": { + "start": { + "line": 256, + "column": 12 + }, + "end": { + "line": 256, + "column": 52 + } + } + } + ], + "range": [ + 5297, + 5363 + ], + "loc": { + "start": { + "line": 255, + "column": 21 + }, + "end": { + "line": 257, + "column": 11 + } + } + }, + "alternate": null, + "range": [ + 5286, + 5363 + ], + "loc": { + "start": { + "line": 255, + "column": 10 + }, + "end": { + "line": 257, + "column": 11 + } + } + } + ], + "range": [ + 5159, + 5373 + ], + "loc": { + "start": { + "line": 250, + "column": 106 + }, + "end": { + "line": 258, + "column": 9 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 5135, + 5373 + ], + "loc": { + "start": { + "line": 250, + "column": 82 + }, + "end": { + "line": 258, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 5374, + 5378 + ], + "loc": { + "start": { + "line": 258, + "column": 10 + }, + "end": { + "line": 258, + "column": 14 + } + } + }, + "range": [ + 5135, + 5378 + ], + "loc": { + "start": { + "line": 250, + "column": 82 + }, + "end": { + "line": 258, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 5379, + 5383 + ], + "loc": { + "start": { + "line": 258, + "column": 15 + }, + "end": { + "line": 258, + "column": 19 + } + } + } + ], + "range": [ + 5135, + 5384 + ], + "loc": { + "start": { + "line": 250, + "column": 82 + }, + "end": { + "line": 258, + "column": 20 + } + } + } + ], + "range": [ + 5061, + 5385 + ], + "loc": { + "start": { + "line": 250, + "column": 8 + }, + "end": { + "line": 258, + "column": 21 + } + } + }, + "range": [ + 5061, + 5386 + ], + "loc": { + "start": { + "line": 250, + "column": 8 + }, + "end": { + "line": 258, + "column": 22 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " @todo: do it synchronous?", + "range": [ + 5396, + 5424 + ], + "loc": { + "start": { + "line": 260, + "column": 8 + }, + "end": { + "line": 260, + "column": 36 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 5433, + 5441 + ], + "loc": { + "start": { + "line": 261, + "column": 8 + }, + "end": { + "line": 261, + "column": 16 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 5445, + 5453 + ], + "loc": { + "start": { + "line": 261, + "column": 20 + }, + "end": { + "line": 261, + "column": 28 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "response", + "range": [ + 5454, + 5462 + ], + "loc": { + "start": { + "line": 261, + "column": 29 + }, + "end": { + "line": 261, + "column": 37 + } + } + } + ], + "range": [ + 5445, + 5463 + ], + "loc": { + "start": { + "line": 261, + "column": 20 + }, + "end": { + "line": 261, + "column": 38 + } + } + }, + "range": [ + 5433, + 5463 + ], + "loc": { + "start": { + "line": 261, + "column": 8 + }, + "end": { + "line": 261, + "column": 38 + } + } + }, + "range": [ + 5433, + 5464 + ], + "loc": { + "start": { + "line": 261, + "column": 8 + }, + "end": { + "line": 261, + "column": 39 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: do it synchronous?", + "range": [ + 5396, + 5424 + ], + "loc": { + "start": { + "line": 260, + "column": 8 + }, + "end": { + "line": 260, + "column": 36 + } + } + } + ] + } + ], + "range": [ + 5051, + 5472 + ], + "loc": { + "start": { + "line": 249, + "column": 36 + }, + "end": { + "line": 262, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 5032, + 5472 + ], + "loc": { + "start": { + "line": 249, + "column": 17 + }, + "end": { + "line": 262, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 5473, + 5477 + ], + "loc": { + "start": { + "line": 262, + "column": 8 + }, + "end": { + "line": 262, + "column": 12 + } + } + }, + "range": [ + 5032, + 5477 + ], + "loc": { + "start": { + "line": 249, + "column": 17 + }, + "end": { + "line": 262, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 5478, + 5482 + ], + "loc": { + "start": { + "line": 262, + "column": 13 + }, + "end": { + "line": 262, + "column": 17 + } + } + } + ], + "range": [ + 5032, + 5483 + ], + "loc": { + "start": { + "line": 249, + "column": 17 + }, + "end": { + "line": 262, + "column": 18 + } + } + } + ], + "range": [ + 5021, + 5484 + ], + "loc": { + "start": { + "line": 249, + "column": 6 + }, + "end": { + "line": 262, + "column": 19 + } + } + }, + "range": [ + 5021, + 5485 + ], + "loc": { + "start": { + "line": 249, + "column": 6 + }, + "end": { + "line": 262, + "column": 20 + } + } + } + ], + "range": [ + 4641, + 5491 + ], + "loc": { + "start": { + "line": 232, + "column": 48 + }, + "end": { + "line": 263, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4617, + 5491 + ], + "loc": { + "start": { + "line": 232, + "column": 24 + }, + "end": { + "line": 263, + "column": 5 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 5492, + 5496 + ], + "loc": { + "start": { + "line": 263, + "column": 6 + }, + "end": { + "line": 263, + "column": 10 + } + } + }, + "range": [ + 4617, + 5496 + ], + "loc": { + "start": { + "line": 232, + "column": 24 + }, + "end": { + "line": 263, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 5497, + 5501 + ], + "loc": { + "start": { + "line": 263, + "column": 11 + }, + "end": { + "line": 263, + "column": 15 + } + } + } + ], + "range": [ + 4617, + 5502 + ], + "loc": { + "start": { + "line": 232, + "column": 24 + }, + "end": { + "line": 263, + "column": 16 + } + } + } + ], + "range": [ + 4597, + 5503 + ], + "loc": { + "start": { + "line": 232, + "column": 4 + }, + "end": { + "line": 263, + "column": 17 + } + } + }, + "range": [ + 4597, + 5504 + ], + "loc": { + "start": { + "line": 232, + "column": 4 + }, + "end": { + "line": 263, + "column": 18 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 5517, + 5521 + ], + "loc": { + "start": { + "line": 265, + "column": 11 + }, + "end": { + "line": 265, + "column": 15 + } + } + }, + "range": [ + 5510, + 5522 + ], + "loc": { + "start": { + "line": 265, + "column": 4 + }, + "end": { + "line": 265, + "column": 16 + } + } + } + ], + "range": [ + 4378, + 5526 + ], + "loc": { + "start": { + "line": 223, + "column": 24 + }, + "end": { + "line": 266, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4360, + 5526 + ], + "loc": { + "start": { + "line": 223, + "column": 6 + }, + "end": { + "line": 266, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 4356, + 5526 + ], + "loc": { + "start": { + "line": 223, + "column": 2 + }, + "end": { + "line": 266, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 4312, + 4353 + ], + "loc": { + "start": { + "line": 220, + "column": 2 + }, + "end": { + "line": 222, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Request}\n ", + "range": [ + 5530, + 5595 + ], + "loc": { + "start": { + "line": 268, + "column": 2 + }, + "end": { + "line": 271, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_send", + "range": [ + 5598, + 5603 + ], + "loc": { + "start": { + "line": 272, + "column": 2 + }, + "end": { + "line": 272, + "column": 7 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 5604, + 5612 + ], + "loc": { + "start": { + "line": 272, + "column": 8 + }, + "end": { + "line": 272, + "column": 16 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 5621, + 5625 + ], + "loc": { + "start": { + "line": 272, + "column": 25 + }, + "end": { + "line": 272, + "column": 29 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 5615, + 5625 + ], + "loc": { + "start": { + "line": 272, + "column": 19 + }, + "end": { + "line": 272, + "column": 29 + } + } + }, + "range": [ + 5604, + 5625 + ], + "loc": { + "start": { + "line": 272, + "column": 8 + }, + "end": { + "line": 272, + "column": 29 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5638, + 5642 + ], + "loc": { + "start": { + "line": 273, + "column": 9 + }, + "end": { + "line": 273, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "_native", + "range": [ + 5643, + 5650 + ], + "loc": { + "start": { + "line": 273, + "column": 14 + }, + "end": { + "line": 273, + "column": 21 + } + } + }, + "range": [ + 5638, + 5650 + ], + "loc": { + "start": { + "line": 273, + "column": 9 + }, + "end": { + "line": 273, + "column": 21 + } + } + }, + "prefix": true, + "range": [ + 5637, + 5650 + ], + "loc": { + "start": { + "line": 273, + "column": 8 + }, + "end": { + "line": 273, + "column": 21 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5667, + 5671 + ], + "loc": { + "start": { + "line": 274, + "column": 13 + }, + "end": { + "line": 274, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_sendThroughApi", + "range": [ + 5672, + 5687 + ], + "loc": { + "start": { + "line": 274, + "column": 18 + }, + "end": { + "line": 274, + "column": 33 + } + } + }, + "range": [ + 5667, + 5687 + ], + "loc": { + "start": { + "line": 274, + "column": 13 + }, + "end": { + "line": 274, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 5688, + 5696 + ], + "loc": { + "start": { + "line": 274, + "column": 34 + }, + "end": { + "line": 274, + "column": 42 + } + } + } + ], + "range": [ + 5667, + 5697 + ], + "loc": { + "start": { + "line": 274, + "column": 13 + }, + "end": { + "line": 274, + "column": 43 + } + } + }, + "range": [ + 5660, + 5698 + ], + "loc": { + "start": { + "line": 274, + "column": 6 + }, + "end": { + "line": 274, + "column": 44 + } + } + } + ], + "range": [ + 5652, + 5704 + ], + "loc": { + "start": { + "line": 273, + "column": 23 + }, + "end": { + "line": 275, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 5633, + 5704 + ], + "loc": { + "start": { + "line": 273, + "column": 4 + }, + "end": { + "line": 275, + "column": 5 + } + } + }, + { + "type": "SwitchStatement", + "discriminant": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5718, + 5722 + ], + "loc": { + "start": { + "line": 277, + "column": 12 + }, + "end": { + "line": 277, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 5723, + 5730 + ], + "loc": { + "start": { + "line": 277, + "column": 17 + }, + "end": { + "line": 277, + "column": 24 + } + } + }, + "range": [ + 5718, + 5730 + ], + "loc": { + "start": { + "line": 277, + "column": 12 + }, + "end": { + "line": 277, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 5731, + 5735 + ], + "loc": { + "start": { + "line": 277, + "column": 25 + }, + "end": { + "line": 277, + "column": 29 + } + } + }, + "range": [ + 5718, + 5735 + ], + "loc": { + "start": { + "line": 277, + "column": 12 + }, + "end": { + "line": 277, + "column": 29 + } + } + }, + "cases": [ + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Action", + "range": [ + 5750, + 5756 + ], + "loc": { + "start": { + "line": 278, + "column": 11 + }, + "end": { + "line": 278, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "LAMBDA", + "range": [ + 5757, + 5763 + ], + "loc": { + "start": { + "line": 278, + "column": 18 + }, + "end": { + "line": 278, + "column": 24 + } + } + }, + "range": [ + 5750, + 5763 + ], + "loc": { + "start": { + "line": 278, + "column": 11 + }, + "end": { + "line": 278, + "column": 24 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5773, + 5777 + ], + "loc": { + "start": { + "line": 279, + "column": 8 + }, + "end": { + "line": 279, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_sendLambda", + "range": [ + 5778, + 5789 + ], + "loc": { + "start": { + "line": 279, + "column": 13 + }, + "end": { + "line": 279, + "column": 24 + } + } + }, + "range": [ + 5773, + 5789 + ], + "loc": { + "start": { + "line": 279, + "column": 8 + }, + "end": { + "line": 279, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 5790, + 5798 + ], + "loc": { + "start": { + "line": 279, + "column": 25 + }, + "end": { + "line": 279, + "column": 33 + } + } + } + ], + "range": [ + 5773, + 5799 + ], + "loc": { + "start": { + "line": 279, + "column": 8 + }, + "end": { + "line": 279, + "column": 34 + } + } + }, + "range": [ + 5773, + 5800 + ], + "loc": { + "start": { + "line": 279, + "column": 8 + }, + "end": { + "line": 279, + "column": 35 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 5809, + 5815 + ], + "loc": { + "start": { + "line": 280, + "column": 8 + }, + "end": { + "line": 280, + "column": 14 + } + } + } + ], + "range": [ + 5745, + 5815 + ], + "loc": { + "start": { + "line": 278, + "column": 6 + }, + "end": { + "line": 280, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Action", + "range": [ + 5827, + 5833 + ], + "loc": { + "start": { + "line": 281, + "column": 11 + }, + "end": { + "line": 281, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "EXTERNAL", + "range": [ + 5834, + 5842 + ], + "loc": { + "start": { + "line": 281, + "column": 18 + }, + "end": { + "line": 281, + "column": 26 + } + } + }, + "range": [ + 5827, + 5842 + ], + "loc": { + "start": { + "line": 281, + "column": 11 + }, + "end": { + "line": 281, + "column": 26 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5852, + 5856 + ], + "loc": { + "start": { + "line": 282, + "column": 8 + }, + "end": { + "line": 282, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_sendExternal", + "range": [ + 5857, + 5870 + ], + "loc": { + "start": { + "line": 282, + "column": 13 + }, + "end": { + "line": 282, + "column": 26 + } + } + }, + "range": [ + 5852, + 5870 + ], + "loc": { + "start": { + "line": 282, + "column": 8 + }, + "end": { + "line": 282, + "column": 26 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 5871, + 5879 + ], + "loc": { + "start": { + "line": 282, + "column": 27 + }, + "end": { + "line": 282, + "column": 35 + } + } + } + ], + "range": [ + 5852, + 5880 + ], + "loc": { + "start": { + "line": 282, + "column": 8 + }, + "end": { + "line": 282, + "column": 36 + } + } + }, + "range": [ + 5852, + 5881 + ], + "loc": { + "start": { + "line": 282, + "column": 8 + }, + "end": { + "line": 282, + "column": 37 + } + } + }, + { + "type": "BreakStatement", + "label": null, + "range": [ + 5890, + 5896 + ], + "loc": { + "start": { + "line": 283, + "column": 8 + }, + "end": { + "line": 283, + "column": 14 + } + } + } + ], + "range": [ + 5822, + 5896 + ], + "loc": { + "start": { + "line": 281, + "column": 6 + }, + "end": { + "line": 283, + "column": 14 + } + } + }, + { + "type": "SwitchCase", + "test": null, + "consequent": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Exception", + "range": [ + 5922, + 5931 + ], + "loc": { + "start": { + "line": 284, + "column": 25 + }, + "end": { + "line": 284, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Request of type ", + "cooked": "Request of type " + }, + "tail": false, + "range": [ + 5932, + 5951 + ], + "loc": { + "start": { + "line": 284, + "column": 35 + }, + "end": { + "line": 284, + "column": 54 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " is not implemented", + "cooked": " is not implemented" + }, + "tail": true, + "range": [ + 5968, + 5989 + ], + "loc": { + "start": { + "line": 284, + "column": 71 + }, + "end": { + "line": 284, + "column": 92 + } + } + } + ], + "expressions": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5951, + 5955 + ], + "loc": { + "start": { + "line": 284, + "column": 54 + }, + "end": { + "line": 284, + "column": 58 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 5956, + 5963 + ], + "loc": { + "start": { + "line": 284, + "column": 59 + }, + "end": { + "line": 284, + "column": 66 + } + } + }, + "range": [ + 5951, + 5963 + ], + "loc": { + "start": { + "line": 284, + "column": 54 + }, + "end": { + "line": 284, + "column": 66 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 5964, + 5968 + ], + "loc": { + "start": { + "line": 284, + "column": 67 + }, + "end": { + "line": 284, + "column": 71 + } + } + }, + "range": [ + 5951, + 5968 + ], + "loc": { + "start": { + "line": 284, + "column": 54 + }, + "end": { + "line": 284, + "column": 71 + } + } + } + ], + "range": [ + 5932, + 5989 + ], + "loc": { + "start": { + "line": 284, + "column": 35 + }, + "end": { + "line": 284, + "column": 92 + } + } + } + ], + "range": [ + 5918, + 5990 + ], + "loc": { + "start": { + "line": 284, + "column": 21 + }, + "end": { + "line": 284, + "column": 93 + } + } + }, + "range": [ + 5912, + 5991 + ], + "loc": { + "start": { + "line": 284, + "column": 15 + }, + "end": { + "line": 284, + "column": 94 + } + } + } + ], + "range": [ + 5903, + 5991 + ], + "loc": { + "start": { + "line": 284, + "column": 6 + }, + "end": { + "line": 284, + "column": 94 + } + } + } + ], + "range": [ + 5710, + 5997 + ], + "loc": { + "start": { + "line": 277, + "column": 4 + }, + "end": { + "line": 285, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 6010, + 6014 + ], + "loc": { + "start": { + "line": 287, + "column": 11 + }, + "end": { + "line": 287, + "column": 15 + } + } + }, + "range": [ + 6003, + 6015 + ], + "loc": { + "start": { + "line": 287, + "column": 4 + }, + "end": { + "line": 287, + "column": 16 + } + } + } + ], + "range": [ + 5627, + 6019 + ], + "loc": { + "start": { + "line": 272, + "column": 31 + }, + "end": { + "line": 288, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 5603, + 6019 + ], + "loc": { + "start": { + "line": 272, + "column": 7 + }, + "end": { + "line": 288, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 5598, + 6019 + ], + "loc": { + "start": { + "line": 272, + "column": 2 + }, + "end": { + "line": 288, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Request}\n ", + "range": [ + 5530, + 5595 + ], + "loc": { + "start": { + "line": 268, + "column": 2 + }, + "end": { + "line": 271, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Request}\n * @private\n ", + "range": [ + 6023, + 6102 + ], + "loc": { + "start": { + "line": 290, + "column": 2 + }, + "end": { + "line": 294, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_sendThroughApi", + "range": [ + 6105, + 6120 + ], + "loc": { + "start": { + "line": 295, + "column": 2 + }, + "end": { + "line": 295, + "column": 17 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 6121, + 6129 + ], + "loc": { + "start": { + "line": 295, + "column": 18 + }, + "end": { + "line": 295, + "column": 26 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 6138, + 6142 + ], + "loc": { + "start": { + "line": 295, + "column": 35 + }, + "end": { + "line": 295, + "column": 39 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 6132, + 6142 + ], + "loc": { + "start": { + "line": 295, + "column": 29 + }, + "end": { + "line": 295, + "column": 39 + } + } + }, + "range": [ + 6121, + 6142 + ], + "loc": { + "start": { + "line": 295, + "column": 18 + }, + "end": { + "line": 295, + "column": 39 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "urlParts", + "range": [ + 6154, + 6162 + ], + "loc": { + "start": { + "line": 296, + "column": 8 + }, + "end": { + "line": 296, + "column": 16 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "parseUrl", + "range": [ + 6165, + 6173 + ], + "loc": { + "start": { + "line": 296, + "column": 19 + }, + "end": { + "line": 296, + "column": 27 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 6174, + 6178 + ], + "loc": { + "start": { + "line": 296, + "column": 28 + }, + "end": { + "line": 296, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 6179, + 6186 + ], + "loc": { + "start": { + "line": 296, + "column": 33 + }, + "end": { + "line": 296, + "column": 40 + } + } + }, + "range": [ + 6174, + 6186 + ], + "loc": { + "start": { + "line": 296, + "column": 28 + }, + "end": { + "line": 296, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "source", + "range": [ + 6187, + 6193 + ], + "loc": { + "start": { + "line": 296, + "column": 41 + }, + "end": { + "line": 296, + "column": 47 + } + } + }, + "range": [ + 6174, + 6193 + ], + "loc": { + "start": { + "line": 296, + "column": 28 + }, + "end": { + "line": 296, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "api", + "range": [ + 6194, + 6197 + ], + "loc": { + "start": { + "line": 296, + "column": 48 + }, + "end": { + "line": 296, + "column": 51 + } + } + }, + "range": [ + 6174, + 6197 + ], + "loc": { + "start": { + "line": 296, + "column": 28 + }, + "end": { + "line": 296, + "column": 51 + } + } + } + ], + "range": [ + 6165, + 6198 + ], + "loc": { + "start": { + "line": 296, + "column": 19 + }, + "end": { + "line": 296, + "column": 52 + } + } + }, + "range": [ + 6154, + 6198 + ], + "loc": { + "start": { + "line": 296, + "column": 8 + }, + "end": { + "line": 296, + "column": 52 + } + } + } + ], + "kind": "let", + "range": [ + 6150, + 6199 + ], + "loc": { + "start": { + "line": 296, + "column": 4 + }, + "end": { + "line": 296, + "column": 53 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "apiHost", + "range": [ + 6209, + 6216 + ], + "loc": { + "start": { + "line": 298, + "column": 8 + }, + "end": { + "line": 298, + "column": 15 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "urlParts", + "range": [ + 6219, + 6227 + ], + "loc": { + "start": { + "line": 298, + "column": 18 + }, + "end": { + "line": 298, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "resource", + "range": [ + 6228, + 6236 + ], + "loc": { + "start": { + "line": 298, + "column": 27 + }, + "end": { + "line": 298, + "column": 35 + } + } + }, + "range": [ + 6219, + 6236 + ], + "loc": { + "start": { + "line": 298, + "column": 18 + }, + "end": { + "line": 298, + "column": 35 + } + } + }, + "range": [ + 6209, + 6236 + ], + "loc": { + "start": { + "line": 298, + "column": 8 + }, + "end": { + "line": 298, + "column": 35 + } + } + } + ], + "kind": "let", + "range": [ + 6205, + 6237 + ], + "loc": { + "start": { + "line": 298, + "column": 4 + }, + "end": { + "line": 298, + "column": 36 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "apiPath", + "range": [ + 6246, + 6253 + ], + "loc": { + "start": { + "line": 299, + "column": 8 + }, + "end": { + "line": 299, + "column": 15 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "urlParts", + "range": [ + 6256, + 6264 + ], + "loc": { + "start": { + "line": 299, + "column": 18 + }, + "end": { + "line": 299, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "pathname", + "range": [ + 6265, + 6273 + ], + "loc": { + "start": { + "line": 299, + "column": 27 + }, + "end": { + "line": 299, + "column": 35 + } + } + }, + "range": [ + 6256, + 6273 + ], + "loc": { + "start": { + "line": 299, + "column": 18 + }, + "end": { + "line": 299, + "column": 35 + } + } + }, + "consequent": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "urlParts", + "range": [ + 6276, + 6284 + ], + "loc": { + "start": { + "line": 299, + "column": 38 + }, + "end": { + "line": 299, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "pathname", + "range": [ + 6285, + 6293 + ], + "loc": { + "start": { + "line": 299, + "column": 47 + }, + "end": { + "line": 299, + "column": 55 + } + } + }, + "range": [ + 6276, + 6293 + ], + "loc": { + "start": { + "line": 299, + "column": 38 + }, + "end": { + "line": 299, + "column": 55 + } + } + }, + "alternate": { + "type": "Literal", + "value": "/", + "raw": "'/'", + "range": [ + 6296, + 6299 + ], + "loc": { + "start": { + "line": 299, + "column": 58 + }, + "end": { + "line": 299, + "column": 61 + } + } + }, + "range": [ + 6256, + 6299 + ], + "loc": { + "start": { + "line": 299, + "column": 18 + }, + "end": { + "line": 299, + "column": 61 + } + } + }, + "range": [ + 6246, + 6299 + ], + "loc": { + "start": { + "line": 299, + "column": 8 + }, + "end": { + "line": 299, + "column": 61 + } + } + } + ], + "kind": "let", + "range": [ + 6242, + 6300 + ], + "loc": { + "start": { + "line": 299, + "column": 4 + }, + "end": { + "line": 299, + "column": 62 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "apiQueryString", + "range": [ + 6309, + 6323 + ], + "loc": { + "start": { + "line": 300, + "column": 8 + }, + "end": { + "line": 300, + "column": 22 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "urlParts", + "range": [ + 6326, + 6334 + ], + "loc": { + "start": { + "line": 300, + "column": 25 + }, + "end": { + "line": 300, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "search", + "range": [ + 6335, + 6341 + ], + "loc": { + "start": { + "line": 300, + "column": 34 + }, + "end": { + "line": 300, + "column": 40 + } + } + }, + "range": [ + 6326, + 6341 + ], + "loc": { + "start": { + "line": 300, + "column": 25 + }, + "end": { + "line": 300, + "column": 40 + } + } + }, + "consequent": { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "?", + "cooked": "?" + }, + "tail": false, + "range": [ + 6344, + 6348 + ], + "loc": { + "start": { + "line": 300, + "column": 43 + }, + "end": { + "line": 300, + "column": 47 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 6363, + 6365 + ], + "loc": { + "start": { + "line": 300, + "column": 62 + }, + "end": { + "line": 300, + "column": 64 + } + } + } + ], + "expressions": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "urlParts", + "range": [ + 6348, + 6356 + ], + "loc": { + "start": { + "line": 300, + "column": 47 + }, + "end": { + "line": 300, + "column": 55 + } + } + }, + "property": { + "type": "Identifier", + "name": "search", + "range": [ + 6357, + 6363 + ], + "loc": { + "start": { + "line": 300, + "column": 56 + }, + "end": { + "line": 300, + "column": 62 + } + } + }, + "range": [ + 6348, + 6363 + ], + "loc": { + "start": { + "line": 300, + "column": 47 + }, + "end": { + "line": 300, + "column": 62 + } + } + } + ], + "range": [ + 6344, + 6365 + ], + "loc": { + "start": { + "line": 300, + "column": 43 + }, + "end": { + "line": 300, + "column": 64 + } + } + }, + "alternate": { + "type": "Literal", + "value": "", + "raw": "''", + "range": [ + 6368, + 6370 + ], + "loc": { + "start": { + "line": 300, + "column": 67 + }, + "end": { + "line": 300, + "column": 69 + } + } + }, + "range": [ + 6326, + 6370 + ], + "loc": { + "start": { + "line": 300, + "column": 25 + }, + "end": { + "line": 300, + "column": 69 + } + } + }, + "range": [ + 6309, + 6370 + ], + "loc": { + "start": { + "line": 300, + "column": 8 + }, + "end": { + "line": 300, + "column": 69 + } + } + } + ], + "kind": "let", + "range": [ + 6305, + 6371 + ], + "loc": { + "start": { + "line": 300, + "column": 4 + }, + "end": { + "line": 300, + "column": 70 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "signature", + "range": [ + 6381, + 6390 + ], + "loc": { + "start": { + "line": 302, + "column": 8 + }, + "end": { + "line": 302, + "column": 17 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "aws4", + "range": [ + 6393, + 6397 + ], + "loc": { + "start": { + "line": 302, + "column": 20 + }, + "end": { + "line": 302, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "sign", + "range": [ + 6398, + 6402 + ], + "loc": { + "start": { + "line": 302, + "column": 25 + }, + "end": { + "line": 302, + "column": 29 + } + } + }, + "range": [ + 6393, + 6402 + ], + "loc": { + "start": { + "line": 302, + "column": 20 + }, + "end": { + "line": 302, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "host", + "range": [ + 6411, + 6415 + ], + "loc": { + "start": { + "line": 303, + "column": 6 + }, + "end": { + "line": 303, + "column": 10 + } + } + }, + "value": { + "type": "Identifier", + "name": "apiHost", + "range": [ + 6417, + 6424 + ], + "loc": { + "start": { + "line": 303, + "column": 12 + }, + "end": { + "line": 303, + "column": 19 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 6411, + 6424 + ], + "loc": { + "start": { + "line": 303, + "column": 6 + }, + "end": { + "line": 303, + "column": 19 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "path", + "range": [ + 6432, + 6436 + ], + "loc": { + "start": { + "line": 304, + "column": 6 + }, + "end": { + "line": 304, + "column": 10 + } + } + }, + "value": { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": false, + "range": [ + 6438, + 6441 + ], + "loc": { + "start": { + "line": 304, + "column": 12 + }, + "end": { + "line": 304, + "column": 15 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": false, + "range": [ + 6448, + 6451 + ], + "loc": { + "start": { + "line": 304, + "column": 22 + }, + "end": { + "line": 304, + "column": 25 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 6465, + 6467 + ], + "loc": { + "start": { + "line": 304, + "column": 39 + }, + "end": { + "line": 304, + "column": 41 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "apiPath", + "range": [ + 6441, + 6448 + ], + "loc": { + "start": { + "line": 304, + "column": 15 + }, + "end": { + "line": 304, + "column": 22 + } + } + }, + { + "type": "Identifier", + "name": "apiQueryString", + "range": [ + 6451, + 6465 + ], + "loc": { + "start": { + "line": 304, + "column": 25 + }, + "end": { + "line": 304, + "column": 39 + } + } + } + ], + "range": [ + 6438, + 6467 + ], + "loc": { + "start": { + "line": 304, + "column": 12 + }, + "end": { + "line": 304, + "column": 41 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 6432, + 6467 + ], + "loc": { + "start": { + "line": 304, + "column": 6 + }, + "end": { + "line": 304, + "column": 41 + } + } + } + ], + "range": [ + 6403, + 6474 + ], + "loc": { + "start": { + "line": 302, + "column": 30 + }, + "end": { + "line": 305, + "column": 5 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 6476, + 6480 + ], + "loc": { + "start": { + "line": 305, + "column": 7 + }, + "end": { + "line": 305, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 6481, + 6488 + ], + "loc": { + "start": { + "line": 305, + "column": 12 + }, + "end": { + "line": 305, + "column": 19 + } + } + }, + "range": [ + 6476, + 6488 + ], + "loc": { + "start": { + "line": 305, + "column": 7 + }, + "end": { + "line": 305, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "resource", + "range": [ + 6489, + 6497 + ], + "loc": { + "start": { + "line": 305, + "column": 20 + }, + "end": { + "line": 305, + "column": 28 + } + } + }, + "range": [ + 6476, + 6497 + ], + "loc": { + "start": { + "line": 305, + "column": 7 + }, + "end": { + "line": 305, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "securityCredentials", + "range": [ + 6498, + 6517 + ], + "loc": { + "start": { + "line": 305, + "column": 29 + }, + "end": { + "line": 305, + "column": 48 + } + } + }, + "range": [ + 6476, + 6517 + ], + "loc": { + "start": { + "line": 305, + "column": 7 + }, + "end": { + "line": 305, + "column": 48 + } + } + } + ], + "range": [ + 6393, + 6518 + ], + "loc": { + "start": { + "line": 302, + "column": 20 + }, + "end": { + "line": 305, + "column": 49 + } + } + }, + "range": [ + 6381, + 6518 + ], + "loc": { + "start": { + "line": 302, + "column": 8 + }, + "end": { + "line": 305, + "column": 49 + } + } + } + ], + "kind": "let", + "range": [ + 6377, + 6519 + ], + "loc": { + "start": { + "line": 302, + "column": 4 + }, + "end": { + "line": 305, + "column": 50 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "Http", + "range": [ + 6525, + 6529 + ], + "loc": { + "start": { + "line": 307, + "column": 4 + }, + "end": { + "line": 307, + "column": 8 + } + } + }, + "property": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 6530, + 6534 + ], + "loc": { + "start": { + "line": 307, + "column": 9 + }, + "end": { + "line": 307, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "_method", + "range": [ + 6535, + 6542 + ], + "loc": { + "start": { + "line": 307, + "column": 14 + }, + "end": { + "line": 307, + "column": 21 + } + } + }, + "range": [ + 6530, + 6542 + ], + "loc": { + "start": { + "line": 307, + "column": 9 + }, + "end": { + "line": 307, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "toLowerCase", + "range": [ + 6543, + 6554 + ], + "loc": { + "start": { + "line": 307, + "column": 22 + }, + "end": { + "line": 307, + "column": 33 + } + } + }, + "range": [ + 6530, + 6554 + ], + "loc": { + "start": { + "line": 307, + "column": 9 + }, + "end": { + "line": 307, + "column": 33 + } + } + }, + "arguments": [], + "range": [ + 6530, + 6556 + ], + "loc": { + "start": { + "line": 307, + "column": 9 + }, + "end": { + "line": 307, + "column": 35 + } + } + }, + "range": [ + 6525, + 6557 + ], + "loc": { + "start": { + "line": 307, + "column": 4 + }, + "end": { + "line": 307, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 6558, + 6562 + ], + "loc": { + "start": { + "line": 307, + "column": 37 + }, + "end": { + "line": 307, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 6563, + 6570 + ], + "loc": { + "start": { + "line": 307, + "column": 42 + }, + "end": { + "line": 307, + "column": 49 + } + } + }, + "range": [ + 6558, + 6570 + ], + "loc": { + "start": { + "line": 307, + "column": 37 + }, + "end": { + "line": 307, + "column": 49 + } + } + }, + "property": { + "type": "Identifier", + "name": "source", + "range": [ + 6571, + 6577 + ], + "loc": { + "start": { + "line": 307, + "column": 50 + }, + "end": { + "line": 307, + "column": 56 + } + } + }, + "range": [ + 6558, + 6577 + ], + "loc": { + "start": { + "line": 307, + "column": 37 + }, + "end": { + "line": 307, + "column": 56 + } + } + }, + "property": { + "type": "Identifier", + "name": "api", + "range": [ + 6578, + 6581 + ], + "loc": { + "start": { + "line": 307, + "column": 57 + }, + "end": { + "line": 307, + "column": 60 + } + } + }, + "range": [ + 6558, + 6581 + ], + "loc": { + "start": { + "line": 307, + "column": 37 + }, + "end": { + "line": 307, + "column": 60 + } + } + } + ], + "range": [ + 6525, + 6582 + ], + "loc": { + "start": { + "line": 307, + "column": 4 + }, + "end": { + "line": 307, + "column": 61 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 6590, + 6593 + ], + "loc": { + "start": { + "line": 308, + "column": 7 + }, + "end": { + "line": 308, + "column": 10 + } + } + }, + "range": [ + 6525, + 6593 + ], + "loc": { + "start": { + "line": 307, + "column": 4 + }, + "end": { + "line": 308, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "Host", + "raw": "'Host'", + "range": [ + 6594, + 6600 + ], + "loc": { + "start": { + "line": 308, + "column": 11 + }, + "end": { + "line": 308, + "column": 17 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "signature", + "range": [ + 6602, + 6611 + ], + "loc": { + "start": { + "line": 308, + "column": 19 + }, + "end": { + "line": 308, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "headers", + "range": [ + 6612, + 6619 + ], + "loc": { + "start": { + "line": 308, + "column": 29 + }, + "end": { + "line": 308, + "column": 36 + } + } + }, + "range": [ + 6602, + 6619 + ], + "loc": { + "start": { + "line": 308, + "column": 19 + }, + "end": { + "line": 308, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "Host", + "range": [ + 6620, + 6624 + ], + "loc": { + "start": { + "line": 308, + "column": 37 + }, + "end": { + "line": 308, + "column": 41 + } + } + }, + "range": [ + 6602, + 6624 + ], + "loc": { + "start": { + "line": 308, + "column": 19 + }, + "end": { + "line": 308, + "column": 41 + } + } + } + ], + "range": [ + 6525, + 6625 + ], + "loc": { + "start": { + "line": 307, + "column": 4 + }, + "end": { + "line": 308, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 6633, + 6636 + ], + "loc": { + "start": { + "line": 309, + "column": 7 + }, + "end": { + "line": 309, + "column": 10 + } + } + }, + "range": [ + 6525, + 6636 + ], + "loc": { + "start": { + "line": 307, + "column": 4 + }, + "end": { + "line": 309, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "X-Amz-Date", + "raw": "'X-Amz-Date'", + "range": [ + 6637, + 6649 + ], + "loc": { + "start": { + "line": 309, + "column": 11 + }, + "end": { + "line": 309, + "column": 23 + } + } + }, + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "signature", + "range": [ + 6651, + 6660 + ], + "loc": { + "start": { + "line": 309, + "column": 25 + }, + "end": { + "line": 309, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "headers", + "range": [ + 6661, + 6668 + ], + "loc": { + "start": { + "line": 309, + "column": 35 + }, + "end": { + "line": 309, + "column": 42 + } + } + }, + "range": [ + 6651, + 6668 + ], + "loc": { + "start": { + "line": 309, + "column": 25 + }, + "end": { + "line": 309, + "column": 42 + } + } + }, + "property": { + "type": "Literal", + "value": "X-Amz-Date", + "raw": "'X-Amz-Date'", + "range": [ + 6669, + 6681 + ], + "loc": { + "start": { + "line": 309, + "column": 43 + }, + "end": { + "line": 309, + "column": 55 + } + } + }, + "range": [ + 6651, + 6682 + ], + "loc": { + "start": { + "line": 309, + "column": 25 + }, + "end": { + "line": 309, + "column": 56 + } + } + } + ], + "range": [ + 6525, + 6683 + ], + "loc": { + "start": { + "line": 307, + "column": 4 + }, + "end": { + "line": 309, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 6691, + 6694 + ], + "loc": { + "start": { + "line": 310, + "column": 7 + }, + "end": { + "line": 310, + "column": 10 + } + } + }, + "range": [ + 6525, + 6694 + ], + "loc": { + "start": { + "line": 307, + "column": 4 + }, + "end": { + "line": 310, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "Authorization", + "raw": "'Authorization'", + "range": [ + 6695, + 6710 + ], + "loc": { + "start": { + "line": 310, + "column": 11 + }, + "end": { + "line": 310, + "column": 26 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "signature", + "range": [ + 6712, + 6721 + ], + "loc": { + "start": { + "line": 310, + "column": 28 + }, + "end": { + "line": 310, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "headers", + "range": [ + 6722, + 6729 + ], + "loc": { + "start": { + "line": 310, + "column": 38 + }, + "end": { + "line": 310, + "column": 45 + } + } + }, + "range": [ + 6712, + 6729 + ], + "loc": { + "start": { + "line": 310, + "column": 28 + }, + "end": { + "line": 310, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Authorization", + "range": [ + 6730, + 6743 + ], + "loc": { + "start": { + "line": 310, + "column": 46 + }, + "end": { + "line": 310, + "column": 59 + } + } + }, + "range": [ + 6712, + 6743 + ], + "loc": { + "start": { + "line": 310, + "column": 28 + }, + "end": { + "line": 310, + "column": 59 + } + } + } + ], + "range": [ + 6525, + 6744 + ], + "loc": { + "start": { + "line": 307, + "column": 4 + }, + "end": { + "line": 310, + "column": 60 + } + } + }, + "property": { + "type": "Identifier", + "name": "send", + "range": [ + 6752, + 6756 + ], + "loc": { + "start": { + "line": 311, + "column": 7 + }, + "end": { + "line": 311, + "column": 11 + } + } + }, + "range": [ + 6525, + 6756 + ], + "loc": { + "start": { + "line": 307, + "column": 4 + }, + "end": { + "line": 311, + "column": 11 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 6757, + 6761 + ], + "loc": { + "start": { + "line": 311, + "column": 12 + }, + "end": { + "line": 311, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "payload", + "range": [ + 6762, + 6769 + ], + "loc": { + "start": { + "line": 311, + "column": 17 + }, + "end": { + "line": 311, + "column": 24 + } + } + }, + "range": [ + 6757, + 6769 + ], + "loc": { + "start": { + "line": 311, + "column": 12 + }, + "end": { + "line": 311, + "column": 24 + } + } + } + ], + "range": [ + 6525, + 6770 + ], + "loc": { + "start": { + "line": 307, + "column": 4 + }, + "end": { + "line": 311, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "end", + "range": [ + 6778, + 6781 + ], + "loc": { + "start": { + "line": 312, + "column": 7 + }, + "end": { + "line": 312, + "column": 10 + } + } + }, + "range": [ + 6525, + 6781 + ], + "loc": { + "start": { + "line": 307, + "column": 4 + }, + "end": { + "line": 312, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 6791, + 6796 + ], + "loc": { + "start": { + "line": 312, + "column": 20 + }, + "end": { + "line": 312, + "column": 25 + } + } + }, + { + "type": "Identifier", + "name": "response", + "range": [ + 6798, + 6806 + ], + "loc": { + "start": { + "line": 312, + "column": 27 + }, + "end": { + "line": 312, + "column": 35 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 6818, + 6826 + ], + "loc": { + "start": { + "line": 313, + "column": 8 + }, + "end": { + "line": 313, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "SuperagentResponse", + "range": [ + 6831, + 6849 + ], + "loc": { + "start": { + "line": 313, + "column": 21 + }, + "end": { + "line": 313, + "column": 39 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 6850, + 6854 + ], + "loc": { + "start": { + "line": 313, + "column": 40 + }, + "end": { + "line": 313, + "column": 44 + } + } + }, + { + "type": "Identifier", + "name": "response", + "range": [ + 6856, + 6864 + ], + "loc": { + "start": { + "line": 313, + "column": 46 + }, + "end": { + "line": 313, + "column": 54 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 6866, + 6871 + ], + "loc": { + "start": { + "line": 313, + "column": 56 + }, + "end": { + "line": 313, + "column": 61 + } + } + } + ], + "range": [ + 6827, + 6872 + ], + "loc": { + "start": { + "line": 313, + "column": 17 + }, + "end": { + "line": 313, + "column": 62 + } + } + } + ], + "range": [ + 6818, + 6873 + ], + "loc": { + "start": { + "line": 313, + "column": 8 + }, + "end": { + "line": 313, + "column": 63 + } + } + }, + "range": [ + 6818, + 6874 + ], + "loc": { + "start": { + "line": 313, + "column": 8 + }, + "end": { + "line": 313, + "column": 64 + } + } + } + ], + "range": [ + 6808, + 6882 + ], + "loc": { + "start": { + "line": 312, + "column": 37 + }, + "end": { + "line": 314, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 6782, + 6882 + ], + "loc": { + "start": { + "line": 312, + "column": 11 + }, + "end": { + "line": 314, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 6883, + 6887 + ], + "loc": { + "start": { + "line": 314, + "column": 8 + }, + "end": { + "line": 314, + "column": 12 + } + } + }, + "range": [ + 6782, + 6887 + ], + "loc": { + "start": { + "line": 312, + "column": 11 + }, + "end": { + "line": 314, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 6888, + 6892 + ], + "loc": { + "start": { + "line": 314, + "column": 13 + }, + "end": { + "line": 314, + "column": 17 + } + } + } + ], + "range": [ + 6782, + 6893 + ], + "loc": { + "start": { + "line": 312, + "column": 11 + }, + "end": { + "line": 314, + "column": 18 + } + } + } + ], + "range": [ + 6525, + 6894 + ], + "loc": { + "start": { + "line": 307, + "column": 4 + }, + "end": { + "line": 314, + "column": 19 + } + } + }, + "range": [ + 6525, + 6895 + ], + "loc": { + "start": { + "line": 307, + "column": 4 + }, + "end": { + "line": 314, + "column": 20 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 6908, + 6912 + ], + "loc": { + "start": { + "line": 316, + "column": 11 + }, + "end": { + "line": 316, + "column": 15 + } + } + }, + "range": [ + 6901, + 6913 + ], + "loc": { + "start": { + "line": 316, + "column": 4 + }, + "end": { + "line": 316, + "column": 16 + } + } + } + ], + "range": [ + 6144, + 6917 + ], + "loc": { + "start": { + "line": 295, + "column": 41 + }, + "end": { + "line": 317, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 6120, + 6917 + ], + "loc": { + "start": { + "line": 295, + "column": 17 + }, + "end": { + "line": 317, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 6105, + 6917 + ], + "loc": { + "start": { + "line": 295, + "column": 2 + }, + "end": { + "line": 317, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Request}\n * @private\n ", + "range": [ + 6023, + 6102 + ], + "loc": { + "start": { + "line": 290, + "column": 2 + }, + "end": { + "line": 294, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Request}\n * @private\n ", + "range": [ + 6921, + 7000 + ], + "loc": { + "start": { + "line": 319, + "column": 2 + }, + "end": { + "line": 323, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_sendLambda", + "range": [ + 7003, + 7014 + ], + "loc": { + "start": { + "line": 324, + "column": 2 + }, + "end": { + "line": 324, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 7015, + 7023 + ], + "loc": { + "start": { + "line": 324, + "column": 14 + }, + "end": { + "line": 324, + "column": 22 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 7032, + 7036 + ], + "loc": { + "start": { + "line": 324, + "column": 31 + }, + "end": { + "line": 324, + "column": 35 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 7026, + 7036 + ], + "loc": { + "start": { + "line": 324, + "column": 25 + }, + "end": { + "line": 324, + "column": 35 + } + } + }, + "range": [ + 7015, + 7036 + ], + "loc": { + "start": { + "line": 324, + "column": 14 + }, + "end": { + "line": 324, + "column": 35 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "AWS", + "range": [ + 7090, + 7093 + ], + "loc": { + "start": { + "line": 326, + "column": 4 + }, + "end": { + "line": 326, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 7094, + 7100 + ], + "loc": { + "start": { + "line": 326, + "column": 8 + }, + "end": { + "line": 326, + "column": 14 + } + } + }, + "range": [ + 7090, + 7100 + ], + "loc": { + "start": { + "line": 326, + "column": 4 + }, + "end": { + "line": 326, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "maxRetries", + "range": [ + 7101, + 7111 + ], + "loc": { + "start": { + "line": 326, + "column": 15 + }, + "end": { + "line": 326, + "column": 25 + } + } + }, + "range": [ + 7090, + 7111 + ], + "loc": { + "start": { + "line": 326, + "column": 4 + }, + "end": { + "line": 326, + "column": 25 + } + } + }, + "right": { + "type": "Literal", + "value": 3, + "raw": "3", + "range": [ + 7114, + 7115 + ], + "loc": { + "start": { + "line": 326, + "column": 28 + }, + "end": { + "line": 326, + "column": 29 + } + } + }, + "range": [ + 7090, + 7115 + ], + "loc": { + "start": { + "line": 326, + "column": 4 + }, + "end": { + "line": 326, + "column": 29 + } + } + }, + "range": [ + 7090, + 7116 + ], + "loc": { + "start": { + "line": 326, + "column": 4 + }, + "end": { + "line": 326, + "column": 30 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: set retries in a smarter way...", + "range": [ + 7044, + 7085 + ], + "loc": { + "start": { + "line": 325, + "column": 4 + }, + "end": { + "line": 325, + "column": 45 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7122, + 7126 + ], + "loc": { + "start": { + "line": 328, + "column": 4 + }, + "end": { + "line": 328, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_lambda", + "range": [ + 7127, + 7134 + ], + "loc": { + "start": { + "line": 328, + "column": 9 + }, + "end": { + "line": 328, + "column": 16 + } + } + }, + "range": [ + 7122, + 7134 + ], + "loc": { + "start": { + "line": 328, + "column": 4 + }, + "end": { + "line": 328, + "column": 16 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "AWS", + "range": [ + 7141, + 7144 + ], + "loc": { + "start": { + "line": 328, + "column": 23 + }, + "end": { + "line": 328, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "Lambda", + "range": [ + 7145, + 7151 + ], + "loc": { + "start": { + "line": 328, + "column": 27 + }, + "end": { + "line": 328, + "column": 33 + } + } + }, + "range": [ + 7141, + 7151 + ], + "loc": { + "start": { + "line": 328, + "column": 23 + }, + "end": { + "line": 328, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "region", + "range": [ + 7160, + 7166 + ], + "loc": { + "start": { + "line": 329, + "column": 6 + }, + "end": { + "line": 329, + "column": 12 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7168, + 7172 + ], + "loc": { + "start": { + "line": 329, + "column": 14 + }, + "end": { + "line": 329, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 7173, + 7180 + ], + "loc": { + "start": { + "line": 329, + "column": 19 + }, + "end": { + "line": 329, + "column": 26 + } + } + }, + "range": [ + 7168, + 7180 + ], + "loc": { + "start": { + "line": 329, + "column": 14 + }, + "end": { + "line": 329, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "region", + "range": [ + 7181, + 7187 + ], + "loc": { + "start": { + "line": 329, + "column": 27 + }, + "end": { + "line": 329, + "column": 33 + } + } + }, + "range": [ + 7168, + 7187 + ], + "loc": { + "start": { + "line": 329, + "column": 14 + }, + "end": { + "line": 329, + "column": 33 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 7160, + 7187 + ], + "loc": { + "start": { + "line": 329, + "column": 6 + }, + "end": { + "line": 329, + "column": 33 + } + } + } + ], + "range": [ + 7152, + 7194 + ], + "loc": { + "start": { + "line": 328, + "column": 34 + }, + "end": { + "line": 330, + "column": 5 + } + } + } + ], + "range": [ + 7137, + 7195 + ], + "loc": { + "start": { + "line": 328, + "column": 19 + }, + "end": { + "line": 330, + "column": 6 + } + } + }, + "range": [ + 7122, + 7195 + ], + "loc": { + "start": { + "line": 328, + "column": 4 + }, + "end": { + "line": 330, + "column": 6 + } + } + }, + "range": [ + 7122, + 7196 + ], + "loc": { + "start": { + "line": 328, + "column": 4 + }, + "end": { + "line": 330, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "invocationParameters", + "range": [ + 7206, + 7226 + ], + "loc": { + "start": { + "line": 332, + "column": 8 + }, + "end": { + "line": 332, + "column": 28 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "FunctionName", + "range": [ + 7237, + 7249 + ], + "loc": { + "start": { + "line": 333, + "column": 6 + }, + "end": { + "line": 333, + "column": 18 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7251, + 7255 + ], + "loc": { + "start": { + "line": 333, + "column": 20 + }, + "end": { + "line": 333, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 7256, + 7263 + ], + "loc": { + "start": { + "line": 333, + "column": 25 + }, + "end": { + "line": 333, + "column": 32 + } + } + }, + "range": [ + 7251, + 7263 + ], + "loc": { + "start": { + "line": 333, + "column": 20 + }, + "end": { + "line": 333, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "name": "source", + "range": [ + 7264, + 7270 + ], + "loc": { + "start": { + "line": 333, + "column": 33 + }, + "end": { + "line": 333, + "column": 39 + } + } + }, + "range": [ + 7251, + 7270 + ], + "loc": { + "start": { + "line": 333, + "column": 20 + }, + "end": { + "line": 333, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "original", + "range": [ + 7271, + 7279 + ], + "loc": { + "start": { + "line": 333, + "column": 40 + }, + "end": { + "line": 333, + "column": 48 + } + } + }, + "range": [ + 7251, + 7279 + ], + "loc": { + "start": { + "line": 333, + "column": 20 + }, + "end": { + "line": 333, + "column": 48 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 7237, + 7279 + ], + "loc": { + "start": { + "line": 333, + "column": 6 + }, + "end": { + "line": 333, + "column": 48 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Payload", + "range": [ + 7287, + 7294 + ], + "loc": { + "start": { + "line": 334, + "column": 6 + }, + "end": { + "line": 334, + "column": 13 + } + } + }, + "value": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 7296, + 7300 + ], + "loc": { + "start": { + "line": 334, + "column": 15 + }, + "end": { + "line": 334, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "stringify", + "range": [ + 7301, + 7310 + ], + "loc": { + "start": { + "line": 334, + "column": 20 + }, + "end": { + "line": 334, + "column": 29 + } + } + }, + "range": [ + 7296, + 7310 + ], + "loc": { + "start": { + "line": 334, + "column": 15 + }, + "end": { + "line": 334, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7311, + 7315 + ], + "loc": { + "start": { + "line": 334, + "column": 30 + }, + "end": { + "line": 334, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "payload", + "range": [ + 7316, + 7323 + ], + "loc": { + "start": { + "line": 334, + "column": 35 + }, + "end": { + "line": 334, + "column": 42 + } + } + }, + "range": [ + 7311, + 7323 + ], + "loc": { + "start": { + "line": 334, + "column": 30 + }, + "end": { + "line": 334, + "column": 42 + } + } + } + ], + "range": [ + 7296, + 7324 + ], + "loc": { + "start": { + "line": 334, + "column": 15 + }, + "end": { + "line": 334, + "column": 43 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 7287, + 7324 + ], + "loc": { + "start": { + "line": 334, + "column": 6 + }, + "end": { + "line": 334, + "column": 43 + } + } + } + ], + "range": [ + 7229, + 7331 + ], + "loc": { + "start": { + "line": 332, + "column": 31 + }, + "end": { + "line": 335, + "column": 5 + } + } + }, + "range": [ + 7206, + 7331 + ], + "loc": { + "start": { + "line": 332, + "column": 8 + }, + "end": { + "line": 335, + "column": 5 + } + } + } + ], + "kind": "let", + "range": [ + 7202, + 7332 + ], + "loc": { + "start": { + "line": 332, + "column": 4 + }, + "end": { + "line": 335, + "column": 6 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7338, + 7342 + ], + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 337, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_lambda", + "range": [ + 7343, + 7350 + ], + "loc": { + "start": { + "line": 337, + "column": 9 + }, + "end": { + "line": 337, + "column": 16 + } + } + }, + "range": [ + 7338, + 7350 + ], + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 337, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "invoke", + "range": [ + 7351, + 7357 + ], + "loc": { + "start": { + "line": 337, + "column": 17 + }, + "end": { + "line": 337, + "column": 23 + } + } + }, + "range": [ + 7338, + 7357 + ], + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 337, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "invocationParameters", + "range": [ + 7358, + 7378 + ], + "loc": { + "start": { + "line": 337, + "column": 24 + }, + "end": { + "line": 337, + "column": 44 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 7389, + 7394 + ], + "loc": { + "start": { + "line": 337, + "column": 55 + }, + "end": { + "line": 337, + "column": 60 + } + } + }, + { + "type": "Identifier", + "name": "data", + "range": [ + 7396, + 7400 + ], + "loc": { + "start": { + "line": 337, + "column": 62 + }, + "end": { + "line": 337, + "column": 66 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 7410, + 7418 + ], + "loc": { + "start": { + "line": 338, + "column": 6 + }, + "end": { + "line": 338, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "LambdaResponse", + "range": [ + 7423, + 7437 + ], + "loc": { + "start": { + "line": 338, + "column": 19 + }, + "end": { + "line": 338, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 7438, + 7442 + ], + "loc": { + "start": { + "line": 338, + "column": 34 + }, + "end": { + "line": 338, + "column": 38 + } + } + }, + { + "type": "Identifier", + "name": "data", + "range": [ + 7444, + 7448 + ], + "loc": { + "start": { + "line": 338, + "column": 40 + }, + "end": { + "line": 338, + "column": 44 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 7450, + 7455 + ], + "loc": { + "start": { + "line": 338, + "column": 46 + }, + "end": { + "line": 338, + "column": 51 + } + } + } + ], + "range": [ + 7419, + 7456 + ], + "loc": { + "start": { + "line": 338, + "column": 15 + }, + "end": { + "line": 338, + "column": 52 + } + } + } + ], + "range": [ + 7410, + 7457 + ], + "loc": { + "start": { + "line": 338, + "column": 6 + }, + "end": { + "line": 338, + "column": 53 + } + } + }, + "range": [ + 7410, + 7458 + ], + "loc": { + "start": { + "line": 338, + "column": 6 + }, + "end": { + "line": 338, + "column": 54 + } + } + } + ], + "range": [ + 7402, + 7464 + ], + "loc": { + "start": { + "line": 337, + "column": 68 + }, + "end": { + "line": 339, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 7380, + 7464 + ], + "loc": { + "start": { + "line": 337, + "column": 46 + }, + "end": { + "line": 339, + "column": 5 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 7465, + 7469 + ], + "loc": { + "start": { + "line": 339, + "column": 6 + }, + "end": { + "line": 339, + "column": 10 + } + } + }, + "range": [ + 7380, + 7469 + ], + "loc": { + "start": { + "line": 337, + "column": 46 + }, + "end": { + "line": 339, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 7470, + 7474 + ], + "loc": { + "start": { + "line": 339, + "column": 11 + }, + "end": { + "line": 339, + "column": 15 + } + } + } + ], + "range": [ + 7380, + 7475 + ], + "loc": { + "start": { + "line": 337, + "column": 46 + }, + "end": { + "line": 339, + "column": 16 + } + } + } + ], + "range": [ + 7338, + 7476 + ], + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 339, + "column": 17 + } + } + }, + "range": [ + 7338, + 7477 + ], + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 339, + "column": 18 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 7490, + 7494 + ], + "loc": { + "start": { + "line": 341, + "column": 11 + }, + "end": { + "line": 341, + "column": 15 + } + } + }, + "range": [ + 7483, + 7495 + ], + "loc": { + "start": { + "line": 341, + "column": 4 + }, + "end": { + "line": 341, + "column": 16 + } + } + } + ], + "range": [ + 7038, + 7499 + ], + "loc": { + "start": { + "line": 324, + "column": 37 + }, + "end": { + "line": 342, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 7014, + 7499 + ], + "loc": { + "start": { + "line": 324, + "column": 13 + }, + "end": { + "line": 342, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 7003, + 7499 + ], + "loc": { + "start": { + "line": 324, + "column": 2 + }, + "end": { + "line": 342, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Request}\n * @private\n ", + "range": [ + 6921, + 7000 + ], + "loc": { + "start": { + "line": 319, + "column": 2 + }, + "end": { + "line": 323, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Request}\n * @private\n ", + "range": [ + 7503, + 7582 + ], + "loc": { + "start": { + "line": 344, + "column": 2 + }, + "end": { + "line": 348, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_sendExternal", + "range": [ + 7585, + 7598 + ], + "loc": { + "start": { + "line": 349, + "column": 2 + }, + "end": { + "line": 349, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 7599, + 7607 + ], + "loc": { + "start": { + "line": 349, + "column": 16 + }, + "end": { + "line": 349, + "column": 24 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 7616, + 7620 + ], + "loc": { + "start": { + "line": 349, + "column": 33 + }, + "end": { + "line": 349, + "column": 37 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 7610, + 7620 + ], + "loc": { + "start": { + "line": 349, + "column": 27 + }, + "end": { + "line": 349, + "column": 37 + } + } + }, + "range": [ + 7599, + 7620 + ], + "loc": { + "start": { + "line": 349, + "column": 16 + }, + "end": { + "line": 349, + "column": 37 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "Http", + "range": [ + 7628, + 7632 + ], + "loc": { + "start": { + "line": 350, + "column": 4 + }, + "end": { + "line": 350, + "column": 8 + } + } + }, + "property": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7633, + 7637 + ], + "loc": { + "start": { + "line": 350, + "column": 9 + }, + "end": { + "line": 350, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "_method", + "range": [ + 7638, + 7645 + ], + "loc": { + "start": { + "line": 350, + "column": 14 + }, + "end": { + "line": 350, + "column": 21 + } + } + }, + "range": [ + 7633, + 7645 + ], + "loc": { + "start": { + "line": 350, + "column": 9 + }, + "end": { + "line": 350, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "toLowerCase", + "range": [ + 7646, + 7657 + ], + "loc": { + "start": { + "line": 350, + "column": 22 + }, + "end": { + "line": 350, + "column": 33 + } + } + }, + "range": [ + 7633, + 7657 + ], + "loc": { + "start": { + "line": 350, + "column": 9 + }, + "end": { + "line": 350, + "column": 33 + } + } + }, + "arguments": [], + "range": [ + 7633, + 7659 + ], + "loc": { + "start": { + "line": 350, + "column": 9 + }, + "end": { + "line": 350, + "column": 35 + } + } + }, + "range": [ + 7628, + 7660 + ], + "loc": { + "start": { + "line": 350, + "column": 4 + }, + "end": { + "line": 350, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7661, + 7665 + ], + "loc": { + "start": { + "line": 350, + "column": 37 + }, + "end": { + "line": 350, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 7666, + 7673 + ], + "loc": { + "start": { + "line": 350, + "column": 42 + }, + "end": { + "line": 350, + "column": 49 + } + } + }, + "range": [ + 7661, + 7673 + ], + "loc": { + "start": { + "line": 350, + "column": 37 + }, + "end": { + "line": 350, + "column": 49 + } + } + }, + "property": { + "type": "Identifier", + "name": "source", + "range": [ + 7674, + 7680 + ], + "loc": { + "start": { + "line": 350, + "column": 50 + }, + "end": { + "line": 350, + "column": 56 + } + } + }, + "range": [ + 7661, + 7680 + ], + "loc": { + "start": { + "line": 350, + "column": 37 + }, + "end": { + "line": 350, + "column": 56 + } + } + }, + "property": { + "type": "Identifier", + "name": "original", + "range": [ + 7681, + 7689 + ], + "loc": { + "start": { + "line": 350, + "column": 57 + }, + "end": { + "line": 350, + "column": 65 + } + } + }, + "range": [ + 7661, + 7689 + ], + "loc": { + "start": { + "line": 350, + "column": 37 + }, + "end": { + "line": 350, + "column": 65 + } + } + } + ], + "range": [ + 7628, + 7690 + ], + "loc": { + "start": { + "line": 350, + "column": 4 + }, + "end": { + "line": 350, + "column": 66 + } + } + }, + "property": { + "type": "Identifier", + "name": "send", + "range": [ + 7698, + 7702 + ], + "loc": { + "start": { + "line": 351, + "column": 7 + }, + "end": { + "line": 351, + "column": 11 + } + } + }, + "range": [ + 7628, + 7702 + ], + "loc": { + "start": { + "line": 350, + "column": 4 + }, + "end": { + "line": 351, + "column": 11 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7703, + 7707 + ], + "loc": { + "start": { + "line": 351, + "column": 12 + }, + "end": { + "line": 351, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "payload", + "range": [ + 7708, + 7715 + ], + "loc": { + "start": { + "line": 351, + "column": 17 + }, + "end": { + "line": 351, + "column": 24 + } + } + }, + "range": [ + 7703, + 7715 + ], + "loc": { + "start": { + "line": 351, + "column": 12 + }, + "end": { + "line": 351, + "column": 24 + } + } + } + ], + "range": [ + 7628, + 7716 + ], + "loc": { + "start": { + "line": 350, + "column": 4 + }, + "end": { + "line": 351, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "end", + "range": [ + 7724, + 7727 + ], + "loc": { + "start": { + "line": 352, + "column": 7 + }, + "end": { + "line": 352, + "column": 10 + } + } + }, + "range": [ + 7628, + 7727 + ], + "loc": { + "start": { + "line": 350, + "column": 4 + }, + "end": { + "line": 352, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 7737, + 7742 + ], + "loc": { + "start": { + "line": 352, + "column": 20 + }, + "end": { + "line": 352, + "column": 25 + } + } + }, + { + "type": "Identifier", + "name": "response", + "range": [ + 7744, + 7752 + ], + "loc": { + "start": { + "line": 352, + "column": 27 + }, + "end": { + "line": 352, + "column": 35 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 7764, + 7772 + ], + "loc": { + "start": { + "line": 353, + "column": 8 + }, + "end": { + "line": 353, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "SuperagentResponse", + "range": [ + 7777, + 7795 + ], + "loc": { + "start": { + "line": 353, + "column": 21 + }, + "end": { + "line": 353, + "column": 39 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 7796, + 7800 + ], + "loc": { + "start": { + "line": 353, + "column": 40 + }, + "end": { + "line": 353, + "column": 44 + } + } + }, + { + "type": "Identifier", + "name": "response", + "range": [ + 7802, + 7810 + ], + "loc": { + "start": { + "line": 353, + "column": 46 + }, + "end": { + "line": 353, + "column": 54 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 7812, + 7817 + ], + "loc": { + "start": { + "line": 353, + "column": 56 + }, + "end": { + "line": 353, + "column": 61 + } + } + } + ], + "range": [ + 7773, + 7818 + ], + "loc": { + "start": { + "line": 353, + "column": 17 + }, + "end": { + "line": 353, + "column": 62 + } + } + } + ], + "range": [ + 7764, + 7819 + ], + "loc": { + "start": { + "line": 353, + "column": 8 + }, + "end": { + "line": 353, + "column": 63 + } + } + }, + "range": [ + 7764, + 7820 + ], + "loc": { + "start": { + "line": 353, + "column": 8 + }, + "end": { + "line": 353, + "column": 64 + } + } + } + ], + "range": [ + 7754, + 7828 + ], + "loc": { + "start": { + "line": 352, + "column": 37 + }, + "end": { + "line": 354, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 7728, + 7828 + ], + "loc": { + "start": { + "line": 352, + "column": 11 + }, + "end": { + "line": 354, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 7829, + 7833 + ], + "loc": { + "start": { + "line": 354, + "column": 8 + }, + "end": { + "line": 354, + "column": 12 + } + } + }, + "range": [ + 7728, + 7833 + ], + "loc": { + "start": { + "line": 352, + "column": 11 + }, + "end": { + "line": 354, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 7834, + 7838 + ], + "loc": { + "start": { + "line": 354, + "column": 13 + }, + "end": { + "line": 354, + "column": 17 + } + } + } + ], + "range": [ + 7728, + 7839 + ], + "loc": { + "start": { + "line": 352, + "column": 11 + }, + "end": { + "line": 354, + "column": 18 + } + } + } + ], + "range": [ + 7628, + 7840 + ], + "loc": { + "start": { + "line": 350, + "column": 4 + }, + "end": { + "line": 354, + "column": 19 + } + } + }, + "range": [ + 7628, + 7841 + ], + "loc": { + "start": { + "line": 350, + "column": 4 + }, + "end": { + "line": 354, + "column": 20 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 7854, + 7858 + ], + "loc": { + "start": { + "line": 356, + "column": 11 + }, + "end": { + "line": 356, + "column": 15 + } + } + }, + "range": [ + 7847, + 7859 + ], + "loc": { + "start": { + "line": 356, + "column": 4 + }, + "end": { + "line": 356, + "column": 16 + } + } + } + ], + "range": [ + 7622, + 7863 + ], + "loc": { + "start": { + "line": 349, + "column": 39 + }, + "end": { + "line": 357, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 7598, + 7863 + ], + "loc": { + "start": { + "line": 349, + "column": 15 + }, + "end": { + "line": 357, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 7585, + 7863 + ], + "loc": { + "start": { + "line": 349, + "column": 2 + }, + "end": { + "line": 357, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Request}\n * @private\n ", + "range": [ + 7503, + 7582 + ], + "loc": { + "start": { + "line": 344, + "column": 2 + }, + "end": { + "line": 348, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Action}\n ", + "range": [ + 7867, + 7899 + ], + "loc": { + "start": { + "line": 359, + "column": 2 + }, + "end": { + "line": 361, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "action", + "range": [ + 7906, + 7912 + ], + "loc": { + "start": { + "line": 362, + "column": 6 + }, + "end": { + "line": 362, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7928, + 7932 + ], + "loc": { + "start": { + "line": 363, + "column": 11 + }, + "end": { + "line": 363, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_action", + "range": [ + 7933, + 7940 + ], + "loc": { + "start": { + "line": 363, + "column": 16 + }, + "end": { + "line": 363, + "column": 23 + } + } + }, + "range": [ + 7928, + 7940 + ], + "loc": { + "start": { + "line": 363, + "column": 11 + }, + "end": { + "line": 363, + "column": 23 + } + } + }, + "range": [ + 7921, + 7941 + ], + "loc": { + "start": { + "line": 363, + "column": 4 + }, + "end": { + "line": 363, + "column": 24 + } + } + } + ], + "range": [ + 7915, + 7945 + ], + "loc": { + "start": { + "line": 362, + "column": 15 + }, + "end": { + "line": 364, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 7912, + 7945 + ], + "loc": { + "start": { + "line": 362, + "column": 12 + }, + "end": { + "line": 364, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 7902, + 7945 + ], + "loc": { + "start": { + "line": 362, + "column": 2 + }, + "end": { + "line": 364, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Action}\n ", + "range": [ + 7867, + 7899 + ], + "loc": { + "start": { + "line": 359, + "column": 2 + }, + "end": { + "line": 361, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 7949, + 7981 + ], + "loc": { + "start": { + "line": 366, + "column": 2 + }, + "end": { + "line": 368, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "payload", + "range": [ + 7988, + 7995 + ], + "loc": { + "start": { + "line": 369, + "column": 6 + }, + "end": { + "line": 369, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 8011, + 8015 + ], + "loc": { + "start": { + "line": 370, + "column": 11 + }, + "end": { + "line": 370, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_payload", + "range": [ + 8016, + 8024 + ], + "loc": { + "start": { + "line": 370, + "column": 16 + }, + "end": { + "line": 370, + "column": 24 + } + } + }, + "range": [ + 8011, + 8024 + ], + "loc": { + "start": { + "line": 370, + "column": 11 + }, + "end": { + "line": 370, + "column": 24 + } + } + }, + "range": [ + 8004, + 8025 + ], + "loc": { + "start": { + "line": 370, + "column": 4 + }, + "end": { + "line": 370, + "column": 25 + } + } + } + ], + "range": [ + 7998, + 8029 + ], + "loc": { + "start": { + "line": 369, + "column": 16 + }, + "end": { + "line": 371, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 7995, + 8029 + ], + "loc": { + "start": { + "line": 369, + "column": 13 + }, + "end": { + "line": 371, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 7984, + 8029 + ], + "loc": { + "start": { + "line": 369, + "column": 2 + }, + "end": { + "line": 371, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 7949, + 7981 + ], + "loc": { + "start": { + "line": 366, + "column": 2 + }, + "end": { + "line": 368, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 8033, + 8065 + ], + "loc": { + "start": { + "line": 373, + "column": 2 + }, + "end": { + "line": 375, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "method", + "range": [ + 8072, + 8078 + ], + "loc": { + "start": { + "line": 376, + "column": 6 + }, + "end": { + "line": 376, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 8094, + 8098 + ], + "loc": { + "start": { + "line": 377, + "column": 11 + }, + "end": { + "line": 377, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_method", + "range": [ + 8099, + 8106 + ], + "loc": { + "start": { + "line": 377, + "column": 16 + }, + "end": { + "line": 377, + "column": 23 + } + } + }, + "range": [ + 8094, + 8106 + ], + "loc": { + "start": { + "line": 377, + "column": 11 + }, + "end": { + "line": 377, + "column": 23 + } + } + }, + "range": [ + 8087, + 8107 + ], + "loc": { + "start": { + "line": 377, + "column": 4 + }, + "end": { + "line": 377, + "column": 24 + } + } + } + ], + "range": [ + 8081, + 8111 + ], + "loc": { + "start": { + "line": 376, + "column": 15 + }, + "end": { + "line": 378, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 8078, + 8111 + ], + "loc": { + "start": { + "line": 376, + "column": 12 + }, + "end": { + "line": 378, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 8068, + 8111 + ], + "loc": { + "start": { + "line": 376, + "column": 2 + }, + "end": { + "line": 378, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 8033, + 8065 + ], + "loc": { + "start": { + "line": 373, + "column": 2 + }, + "end": { + "line": 375, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n * @constructor\n ", + "range": [ + 8115, + 8165 + ], + "loc": { + "start": { + "line": 380, + "column": 2 + }, + "end": { + "line": 383, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "TTL_DEFAULT", + "range": [ + 8179, + 8190 + ], + "loc": { + "start": { + "line": 384, + "column": 13 + }, + "end": { + "line": 384, + "column": 24 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": 10, + "raw": "10", + "range": [ + 8206, + 8208 + ], + "loc": { + "start": { + "line": 385, + "column": 11 + }, + "end": { + "line": 385, + "column": 13 + } + } + }, + "range": [ + 8199, + 8209 + ], + "loc": { + "start": { + "line": 385, + "column": 4 + }, + "end": { + "line": 385, + "column": 14 + } + } + } + ], + "range": [ + 8193, + 8213 + ], + "loc": { + "start": { + "line": 384, + "column": 27 + }, + "end": { + "line": 386, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 8190, + 8213 + ], + "loc": { + "start": { + "line": 384, + "column": 24 + }, + "end": { + "line": 386, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 8168, + 8213 + ], + "loc": { + "start": { + "line": 384, + "column": 2 + }, + "end": { + "line": 386, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n * @constructor\n ", + "range": [ + 8115, + 8165 + ], + "loc": { + "start": { + "line": 380, + "column": 2 + }, + "end": { + "line": 383, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 8217, + 8249 + ], + "loc": { + "start": { + "line": 388, + "column": 2 + }, + "end": { + "line": 390, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "TTL_INVALIDATE", + "range": [ + 8263, + 8277 + ], + "loc": { + "start": { + "line": 391, + "column": 13 + }, + "end": { + "line": 391, + "column": 27 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "UnaryExpression", + "operator": "-", + "argument": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 8294, + 8295 + ], + "loc": { + "start": { + "line": 392, + "column": 12 + }, + "end": { + "line": 392, + "column": 13 + } + } + }, + "prefix": true, + "range": [ + 8293, + 8295 + ], + "loc": { + "start": { + "line": 392, + "column": 11 + }, + "end": { + "line": 392, + "column": 13 + } + } + }, + "range": [ + 8286, + 8296 + ], + "loc": { + "start": { + "line": 392, + "column": 4 + }, + "end": { + "line": 392, + "column": 14 + } + } + } + ], + "range": [ + 8280, + 8300 + ], + "loc": { + "start": { + "line": 391, + "column": 30 + }, + "end": { + "line": 393, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 8277, + 8300 + ], + "loc": { + "start": { + "line": 391, + "column": 27 + }, + "end": { + "line": 393, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 8252, + 8300 + ], + "loc": { + "start": { + "line": 391, + "column": 2 + }, + "end": { + "line": 393, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 8217, + 8249 + ], + "loc": { + "start": { + "line": 388, + "column": 2 + }, + "end": { + "line": 390, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 8304, + 8336 + ], + "loc": { + "start": { + "line": 395, + "column": 2 + }, + "end": { + "line": 397, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "TTL_FOREVER", + "range": [ + 8350, + 8361 + ], + "loc": { + "start": { + "line": 398, + "column": 13 + }, + "end": { + "line": 398, + "column": 24 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 8377, + 8378 + ], + "loc": { + "start": { + "line": 399, + "column": 11 + }, + "end": { + "line": 399, + "column": 12 + } + } + }, + "range": [ + 8370, + 8379 + ], + "loc": { + "start": { + "line": 399, + "column": 4 + }, + "end": { + "line": 399, + "column": 13 + } + } + } + ], + "range": [ + 8364, + 8383 + ], + "loc": { + "start": { + "line": 398, + "column": 27 + }, + "end": { + "line": 400, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 8361, + 8383 + ], + "loc": { + "start": { + "line": 398, + "column": 24 + }, + "end": { + "line": 400, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 8339, + 8383 + ], + "loc": { + "start": { + "line": 398, + "column": 2 + }, + "end": { + "line": 400, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 8304, + 8336 + ], + "loc": { + "start": { + "line": 395, + "column": 2 + }, + "end": { + "line": 397, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 637, + 8385 + ], + "loc": { + "start": { + "line": 22, + "column": 21 + }, + "end": { + "line": 401, + "column": 1 + } + } + }, + "range": [ + 623, + 8385 + ], + "loc": { + "start": { + "line": 22, + "column": 7 + }, + "end": { + "line": 401, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Action request instance\n ", + "range": [ + 581, + 615 + ], + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 21, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 616, + 8385 + ], + "loc": { + "start": { + "line": 22, + "column": 0 + }, + "end": { + "line": 401, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Action request instance\n ", + "range": [ + 581, + 615 + ], + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 21, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 8385 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 401, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Action request instance\n ", + "range": [ + 581, + 615 + ], + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 21, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Action} action\n * @param {Object} payload\n * @param {String} method\n ", + "range": [ + 641, + 735 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 27, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: change to false on an stable API Gateway version", + "range": [ + 1008, + 1066 + ], + "loc": { + "start": { + "line": 38, + "column": 25 + }, + "end": { + "line": 38, + "column": 83 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 1074, + 1107 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 1157, + 1190 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 1260, + 1293 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 58, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 1364, + 1397 + ], + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 1465, + 1498 + ], + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 73, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Number} ttl\n * @returns {Request}\n ", + "range": [ + 1568, + 1626 + ], + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 82, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 1829, + 1861 + ], + "loc": { + "start": { + "line": 94, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Number} ttl\n ", + "range": [ + 1915, + 1949 + ], + "loc": { + "start": { + "line": 101, + "column": 2 + }, + "end": { + "line": 103, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2005, + 2037 + ], + "loc": { + "start": { + "line": 108, + "column": 2 + }, + "end": { + "line": 110, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} cache\n ", + "range": [ + 2093, + 2129 + ], + "loc": { + "start": { + "line": 115, + "column": 2 + }, + "end": { + "line": 117, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: do we really have to force it?", + "range": [ + 2189, + 2229 + ], + "loc": { + "start": { + "line": 121, + "column": 4 + }, + "end": { + "line": 121, + "column": 44 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n * @private\n ", + "range": [ + 2274, + 2320 + ], + "loc": { + "start": { + "line": 125, + "column": 2 + }, + "end": { + "line": 128, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Response} response\n * @returns {String}\n * @private\n ", + "range": [ + 2484, + 2562 + ], + "loc": { + "start": { + "line": 135, + "column": 2 + }, + "end": { + "line": 139, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} rawData\n * @returns {Response}\n * @private\n ", + "range": [ + 2749, + 2826 + ], + "loc": { + "start": { + "line": 148, + "column": 2 + }, + "end": { + "line": 152, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} className\n * @returns {*}\n * @private\n ", + "range": [ + 3277, + 3349 + ], + "loc": { + "start": { + "line": 169, + "column": 2 + }, + "end": { + "line": 173, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 3603, + 3644 + ], + "loc": { + "start": { + "line": 184, + "column": 2 + }, + "end": { + "line": 186, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 4312, + 4353 + ], + "loc": { + "start": { + "line": 220, + "column": 2 + }, + "end": { + "line": 222, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: do it synchronous?", + "range": [ + 5396, + 5424 + ], + "loc": { + "start": { + "line": 260, + "column": 8 + }, + "end": { + "line": 260, + "column": 36 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Request}\n ", + "range": [ + 5530, + 5595 + ], + "loc": { + "start": { + "line": 268, + "column": 2 + }, + "end": { + "line": 271, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Request}\n * @private\n ", + "range": [ + 6023, + 6102 + ], + "loc": { + "start": { + "line": 290, + "column": 2 + }, + "end": { + "line": 294, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Request}\n * @private\n ", + "range": [ + 6921, + 7000 + ], + "loc": { + "start": { + "line": 319, + "column": 2 + }, + "end": { + "line": 323, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: set retries in a smarter way...", + "range": [ + 7044, + 7085 + ], + "loc": { + "start": { + "line": 325, + "column": 4 + }, + "end": { + "line": 325, + "column": 45 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Request}\n * @private\n ", + "range": [ + 7503, + 7582 + ], + "loc": { + "start": { + "line": 344, + "column": 2 + }, + "end": { + "line": 348, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Action}\n ", + "range": [ + 7867, + 7899 + ], + "loc": { + "start": { + "line": 359, + "column": 2 + }, + "end": { + "line": 361, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 7949, + 7981 + ], + "loc": { + "start": { + "line": 366, + "column": 2 + }, + "end": { + "line": 368, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 8033, + 8065 + ], + "loc": { + "start": { + "line": 373, + "column": 2 + }, + "end": { + "line": 375, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Number}\n * @constructor\n ", + "range": [ + 8115, + 8165 + ], + "loc": { + "start": { + "line": 380, + "column": 2 + }, + "end": { + "line": 383, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 8217, + 8249 + ], + "loc": { + "start": { + "line": 388, + "column": 2 + }, + "end": { + "line": 390, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Number}\n ", + "range": [ + 8304, + 8336 + ], + "loc": { + "start": { + "line": 395, + "column": 2 + }, + "end": { + "line": 397, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/ast/source/Resource/Response.js.json b/docs-api/deep-resource/ast/source/Resource/Response.js.json new file mode 100644 index 00000000..ea5092f6 --- /dev/null +++ b/docs-api/deep-resource/ast/source/Resource/Response.js.json @@ -0,0 +1,4691 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Response object\n ", + "range": [ + 61, + 87 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Response", + "range": [ + 101, + 109 + ], + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 21 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 209, + 220 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "request", + "range": [ + 221, + 228 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + { + "type": "Identifier", + "name": "data", + "range": [ + 230, + 234 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 16, + "column": 27 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 236, + 241 + ], + "loc": { + "start": { + "line": 16, + "column": 29 + }, + "end": { + "line": 16, + "column": 34 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 249, + 253 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_request", + "range": [ + 254, + 262 + ], + "loc": { + "start": { + "line": 17, + "column": 9 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 249, + 262 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "right": { + "type": "Identifier", + "name": "request", + "range": [ + 265, + 272 + ], + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 27 + } + } + }, + "range": [ + 249, + 272 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 27 + } + } + }, + "range": [ + 249, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 279, + 283 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawError", + "range": [ + 284, + 293 + ], + "loc": { + "start": { + "line": 19, + "column": 9 + }, + "end": { + "line": 19, + "column": 18 + } + } + }, + "range": [ + 279, + 293 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 18 + } + } + }, + "right": { + "type": "Identifier", + "name": "error", + "range": [ + 296, + 301 + ], + "loc": { + "start": { + "line": 19, + "column": 21 + }, + "end": { + "line": 19, + "column": 26 + } + } + }, + "range": [ + 279, + 301 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 26 + } + } + }, + "range": [ + 279, + 302 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 27 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 307, + 311 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawData", + "range": [ + 312, + 320 + ], + "loc": { + "start": { + "line": 20, + "column": 9 + }, + "end": { + "line": 20, + "column": 17 + } + } + }, + "range": [ + 307, + 320 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 17 + } + } + }, + "right": { + "type": "Identifier", + "name": "data", + "range": [ + 323, + 327 + ], + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 24 + } + } + }, + "range": [ + 307, + 327 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 24 + } + } + }, + "range": [ + 307, + 328 + ], + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 25 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 334, + 338 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_statusCode", + "range": [ + 339, + 350 + ], + "loc": { + "start": { + "line": 22, + "column": 9 + }, + "end": { + "line": 22, + "column": 20 + } + } + }, + "range": [ + 334, + 350 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 20 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 353, + 357 + ], + "loc": { + "start": { + "line": 22, + "column": 23 + }, + "end": { + "line": 22, + "column": 27 + } + } + }, + "range": [ + 334, + 357 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 27 + } + } + }, + "range": [ + 334, + 358 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 363, + 367 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 368, + 373 + ], + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 14 + } + } + }, + "range": [ + 363, + 373 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 14 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 376, + 380 + ], + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 21 + } + } + }, + "range": [ + 363, + 380 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 21 + } + } + }, + "range": [ + 363, + 381 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 22 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 386, + 390 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 391, + 397 + ], + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 15 + } + } + }, + "range": [ + 386, + 397 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 15 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 400, + 404 + ], + "loc": { + "start": { + "line": 24, + "column": 18 + }, + "end": { + "line": 24, + "column": 22 + } + } + }, + "range": [ + 386, + 404 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 22 + } + } + }, + "range": [ + 386, + 405 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 23 + } + } + } + ], + "range": [ + 243, + 409 + ], + "loc": { + "start": { + "line": 16, + "column": 36 + }, + "end": { + "line": 25, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 220, + 409 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 25, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 209, + 409 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 25, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Request} request\n * @param {Object} data\n * @param {String} error\n ", + "range": [ + 114, + 206 + ], + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 413, + 440 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "rawData", + "range": [ + 447, + 454 + ], + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 470, + 474 + ], + "loc": { + "start": { + "line": 31, + "column": 11 + }, + "end": { + "line": 31, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawData", + "range": [ + 475, + 483 + ], + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 24 + } + } + }, + "range": [ + 470, + 483 + ], + "loc": { + "start": { + "line": 31, + "column": 11 + }, + "end": { + "line": 31, + "column": 24 + } + } + }, + "range": [ + 463, + 484 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 25 + } + } + } + ], + "range": [ + 457, + 488 + ], + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 32, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 454, + 488 + ], + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 32, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 443, + 488 + ], + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 413, + 440 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 492, + 519 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "rawError", + "range": [ + 526, + 534 + ], + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 37, + "column": 14 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 550, + 554 + ], + "loc": { + "start": { + "line": 38, + "column": 11 + }, + "end": { + "line": 38, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawError", + "range": [ + 555, + 564 + ], + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 25 + } + } + }, + "range": [ + 550, + 564 + ], + "loc": { + "start": { + "line": 38, + "column": 11 + }, + "end": { + "line": 38, + "column": 25 + } + } + }, + "range": [ + 543, + 565 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 26 + } + } + } + ], + "range": [ + 537, + 569 + ], + "loc": { + "start": { + "line": 37, + "column": 17 + }, + "end": { + "line": 39, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 534, + 569 + ], + "loc": { + "start": { + "line": 37, + "column": 14 + }, + "end": { + "line": 39, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 522, + 569 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 492, + 519 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 573, + 606 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "request", + "range": [ + 613, + 620 + ], + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 636, + 640 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_request", + "range": [ + 641, + 649 + ], + "loc": { + "start": { + "line": 45, + "column": 16 + }, + "end": { + "line": 45, + "column": 24 + } + } + }, + "range": [ + 636, + 649 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 24 + } + } + }, + "range": [ + 629, + 650 + ], + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 25 + } + } + } + ], + "range": [ + 623, + 654 + ], + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 620, + 654 + ], + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 609, + 654 + ], + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 46, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 573, + 606 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 658, + 690 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "data", + "range": [ + 697, + 701 + ], + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 714, + 718 + ], + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 719, + 724 + ], + "loc": { + "start": { + "line": 52, + "column": 13 + }, + "end": { + "line": 52, + "column": 18 + } + } + }, + "range": [ + 714, + 724 + ], + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 18 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 741, + 745 + ], + "loc": { + "start": { + "line": 53, + "column": 13 + }, + "end": { + "line": 53, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 746, + 751 + ], + "loc": { + "start": { + "line": 53, + "column": 18 + }, + "end": { + "line": 53, + "column": 23 + } + } + }, + "range": [ + 741, + 751 + ], + "loc": { + "start": { + "line": 53, + "column": 13 + }, + "end": { + "line": 53, + "column": 23 + } + } + }, + "range": [ + 734, + 752 + ], + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 24 + } + } + } + ], + "range": [ + 726, + 758 + ], + "loc": { + "start": { + "line": 52, + "column": 20 + }, + "end": { + "line": 54, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 710, + 758 + ], + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 54, + "column": 5 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 768, + 772 + ], + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawData", + "range": [ + 773, + 781 + ], + "loc": { + "start": { + "line": 56, + "column": 13 + }, + "end": { + "line": 56, + "column": 21 + } + } + }, + "range": [ + 768, + 781 + ], + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 21 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "response", + "range": [ + 795, + 803 + ], + "loc": { + "start": { + "line": 57, + "column": 10 + }, + "end": { + "line": 57, + "column": 18 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 806, + 810 + ], + "loc": { + "start": { + "line": 57, + "column": 21 + }, + "end": { + "line": 57, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "parse", + "range": [ + 811, + 816 + ], + "loc": { + "start": { + "line": 57, + "column": 26 + }, + "end": { + "line": 57, + "column": 31 + } + } + }, + "range": [ + 806, + 816 + ], + "loc": { + "start": { + "line": 57, + "column": 21 + }, + "end": { + "line": 57, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 817, + 821 + ], + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 57, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawData", + "range": [ + 822, + 830 + ], + "loc": { + "start": { + "line": 57, + "column": 37 + }, + "end": { + "line": 57, + "column": 45 + } + } + }, + "range": [ + 817, + 830 + ], + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 57, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Payload", + "range": [ + 831, + 838 + ], + "loc": { + "start": { + "line": 57, + "column": 46 + }, + "end": { + "line": 57, + "column": 53 + } + } + }, + "range": [ + 817, + 838 + ], + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 57, + "column": 53 + } + } + } + ], + "range": [ + 806, + 839 + ], + "loc": { + "start": { + "line": 57, + "column": 21 + }, + "end": { + "line": 57, + "column": 54 + } + } + }, + "range": [ + 795, + 839 + ], + "loc": { + "start": { + "line": 57, + "column": 10 + }, + "end": { + "line": 57, + "column": 54 + } + } + } + ], + "kind": "var", + "range": [ + 791, + 840 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 55 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "response", + "range": [ + 851, + 859 + ], + "loc": { + "start": { + "line": 58, + "column": 10 + }, + "end": { + "line": 58, + "column": 18 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 870, + 878 + ], + "loc": { + "start": { + "line": 58, + "column": 29 + }, + "end": { + "line": 58, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "errorMessage", + "range": [ + 879, + 891 + ], + "loc": { + "start": { + "line": 58, + "column": 38 + }, + "end": { + "line": 58, + "column": 50 + } + } + }, + "range": [ + 870, + 891 + ], + "loc": { + "start": { + "line": 58, + "column": 29 + }, + "end": { + "line": 58, + "column": 50 + } + } + }, + "prefix": true, + "range": [ + 863, + 891 + ], + "loc": { + "start": { + "line": 58, + "column": 22 + }, + "end": { + "line": 58, + "column": 50 + } + } + }, + "right": { + "type": "Literal", + "value": "undefined", + "raw": "'undefined'", + "range": [ + 896, + 907 + ], + "loc": { + "start": { + "line": 58, + "column": 55 + }, + "end": { + "line": 58, + "column": 66 + } + } + }, + "range": [ + 863, + 907 + ], + "loc": { + "start": { + "line": 58, + "column": 22 + }, + "end": { + "line": 58, + "column": 66 + } + } + }, + "range": [ + 851, + 907 + ], + "loc": { + "start": { + "line": 58, + "column": 10 + }, + "end": { + "line": 58, + "column": 66 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 919, + 923 + ], + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 924, + 929 + ], + "loc": { + "start": { + "line": 59, + "column": 13 + }, + "end": { + "line": 59, + "column": 18 + } + } + }, + "range": [ + 919, + 929 + ], + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 18 + } + } + }, + "right": { + "type": "Identifier", + "name": "response", + "range": [ + 932, + 940 + ], + "loc": { + "start": { + "line": 59, + "column": 21 + }, + "end": { + "line": 59, + "column": 29 + } + } + }, + "range": [ + 919, + 940 + ], + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 29 + } + } + }, + "range": [ + 919, + 941 + ], + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 30 + } + } + } + ], + "range": [ + 909, + 949 + ], + "loc": { + "start": { + "line": 58, + "column": 68 + }, + "end": { + "line": 60, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 847, + 949 + ], + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 60, + "column": 7 + } + } + } + ], + "range": [ + 783, + 955 + ], + "loc": { + "start": { + "line": 56, + "column": 23 + }, + "end": { + "line": 61, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 764, + 955 + ], + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 61, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 968, + 972 + ], + "loc": { + "start": { + "line": 63, + "column": 11 + }, + "end": { + "line": 63, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 973, + 978 + ], + "loc": { + "start": { + "line": 63, + "column": 16 + }, + "end": { + "line": 63, + "column": 21 + } + } + }, + "range": [ + 968, + 978 + ], + "loc": { + "start": { + "line": 63, + "column": 11 + }, + "end": { + "line": 63, + "column": 21 + } + } + }, + "range": [ + 961, + 979 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 22 + } + } + } + ], + "range": [ + 704, + 983 + ], + "loc": { + "start": { + "line": 51, + "column": 13 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 701, + 983 + ], + "loc": { + "start": { + "line": 51, + "column": 10 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 693, + 983 + ], + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 64, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 658, + 690 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 987, + 1020 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 68, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "isError", + "range": [ + 1027, + 1034 + ], + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1057, + 1061 + ], + "loc": { + "start": { + "line": 70, + "column": 18 + }, + "end": { + "line": 70, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "error", + "range": [ + 1062, + 1067 + ], + "loc": { + "start": { + "line": 70, + "column": 23 + }, + "end": { + "line": 70, + "column": 28 + } + } + }, + "range": [ + 1057, + 1067 + ], + "loc": { + "start": { + "line": 70, + "column": 18 + }, + "end": { + "line": 70, + "column": 28 + } + } + }, + "prefix": true, + "range": [ + 1050, + 1067 + ], + "loc": { + "start": { + "line": 70, + "column": 11 + }, + "end": { + "line": 70, + "column": 28 + } + } + }, + "right": { + "type": "Literal", + "value": "string", + "raw": "'string'", + "range": [ + 1072, + 1080 + ], + "loc": { + "start": { + "line": 70, + "column": 33 + }, + "end": { + "line": 70, + "column": 41 + } + } + }, + "range": [ + 1050, + 1080 + ], + "loc": { + "start": { + "line": 70, + "column": 11 + }, + "end": { + "line": 70, + "column": 41 + } + } + }, + "range": [ + 1043, + 1081 + ], + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 70, + "column": 42 + } + } + } + ], + "range": [ + 1037, + 1085 + ], + "loc": { + "start": { + "line": 69, + "column": 16 + }, + "end": { + "line": 71, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1034, + 1085 + ], + "loc": { + "start": { + "line": 69, + "column": 13 + }, + "end": { + "line": 71, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1023, + 1085 + ], + "loc": { + "start": { + "line": 69, + "column": 2 + }, + "end": { + "line": 71, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 987, + 1020 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 68, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1089, + 1121 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 75, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "error", + "range": [ + 1128, + 1133 + ], + "loc": { + "start": { + "line": 76, + "column": 6 + }, + "end": { + "line": 76, + "column": 11 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1146, + 1150 + ], + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 1151, + 1157 + ], + "loc": { + "start": { + "line": 77, + "column": 13 + }, + "end": { + "line": 77, + "column": 19 + } + } + }, + "range": [ + 1146, + 1157 + ], + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 19 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1174, + 1178 + ], + "loc": { + "start": { + "line": 78, + "column": 13 + }, + "end": { + "line": 78, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 1179, + 1185 + ], + "loc": { + "start": { + "line": 78, + "column": 18 + }, + "end": { + "line": 78, + "column": 24 + } + } + }, + "range": [ + 1174, + 1185 + ], + "loc": { + "start": { + "line": 78, + "column": 13 + }, + "end": { + "line": 78, + "column": 24 + } + } + }, + "range": [ + 1167, + 1186 + ], + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 78, + "column": 25 + } + } + } + ], + "range": [ + 1159, + 1192 + ], + "loc": { + "start": { + "line": 77, + "column": 21 + }, + "end": { + "line": 79, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1142, + 1192 + ], + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 79, + "column": 5 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1202, + 1206 + ], + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawError", + "range": [ + 1207, + 1216 + ], + "loc": { + "start": { + "line": 81, + "column": 13 + }, + "end": { + "line": 81, + "column": 22 + } + } + }, + "range": [ + 1202, + 1216 + ], + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 22 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1226, + 1230 + ], + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 1231, + 1237 + ], + "loc": { + "start": { + "line": 82, + "column": 11 + }, + "end": { + "line": 82, + "column": 17 + } + } + }, + "range": [ + 1226, + 1237 + ], + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 17 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1240, + 1244 + ], + "loc": { + "start": { + "line": 82, + "column": 20 + }, + "end": { + "line": 82, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawError", + "range": [ + 1245, + 1254 + ], + "loc": { + "start": { + "line": 82, + "column": 25 + }, + "end": { + "line": 82, + "column": 34 + } + } + }, + "range": [ + 1240, + 1254 + ], + "loc": { + "start": { + "line": 82, + "column": 20 + }, + "end": { + "line": 82, + "column": 34 + } + } + }, + "range": [ + 1226, + 1254 + ], + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 34 + } + } + }, + "range": [ + 1226, + 1255 + ], + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 35 + } + } + } + ], + "range": [ + 1218, + 1261 + ], + "loc": { + "start": { + "line": 81, + "column": 24 + }, + "end": { + "line": 83, + "column": 5 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "response", + "range": [ + 1279, + 1287 + ], + "loc": { + "start": { + "line": 84, + "column": 10 + }, + "end": { + "line": 84, + "column": 18 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 1290, + 1294 + ], + "loc": { + "start": { + "line": 84, + "column": 21 + }, + "end": { + "line": 84, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "parse", + "range": [ + 1295, + 1300 + ], + "loc": { + "start": { + "line": 84, + "column": 26 + }, + "end": { + "line": 84, + "column": 31 + } + } + }, + "range": [ + 1290, + 1300 + ], + "loc": { + "start": { + "line": 84, + "column": 21 + }, + "end": { + "line": 84, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1301, + 1305 + ], + "loc": { + "start": { + "line": 84, + "column": 32 + }, + "end": { + "line": 84, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawData", + "range": [ + 1306, + 1314 + ], + "loc": { + "start": { + "line": 84, + "column": 37 + }, + "end": { + "line": 84, + "column": 45 + } + } + }, + "range": [ + 1301, + 1314 + ], + "loc": { + "start": { + "line": 84, + "column": 32 + }, + "end": { + "line": 84, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Payload", + "range": [ + 1315, + 1322 + ], + "loc": { + "start": { + "line": 84, + "column": 46 + }, + "end": { + "line": 84, + "column": 53 + } + } + }, + "range": [ + 1301, + 1322 + ], + "loc": { + "start": { + "line": 84, + "column": 32 + }, + "end": { + "line": 84, + "column": 53 + } + } + } + ], + "range": [ + 1290, + 1323 + ], + "loc": { + "start": { + "line": 84, + "column": 21 + }, + "end": { + "line": 84, + "column": 54 + } + } + }, + "range": [ + 1279, + 1323 + ], + "loc": { + "start": { + "line": 84, + "column": 10 + }, + "end": { + "line": 84, + "column": 54 + } + } + } + ], + "kind": "var", + "range": [ + 1275, + 1324 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 55 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "Identifier", + "name": "response", + "range": [ + 1335, + 1343 + ], + "loc": { + "start": { + "line": 85, + "column": 10 + }, + "end": { + "line": 85, + "column": 18 + } + } + }, + "right": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 1354, + 1362 + ], + "loc": { + "start": { + "line": 85, + "column": 29 + }, + "end": { + "line": 85, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "errorMessage", + "range": [ + 1363, + 1375 + ], + "loc": { + "start": { + "line": 85, + "column": 38 + }, + "end": { + "line": 85, + "column": 50 + } + } + }, + "range": [ + 1354, + 1375 + ], + "loc": { + "start": { + "line": 85, + "column": 29 + }, + "end": { + "line": 85, + "column": 50 + } + } + }, + "prefix": true, + "range": [ + 1347, + 1375 + ], + "loc": { + "start": { + "line": 85, + "column": 22 + }, + "end": { + "line": 85, + "column": 50 + } + } + }, + "right": { + "type": "Literal", + "value": "undefined", + "raw": "'undefined'", + "range": [ + 1380, + 1391 + ], + "loc": { + "start": { + "line": 85, + "column": 55 + }, + "end": { + "line": 85, + "column": 66 + } + } + }, + "range": [ + 1347, + 1391 + ], + "loc": { + "start": { + "line": 85, + "column": 22 + }, + "end": { + "line": 85, + "column": 66 + } + } + }, + "range": [ + 1335, + 1391 + ], + "loc": { + "start": { + "line": 85, + "column": 10 + }, + "end": { + "line": 85, + "column": 66 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1403, + 1407 + ], + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 1408, + 1414 + ], + "loc": { + "start": { + "line": 86, + "column": 13 + }, + "end": { + "line": 86, + "column": 19 + } + } + }, + "range": [ + 1403, + 1414 + ], + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 19 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 1417, + 1425 + ], + "loc": { + "start": { + "line": 86, + "column": 22 + }, + "end": { + "line": 86, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "errorMessage", + "range": [ + 1426, + 1438 + ], + "loc": { + "start": { + "line": 86, + "column": 31 + }, + "end": { + "line": 86, + "column": 43 + } + } + }, + "range": [ + 1417, + 1438 + ], + "loc": { + "start": { + "line": 86, + "column": 22 + }, + "end": { + "line": 86, + "column": 43 + } + } + }, + "range": [ + 1403, + 1438 + ], + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 43 + } + } + }, + "range": [ + 1403, + 1439 + ], + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 44 + } + } + } + ], + "range": [ + 1393, + 1447 + ], + "loc": { + "start": { + "line": 85, + "column": 68 + }, + "end": { + "line": 87, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1331, + 1447 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 87, + "column": 7 + } + } + } + ], + "range": [ + 1267, + 1453 + ], + "loc": { + "start": { + "line": 83, + "column": 11 + }, + "end": { + "line": 88, + "column": 5 + } + } + }, + "range": [ + 1198, + 1453 + ], + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 88, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1466, + 1470 + ], + "loc": { + "start": { + "line": 90, + "column": 11 + }, + "end": { + "line": 90, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 1471, + 1477 + ], + "loc": { + "start": { + "line": 90, + "column": 16 + }, + "end": { + "line": 90, + "column": 22 + } + } + }, + "range": [ + 1466, + 1477 + ], + "loc": { + "start": { + "line": 90, + "column": 11 + }, + "end": { + "line": 90, + "column": 22 + } + } + }, + "range": [ + 1459, + 1478 + ], + "loc": { + "start": { + "line": 90, + "column": 4 + }, + "end": { + "line": 90, + "column": 23 + } + } + } + ], + "range": [ + 1136, + 1482 + ], + "loc": { + "start": { + "line": 76, + "column": 14 + }, + "end": { + "line": 91, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1133, + 1482 + ], + "loc": { + "start": { + "line": 76, + "column": 11 + }, + "end": { + "line": 91, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1124, + 1482 + ], + "loc": { + "start": { + "line": 76, + "column": 2 + }, + "end": { + "line": 91, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1089, + 1121 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 75, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1486, + 1518 + ], + "loc": { + "start": { + "line": 93, + "column": 2 + }, + "end": { + "line": 95, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "statusCode", + "range": [ + 1525, + 1535 + ], + "loc": { + "start": { + "line": 96, + "column": 6 + }, + "end": { + "line": 96, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1548, + 1552 + ], + "loc": { + "start": { + "line": 97, + "column": 8 + }, + "end": { + "line": 97, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_statusCode", + "range": [ + 1553, + 1564 + ], + "loc": { + "start": { + "line": 97, + "column": 13 + }, + "end": { + "line": 97, + "column": 24 + } + } + }, + "range": [ + 1548, + 1564 + ], + "loc": { + "start": { + "line": 97, + "column": 8 + }, + "end": { + "line": 97, + "column": 24 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1581, + 1585 + ], + "loc": { + "start": { + "line": 98, + "column": 13 + }, + "end": { + "line": 98, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_statusCode", + "range": [ + 1586, + 1597 + ], + "loc": { + "start": { + "line": 98, + "column": 18 + }, + "end": { + "line": 98, + "column": 29 + } + } + }, + "range": [ + 1581, + 1597 + ], + "loc": { + "start": { + "line": 98, + "column": 13 + }, + "end": { + "line": 98, + "column": 29 + } + } + }, + "range": [ + 1574, + 1598 + ], + "loc": { + "start": { + "line": 98, + "column": 6 + }, + "end": { + "line": 98, + "column": 30 + } + } + } + ], + "range": [ + 1566, + 1604 + ], + "loc": { + "start": { + "line": 97, + "column": 26 + }, + "end": { + "line": 99, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1544, + 1604 + ], + "loc": { + "start": { + "line": 97, + "column": 4 + }, + "end": { + "line": 99, + "column": 5 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1614, + 1618 + ], + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 101, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawData", + "range": [ + 1619, + 1627 + ], + "loc": { + "start": { + "line": 101, + "column": 13 + }, + "end": { + "line": 101, + "column": 21 + } + } + }, + "range": [ + 1614, + 1627 + ], + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 101, + "column": 21 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1637, + 1641 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_statusCode", + "range": [ + 1642, + 1653 + ], + "loc": { + "start": { + "line": 102, + "column": 11 + }, + "end": { + "line": 102, + "column": 22 + } + } + }, + "range": [ + 1637, + 1653 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 22 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1656, + 1660 + ], + "loc": { + "start": { + "line": 102, + "column": 25 + }, + "end": { + "line": 102, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawData", + "range": [ + 1661, + 1669 + ], + "loc": { + "start": { + "line": 102, + "column": 30 + }, + "end": { + "line": 102, + "column": 38 + } + } + }, + "range": [ + 1656, + 1669 + ], + "loc": { + "start": { + "line": 102, + "column": 25 + }, + "end": { + "line": 102, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "StatusCode", + "range": [ + 1670, + 1680 + ], + "loc": { + "start": { + "line": 102, + "column": 39 + }, + "end": { + "line": 102, + "column": 49 + } + } + }, + "range": [ + 1656, + 1680 + ], + "loc": { + "start": { + "line": 102, + "column": 25 + }, + "end": { + "line": 102, + "column": 49 + } + } + }, + "range": [ + 1637, + 1680 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 49 + } + } + }, + "range": [ + 1637, + 1681 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 50 + } + } + } + ], + "range": [ + 1629, + 1687 + ], + "loc": { + "start": { + "line": 101, + "column": 23 + }, + "end": { + "line": 103, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1610, + 1687 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 103, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1700, + 1704 + ], + "loc": { + "start": { + "line": 105, + "column": 11 + }, + "end": { + "line": 105, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_statusCode", + "range": [ + 1705, + 1716 + ], + "loc": { + "start": { + "line": 105, + "column": 16 + }, + "end": { + "line": 105, + "column": 27 + } + } + }, + "range": [ + 1700, + 1716 + ], + "loc": { + "start": { + "line": 105, + "column": 11 + }, + "end": { + "line": 105, + "column": 27 + } + } + }, + "range": [ + 1693, + 1717 + ], + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 28 + } + } + } + ], + "range": [ + 1538, + 1721 + ], + "loc": { + "start": { + "line": 96, + "column": 19 + }, + "end": { + "line": 106, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1535, + 1721 + ], + "loc": { + "start": { + "line": 96, + "column": 16 + }, + "end": { + "line": 106, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1521, + 1721 + ], + "loc": { + "start": { + "line": 96, + "column": 2 + }, + "end": { + "line": 106, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1486, + 1518 + ], + "loc": { + "start": { + "line": 93, + "column": 2 + }, + "end": { + "line": 95, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 110, + 1723 + ], + "loc": { + "start": { + "line": 10, + "column": 22 + }, + "end": { + "line": 107, + "column": 1 + } + } + }, + "range": [ + 95, + 1723 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 107, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Response object\n ", + "range": [ + 61, + 87 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 88, + 1723 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 107, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Response object\n ", + "range": [ + 61, + 87 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 1723 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 107, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Response object\n ", + "range": [ + 61, + 87 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Request} request\n * @param {Object} data\n * @param {String} error\n ", + "range": [ + 114, + 206 + ], + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 413, + 440 + ], + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 29, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 492, + 519 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Request}\n ", + "range": [ + 573, + 606 + ], + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 658, + 690 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 987, + 1020 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 68, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1089, + 1121 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 75, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 1486, + 1518 + ], + "loc": { + "start": { + "line": 93, + "column": 2 + }, + "end": { + "line": 95, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/ast/source/Resource/SuperagentResponse.js.json b/docs-api/deep-resource/ast/source/Resource/SuperagentResponse.js.json new file mode 100644 index 00000000..34e0e86d --- /dev/null +++ b/docs-api/deep-resource/ast/source/Resource/SuperagentResponse.js.json @@ -0,0 +1,2286 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Response", + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Response", + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "range": [ + 69, + 77 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 16 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Response", + "raw": "'./Response'", + "range": [ + 84, + 96 + ], + "loc": { + "start": { + "line": 7, + "column": 23 + }, + "end": { + "line": 7, + "column": 35 + } + } + }, + "range": [ + 61, + 97 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 36 + } + } + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "SuperagentResponse", + "range": [ + 112, + 130 + ], + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 31 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Response", + "range": [ + 139, + 147 + ], + "loc": { + "start": { + "line": 9, + "column": 40 + }, + "end": { + "line": 9, + "column": 48 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 247, + 258 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 15, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "request", + "range": [ + 259, + 266 + ], + "loc": { + "start": { + "line": 15, + "column": 14 + }, + "end": { + "line": 15, + "column": 21 + } + } + }, + { + "type": "Identifier", + "name": "data", + "range": [ + 268, + 272 + ], + "loc": { + "start": { + "line": 15, + "column": 23 + }, + "end": { + "line": 15, + "column": 27 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 274, + 279 + ], + "loc": { + "start": { + "line": 15, + "column": 29 + }, + "end": { + "line": 15, + "column": 34 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 287, + 292 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "arguments", + "range": [ + 296, + 305 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 22 + } + } + }, + "range": [ + 293, + 305 + ], + "loc": { + "start": { + "line": 16, + "column": 10 + }, + "end": { + "line": 16, + "column": 22 + } + } + } + ], + "range": [ + 287, + 306 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 23 + } + } + }, + "range": [ + 287, + 307 + ], + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 24 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 313, + 317 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 318, + 323 + ], + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 14 + } + } + }, + "range": [ + 313, + 323 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 14 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 326, + 330 + ], + "loc": { + "start": { + "line": 18, + "column": 17 + }, + "end": { + "line": 18, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "_parseResponse", + "range": [ + 331, + 345 + ], + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 36 + } + } + }, + "range": [ + 326, + 345 + ], + "loc": { + "start": { + "line": 18, + "column": 17 + }, + "end": { + "line": 18, + "column": 36 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "data", + "range": [ + 346, + 350 + ], + "loc": { + "start": { + "line": 18, + "column": 37 + }, + "end": { + "line": 18, + "column": 41 + } + } + } + ], + "range": [ + 326, + 351 + ], + "loc": { + "start": { + "line": 18, + "column": 17 + }, + "end": { + "line": 18, + "column": 42 + } + } + }, + "range": [ + 313, + 351 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 42 + } + } + }, + "range": [ + 313, + 352 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 43 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 357, + 361 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 362, + 368 + ], + "loc": { + "start": { + "line": 19, + "column": 9 + }, + "end": { + "line": 19, + "column": 15 + } + } + }, + "range": [ + 357, + 368 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 15 + } + } + }, + "right": { + "type": "Identifier", + "name": "error", + "range": [ + 371, + 376 + ], + "loc": { + "start": { + "line": 19, + "column": 18 + }, + "end": { + "line": 19, + "column": 23 + } + } + }, + "range": [ + 357, + 376 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 23 + } + } + }, + "range": [ + 357, + 377 + ], + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 24 + } + } + } + ], + "range": [ + 281, + 381 + ], + "loc": { + "start": { + "line": 15, + "column": 36 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 258, + 381 + ], + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 247, + 381 + ], + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Request} request\n * @param {Object} data\n * @param {String} error\n ", + "range": [ + 152, + 244 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 14, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Parse response given by superagent library\n *\n * @param {Object} response\n * @returns {Object}\n * @private\n ", + "range": [ + 385, + 514 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 28, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_parseResponse", + "range": [ + 517, + 531 + ], + "loc": { + "start": { + "line": 29, + "column": 2 + }, + "end": { + "line": 29, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "response", + "range": [ + 532, + 540 + ], + "loc": { + "start": { + "line": 29, + "column": 17 + }, + "end": { + "line": 29, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 552, + 560 + ], + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "error", + "range": [ + 561, + 566 + ], + "loc": { + "start": { + "line": 30, + "column": 17 + }, + "end": { + "line": 30, + "column": 22 + } + } + }, + "range": [ + 552, + 566 + ], + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 22 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 576, + 580 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 581, + 587 + ], + "loc": { + "start": { + "line": 31, + "column": 11 + }, + "end": { + "line": 31, + "column": 17 + } + } + }, + "range": [ + 576, + 587 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 17 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 590, + 598 + ], + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "error", + "range": [ + 599, + 604 + ], + "loc": { + "start": { + "line": 31, + "column": 29 + }, + "end": { + "line": 31, + "column": 34 + } + } + }, + "range": [ + 590, + 604 + ], + "loc": { + "start": { + "line": 31, + "column": 20 + }, + "end": { + "line": 31, + "column": 34 + } + } + }, + "range": [ + 576, + 604 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 34 + } + } + }, + "range": [ + 576, + 605 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 35 + } + } + } + ], + "range": [ + 568, + 611 + ], + "loc": { + "start": { + "line": 30, + "column": 24 + }, + "end": { + "line": 32, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 548, + 611 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 32, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 617, + 621 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_statusCode", + "range": [ + 622, + 633 + ], + "loc": { + "start": { + "line": 34, + "column": 9 + }, + "end": { + "line": 34, + "column": 20 + } + } + }, + "range": [ + 617, + 633 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 20 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 636, + 644 + ], + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "status", + "range": [ + 645, + 651 + ], + "loc": { + "start": { + "line": 34, + "column": 32 + }, + "end": { + "line": 34, + "column": 38 + } + } + }, + "range": [ + 636, + 651 + ], + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 38 + } + } + }, + "range": [ + 617, + 651 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 38 + } + } + }, + "range": [ + 617, + 652 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 39 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 665, + 673 + ], + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 36, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "body", + "range": [ + 674, + 678 + ], + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 24 + } + } + }, + "range": [ + 665, + 678 + ], + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 36, + "column": 24 + } + } + }, + "range": [ + 658, + 679 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 25 + } + } + } + ], + "range": [ + 542, + 683 + ], + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 531, + 683 + ], + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 517, + 683 + ], + "loc": { + "start": { + "line": 29, + "column": 2 + }, + "end": { + "line": 37, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Parse response given by superagent library\n *\n * @param {Object} response\n * @returns {Object}\n * @private\n ", + "range": [ + 385, + 514 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 28, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 687, + 719 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "data", + "range": [ + 726, + 730 + ], + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 746, + 750 + ], + "loc": { + "start": { + "line": 43, + "column": 11 + }, + "end": { + "line": 43, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_data", + "range": [ + 751, + 756 + ], + "loc": { + "start": { + "line": 43, + "column": 16 + }, + "end": { + "line": 43, + "column": 21 + } + } + }, + "range": [ + 746, + 756 + ], + "loc": { + "start": { + "line": 43, + "column": 11 + }, + "end": { + "line": 43, + "column": 21 + } + } + }, + "range": [ + 739, + 757 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 22 + } + } + } + ], + "range": [ + 733, + 761 + ], + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 730, + 761 + ], + "loc": { + "start": { + "line": 42, + "column": 10 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 722, + 761 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 687, + 719 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 765, + 798 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "isError", + "range": [ + 805, + 812 + ], + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 49, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 830, + 834 + ], + "loc": { + "start": { + "line": 50, + "column": 13 + }, + "end": { + "line": 50, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 835, + 841 + ], + "loc": { + "start": { + "line": 50, + "column": 18 + }, + "end": { + "line": 50, + "column": 24 + } + } + }, + "range": [ + 830, + 841 + ], + "loc": { + "start": { + "line": 50, + "column": 13 + }, + "end": { + "line": 50, + "column": 24 + } + } + }, + "prefix": true, + "range": [ + 829, + 841 + ], + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 24 + } + } + }, + "prefix": true, + "range": [ + 828, + 841 + ], + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 50, + "column": 24 + } + } + }, + "range": [ + 821, + 842 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 25 + } + } + } + ], + "range": [ + 815, + 846 + ], + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 812, + 846 + ], + "loc": { + "start": { + "line": 49, + "column": 13 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 801, + 846 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 765, + 798 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 850, + 882 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "error", + "range": [ + 889, + 894 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 11 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 910, + 914 + ], + "loc": { + "start": { + "line": 57, + "column": 11 + }, + "end": { + "line": 57, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_error", + "range": [ + 915, + 921 + ], + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 22 + } + } + }, + "range": [ + 910, + 921 + ], + "loc": { + "start": { + "line": 57, + "column": 11 + }, + "end": { + "line": 57, + "column": 22 + } + } + }, + "range": [ + 903, + 922 + ], + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 23 + } + } + } + ], + "range": [ + 897, + 926 + ], + "loc": { + "start": { + "line": 56, + "column": 14 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 894, + 926 + ], + "loc": { + "start": { + "line": 56, + "column": 11 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 885, + 926 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 58, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 850, + 882 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 930, + 962 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "statusCode", + "range": [ + 969, + 979 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 995, + 999 + ], + "loc": { + "start": { + "line": 64, + "column": 11 + }, + "end": { + "line": 64, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_statusCode", + "range": [ + 1000, + 1011 + ], + "loc": { + "start": { + "line": 64, + "column": 16 + }, + "end": { + "line": 64, + "column": 27 + } + } + }, + "range": [ + 995, + 1011 + ], + "loc": { + "start": { + "line": 64, + "column": 11 + }, + "end": { + "line": 64, + "column": 27 + } + } + }, + "range": [ + 988, + 1012 + ], + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 28 + } + } + } + ], + "range": [ + 982, + 1016 + ], + "loc": { + "start": { + "line": 63, + "column": 19 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 979, + 1016 + ], + "loc": { + "start": { + "line": 63, + "column": 16 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 965, + 1016 + ], + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 65, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 930, + 962 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 148, + 1018 + ], + "loc": { + "start": { + "line": 9, + "column": 49 + }, + "end": { + "line": 66, + "column": 1 + } + } + }, + "range": [ + 106, + 1018 + ], + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 66, + "column": 1 + } + }, + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 99, + 1018 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 66, + "column": 1 + } + } + } + ], + "sourceType": "module", + "range": [ + 46, + 1018 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 66, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Request} request\n * @param {Object} data\n * @param {String} error\n ", + "range": [ + 152, + 244 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 14, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Parse response given by superagent library\n *\n * @param {Object} response\n * @returns {Object}\n * @private\n ", + "range": [ + 385, + 514 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 28, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 687, + 719 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 41, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 765, + 798 + ], + "loc": { + "start": { + "line": 46, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 850, + 882 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 930, + 962 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/ast/source/bootstrap.js.json b/docs-api/deep-resource/ast/source/bootstrap.js.json new file mode 100644 index 00000000..78b97ff7 --- /dev/null +++ b/docs-api/deep-resource/ast/source/bootstrap.js.json @@ -0,0 +1,332 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 89, + 101 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + "range": [ + 89, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Resource", + "range": [ + 112, + 120 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 16 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Resource", + "range": [ + 112, + 120 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 16 + } + } + }, + "range": [ + 112, + 120 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 16 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Resource", + "raw": "'./Resource'", + "range": [ + 127, + 139 + ], + "loc": { + "start": { + "line": 9, + "column": 23 + }, + "end": { + "line": 9, + "column": 35 + } + } + }, + "range": [ + 104, + 140 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 36 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "exports", + "range": [ + 146, + 153 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + "init": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "module", + "range": [ + 156, + 162 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exports", + "range": [ + 163, + 170 + ], + "loc": { + "start": { + "line": 11, + "column": 21 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "range": [ + 156, + 170 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "right": { + "type": "Identifier", + "name": "Resource", + "range": [ + 173, + 181 + ], + "loc": { + "start": { + "line": 11, + "column": 31 + }, + "end": { + "line": 11, + "column": 39 + } + } + }, + "range": [ + 156, + 181 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 39 + } + } + }, + "range": [ + 146, + 181 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 39 + } + } + } + ], + "kind": "let", + "range": [ + 142, + 182 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 40 + } + } + } + ], + "sourceType": "module", + "range": [ + 89, + 182 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 11, + "column": 40 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-resource/badge.svg b/docs-api/deep-resource/badge.svg new file mode 100644 index 00000000..9ba96831 --- /dev/null +++ b/docs-api/deep-resource/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 94% + 94% + + diff --git a/docs-api/deep-resource/class/lib/Exception/Exception.js~Exception.html b/docs-api/deep-resource/class/lib/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..ab630039 --- /dev/null +++ b/docs-api/deep-resource/class/lib/Exception/Exception.js~Exception.html @@ -0,0 +1,206 @@ + + + + + + Exception | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    deep-core~Core.Exception.Exception → Exception
    + + + + + + + + + +

    Thrown when any exception occurs

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/class/lib/Exception/MissingResourceException.js~MissingResourceException.html b/docs-api/deep-resource/class/lib/Exception/MissingResourceException.js~MissingResourceException.html new file mode 100644 index 00000000..daad61ff --- /dev/null +++ b/docs-api/deep-resource/class/lib/Exception/MissingResourceException.js~MissingResourceException.html @@ -0,0 +1,212 @@ + + + + + + MissingResourceException | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {MissingResourceException} from 'deep-resource/lib/Exception/MissingResourceException.js'
    + public + class + + + + | source +
    + +
    +

    MissingResourceException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → MissingResourceException
    + + + + + + + + + +

    Thrown when requested resource not found

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(microserviceIdentifier: String, resourceIdentifier: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(microserviceIdentifier: String, resourceIdentifier: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    microserviceIdentifierString
    resourceIdentifierString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/class/lib/Resource.js~Resource.html b/docs-api/deep-resource/class/lib/Resource.js~Resource.html new file mode 100644 index 00000000..a25e066d --- /dev/null +++ b/docs-api/deep-resource/class/lib/Resource.js~Resource.html @@ -0,0 +1,567 @@ + + + + + + Resource | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Resource} from 'deep-resource/lib/Resource.js'
    + public + class + + + + | source +
    + +
    +

    Resource

    + + + + + +

    Extends:

    deep-kernel~Kernel.ContainerAware → Resource
    + + + + + + + + + +

    Bundle resource

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(resources: Object) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + list: Object: * +

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

    Method Summary

    + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + boot(kernel: Kernel, callback: Function) +

    +
    +
    + + +
    Booting a certain service
    +
    +
    + + +
    + public + + + + + +
    +

    + get(identifier: String): ResourceInstance +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + has(identifier: String): Boolean +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(resources: Object) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    resourcesObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + list: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + boot(kernel: Kernel, callback: Function) + + + + source + +

    + + + + +

    Booting a certain service

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    kernelKernel
    callbackFunction
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    + public + + + + + get(identifier: String): ResourceInstance + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    identifierString
    +
    +
    + +
    +

    Return:

    + + + + + +
    ResourceInstance
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + has(identifier: String): Boolean + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    identifierString
    +
    +
    + +
    +

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/class/lib/Resource/Action.js~Action.html b/docs-api/deep-resource/class/lib/Resource/Action.js~Action.html new file mode 100644 index 00000000..6d26c6b6 --- /dev/null +++ b/docs-api/deep-resource/class/lib/Resource/Action.js~Action.html @@ -0,0 +1,1032 @@ + + + + + + Action | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    Action

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

    Resource action

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

    Static Member Summary

    + + + + + + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + +
    +

    + EXTERNAL: String: string +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + HTTP_VERBS: Array: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + LAMBDA: String: string +

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(resource: Instance, name: String, type: String, methods: Array, source: String, region: String) +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + methods: Array: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + name: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + region: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + resource: Instance: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + source: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + type: String: * +

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

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + request(payload: Object, method: String): * +

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

    Static Public Members

    + +
    +

    + public + static + get + + + EXTERNAL: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + HTTP_VERBS: Array: * + + + + source + +

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

    Return:

    + + + + + +
    Array
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + LAMBDA: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +

    Public Constructors

    + +
    +

    + public + + + + + constructor(resource: Instance, name: String, type: String, methods: Array, source: String, region: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    resourceInstance
    nameString
    typeString
    methodsArray
    sourceString
    regionString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + methods: Array: * + + + + source + +

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

    Return:

    + + + + + +
    Array
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + name: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + region: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + resource: Instance: * + + + + source + +

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

    Return:

    + + + + + +
    Instance
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + source: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + type: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + request(payload: Object, method: String): * + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    payloadObject
    methodString
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/class/lib/Resource/Exception/CachedRequestException.js~CachedRequestException.html b/docs-api/deep-resource/class/lib/Resource/Exception/CachedRequestException.js~CachedRequestException.html new file mode 100644 index 00000000..7de3c5cd --- /dev/null +++ b/docs-api/deep-resource/class/lib/Resource/Exception/CachedRequestException.js~CachedRequestException.html @@ -0,0 +1,205 @@ + + + + + + CachedRequestException | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    CachedRequestException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → CachedRequestException
    + + + + + + + + + + + + + + + + + + +
    + + + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(exception: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(exception: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    exceptionString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/class/lib/Resource/Exception/MissingActionException.js~MissingActionException.html b/docs-api/deep-resource/class/lib/Resource/Exception/MissingActionException.js~MissingActionException.html new file mode 100644 index 00000000..d40e09e0 --- /dev/null +++ b/docs-api/deep-resource/class/lib/Resource/Exception/MissingActionException.js~MissingActionException.html @@ -0,0 +1,212 @@ + + + + + + MissingActionException | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    MissingActionException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → MissingActionException
    + + + + + + + + + +

    Thrown when requested resource action not found

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(resourceName: String, actionName: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(resourceName: String, actionName: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    resourceNameString
    actionNameString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/class/lib/Resource/Exception/MissingCacheImplementationException.js~MissingCacheImplementationException.html b/docs-api/deep-resource/class/lib/Resource/Exception/MissingCacheImplementationException.js~MissingCacheImplementationException.html new file mode 100644 index 00000000..3caa11c4 --- /dev/null +++ b/docs-api/deep-resource/class/lib/Resource/Exception/MissingCacheImplementationException.js~MissingCacheImplementationException.html @@ -0,0 +1,189 @@ + + + + + + MissingCacheImplementationException | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {MissingCacheImplementationException} from 'deep-resource/lib/Resource/Exception/MissingCacheImplementationException.js'
    + public + class + + + + | source +
    + +
    +

    MissingCacheImplementationException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → MissingCacheImplementationException
    + + + + + + + + + + + + + + + + + + +
    + + + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

    + + + + + + + + +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/class/lib/Resource/Exception/UnknownMethodException.js~UnknownMethodException.html b/docs-api/deep-resource/class/lib/Resource/Exception/UnknownMethodException.js~UnknownMethodException.html new file mode 100644 index 00000000..f0e6bf95 --- /dev/null +++ b/docs-api/deep-resource/class/lib/Resource/Exception/UnknownMethodException.js~UnknownMethodException.html @@ -0,0 +1,212 @@ + + + + + + UnknownMethodException | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    UnknownMethodException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → UnknownMethodException
    + + + + + + + + + +

    Thrown when requested method is missing from allowed vector

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(requestedMethod: String, availableMethods: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(requestedMethod: String, availableMethods: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    requestedMethodString
    availableMethodsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/class/lib/Resource/Instance.js~Instance.html b/docs-api/deep-resource/class/lib/Resource/Instance.js~Instance.html new file mode 100644 index 00000000..03d28baa --- /dev/null +++ b/docs-api/deep-resource/class/lib/Resource/Instance.js~Instance.html @@ -0,0 +1,1077 @@ + + + + + + Instance | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    Instance

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

    Resource instance

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(name: String, rawActions: Object) +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + actions: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + cache: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + cache(cache: Object): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + localBackend: Boolean: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + localBackend(state: Boolean): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + name: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + + +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + securityCredentials(credentials: Object): * +

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

    Method Summary

    + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + action(actionName: *): Action +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + has(actionName: String): boolean +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + request(actionName: String, args: *): * +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(name: String, rawActions: Object) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    nameString
    rawActionsObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + actions: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + cache: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + cache(cache: Object): * + + + + source + +

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

    + public + + get + + + localBackend: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + localBackend(state: Boolean): * + + + + source + +

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

    + public + + get + + + name: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + securityCredentials: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + securityCredentials(credentials: Object): * + + + + source + +

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

    Public Methods

    + +
    +

    + public + + + + + action(actionName: *): Action + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    actionName*
    +
    +
    + +
    +

    Return:

    + + + + + +
    Action
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + has(actionName: String): boolean + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    actionNameString
    +
    +
    + +
    +

    Return:

    + + + + + +
    boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + request(actionName: String, args: *): * + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    actionNameString
    args*
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/class/lib/Resource/LambdaResponse.js~LambdaResponse.html b/docs-api/deep-resource/class/lib/Resource/LambdaResponse.js~LambdaResponse.html new file mode 100644 index 00000000..b1374ba2 --- /dev/null +++ b/docs-api/deep-resource/class/lib/Resource/LambdaResponse.js~LambdaResponse.html @@ -0,0 +1,526 @@ + + + + + + LambdaResponse | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {LambdaResponse} from 'deep-resource/lib/Resource/LambdaResponse.js'
    + public + class + + + + | source +
    + +
    +

    LambdaResponse

    + + + + + +

    Extends:

    lib/Resource/Response~Response → LambdaResponse
    + + + + + + + + + +

    Response object

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(request: Request, data: Object, error: String) +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + data: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + error: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + errorType: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + statusCode: String: * +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(request: Request, data: Object, error: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    requestRequest
    dataObject
    errorString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + data: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + error: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + errorType: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + statusCode: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/class/lib/Resource/LocalRequest.js~LocalRequest.html b/docs-api/deep-resource/class/lib/Resource/LocalRequest.js~LocalRequest.html new file mode 100644 index 00000000..ad42ed99 --- /dev/null +++ b/docs-api/deep-resource/class/lib/Resource/LocalRequest.js~LocalRequest.html @@ -0,0 +1,289 @@ + + + + + + LocalRequest | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {LocalRequest} from 'deep-resource/lib/Resource/LocalRequest.js'
    + public + class + + + + | source +
    + +
    +

    LocalRequest

    + + + + + +

    Extends:

    lib/Resource/Request~Request → LocalRequest
    + + + + + + + + + +

    Resource request instance

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

    Static Member Summary

    + + + + + + + + + +
    Static Public Members
    + public + static + get + + + + +
    + + + +
    +
    + + +
    +
    + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: ...*) +

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

    Static Public Members

    + +
    +

    + public + static + get + + + LOCAL_LAMBDA_ENDPOINT: String: string + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: ...*) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    args...*
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/class/lib/Resource/Request.js~Request.html b/docs-api/deep-resource/class/lib/Resource/Request.js~Request.html new file mode 100644 index 00000000..d10f4681 --- /dev/null +++ b/docs-api/deep-resource/class/lib/Resource/Request.js~Request.html @@ -0,0 +1,1620 @@ + + + + + + Request | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    Request

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

    Action request instance

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

    Static Member Summary

    + + + + + + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + TTL_INVALIDATE: Number: * +

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(action: Action, payload: Object, method: String) +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + action: Action: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + cacheImpl: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + cacheImpl(cache: Object): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + cacheTtl: Number: * +

    +
    +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + cacheTtl(ttl: Number): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + isCached: Boolean: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + method: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + native: Boolean: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + payload: Object: * +

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

    Method Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + cache(ttl: Number): Request +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + disableCache(): Request +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + enableCache(): Request +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + invalidateCache(callback: Function): * +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + send(callback: Function): * +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + useDirectCall(): Request +

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

    Static Public Members

    + +
    +

    + public + static + get + + + TTL_DEFAULT: Number: number + + + + source + +

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

    Return:

    + + + + + +
    Number
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + TTL_FOREVER: Number: number + + + + source + +

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

    Return:

    + + + + + +
    Number
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + TTL_INVALIDATE: Number: * + + + + source + +

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

    Return:

    + + + + + +
    Number
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +

    Public Constructors

    + +
    +

    + public + + + + + constructor(action: Action, payload: Object, method: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    actionAction
    payloadObject
    methodString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + action: Action: * + + + + source + +

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

    Return:

    + + + + + +
    Action
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + cacheImpl: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + cacheImpl(cache: Object): * + + + + source + +

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

    + public + + get + + + cacheTtl: Number: * + + + + source + +

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

    Return:

    + + + + + +
    Number
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + cacheTtl(ttl: Number): * + + + + source + +

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

    + public + + get + + + isCached: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + method: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + native: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + payload: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + cache(ttl: Number): Request + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    ttlNumber
    +
    +
    + +
    +

    Return:

    + + + + + +
    Request
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + disableCache(): Request + + + + source + +

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

    Return:

    + + + + + +
    Request
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + enableCache(): Request + + + + source + +

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

    Return:

    + + + + + +
    Request
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + invalidateCache(callback: Function): * + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    callbackFunction
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + send(callback: Function): * + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    callbackFunction
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + useDirectCall(): Request + + + + source + +

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

    Return:

    + + + + + +
    Request
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/class/lib/Resource/Response.js~Response.html b/docs-api/deep-resource/class/lib/Resource/Response.js~Response.html new file mode 100644 index 00000000..7dd493dc --- /dev/null +++ b/docs-api/deep-resource/class/lib/Resource/Response.js~Response.html @@ -0,0 +1,751 @@ + + + + + + Response | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    Response

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

    Response object

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(request: Request, data: Object, error: String) +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + data: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + error: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + isError: Boolean: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + rawData: *: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + rawError: *: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + request: Request: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + statusCode: String: * +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(request: Request, data: Object, error: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    requestRequest
    dataObject
    errorString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + data: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + error: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + isError: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + rawData: *: * + + + + source + +

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

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + rawError: *: * + + + + source + +

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

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + request: Request: * + + + + source + +

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

    Return:

    + + + + + +
    Request
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + statusCode: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/class/lib/Resource/SuperagentResponse.js~SuperagentResponse.html b/docs-api/deep-resource/class/lib/Resource/SuperagentResponse.js~SuperagentResponse.html new file mode 100644 index 00000000..256cfa1b --- /dev/null +++ b/docs-api/deep-resource/class/lib/Resource/SuperagentResponse.js~SuperagentResponse.html @@ -0,0 +1,525 @@ + + + + + + SuperagentResponse | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {SuperagentResponse} from 'deep-resource/lib/Resource/SuperagentResponse.js'
    + public + class + + + + | source +
    + +
    +

    SuperagentResponse

    + + + + + +

    Extends:

    lib/Resource/Response~Response → SuperagentResponse
    + + + + + + + + + + + + + + + + + + +
    + + + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(request: Request, data: Object, error: String) +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + data: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + error: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + isError: Boolean: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + statusCode: String: * +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(request: Request, data: Object, error: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    requestRequest
    dataObject
    errorString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + data: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + error: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + isError: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + statusCode: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/coverage.json b/docs-api/deep-resource/coverage.json new file mode 100644 index 00000000..378b65cc --- /dev/null +++ b/docs-api/deep-resource/coverage.json @@ -0,0 +1,86 @@ +{ + "coverage": "94.25%", + "expectCount": 87, + "actualCount": 82, + "files": { + "lib/Resource/Action.js": { + "expectCount": 12, + "actualCount": 12, + "undocumentLines": [] + }, + "lib/Resource/Exception/CachedRequestException.js": { + "expectCount": 2, + "actualCount": 1, + "undocumentLines": [ + 9 + ] + }, + "lib/Exception/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Resource/Instance.js": { + "expectCount": 13, + "actualCount": 13, + "undocumentLines": [] + }, + "lib/Resource/LocalRequest.js": { + "expectCount": 3, + "actualCount": 2, + "undocumentLines": [ + 16 + ] + }, + "lib/Resource/LambdaResponse.js": { + "expectCount": 6, + "actualCount": 6, + "undocumentLines": [] + }, + "lib/Resource/Exception/MissingActionException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Resource/Exception/MissingCacheImplementationException.js": { + "expectCount": 2, + "actualCount": 0, + "undocumentLines": [ + 9, + 10 + ] + }, + "lib/Exception/MissingResourceException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Resource/Request.js": { + "expectCount": 20, + "actualCount": 20, + "undocumentLines": [] + }, + "lib/Resource.js": { + "expectCount": 6, + "actualCount": 6, + "undocumentLines": [] + }, + "lib/Resource/Response.js": { + "expectCount": 9, + "actualCount": 9, + "undocumentLines": [] + }, + "lib/Resource/SuperagentResponse.js": { + "expectCount": 6, + "actualCount": 5, + "undocumentLines": [ + 9 + ] + }, + "lib/Resource/Exception/UnknownMethodException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/docs-api/deep-resource/css/prettify-tomorrow.css b/docs-api/deep-resource/css/prettify-tomorrow.css new file mode 100644 index 00000000..b6f92a78 --- /dev/null +++ b/docs-api/deep-resource/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs-api/deep-resource/css/style.css b/docs-api/deep-resource/css/style.css new file mode 100644 index 00000000..4dc99a1b --- /dev/null +++ b/docs-api/deep-resource/css/style.css @@ -0,0 +1,862 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Roboto', sans-serif; + overflow: auto; + font-size: 14px; + /*color: #4d4e53;*/ + color: rgba(0, 0, 0, .68); + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + background-color: #E2E2E2; + padding: 4px; + font-weight: 300; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 19px; +} + +p > code { + background-color: #f5f5f5; + border-radius: 3px; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0 4px; + border-radius: 3px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: white; + top: 0; + border-bottom: solid 1px #E02130; +} +.layout-container > header > a{ + margin: 0 5px; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid rgba(0, 0, 0, 0.1); +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation .nav-dir-path { + margin-top: 0.7em; + margin-bottom: 0.25em; + font-size: 0.8em; + color: #aaa; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #999; + color: white; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +pre.source-code { + background: #f5f5f5; + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150); +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #999; + color: white; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} + +table.test-summary thead { + background: #999; + color: white; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-describe .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; +} + +table.test-summary tr.test-describe .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-describe .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} + +.inner-link-active { + background: rgb(255, 255, 150); +} + +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + +/* coverage badge */ +.esdoc-coverage { + display: inline-block; + height: 20px; + vertical-align: top; +} + +h1 .esdoc-coverage { + position: relative; + top: -4px; +} + +.esdoc-coverage-wrap { + color: white; + font-size: 12px; + font-weight: 500; +} + +.esdoc-coverage-label { + padding: 3px 4px 3px 6px; + background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%); + border-radius: 4px 0 0 4px; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-ratio { + padding: 3px 6px 3px 4px; + border-radius: 0 4px 4px 0; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-low { + background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%); +} + +.esdoc-coverage-middle { + background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%); +} + +.esdoc-coverage-high { + background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%); +} + +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; + background-color: transparent; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} diff --git a/docs-api/deep-resource/dump.json b/docs-api/deep-resource/dump.json new file mode 100644 index 00000000..6e3f8f39 --- /dev/null +++ b/docs-api/deep-resource/dump.json @@ -0,0 +1,4736 @@ +[ + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/Exception.js", + "memberof": null, + "longname": "lib/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\n\n/**\n * Thrown when any exception occurs\n */\nexport class Exception extends Core.Exception.Exception {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Exception/Exception.js", + "longname": "lib/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-resource/lib/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Thrown when any exception occurs", + "lineNumber": 12, + "interface": false, + "extends": [ + "deep-core~Core.Exception.Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/Exception.js~Exception", + "longname": "lib/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/MissingResourceException.js", + "memberof": null, + "longname": "lib/Exception/MissingResourceException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when requested resource not found\n */\nexport class MissingResourceException extends Exception {\n /**\n * @param {String} microserviceIdentifier\n * @param {String} resourceIdentifier\n */\n constructor(microserviceIdentifier, resourceIdentifier) {\n super(`Missing resource ${resourceIdentifier} in ${microserviceIdentifier}`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "MissingResourceException", + "memberof": "lib/Exception/MissingResourceException.js", + "longname": "lib/Exception/MissingResourceException.js~MissingResourceException", + "access": null, + "export": true, + "importPath": "deep-resource/lib/Exception/MissingResourceException.js", + "importStyle": "{MissingResourceException}", + "description": "Thrown when requested resource not found", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/MissingResourceException.js~MissingResourceException", + "longname": "lib/Exception/MissingResourceException.js~MissingResourceException#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "microserviceIdentifier", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "resourceIdentifier", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Resource/Action.js", + "memberof": null, + "longname": "lib/Resource/Action.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 8/4/15.\n */\n\n'use strict';\n\nimport {UnknownMethodException} from './Exception/UnknownMethodException';\nimport {Request} from './Request';\nimport {LocalRequest} from './LocalRequest';\n\n/**\n * Resource action\n */\nexport class Action {\n /**\n * @param {Instance} resource\n * @param {String} name\n * @param {String} type\n * @param {Array} methods\n * @param {String} source\n * @param {String} region\n */\n constructor(resource, name, type, methods, source, region) {\n this._resource = resource;\n this._name = name;\n this._type = type;\n this._methods = methods;\n this._source = source;\n this._region = region;\n }\n\n /**\n * @param {Object} payload\n * @param {String} method\n */\n request(payload = {}, method = null) {\n method = method || (this._methods.length > 0 ? this._methods[0] : Instance.HTTP_VERBS[0]);\n\n if (this._methods.length > 0 && this._methods.indexOf(method) === -1) {\n throw new UnknownMethodException(method, this._methods);\n }\n\n let RequestImplementation = this._resource.localBackend ? LocalRequest : Request;\n let requestObject = new RequestImplementation(this, payload, method);\n\n if (this._resource.cache) {\n requestObject.cacheImpl = this._resource.cache;\n }\n\n return requestObject;\n }\n\n /**\n * @returns {Instance}\n */\n get resource() {\n return this._resource;\n }\n\n /**\n * @returns {String}\n */\n get name() {\n return this._name;\n }\n\n /**\n * @returns {String}\n */\n get type() {\n return this._type;\n }\n\n /**\n * @returns {Array}\n */\n get methods() {\n return this._methods;\n }\n\n /**\n * @returns {String}\n */\n get source() {\n return this._source;\n }\n\n /**\n * @returns {String}\n */\n get region() {\n return this._region;\n }\n\n /**\n * @returns {Array}\n */\n static get HTTP_VERBS() {\n return ['GET', 'POST', 'DELETE', 'HEAD', 'PUT', 'OPTIONS', 'PATCH'];\n }\n\n /**\n * @returns {String}\n */\n static get LAMBDA() {\n return 'lambda';\n }\n\n /**\n * @returns {String}\n */\n static get EXTERNAL() {\n return 'external';\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Action", + "memberof": "lib/Resource/Action.js", + "longname": "lib/Resource/Action.js~Action", + "access": null, + "export": true, + "importPath": "deep-resource/lib/Resource/Action.js", + "importStyle": "{Action}", + "description": "Resource action", + "lineNumber": 14, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action#constructor", + "access": null, + "description": null, + "lineNumber": 23, + "params": [ + { + "nullable": null, + "types": [ + "Instance" + ], + "spread": false, + "optional": false, + "name": "resource", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "type", + "description": "" + }, + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "methods", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "source", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "region", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_resource", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action#_resource", + "access": null, + "description": null, + "lineNumber": 24, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_name", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action#_name", + "access": null, + "description": null, + "lineNumber": 25, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_type", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action#_type", + "access": null, + "description": null, + "lineNumber": 26, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_methods", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action#_methods", + "access": null, + "description": null, + "lineNumber": 27, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_source", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action#_source", + "access": null, + "description": null, + "lineNumber": 28, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_region", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action#_region", + "access": null, + "description": null, + "lineNumber": 29, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "request", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action#request", + "access": null, + "description": null, + "lineNumber": 36, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "payload", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "method", + "description": "" + } + ], + "return": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "resource", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action#resource", + "access": null, + "description": null, + "lineNumber": 56, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Instance}" + } + ], + "return": { + "nullable": null, + "types": [ + "Instance" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "name", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action#name", + "access": null, + "description": null, + "lineNumber": 63, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "type", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action#type", + "access": null, + "description": null, + "lineNumber": 70, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "methods", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action#methods", + "access": null, + "description": null, + "lineNumber": 77, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Array}" + } + ], + "return": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "source", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action#source", + "access": null, + "description": null, + "lineNumber": 84, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "region", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action#region", + "access": null, + "description": null, + "lineNumber": 91, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "HTTP_VERBS", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action.HTTP_VERBS", + "access": null, + "description": null, + "lineNumber": 98, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Array}" + } + ], + "return": { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "LAMBDA", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action.LAMBDA", + "access": null, + "description": null, + "lineNumber": 105, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "EXTERNAL", + "memberof": "lib/Resource/Action.js~Action", + "longname": "lib/Resource/Action.js~Action.EXTERNAL", + "access": null, + "description": null, + "lineNumber": 112, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Resource/Exception/CachedRequestException.js", + "memberof": null, + "longname": "lib/Resource/Exception/CachedRequestException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 8/21/15.\n */\n\n'use strict';\n\nimport {Exception} from '../../Exception/Exception';\n\nexport class CachedRequestException extends Exception {\n /**\n * @param {String} exception\n */\n constructor(exception) {\n super(`Error while working with cached response: ${exception}`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "CachedRequestException", + "memberof": "lib/Resource/Exception/CachedRequestException.js", + "longname": "lib/Resource/Exception/CachedRequestException.js~CachedRequestException", + "access": null, + "export": true, + "importPath": "deep-resource/lib/Resource/Exception/CachedRequestException.js", + "importStyle": "{CachedRequestException}", + "description": null, + "lineNumber": 9, + "undocument": true, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Resource/Exception/CachedRequestException.js~CachedRequestException", + "longname": "lib/Resource/Exception/CachedRequestException.js~CachedRequestException#constructor", + "access": null, + "description": null, + "lineNumber": 13, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "exception", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Resource/Exception/MissingActionException.js", + "memberof": null, + "longname": "lib/Resource/Exception/MissingActionException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 8/04/15.\n */\n\n'use strict';\n\nimport {Exception} from '../../Exception/Exception';\n\n/**\n * Thrown when requested resource action not found\n */\nexport class MissingActionException extends Exception {\n /**\n * @param {String} resourceName\n * @param {String} actionName\n */\n constructor(resourceName, actionName) {\n super(`Missing action ${actionName} in ${resourceName} resource.`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "MissingActionException", + "memberof": "lib/Resource/Exception/MissingActionException.js", + "longname": "lib/Resource/Exception/MissingActionException.js~MissingActionException", + "access": null, + "export": true, + "importPath": "deep-resource/lib/Resource/Exception/MissingActionException.js", + "importStyle": "{MissingActionException}", + "description": "Thrown when requested resource action not found", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Resource/Exception/MissingActionException.js~MissingActionException", + "longname": "lib/Resource/Exception/MissingActionException.js~MissingActionException#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "resourceName", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "actionName", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Resource/Exception/MissingCacheImplementationException.js", + "memberof": null, + "longname": "lib/Resource/Exception/MissingCacheImplementationException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport {Exception} from '../../Exception/Exception';\n\nexport class MissingCacheImplementationException extends Exception {\n constructor() {\n super(`Missing cache implementation in Request object`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "MissingCacheImplementationException", + "memberof": "lib/Resource/Exception/MissingCacheImplementationException.js", + "longname": "lib/Resource/Exception/MissingCacheImplementationException.js~MissingCacheImplementationException", + "access": null, + "export": true, + "importPath": "deep-resource/lib/Resource/Exception/MissingCacheImplementationException.js", + "importStyle": "{MissingCacheImplementationException}", + "description": null, + "lineNumber": 9, + "undocument": true, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Resource/Exception/MissingCacheImplementationException.js~MissingCacheImplementationException", + "longname": "lib/Resource/Exception/MissingCacheImplementationException.js~MissingCacheImplementationException#constructor", + "access": null, + "description": null, + "lineNumber": 10, + "undocument": true, + "params": [], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Resource/Exception/UnknownMethodException.js", + "memberof": null, + "longname": "lib/Resource/Exception/UnknownMethodException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport {Exception} from '../../Exception/Exception';\n\n/**\n * Thrown when requested method is missing from allowed vector\n */\nexport class UnknownMethodException extends Exception {\n /**\n * @param {String} requestedMethod\n * @param {Array} availableMethods\n */\n constructor(requestedMethod, availableMethods) {\n let availableList = availableMethods.join(', ');\n\n super(`Requested method ${requestedMethod} must be one of ${availableList}`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "UnknownMethodException", + "memberof": "lib/Resource/Exception/UnknownMethodException.js", + "longname": "lib/Resource/Exception/UnknownMethodException.js~UnknownMethodException", + "access": null, + "export": true, + "importPath": "deep-resource/lib/Resource/Exception/UnknownMethodException.js", + "importStyle": "{UnknownMethodException}", + "description": "Thrown when requested method is missing from allowed vector", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Resource/Exception/UnknownMethodException.js~UnknownMethodException", + "longname": "lib/Resource/Exception/UnknownMethodException.js~UnknownMethodException#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "requestedMethod", + "description": "" + }, + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "availableMethods", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Resource/Instance.js", + "memberof": null, + "longname": "lib/Resource/Instance.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport {MissingActionException} from './Exception/MissingActionException';\nimport {Action} from './Action';\n\n/**\n * Resource instance\n */\nexport class Instance {\n /**\n * @param {String} name\n * @param {Object} rawActions\n */\n constructor(name, rawActions) {\n this._name = name;\n this._rawActions = rawActions;\n this._actions = null;\n this._localBackend = false;\n this._cache = null;\n\n this._securityCredentials = {\n accessKeyId: null,\n secretAccessKey: null,\n sessionToken: null,\n };\n }\n\n /**\n * @returns {Object}\n */\n get securityCredentials() {\n return this._securityCredentials;\n }\n\n /**\n * @param {Object} credentials\n */\n set securityCredentials(credentials) {\n this._securityCredentials = credentials;\n }\n\n /**\n * @returns {String}\n */\n get name() {\n return this._name;\n }\n\n /**\n * @returns {Object}\n */\n get cache() {\n return this._cache;\n }\n\n /**\n * @param {Object} cache\n */\n set cache(cache) {\n this._cache = cache;\n }\n\n /**\n * @returns {Boolean}\n */\n get localBackend() {\n return this._localBackend;\n }\n\n /**\n * @param {Boolean} state\n */\n set localBackend(state) {\n this._localBackend = state;\n }\n\n /**\n * @returns {Object}\n */\n get actions() {\n if (this._actions === null) {\n this._actions = {};\n\n for (let actionName in this._rawActions) {\n if (!this._rawActions.hasOwnProperty(actionName)) {\n continue;\n }\n\n let actionMetadata = this._rawActions[actionName];\n\n this._actions[actionName] = new Action(\n this,\n actionName,\n actionMetadata.type,\n actionMetadata.methods,\n actionMetadata.source,\n actionMetadata.region\n );\n }\n }\n\n return this._actions;\n }\n\n /**\n * @param {String} actionName\n * @returns {boolean}\n */\n has(actionName) {\n return this.actions.hasOwnProperty(actionName);\n }\n\n /**\n * @param actionName\n * @returns {Action}\n */\n action(actionName) {\n if (!this.has(actionName)) {\n throw new MissingActionException(this.name, actionName);\n }\n\n return this.actions[actionName];\n }\n\n /**\n * @param {String} actionName\n * @param {*} args\n */\n request(actionName, ...args) {\n return this.action(actionName).request(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Instance", + "memberof": "lib/Resource/Instance.js", + "longname": "lib/Resource/Instance.js~Instance", + "access": null, + "export": true, + "importPath": "deep-resource/lib/Resource/Instance.js", + "importStyle": "{Instance}", + "description": "Resource instance", + "lineNumber": 13, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#constructor", + "access": null, + "description": null, + "lineNumber": 18, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "rawActions", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_name", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#_name", + "access": null, + "description": null, + "lineNumber": 19, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_rawActions", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#_rawActions", + "access": null, + "description": null, + "lineNumber": 20, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_actions", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#_actions", + "access": null, + "description": null, + "lineNumber": 21, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_localBackend", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#_localBackend", + "access": null, + "description": null, + "lineNumber": 22, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_cache", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#_cache", + "access": null, + "description": null, + "lineNumber": 23, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_securityCredentials", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#_securityCredentials", + "access": null, + "description": null, + "lineNumber": 25, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "securityCredentials", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#securityCredentials", + "access": null, + "description": null, + "lineNumber": 35, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "securityCredentials", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#securityCredentials", + "access": null, + "description": null, + "lineNumber": 42, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "credentials", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_securityCredentials", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#_securityCredentials", + "access": null, + "description": null, + "lineNumber": 43, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "name", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#name", + "access": null, + "description": null, + "lineNumber": 49, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "cache", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#cache", + "access": null, + "description": null, + "lineNumber": 56, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "cache", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#cache", + "access": null, + "description": null, + "lineNumber": 63, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "cache", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_cache", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#_cache", + "access": null, + "description": null, + "lineNumber": 64, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "localBackend", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#localBackend", + "access": null, + "description": null, + "lineNumber": 70, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "localBackend", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#localBackend", + "access": null, + "description": null, + "lineNumber": 77, + "params": [ + { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "optional": false, + "name": "state", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_localBackend", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#_localBackend", + "access": null, + "description": null, + "lineNumber": 78, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "actions", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#actions", + "access": null, + "description": null, + "lineNumber": 84, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_actions", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#_actions", + "access": null, + "description": null, + "lineNumber": 86, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "has", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#has", + "access": null, + "description": null, + "lineNumber": 113, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{boolean}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "actionName", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "boolean" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "action", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#action", + "access": null, + "description": null, + "lineNumber": 121, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Action}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "actionName", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Action" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "request", + "memberof": "lib/Resource/Instance.js~Instance", + "longname": "lib/Resource/Instance.js~Instance#request", + "access": null, + "description": null, + "lineNumber": 133, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "actionName", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "return": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Resource/LambdaResponse.js", + "memberof": null, + "longname": "lib/Resource/LambdaResponse.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport {Response} from './Response';\n\n/**\n * Response object\n */\nexport class LambdaResponse extends Response {\n /**\n * @param {Request} request\n * @param {Object} data\n * @param {String} error\n */\n constructor(request, data, error) {\n super(...arguments);\n\n this._errorType = null;\n }\n\n /**\n * @returns {Object}\n */\n get data() {\n if (this._data) {\n return this._data;\n }\n\n if (this._rawData) {\n var response = JSON.parse(this._rawData.Payload);\n if (response && typeof response.errorMessage === 'undefined') {\n this._data = response;\n }\n }\n\n return this._data;\n }\n\n /**\n * @returns {String}\n */\n get error() {\n if (this._error) {\n return this._error;\n }\n\n if (this._rawError) {\n this._error = this._rawError;\n } else {\n var response = JSON.parse(this._rawData.Payload);\n if (response && typeof response.errorMessage !== 'undefined') {\n this._error = response.errorMessage;\n }\n }\n\n return this._error;\n }\n\n /**\n * @returns {String}\n */\n get errorType() {\n if (this._errorType) {\n return this._errorType;\n }\n\n if (this._rawError) {\n this._errorType = (this._rawError && this._rawError.name) ? this._rawError.name : 'Error';\n } else {\n var response = JSON.parse(this._rawData.Payload);\n if (response && typeof response.errorType !== 'undefined') {\n this._errorType = response.errorType;\n } else {\n this._errorType = 'Error';\n }\n }\n\n return this._errorType;\n }\n\n /**\n * @returns {String}\n */\n get statusCode() {\n if (this._statusCode) {\n return this._statusCode;\n }\n\n if (this._rawData) {\n this._statusCode = this._rawData.StatusCode;\n }\n\n return this._statusCode;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "LambdaResponse", + "memberof": "lib/Resource/LambdaResponse.js", + "longname": "lib/Resource/LambdaResponse.js~LambdaResponse", + "access": null, + "export": true, + "importPath": "deep-resource/lib/Resource/LambdaResponse.js", + "importStyle": "{LambdaResponse}", + "description": "Response object", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Resource/Response~Response" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Resource/LambdaResponse.js~LambdaResponse", + "longname": "lib/Resource/LambdaResponse.js~LambdaResponse#constructor", + "access": null, + "description": null, + "lineNumber": 18, + "params": [ + { + "nullable": null, + "types": [ + "Request" + ], + "spread": false, + "optional": false, + "name": "request", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "data", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "error", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_errorType", + "memberof": "lib/Resource/LambdaResponse.js~LambdaResponse", + "longname": "lib/Resource/LambdaResponse.js~LambdaResponse#_errorType", + "access": null, + "description": null, + "lineNumber": 21, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "data", + "memberof": "lib/Resource/LambdaResponse.js~LambdaResponse", + "longname": "lib/Resource/LambdaResponse.js~LambdaResponse#data", + "access": null, + "description": null, + "lineNumber": 27, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_data", + "memberof": "lib/Resource/LambdaResponse.js~LambdaResponse", + "longname": "lib/Resource/LambdaResponse.js~LambdaResponse#_data", + "access": null, + "description": null, + "lineNumber": 35, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "error", + "memberof": "lib/Resource/LambdaResponse.js~LambdaResponse", + "longname": "lib/Resource/LambdaResponse.js~LambdaResponse#error", + "access": null, + "description": null, + "lineNumber": 45, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_error", + "memberof": "lib/Resource/LambdaResponse.js~LambdaResponse", + "longname": "lib/Resource/LambdaResponse.js~LambdaResponse#_error", + "access": null, + "description": null, + "lineNumber": 51, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_error", + "memberof": "lib/Resource/LambdaResponse.js~LambdaResponse", + "longname": "lib/Resource/LambdaResponse.js~LambdaResponse#_error", + "access": null, + "description": null, + "lineNumber": 55, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "errorType", + "memberof": "lib/Resource/LambdaResponse.js~LambdaResponse", + "longname": "lib/Resource/LambdaResponse.js~LambdaResponse#errorType", + "access": null, + "description": null, + "lineNumber": 65, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_errorType", + "memberof": "lib/Resource/LambdaResponse.js~LambdaResponse", + "longname": "lib/Resource/LambdaResponse.js~LambdaResponse#_errorType", + "access": null, + "description": null, + "lineNumber": 71, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_errorType", + "memberof": "lib/Resource/LambdaResponse.js~LambdaResponse", + "longname": "lib/Resource/LambdaResponse.js~LambdaResponse#_errorType", + "access": null, + "description": null, + "lineNumber": 75, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_errorType", + "memberof": "lib/Resource/LambdaResponse.js~LambdaResponse", + "longname": "lib/Resource/LambdaResponse.js~LambdaResponse#_errorType", + "access": null, + "description": null, + "lineNumber": 77, + "undocument": true, + "type": { + "types": [ + "string" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "statusCode", + "memberof": "lib/Resource/LambdaResponse.js~LambdaResponse", + "longname": "lib/Resource/LambdaResponse.js~LambdaResponse#statusCode", + "access": null, + "description": null, + "lineNumber": 87, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_statusCode", + "memberof": "lib/Resource/LambdaResponse.js~LambdaResponse", + "longname": "lib/Resource/LambdaResponse.js~LambdaResponse#_statusCode", + "access": null, + "description": null, + "lineNumber": 93, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Resource/LocalRequest.js", + "memberof": null, + "longname": "lib/Resource/LocalRequest.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport {SuperagentResponse} from './SuperagentResponse';\nimport {Request} from './Request';\nimport {Action} from './Action';\nimport Http from 'superagent';\n\n/**\n * Resource request instance\n */\nexport class LocalRequest extends Request {\n constructor(...args) {\n super(...args);\n }\n\n /**\n * @param {Function} callback\n * @returns {LocalRequest|*}\n */\n _send(callback = null) {\n let actionType = this._action.type;\n\n if (actionType === Action.LAMBDA) {\n let data = {\n lambda: this._action.source.original,\n payload: this.payload,\n method: this._method,\n };\n\n Http.post(LocalRequest.LOCAL_LAMBDA_ENDPOINT)\n .send(data)\n .end(function(error, response) {\n callback && callback(new SuperagentResponse(this, response, error));\n }.bind(this));\n } else {\n return this.prototype.useNative()._send(...arguments);\n }\n\n return this;\n }\n\n /**\n * @returns {String}\n */\n static get LOCAL_LAMBDA_ENDPOINT() {\n return '/_/lambda';\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "LocalRequest", + "memberof": "lib/Resource/LocalRequest.js", + "longname": "lib/Resource/LocalRequest.js~LocalRequest", + "access": null, + "export": true, + "importPath": "deep-resource/lib/Resource/LocalRequest.js", + "importStyle": "{LocalRequest}", + "description": "Resource request instance", + "lineNumber": 15, + "interface": false, + "extends": [ + "lib/Resource/Request~Request" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Resource/LocalRequest.js~LocalRequest", + "longname": "lib/Resource/LocalRequest.js~LocalRequest#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "undocument": true, + "params": [ + { + "name": "args", + "types": [ + "...*" + ], + "spread": true + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_send", + "memberof": "lib/Resource/LocalRequest.js~LocalRequest", + "longname": "lib/Resource/LocalRequest.js~LocalRequest#_send", + "access": null, + "description": null, + "lineNumber": 24, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{LocalRequest|*}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "LocalRequest", + "*" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "LOCAL_LAMBDA_ENDPOINT", + "memberof": "lib/Resource/LocalRequest.js~LocalRequest", + "longname": "lib/Resource/LocalRequest.js~LocalRequest.LOCAL_LAMBDA_ENDPOINT", + "access": null, + "description": null, + "lineNumber": 49, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Resource/Request.js", + "memberof": null, + "longname": "lib/Resource/Request.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport {SuperagentResponse} from './SuperagentResponse';\nimport {LambdaResponse} from './LambdaResponse';\nimport {Response} from './Response';\nimport {Exception} from '../Exception/Exception';\nimport {Action} from './Action';\nimport Http from 'superagent';\nimport AWS from 'aws-sdk';\nimport {MissingCacheImplementationException} from './Exception/MissingCacheImplementationException';\nimport {CachedRequestException} from './Exception/CachedRequestException';\nimport aws4 from 'aws4';\nimport parseUrl from 'parse-url';\n\n/**\n * Action request instance\n */\nexport class Request {\n /**\n * @param {Action} action\n * @param {Object} payload\n * @param {String} method\n */\n constructor(action, payload, method) {\n this._action = action;\n this._payload = payload;\n this._method = method;\n this._lambda = null;\n\n this._cacheImpl = null;\n this._cacheTtl = Request.TTL_FOREVER;\n this._cached = false;\n\n this._native = true; // @todo: change to false on an stable API Gateway version\n }\n\n /**\n * @returns {Boolean}\n */\n get native() {\n return this._native;\n }\n\n /**\n * @returns {Request}\n */\n useDirectCall() {\n this._native = true;\n return this;\n }\n\n /**\n * @returns {Boolean}\n */\n get isCached() {\n return this._cacheImpl && this._cached;\n }\n\n /**\n * @returns {Request}\n */\n enableCache() {\n this._cached = true;\n return this;\n }\n\n /**\n * @returns {Request}\n */\n disableCache() {\n this._cached = false;\n return this;\n }\n\n /**\n * @param {Number} ttl\n * @returns {Request}\n */\n cache(ttl = Request.TTL_FOREVER) {\n if (!this._cacheImpl) {\n throw new MissingCacheImplementationException();\n }\n\n this._cacheTtl = ttl;\n this.enableCache();\n\n return this;\n }\n\n /**\n * @returns {Number}\n */\n get cacheTtl() {\n return this._cacheTtl;\n }\n\n /**\n * @param {Number} ttl\n */\n set cacheTtl(ttl) {\n this._cacheTtl = ttl;\n }\n\n /**\n * @returns {Object}\n */\n get cacheImpl() {\n return this._cacheImpl;\n }\n\n /**\n * @param {Object} cache\n */\n set cacheImpl(cache) {\n this._cacheImpl = cache;\n\n // @todo: do we really have to force it?\n this.cache(Request.TTL_DEFAULT);\n }\n\n /**\n * @returns {String}\n * @private\n */\n _buildCacheKey() {\n let payload = JSON.stringify(this._payload);\n\n return `${this._method}:${this._action.type}:${this._action.source}#${payload}`;\n }\n\n /**\n * @param {Response} response\n * @returns {String}\n * @private\n */\n static _stringifyResponse(response) {\n return JSON.stringify({\n _class: response.constructor.name,\n data: response.rawData,\n error: response.rawError,\n });\n }\n\n /**\n * @param {String} rawData\n * @returns {Response}\n * @private\n */\n _rebuildResponse(rawData) {\n let response = JSON.parse(rawData);\n\n if (!response) {\n throw new CachedRequestException(`Unable to unpack cached JSON object from ${rawData}`);\n }\n\n let ResponseImpl = Request._chooseResponseImpl(response._class);\n\n if (!ResponseImpl) {\n throw new Exception(`Unknown Response implementation ${response._class}`);\n }\n\n return new ResponseImpl(this, response.data, response.error);\n }\n\n /**\n * @param {String} className\n * @returns {*}\n * @private\n */\n static _chooseResponseImpl(className) {\n let implMap = {};\n\n implMap[Response.name] = Response;\n implMap[LambdaResponse.name] = LambdaResponse;\n implMap[SuperagentResponse.name] = SuperagentResponse;\n\n return implMap[className];\n }\n\n /**\n * @param {Function} callback\n */\n invalidateCache(callback = null) {\n if (!this.isCached) {\n callback && callback(true);\n\n return this;\n }\n\n let cache = this._cacheImpl;\n let cacheKey = this._buildCacheKey();\n\n cache.has(cacheKey, function(error, result) {\n if (error) {\n throw new CachedRequestException(error);\n }\n\n if (result) {\n cache.invalidate(cacheKey, 0, function(error, result) {\n if (error) {\n throw new CachedRequestException(error);\n }\n\n callback && callback(result);\n }.bind(this));\n\n return;\n }\n\n callback && callback(true);\n }.bind(this));\n\n return this;\n }\n\n /**\n * @param {Function} callback\n */\n send(callback = null) {\n if (!this.isCached) {\n return this._send(callback);\n }\n\n let cache = this._cacheImpl;\n let invalidateCache = this._cacheTtl === Request.TTL_INVALIDATE;\n let cacheKey = this._buildCacheKey();\n\n cache.has(cacheKey, function(error, result) {\n if (error) {\n throw new CachedRequestException(error);\n }\n\n if (result && !invalidateCache) {\n cache.get(cacheKey, function(error, result) {\n if (error) {\n throw new CachedRequestException(error);\n }\n\n callback && callback(this._rebuildResponse(result));\n }.bind(this));\n\n return;\n }\n\n this._send(function(response) {\n cache.set(cacheKey, Request._stringifyResponse(response), this._cacheTtl, function(error, result) {\n if (!result) {\n error = `Unable to persist request cache under key ${cacheKey}`;\n }\n\n if (error) {\n throw new CachedRequestException(error);\n }\n }.bind(this));\n\n // @todo: do it synchronous?\n callback && callback(response);\n }.bind(this));\n }.bind(this));\n\n return this;\n }\n\n /**\n * @param {Function} callback\n * @returns {Request}\n */\n _send(callback = () => null) {\n if (!this._native) {\n return this._sendThroughApi(callback);\n }\n\n switch (this._action.type) {\n case Action.LAMBDA:\n this._sendLambda(callback);\n break;\n case Action.EXTERNAL:\n this._sendExternal(callback);\n break;\n default: throw new Exception(`Request of type ${this._action.type} is not implemented`);\n }\n\n return this;\n }\n\n /**\n * @param {Function} callback\n * @returns {Request}\n * @private\n */\n _sendThroughApi(callback = () => null) {\n let urlParts = parseUrl(this._action.source.api);\n\n let apiHost = urlParts.resource;\n let apiPath = urlParts.pathname ? urlParts.pathname : '/';\n let apiQueryString = urlParts.search ? `?${urlParts.search}` : '';\n\n let signature = aws4.sign({\n host: apiHost,\n path: `${apiPath}${apiQueryString}`,\n }, this._action.resource.securityCredentials);\n\n Http[this._method.toLowerCase()](this._action.source.api)\n .set('Host', signature.headers.Host)\n .set('X-Amz-Date', signature.headers['X-Amz-Date'])\n .set('Authorization', signature.headers.Authorization)\n .send(this.payload)\n .end(function(error, response) {\n callback(new SuperagentResponse(this, response, error));\n }.bind(this));\n\n return this;\n }\n\n /**\n * @param {Function} callback\n * @returns {Request}\n * @private\n */\n _sendLambda(callback = () => null) {\n // @todo: set retries in a smarter way...\n AWS.config.maxRetries = 3;\n\n this._lambda = new AWS.Lambda({\n region: this._action.region,\n });\n\n let invocationParameters = {\n FunctionName: this._action.source.original,\n Payload: JSON.stringify(this.payload),\n };\n\n this._lambda.invoke(invocationParameters, function(error, data) {\n callback(new LambdaResponse(this, data, error));\n }.bind(this));\n\n return this;\n }\n\n /**\n * @param {Function} callback\n * @returns {Request}\n * @private\n */\n _sendExternal(callback = () => null) {\n Http[this._method.toLowerCase()](this._action.source.original)\n .send(this.payload)\n .end(function(error, response) {\n callback(new SuperagentResponse(this, response, error));\n }.bind(this));\n\n return this;\n }\n\n /**\n * @returns {Action}\n */\n get action() {\n return this._action;\n }\n\n /**\n * @returns {Object}\n */\n get payload() {\n return this._payload;\n }\n\n /**\n * @returns {String}\n */\n get method() {\n return this._method;\n }\n\n /**\n * @returns {Number}\n * @constructor\n */\n static get TTL_DEFAULT() {\n return 10;\n }\n\n /**\n * @returns {Number}\n */\n static get TTL_INVALIDATE() {\n return -1;\n }\n\n /**\n * @returns {Number}\n */\n static get TTL_FOREVER() {\n return 0;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Request", + "memberof": "lib/Resource/Request.js", + "longname": "lib/Resource/Request.js~Request", + "access": null, + "export": true, + "importPath": "deep-resource/lib/Resource/Request.js", + "importStyle": "{Request}", + "description": "Action request instance", + "lineNumber": 22, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#constructor", + "access": null, + "description": null, + "lineNumber": 28, + "params": [ + { + "nullable": null, + "types": [ + "Action" + ], + "spread": false, + "optional": false, + "name": "action", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "payload", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "method", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_action", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_action", + "access": null, + "description": null, + "lineNumber": 29, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_payload", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_payload", + "access": null, + "description": null, + "lineNumber": 30, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_method", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_method", + "access": null, + "description": null, + "lineNumber": 31, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_lambda", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_lambda", + "access": null, + "description": null, + "lineNumber": 32, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_cacheImpl", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_cacheImpl", + "access": null, + "description": null, + "lineNumber": 34, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_cacheTtl", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_cacheTtl", + "access": null, + "description": null, + "lineNumber": 35, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_cached", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_cached", + "access": null, + "description": null, + "lineNumber": 36, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_native", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_native", + "access": null, + "description": null, + "lineNumber": 38, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "native", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#native", + "access": null, + "description": null, + "lineNumber": 44, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "useDirectCall", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#useDirectCall", + "access": null, + "description": null, + "lineNumber": 51, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Request}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Request" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_native", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_native", + "access": null, + "description": null, + "lineNumber": 52, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "isCached", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#isCached", + "access": null, + "description": null, + "lineNumber": 59, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "enableCache", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#enableCache", + "access": null, + "description": null, + "lineNumber": 66, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Request}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Request" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_cached", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_cached", + "access": null, + "description": null, + "lineNumber": 67, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "disableCache", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#disableCache", + "access": null, + "description": null, + "lineNumber": 74, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Request}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Request" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_cached", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_cached", + "access": null, + "description": null, + "lineNumber": 75, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "cache", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#cache", + "access": null, + "description": null, + "lineNumber": 83, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Request}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "ttl", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Request" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_cacheTtl", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_cacheTtl", + "access": null, + "description": null, + "lineNumber": 88, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "cacheTtl", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#cacheTtl", + "access": null, + "description": null, + "lineNumber": 97, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "cacheTtl", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#cacheTtl", + "access": null, + "description": null, + "lineNumber": 104, + "params": [ + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": false, + "name": "ttl", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_cacheTtl", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_cacheTtl", + "access": null, + "description": null, + "lineNumber": 105, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "cacheImpl", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#cacheImpl", + "access": null, + "description": null, + "lineNumber": 111, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "cacheImpl", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#cacheImpl", + "access": null, + "description": null, + "lineNumber": 118, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "cache", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_cacheImpl", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_cacheImpl", + "access": null, + "description": null, + "lineNumber": 119, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_buildCacheKey", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_buildCacheKey", + "access": "private", + "description": null, + "lineNumber": 129, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "_stringifyResponse", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request._stringifyResponse", + "access": "private", + "description": null, + "lineNumber": 140, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Response" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_rebuildResponse", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_rebuildResponse", + "access": "private", + "description": null, + "lineNumber": 153, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Response}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "rawData", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Response" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "_chooseResponseImpl", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request._chooseResponseImpl", + "access": "private", + "description": null, + "lineNumber": 174, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "className", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "invalidateCache", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#invalidateCache", + "access": null, + "description": null, + "lineNumber": 187, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "send", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#send", + "access": null, + "description": null, + "lineNumber": 223, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_send", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_send", + "access": null, + "description": null, + "lineNumber": 272, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Request}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Request" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_sendThroughApi", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_sendThroughApi", + "access": "private", + "description": null, + "lineNumber": 295, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Request}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Request" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_sendLambda", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_sendLambda", + "access": "private", + "description": null, + "lineNumber": 324, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Request}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Request" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_lambda", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_lambda", + "access": null, + "description": null, + "lineNumber": 328, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_sendExternal", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#_sendExternal", + "access": "private", + "description": null, + "lineNumber": 349, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Request}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Request" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "action", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#action", + "access": null, + "description": null, + "lineNumber": 362, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Action}" + } + ], + "return": { + "nullable": null, + "types": [ + "Action" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "payload", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#payload", + "access": null, + "description": null, + "lineNumber": 369, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "method", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request#method", + "access": null, + "description": null, + "lineNumber": 376, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "TTL_DEFAULT", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request.TTL_DEFAULT", + "access": null, + "description": null, + "lineNumber": 384, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + }, + { + "tagName": "@constructor", + "tagValue": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "number" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "TTL_INVALIDATE", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request.TTL_INVALIDATE", + "access": null, + "description": null, + "lineNumber": 391, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "TTL_FOREVER", + "memberof": "lib/Resource/Request.js~Request", + "longname": "lib/Resource/Request.js~Request.TTL_FOREVER", + "access": null, + "description": null, + "lineNumber": 398, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Number}" + } + ], + "return": { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "number" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Resource/Response.js", + "memberof": null, + "longname": "lib/Resource/Response.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\n/**\n * Response object\n */\nexport class Response {\n /**\n * @param {Request} request\n * @param {Object} data\n * @param {String} error\n */\n constructor(request, data, error) {\n this._request = request;\n\n this._rawError = error;\n this._rawData = data;\n\n this._statusCode = null;\n this._data = null;\n this._error = null;\n }\n\n /**\n * @returns {*}\n */\n get rawData() {\n return this._rawData;\n }\n\n /**\n * @returns {*}\n */\n get rawError() {\n return this._rawError;\n }\n\n /**\n * @returns {Request}\n */\n get request() {\n return this._request;\n }\n\n /**\n * @returns {Object}\n */\n get data() {\n if (this._data) {\n return this._data;\n }\n\n if (this._rawData) {\n var response = JSON.parse(this._rawData.Payload);\n if (response && typeof response.errorMessage === 'undefined') {\n this._data = response;\n }\n }\n\n return this._data;\n }\n\n /**\n * @returns {Boolean}\n */\n get isError() {\n return typeof this.error === 'string';\n }\n\n /**\n * @returns {String}\n */\n get error() {\n if (this._error) {\n return this._error;\n }\n\n if (this._rawError) {\n this._error = this._rawError;\n } else {\n var response = JSON.parse(this._rawData.Payload);\n if (response && typeof response.errorMessage !== 'undefined') {\n this._error = response.errorMessage;\n }\n }\n\n return this._error;\n }\n\n /**\n * @returns {String}\n */\n get statusCode() {\n if (this._statusCode) {\n return this._statusCode;\n }\n\n if (this._rawData) {\n this._statusCode = this._rawData.StatusCode;\n }\n\n return this._statusCode;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Response", + "memberof": "lib/Resource/Response.js", + "longname": "lib/Resource/Response.js~Response", + "access": null, + "export": true, + "importPath": "deep-resource/lib/Resource/Response.js", + "importStyle": "{Response}", + "description": "Response object", + "lineNumber": 10, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Request" + ], + "spread": false, + "optional": false, + "name": "request", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "data", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "error", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_request", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#_request", + "access": null, + "description": null, + "lineNumber": 17, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_rawError", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#_rawError", + "access": null, + "description": null, + "lineNumber": 19, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_rawData", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#_rawData", + "access": null, + "description": null, + "lineNumber": 20, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_statusCode", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#_statusCode", + "access": null, + "description": null, + "lineNumber": 22, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_data", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#_data", + "access": null, + "description": null, + "lineNumber": 23, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_error", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#_error", + "access": null, + "description": null, + "lineNumber": 24, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "rawData", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#rawData", + "access": null, + "description": null, + "lineNumber": 30, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "rawError", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#rawError", + "access": null, + "description": null, + "lineNumber": 37, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "request", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#request", + "access": null, + "description": null, + "lineNumber": 44, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Request}" + } + ], + "return": { + "nullable": null, + "types": [ + "Request" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "data", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#data", + "access": null, + "description": null, + "lineNumber": 51, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_data", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#_data", + "access": null, + "description": null, + "lineNumber": 59, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "isError", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#isError", + "access": null, + "description": null, + "lineNumber": 69, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "error", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#error", + "access": null, + "description": null, + "lineNumber": 76, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_error", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#_error", + "access": null, + "description": null, + "lineNumber": 82, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_error", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#_error", + "access": null, + "description": null, + "lineNumber": 86, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "statusCode", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#statusCode", + "access": null, + "description": null, + "lineNumber": 96, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_statusCode", + "memberof": "lib/Resource/Response.js~Response", + "longname": "lib/Resource/Response.js~Response#_statusCode", + "access": null, + "description": null, + "lineNumber": 102, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Resource/SuperagentResponse.js", + "memberof": null, + "longname": "lib/Resource/SuperagentResponse.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport {Response} from './Response';\n\nexport class SuperagentResponse extends Response {\n /**\n * @param {Request} request\n * @param {Object} data\n * @param {String} error\n */\n constructor(request, data, error) {\n super(...arguments);\n\n this._data = this._parseResponse(data);\n this._error = error;\n }\n\n /**\n * Parse response given by superagent library\n *\n * @param {Object} response\n * @returns {Object}\n * @private\n */\n _parseResponse(response) {\n if (response.error) {\n this._error = response.error;\n }\n\n this._statusCode = response.status;\n\n return response.body;\n }\n\n /**\n * @returns {Object}\n */\n get data() {\n return this._data;\n }\n\n /**\n * @returns {Boolean}\n */\n get isError() {\n return !!this._error;\n }\n\n /**\n * @returns {String}\n */\n get error() {\n return this._error;\n }\n\n /**\n * @returns {String}\n */\n get statusCode() {\n return this._statusCode;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "SuperagentResponse", + "memberof": "lib/Resource/SuperagentResponse.js", + "longname": "lib/Resource/SuperagentResponse.js~SuperagentResponse", + "access": null, + "export": true, + "importPath": "deep-resource/lib/Resource/SuperagentResponse.js", + "importStyle": "{SuperagentResponse}", + "description": null, + "lineNumber": 9, + "undocument": true, + "interface": false, + "extends": [ + "lib/Resource/Response~Response" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Resource/SuperagentResponse.js~SuperagentResponse", + "longname": "lib/Resource/SuperagentResponse.js~SuperagentResponse#constructor", + "access": null, + "description": null, + "lineNumber": 15, + "params": [ + { + "nullable": null, + "types": [ + "Request" + ], + "spread": false, + "optional": false, + "name": "request", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "data", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "error", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_data", + "memberof": "lib/Resource/SuperagentResponse.js~SuperagentResponse", + "longname": "lib/Resource/SuperagentResponse.js~SuperagentResponse#_data", + "access": null, + "description": null, + "lineNumber": 18, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_error", + "memberof": "lib/Resource/SuperagentResponse.js~SuperagentResponse", + "longname": "lib/Resource/SuperagentResponse.js~SuperagentResponse#_error", + "access": null, + "description": null, + "lineNumber": 19, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_parseResponse", + "memberof": "lib/Resource/SuperagentResponse.js~SuperagentResponse", + "longname": "lib/Resource/SuperagentResponse.js~SuperagentResponse#_parseResponse", + "access": "private", + "description": "Parse response given by superagent library", + "lineNumber": 29, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "response", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_error", + "memberof": "lib/Resource/SuperagentResponse.js~SuperagentResponse", + "longname": "lib/Resource/SuperagentResponse.js~SuperagentResponse#_error", + "access": null, + "description": null, + "lineNumber": 31, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_statusCode", + "memberof": "lib/Resource/SuperagentResponse.js~SuperagentResponse", + "longname": "lib/Resource/SuperagentResponse.js~SuperagentResponse#_statusCode", + "access": null, + "description": null, + "lineNumber": 34, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "data", + "memberof": "lib/Resource/SuperagentResponse.js~SuperagentResponse", + "longname": "lib/Resource/SuperagentResponse.js~SuperagentResponse#data", + "access": null, + "description": null, + "lineNumber": 42, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "isError", + "memberof": "lib/Resource/SuperagentResponse.js~SuperagentResponse", + "longname": "lib/Resource/SuperagentResponse.js~SuperagentResponse#isError", + "access": null, + "description": null, + "lineNumber": 49, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "error", + "memberof": "lib/Resource/SuperagentResponse.js~SuperagentResponse", + "longname": "lib/Resource/SuperagentResponse.js~SuperagentResponse#error", + "access": null, + "description": null, + "lineNumber": 56, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "statusCode", + "memberof": "lib/Resource/SuperagentResponse.js~SuperagentResponse", + "longname": "lib/Resource/SuperagentResponse.js~SuperagentResponse#statusCode", + "access": null, + "description": null, + "lineNumber": 63, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Resource.js", + "memberof": null, + "longname": "lib/Resource.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Kernel from 'deep-kernel';\nimport {Instance as ResourceInstance} from './Resource/Instance';\nimport {MissingResourceException} from './Exception/MissingResourceException';\n\n/**\n * Bundle resource\n */\nexport class Resource extends Kernel.ContainerAware {\n /**\n * @param {Object} resources\n */\n constructor(resources = {}) {\n super();\n\n this._resources = resources;\n }\n\n /**\n * @param {String} identifier\n * @returns {Boolean}\n */\n has(identifier) {\n return this._resources[this.microservice.identifier].hasOwnProperty(identifier);\n }\n\n /**\n * @param {String} identifier\n * @returns {ResourceInstance}\n */\n get(identifier) {\n identifier = this._resolvePath(identifier);\n\n let microserviceIdentifier = this.microservice.identifier;\n\n if (!this.has(identifier)) {\n throw new MissingResourceException(microserviceIdentifier, identifier);\n }\n\n return this._resources[microserviceIdentifier][identifier];\n }\n\n /**\n * @returns {Object}\n */\n get list() {\n let map = {};\n\n for (let microservice in this._resources) {\n if (!this._resources.hasOwnProperty(microservice)) {\n continue;\n }\n\n map[microservice] = Object.keys(this._resources[microservice]);\n }\n\n return map;\n }\n\n /**\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n */\n boot(kernel, callback) {\n let cache = kernel.container.get('cache');\n let security = kernel.container.get('security');\n\n let resourcesVector = [];\n\n for (let microserviceKey in kernel.microservices) {\n if (!kernel.microservices.hasOwnProperty(microserviceKey)) {\n continue;\n }\n\n let microservice = kernel.microservices[microserviceKey];\n\n this._resources[microservice.identifier] = {};\n\n for (let resourceName in microservice.rawResources) {\n if (!microservice.rawResources.hasOwnProperty(resourceName)) {\n continue;\n }\n\n let resource = new ResourceInstance(\n resourceName,\n microservice.rawResources[resourceName]\n );\n\n resource.cache = cache;\n resource.localBackend = this._localBackend;\n\n this._resources[microservice.identifier][resourceName] = resource;\n\n resourcesVector.push(resource);\n }\n }\n\n security.onTokenAvailable((token) => {\n let credentials = token.credentials;\n\n for (let resourceKey in resourcesVector) {\n if (!resourcesVector.hasOwnProperty(resourceKey)) {\n continue;\n }\n\n let resource = resourcesVector[resourceKey];\n\n resource.securityCredentials = credentials;\n }\n });\n\n callback();\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Resource", + "memberof": "lib/Resource.js", + "longname": "lib/Resource.js~Resource", + "access": null, + "export": true, + "importPath": "deep-resource/lib/Resource.js", + "importStyle": "{Resource}", + "description": "Bundle resource", + "lineNumber": 14, + "interface": false, + "extends": [ + "deep-kernel~Kernel.ContainerAware" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Resource.js~Resource", + "longname": "lib/Resource.js~Resource#constructor", + "access": null, + "description": null, + "lineNumber": 18, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "resources", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_resources", + "memberof": "lib/Resource.js~Resource", + "longname": "lib/Resource.js~Resource#_resources", + "access": null, + "description": null, + "lineNumber": 21, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "has", + "memberof": "lib/Resource.js~Resource", + "longname": "lib/Resource.js~Resource#has", + "access": null, + "description": null, + "lineNumber": 28, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "identifier", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "get", + "memberof": "lib/Resource.js~Resource", + "longname": "lib/Resource.js~Resource#get", + "access": null, + "description": null, + "lineNumber": 36, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{ResourceInstance}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "identifier", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "ResourceInstance" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "list", + "memberof": "lib/Resource.js~Resource", + "longname": "lib/Resource.js~Resource#list", + "access": null, + "description": null, + "lineNumber": 51, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "boot", + "memberof": "lib/Resource.js~Resource", + "longname": "lib/Resource.js~Resource#boot", + "access": null, + "description": "Booting a certain service", + "lineNumber": 71, + "params": [ + { + "nullable": null, + "types": [ + "Kernel" + ], + "spread": false, + "optional": false, + "name": "kernel", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/bootstrap.js", + "memberof": null, + "longname": "lib/bootstrap.js", + "access": null, + "description": null, + "lineNumber": 7, + "content": "/**\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n */\n\n'use strict';\n\nimport {Resource} from './Resource';\n\nlet exports = module.exports = Resource;\n" + }, + { + "kind": "variable", + "static": true, + "variation": null, + "name": "exports", + "memberof": "lib/bootstrap.js", + "longname": "lib/bootstrap.js~exports", + "access": null, + "export": false, + "importPath": "deep-resource/lib/bootstrap.js", + "importStyle": null, + "description": null, + "lineNumber": 11, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~null", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Error", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Date", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~String", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~string", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Map", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Set", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "CanvasRenderingContext2D", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DocumentFragment", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Element", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Element", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Event", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Event", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Node", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Node", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NodeList", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~NodeList", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "XMLHttpRequest", + "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "access": null, + "description": null, + "builtinExternal": true + } +] \ No newline at end of file diff --git a/docs-api/deep-resource/file/lib/Exception/Exception.js.html b/docs-api/deep-resource/file/lib/Exception/Exception.js.html new file mode 100644 index 00000000..beff23c4 --- /dev/null +++ b/docs-api/deep-resource/file/lib/Exception/Exception.js.html @@ -0,0 +1,87 @@ + + + + + + lib/Exception/Exception.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/Exception.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +
    +/**
    + * Thrown when any exception occurs
    + */
    +export class Exception extends Core.Exception.Exception {
    +  /**
    +   * @param {Array} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/file/lib/Exception/MissingResourceException.js.html b/docs-api/deep-resource/file/lib/Exception/MissingResourceException.js.html new file mode 100644 index 00000000..6c4c9650 --- /dev/null +++ b/docs-api/deep-resource/file/lib/Exception/MissingResourceException.js.html @@ -0,0 +1,88 @@ + + + + + + lib/Exception/MissingResourceException.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/MissingResourceException.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when requested resource not found
    + */
    +export class MissingResourceException extends Exception {
    +  /**
    +   * @param {String} microserviceIdentifier
    +   * @param {String} resourceIdentifier
    +   */
    +  constructor(microserviceIdentifier, resourceIdentifier) {
    +    super(`Missing resource ${resourceIdentifier} in ${microserviceIdentifier}`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/file/lib/Resource.js.html b/docs-api/deep-resource/file/lib/Resource.js.html new file mode 100644 index 00000000..e843d86f --- /dev/null +++ b/docs-api/deep-resource/file/lib/Resource.js.html @@ -0,0 +1,189 @@ + + + + + + lib/Resource.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Resource.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import Kernel from 'deep-kernel';
    +import {Instance as ResourceInstance} from './Resource/Instance';
    +import {MissingResourceException} from './Exception/MissingResourceException';
    +
    +/**
    + * Bundle resource
    + */
    +export class Resource extends Kernel.ContainerAware {
    +  /**
    +   * @param {Object} resources
    +   */
    +  constructor(resources = {}) {
    +    super();
    +
    +    this._resources = resources;
    +  }
    +
    +  /**
    +   * @param {String} identifier
    +   * @returns {Boolean}
    +   */
    +  has(identifier) {
    +    return this._resources[this.microservice.identifier].hasOwnProperty(identifier);
    +  }
    +
    +  /**
    +   * @param {String} identifier
    +   * @returns {ResourceInstance}
    +   */
    +  get(identifier) {
    +    identifier = this._resolvePath(identifier);
    +
    +    let microserviceIdentifier = this.microservice.identifier;
    +
    +    if (!this.has(identifier)) {
    +      throw new MissingResourceException(microserviceIdentifier, identifier);
    +    }
    +
    +    return this._resources[microserviceIdentifier][identifier];
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get list() {
    +    let map = {};
    +
    +    for (let microservice in this._resources) {
    +      if (!this._resources.hasOwnProperty(microservice)) {
    +        continue;
    +      }
    +
    +      map[microservice] = Object.keys(this._resources[microservice]);
    +    }
    +
    +    return map;
    +  }
    +
    +  /**
    +   * Booting a certain service
    +   *
    +   * @param {Kernel} kernel
    +   * @param {Function} callback
    +   */
    +  boot(kernel, callback) {
    +    let cache = kernel.container.get('cache');
    +    let security = kernel.container.get('security');
    +
    +    let resourcesVector = [];
    +
    +    for (let microserviceKey in kernel.microservices) {
    +      if (!kernel.microservices.hasOwnProperty(microserviceKey)) {
    +        continue;
    +      }
    +
    +      let microservice = kernel.microservices[microserviceKey];
    +
    +      this._resources[microservice.identifier] = {};
    +
    +      for (let resourceName in microservice.rawResources) {
    +        if (!microservice.rawResources.hasOwnProperty(resourceName)) {
    +          continue;
    +        }
    +
    +        let resource = new ResourceInstance(
    +          resourceName,
    +          microservice.rawResources[resourceName]
    +        );
    +
    +        resource.cache = cache;
    +        resource.localBackend = this._localBackend;
    +
    +        this._resources[microservice.identifier][resourceName] = resource;
    +
    +        resourcesVector.push(resource);
    +      }
    +    }
    +
    +    security.onTokenAvailable((token) => {
    +      let credentials = token.credentials;
    +
    +      for (let resourceKey in resourcesVector) {
    +        if (!resourcesVector.hasOwnProperty(resourceKey)) {
    +          continue;
    +        }
    +
    +        let resource = resourcesVector[resourceKey];
    +
    +        resource.securityCredentials = credentials;
    +      }
    +    });
    +
    +    callback();
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/file/lib/Resource/Action.js.html b/docs-api/deep-resource/file/lib/Resource/Action.js.html new file mode 100644 index 00000000..114d3e4c --- /dev/null +++ b/docs-api/deep-resource/file/lib/Resource/Action.js.html @@ -0,0 +1,183 @@ + + + + + + lib/Resource/Action.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Resource/Action.js

    +
    /**
    + * Created by mgoria on 8/4/15.
    + */
    +
    +'use strict';
    +
    +import {UnknownMethodException} from './Exception/UnknownMethodException';
    +import {Request} from './Request';
    +import {LocalRequest} from './LocalRequest';
    +
    +/**
    + * Resource action
    + */
    +export class Action {
    +  /**
    +   * @param {Instance} resource
    +   * @param {String} name
    +   * @param {String} type
    +   * @param {Array} methods
    +   * @param {String} source
    +   * @param {String} region
    +   */
    +  constructor(resource, name, type, methods, source, region) {
    +    this._resource = resource;
    +    this._name = name;
    +    this._type = type;
    +    this._methods = methods;
    +    this._source = source;
    +    this._region = region;
    +  }
    +
    +  /**
    +   * @param {Object} payload
    +   * @param {String} method
    +   */
    +  request(payload = {}, method = null) {
    +    method = method || (this._methods.length > 0 ? this._methods[0] : Instance.HTTP_VERBS[0]);
    +
    +    if (this._methods.length > 0 && this._methods.indexOf(method) === -1) {
    +      throw new UnknownMethodException(method, this._methods);
    +    }
    +
    +    let RequestImplementation = this._resource.localBackend ? LocalRequest : Request;
    +    let requestObject = new RequestImplementation(this, payload, method);
    +
    +    if (this._resource.cache) {
    +      requestObject.cacheImpl = this._resource.cache;
    +    }
    +
    +    return requestObject;
    +  }
    +
    +  /**
    +   * @returns {Instance}
    +   */
    +  get resource() {
    +    return this._resource;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get name() {
    +    return this._name;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get type() {
    +    return this._type;
    +  }
    +
    +  /**
    +   * @returns {Array}
    +   */
    +  get methods() {
    +    return this._methods;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get source() {
    +    return this._source;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get region() {
    +    return this._region;
    +  }
    +
    +  /**
    +   * @returns {Array}
    +   */
    +  static get HTTP_VERBS() {
    +    return ['GET', 'POST', 'DELETE', 'HEAD', 'PUT', 'OPTIONS', 'PATCH'];
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get LAMBDA() {
    +    return 'lambda';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get EXTERNAL() {
    +    return 'external';
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/file/lib/Resource/Exception/CachedRequestException.js.html b/docs-api/deep-resource/file/lib/Resource/Exception/CachedRequestException.js.html new file mode 100644 index 00000000..b8a83540 --- /dev/null +++ b/docs-api/deep-resource/file/lib/Resource/Exception/CachedRequestException.js.html @@ -0,0 +1,84 @@ + + + + + + lib/Resource/Exception/CachedRequestException.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Resource/Exception/CachedRequestException.js

    +
    /**
    + * Created by AlexanderC on 8/21/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from '../../Exception/Exception';
    +
    +export class CachedRequestException extends Exception {
    +  /**
    +   * @param {String} exception
    +   */
    +  constructor(exception) {
    +    super(`Error while working with cached response: ${exception}`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/file/lib/Resource/Exception/MissingActionException.js.html b/docs-api/deep-resource/file/lib/Resource/Exception/MissingActionException.js.html new file mode 100644 index 00000000..68cc2436 --- /dev/null +++ b/docs-api/deep-resource/file/lib/Resource/Exception/MissingActionException.js.html @@ -0,0 +1,88 @@ + + + + + + lib/Resource/Exception/MissingActionException.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Resource/Exception/MissingActionException.js

    +
    /**
    + * Created by mgoria on 8/04/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from '../../Exception/Exception';
    +
    +/**
    + * Thrown when requested resource action not found
    + */
    +export class MissingActionException extends Exception {
    +  /**
    +   * @param {String} resourceName
    +   * @param {String} actionName
    +   */
    +  constructor(resourceName, actionName) {
    +    super(`Missing action ${actionName} in ${resourceName} resource.`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/file/lib/Resource/Exception/MissingCacheImplementationException.js.html b/docs-api/deep-resource/file/lib/Resource/Exception/MissingCacheImplementationException.js.html new file mode 100644 index 00000000..a1c6bedc --- /dev/null +++ b/docs-api/deep-resource/file/lib/Resource/Exception/MissingCacheImplementationException.js.html @@ -0,0 +1,81 @@ + + + + + + lib/Resource/Exception/MissingCacheImplementationException.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Resource/Exception/MissingCacheImplementationException.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from '../../Exception/Exception';
    +
    +export class MissingCacheImplementationException extends Exception {
    +  constructor() {
    +    super(`Missing cache implementation in Request object`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/file/lib/Resource/Exception/UnknownMethodException.js.html b/docs-api/deep-resource/file/lib/Resource/Exception/UnknownMethodException.js.html new file mode 100644 index 00000000..e1c8971f --- /dev/null +++ b/docs-api/deep-resource/file/lib/Resource/Exception/UnknownMethodException.js.html @@ -0,0 +1,90 @@ + + + + + + lib/Resource/Exception/UnknownMethodException.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Resource/Exception/UnknownMethodException.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from '../../Exception/Exception';
    +
    +/**
    + * Thrown when requested method is missing from allowed vector
    + */
    +export class UnknownMethodException extends Exception {
    +  /**
    +   * @param {String} requestedMethod
    +   * @param {Array} availableMethods
    +   */
    +  constructor(requestedMethod, availableMethods) {
    +    let availableList = availableMethods.join(', ');
    +
    +    super(`Requested method ${requestedMethod} must be one of ${availableList}`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/file/lib/Resource/Instance.js.html b/docs-api/deep-resource/file/lib/Resource/Instance.js.html new file mode 100644 index 00000000..8dd3aa56 --- /dev/null +++ b/docs-api/deep-resource/file/lib/Resource/Instance.js.html @@ -0,0 +1,204 @@ + + + + + + lib/Resource/Instance.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Resource/Instance.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import {MissingActionException} from './Exception/MissingActionException';
    +import {Action} from './Action';
    +
    +/**
    + * Resource instance
    + */
    +export class Instance {
    +  /**
    +   * @param {String} name
    +   * @param {Object} rawActions
    +   */
    +  constructor(name, rawActions) {
    +    this._name = name;
    +    this._rawActions = rawActions;
    +    this._actions = null;
    +    this._localBackend = false;
    +    this._cache = null;
    +
    +    this._securityCredentials = {
    +      accessKeyId: null,
    +      secretAccessKey: null,
    +      sessionToken: null,
    +    };
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get securityCredentials() {
    +    return this._securityCredentials;
    +  }
    +
    +  /**
    +   * @param {Object} credentials
    +   */
    +  set securityCredentials(credentials) {
    +    this._securityCredentials = credentials;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get name() {
    +    return this._name;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get cache() {
    +    return this._cache;
    +  }
    +
    +  /**
    +   * @param {Object} cache
    +   */
    +  set cache(cache) {
    +    this._cache = cache;
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get localBackend() {
    +    return this._localBackend;
    +  }
    +
    +  /**
    +   * @param {Boolean} state
    +   */
    +  set localBackend(state) {
    +    this._localBackend = state;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get actions() {
    +    if (this._actions === null) {
    +      this._actions = {};
    +
    +      for (let actionName in this._rawActions) {
    +        if (!this._rawActions.hasOwnProperty(actionName)) {
    +          continue;
    +        }
    +
    +        let actionMetadata = this._rawActions[actionName];
    +
    +        this._actions[actionName] = new Action(
    +          this,
    +          actionName,
    +          actionMetadata.type,
    +          actionMetadata.methods,
    +          actionMetadata.source,
    +          actionMetadata.region
    +        );
    +      }
    +    }
    +
    +    return this._actions;
    +  }
    +
    +  /**
    +   * @param {String} actionName
    +   * @returns {boolean}
    +   */
    +  has(actionName) {
    +    return this.actions.hasOwnProperty(actionName);
    +  }
    +
    +  /**
    +   * @param actionName
    +   * @returns {Action}
    +   */
    +  action(actionName) {
    +    if (!this.has(actionName)) {
    +      throw new MissingActionException(this.name, actionName);
    +    }
    +
    +    return this.actions[actionName];
    +  }
    +
    +  /**
    +   * @param {String} actionName
    +   * @param {*} args
    +   */
    +  request(actionName, ...args) {
    +    return this.action(actionName).request(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/file/lib/Resource/LambdaResponse.js.html b/docs-api/deep-resource/file/lib/Resource/LambdaResponse.js.html new file mode 100644 index 00000000..9d6c2cb1 --- /dev/null +++ b/docs-api/deep-resource/file/lib/Resource/LambdaResponse.js.html @@ -0,0 +1,166 @@ + + + + + + lib/Resource/LambdaResponse.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Resource/LambdaResponse.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import {Response} from './Response';
    +
    +/**
    + * Response object
    + */
    +export class LambdaResponse extends Response {
    +  /**
    +   * @param {Request} request
    +   * @param {Object} data
    +   * @param {String} error
    +   */
    +  constructor(request, data, error) {
    +    super(...arguments);
    +
    +    this._errorType = null;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get data() {
    +    if (this._data) {
    +      return this._data;
    +    }
    +
    +    if (this._rawData) {
    +      var response = JSON.parse(this._rawData.Payload);
    +      if (response && typeof response.errorMessage === 'undefined') {
    +        this._data = response;
    +      }
    +    }
    +
    +    return this._data;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get error() {
    +    if (this._error) {
    +      return this._error;
    +    }
    +
    +    if (this._rawError) {
    +      this._error = this._rawError;
    +    } else {
    +      var response = JSON.parse(this._rawData.Payload);
    +      if (response && typeof response.errorMessage !== 'undefined') {
    +        this._error = response.errorMessage;
    +      }
    +    }
    +
    +    return this._error;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get errorType() {
    +    if (this._errorType) {
    +      return this._errorType;
    +    }
    +
    +    if (this._rawError) {
    +      this._errorType = (this._rawError && this._rawError.name) ? this._rawError.name : 'Error';
    +    } else {
    +      var response = JSON.parse(this._rawData.Payload);
    +      if (response && typeof response.errorType !== 'undefined') {
    +        this._errorType = response.errorType;
    +      } else {
    +        this._errorType = 'Error';
    +      }
    +    }
    +
    +    return this._errorType;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get statusCode() {
    +    if (this._statusCode) {
    +      return this._statusCode;
    +    }
    +
    +    if (this._rawData) {
    +      this._statusCode = this._rawData.StatusCode;
    +    }
    +
    +    return this._statusCode;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/file/lib/Resource/LocalRequest.js.html b/docs-api/deep-resource/file/lib/Resource/LocalRequest.js.html new file mode 100644 index 00000000..3944ae78 --- /dev/null +++ b/docs-api/deep-resource/file/lib/Resource/LocalRequest.js.html @@ -0,0 +1,120 @@ + + + + + + lib/Resource/LocalRequest.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Resource/LocalRequest.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import {SuperagentResponse} from './SuperagentResponse';
    +import {Request} from './Request';
    +import {Action} from './Action';
    +import Http from 'superagent';
    +
    +/**
    + * Resource request instance
    + */
    +export class LocalRequest extends Request {
    +  constructor(...args) {
    +    super(...args);
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   * @returns {LocalRequest|*}
    +   */
    +  _send(callback = null) {
    +    let actionType = this._action.type;
    +
    +    if (actionType === Action.LAMBDA) {
    +      let data = {
    +        lambda: this._action.source.original,
    +        payload: this.payload,
    +        method: this._method,
    +      };
    +
    +      Http.post(LocalRequest.LOCAL_LAMBDA_ENDPOINT)
    +        .send(data)
    +        .end(function(error, response) {
    +          callback && callback(new SuperagentResponse(this, response, error));
    +        }.bind(this));
    +    } else {
    +      return this.prototype.useNative()._send(...arguments);
    +    }
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  static get LOCAL_LAMBDA_ENDPOINT() {
    +    return '/_/lambda';
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/file/lib/Resource/Request.js.html b/docs-api/deep-resource/file/lib/Resource/Request.js.html new file mode 100644 index 00000000..635c40fe --- /dev/null +++ b/docs-api/deep-resource/file/lib/Resource/Request.js.html @@ -0,0 +1,469 @@ + + + + + + lib/Resource/Request.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Resource/Request.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import {SuperagentResponse} from './SuperagentResponse';
    +import {LambdaResponse} from './LambdaResponse';
    +import {Response} from './Response';
    +import {Exception} from '../Exception/Exception';
    +import {Action} from './Action';
    +import Http from 'superagent';
    +import AWS from 'aws-sdk';
    +import {MissingCacheImplementationException} from './Exception/MissingCacheImplementationException';
    +import {CachedRequestException} from './Exception/CachedRequestException';
    +import aws4 from 'aws4';
    +import parseUrl from 'parse-url';
    +
    +/**
    + * Action request instance
    + */
    +export class Request {
    +  /**
    +   * @param {Action} action
    +   * @param {Object} payload
    +   * @param {String} method
    +   */
    +  constructor(action, payload, method) {
    +    this._action = action;
    +    this._payload = payload;
    +    this._method = method;
    +    this._lambda = null;
    +
    +    this._cacheImpl = null;
    +    this._cacheTtl = Request.TTL_FOREVER;
    +    this._cached = false;
    +
    +    this._native = true; // @todo: change to false on an stable API Gateway version
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get native() {
    +    return this._native;
    +  }
    +
    +  /**
    +   * @returns {Request}
    +   */
    +  useDirectCall() {
    +    this._native = true;
    +    return this;
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get isCached() {
    +    return this._cacheImpl && this._cached;
    +  }
    +
    +  /**
    +   * @returns {Request}
    +   */
    +  enableCache() {
    +    this._cached = true;
    +    return this;
    +  }
    +
    +  /**
    +   * @returns {Request}
    +   */
    +  disableCache() {
    +    this._cached = false;
    +    return this;
    +  }
    +
    +  /**
    +   * @param {Number} ttl
    +   * @returns {Request}
    +   */
    +  cache(ttl = Request.TTL_FOREVER) {
    +    if (!this._cacheImpl) {
    +      throw new MissingCacheImplementationException();
    +    }
    +
    +    this._cacheTtl = ttl;
    +    this.enableCache();
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @returns {Number}
    +   */
    +  get cacheTtl() {
    +    return this._cacheTtl;
    +  }
    +
    +  /**
    +   * @param {Number} ttl
    +   */
    +  set cacheTtl(ttl) {
    +    this._cacheTtl = ttl;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get cacheImpl() {
    +    return this._cacheImpl;
    +  }
    +
    +  /**
    +   * @param {Object} cache
    +   */
    +  set cacheImpl(cache) {
    +    this._cacheImpl = cache;
    +
    +    // @todo: do we really have to force it?
    +    this.cache(Request.TTL_DEFAULT);
    +  }
    +
    +  /**
    +   * @returns {String}
    +   * @private
    +   */
    +  _buildCacheKey() {
    +    let payload = JSON.stringify(this._payload);
    +
    +    return `${this._method}:${this._action.type}:${this._action.source}#${payload}`;
    +  }
    +
    +  /**
    +   * @param {Response} response
    +   * @returns {String}
    +   * @private
    +   */
    +  static _stringifyResponse(response) {
    +    return JSON.stringify({
    +      _class: response.constructor.name,
    +      data: response.rawData,
    +      error: response.rawError,
    +    });
    +  }
    +
    +  /**
    +   * @param {String} rawData
    +   * @returns {Response}
    +   * @private
    +   */
    +  _rebuildResponse(rawData) {
    +    let response = JSON.parse(rawData);
    +
    +    if (!response) {
    +      throw new CachedRequestException(`Unable to unpack cached JSON object from ${rawData}`);
    +    }
    +
    +    let ResponseImpl = Request._chooseResponseImpl(response._class);
    +
    +    if (!ResponseImpl) {
    +      throw new Exception(`Unknown Response implementation ${response._class}`);
    +    }
    +
    +    return new ResponseImpl(this, response.data, response.error);
    +  }
    +
    +  /**
    +   * @param {String} className
    +   * @returns {*}
    +   * @private
    +   */
    +  static _chooseResponseImpl(className) {
    +    let implMap = {};
    +
    +    implMap[Response.name] = Response;
    +    implMap[LambdaResponse.name] = LambdaResponse;
    +    implMap[SuperagentResponse.name] = SuperagentResponse;
    +
    +    return implMap[className];
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   */
    +  invalidateCache(callback = null) {
    +    if (!this.isCached) {
    +      callback && callback(true);
    +
    +      return this;
    +    }
    +
    +    let cache = this._cacheImpl;
    +    let cacheKey = this._buildCacheKey();
    +
    +    cache.has(cacheKey, function(error, result) {
    +      if (error) {
    +        throw new CachedRequestException(error);
    +      }
    +
    +      if (result) {
    +        cache.invalidate(cacheKey, 0, function(error, result) {
    +          if (error) {
    +            throw new CachedRequestException(error);
    +          }
    +
    +          callback && callback(result);
    +        }.bind(this));
    +
    +        return;
    +      }
    +
    +      callback && callback(true);
    +    }.bind(this));
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   */
    +  send(callback = null) {
    +    if (!this.isCached) {
    +      return this._send(callback);
    +    }
    +
    +    let cache = this._cacheImpl;
    +    let invalidateCache = this._cacheTtl === Request.TTL_INVALIDATE;
    +    let cacheKey = this._buildCacheKey();
    +
    +    cache.has(cacheKey, function(error, result) {
    +      if (error) {
    +        throw new CachedRequestException(error);
    +      }
    +
    +      if (result && !invalidateCache) {
    +        cache.get(cacheKey, function(error, result) {
    +          if (error) {
    +            throw new CachedRequestException(error);
    +          }
    +
    +          callback && callback(this._rebuildResponse(result));
    +        }.bind(this));
    +
    +        return;
    +      }
    +
    +      this._send(function(response) {
    +        cache.set(cacheKey, Request._stringifyResponse(response), this._cacheTtl, function(error, result) {
    +          if (!result) {
    +            error = `Unable to persist request cache under key ${cacheKey}`;
    +          }
    +
    +          if (error) {
    +            throw new CachedRequestException(error);
    +          }
    +        }.bind(this));
    +
    +        // @todo: do it synchronous?
    +        callback && callback(response);
    +      }.bind(this));
    +    }.bind(this));
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   * @returns {Request}
    +   */
    +  _send(callback = () => null) {
    +    if (!this._native) {
    +      return this._sendThroughApi(callback);
    +    }
    +
    +    switch (this._action.type) {
    +      case Action.LAMBDA:
    +        this._sendLambda(callback);
    +        break;
    +      case Action.EXTERNAL:
    +        this._sendExternal(callback);
    +        break;
    +      default: throw new Exception(`Request of type ${this._action.type} is not implemented`);
    +    }
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   * @returns {Request}
    +   * @private
    +   */
    +  _sendThroughApi(callback = () => null) {
    +    let urlParts = parseUrl(this._action.source.api);
    +
    +    let apiHost = urlParts.resource;
    +    let apiPath = urlParts.pathname ? urlParts.pathname : '/';
    +    let apiQueryString = urlParts.search ? `?${urlParts.search}` : '';
    +
    +    let signature = aws4.sign({
    +      host: apiHost,
    +      path: `${apiPath}${apiQueryString}`,
    +    }, this._action.resource.securityCredentials);
    +
    +    Http[this._method.toLowerCase()](this._action.source.api)
    +      .set('Host', signature.headers.Host)
    +      .set('X-Amz-Date', signature.headers['X-Amz-Date'])
    +      .set('Authorization', signature.headers.Authorization)
    +      .send(this.payload)
    +      .end(function(error, response) {
    +        callback(new SuperagentResponse(this, response, error));
    +      }.bind(this));
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   * @returns {Request}
    +   * @private
    +   */
    +  _sendLambda(callback = () => null) {
    +    // @todo: set retries in a smarter way...
    +    AWS.config.maxRetries = 3;
    +
    +    this._lambda = new AWS.Lambda({
    +      region: this._action.region,
    +    });
    +
    +    let invocationParameters = {
    +      FunctionName: this._action.source.original,
    +      Payload: JSON.stringify(this.payload),
    +    };
    +
    +    this._lambda.invoke(invocationParameters, function(error, data) {
    +      callback(new LambdaResponse(this, data, error));
    +    }.bind(this));
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   * @returns {Request}
    +   * @private
    +   */
    +  _sendExternal(callback = () => null) {
    +    Http[this._method.toLowerCase()](this._action.source.original)
    +      .send(this.payload)
    +      .end(function(error, response) {
    +        callback(new SuperagentResponse(this, response, error));
    +      }.bind(this));
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @returns {Action}
    +   */
    +  get action() {
    +    return this._action;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get payload() {
    +    return this._payload;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get method() {
    +    return this._method;
    +  }
    +
    +  /**
    +   * @returns {Number}
    +   * @constructor
    +   */
    +  static get TTL_DEFAULT() {
    +    return 10;
    +  }
    +
    +  /**
    +   * @returns {Number}
    +   */
    +  static get TTL_INVALIDATE() {
    +    return -1;
    +  }
    +
    +  /**
    +   * @returns {Number}
    +   */
    +  static get TTL_FOREVER() {
    +    return 0;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/file/lib/Resource/Response.js.html b/docs-api/deep-resource/file/lib/Resource/Response.js.html new file mode 100644 index 00000000..ba7aa1dd --- /dev/null +++ b/docs-api/deep-resource/file/lib/Resource/Response.js.html @@ -0,0 +1,175 @@ + + + + + + lib/Resource/Response.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Resource/Response.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +/**
    + * Response object
    + */
    +export class Response {
    +  /**
    +   * @param {Request} request
    +   * @param {Object} data
    +   * @param {String} error
    +   */
    +  constructor(request, data, error) {
    +    this._request = request;
    +
    +    this._rawError = error;
    +    this._rawData = data;
    +
    +    this._statusCode = null;
    +    this._data = null;
    +    this._error = null;
    +  }
    +
    +  /**
    +   * @returns {*}
    +   */
    +  get rawData() {
    +    return this._rawData;
    +  }
    +
    +  /**
    +   * @returns {*}
    +   */
    +  get rawError() {
    +    return this._rawError;
    +  }
    +
    +  /**
    +   * @returns {Request}
    +   */
    +  get request() {
    +    return this._request;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get data() {
    +    if (this._data) {
    +      return this._data;
    +    }
    +
    +    if (this._rawData) {
    +      var response = JSON.parse(this._rawData.Payload);
    +      if (response && typeof response.errorMessage === 'undefined') {
    +        this._data = response;
    +      }
    +    }
    +
    +    return this._data;
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get isError() {
    +    return typeof this.error === 'string';
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get error() {
    +    if (this._error) {
    +      return this._error;
    +    }
    +
    +    if (this._rawError) {
    +      this._error = this._rawError;
    +    } else {
    +      var response = JSON.parse(this._rawData.Payload);
    +      if (response && typeof response.errorMessage !== 'undefined') {
    +        this._error = response.errorMessage;
    +      }
    +    }
    +
    +    return this._error;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get statusCode() {
    +    if (this._statusCode) {
    +      return this._statusCode;
    +    }
    +
    +    if (this._rawData) {
    +      this._statusCode = this._rawData.StatusCode;
    +    }
    +
    +    return this._statusCode;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/file/lib/Resource/SuperagentResponse.js.html b/docs-api/deep-resource/file/lib/Resource/SuperagentResponse.js.html new file mode 100644 index 00000000..93ba19ff --- /dev/null +++ b/docs-api/deep-resource/file/lib/Resource/SuperagentResponse.js.html @@ -0,0 +1,134 @@ + + + + + + lib/Resource/SuperagentResponse.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Resource/SuperagentResponse.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import {Response} from './Response';
    +
    +export class SuperagentResponse extends Response {
    +  /**
    +   * @param {Request} request
    +   * @param {Object} data
    +   * @param {String} error
    +   */
    +  constructor(request, data, error) {
    +    super(...arguments);
    +
    +    this._data = this._parseResponse(data);
    +    this._error = error;
    +  }
    +
    +  /**
    +   * Parse response given by superagent library
    +   *
    +   * @param {Object} response
    +   * @returns {Object}
    +   * @private
    +   */
    +  _parseResponse(response) {
    +    if (response.error) {
    +      this._error = response.error;
    +    }
    +
    +    this._statusCode = response.status;
    +
    +    return response.body;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get data() {
    +    return this._data;
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get isError() {
    +    return !!this._error;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get error() {
    +    return this._error;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get statusCode() {
    +    return this._statusCode;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/file/lib/bootstrap.js.html b/docs-api/deep-resource/file/lib/bootstrap.js.html new file mode 100644 index 00000000..4f68e5bd --- /dev/null +++ b/docs-api/deep-resource/file/lib/bootstrap.js.html @@ -0,0 +1,79 @@ + + + + + + lib/bootstrap.js | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/bootstrap.js

    +
    /**
    + * Created by AlexanderC on 5/22/15.
    + *
    + * Bootstrap file loaded by npm as main
    + */
    +
    +'use strict';
    +
    +import {Resource} from './Resource';
    +
    +let exports = module.exports = Resource;
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/identifiers.html b/docs-api/deep-resource/identifiers.html new file mode 100644 index 00000000..5250c8ea --- /dev/null +++ b/docs-api/deep-resource/identifiers.html @@ -0,0 +1,427 @@ + + + + + + Index | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Identifier

    +

    Class Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Class Summary
    + public + + + + + +
    +

    + Action +

    +
    +
    + + +
    Resource action
    +
    +
    + + +
    + public + + + + + + +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Thrown when any exception occurs
    +
    +
    + + +
    + public + + + + + +
    +

    + Instance +

    +
    +
    + + +
    Resource instance
    +
    +
    + + +
    + public + + + + + +
    +

    + LambdaResponse +

    +
    +
    + + +
    Response object
    +
    +
    + + +
    + public + + + + + +
    +

    + LocalRequest +

    +
    +
    + + +
    Resource request instance
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when requested resource action not found
    +
    +
    + + +
    + public + + + + + + +
    + + + +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when requested resource not found
    +
    +
    + + +
    + public + + + + + +
    +

    + Request +

    +
    +
    + + +
    Action request instance
    +
    +
    + + +
    + public + + + + + +
    +

    + Resource +

    +
    +
    + + +
    Bundle resource
    +
    +
    + + +
    + public + + + + + +
    +

    + Response +

    +
    +
    + + +
    Response object
    +
    +
    + + +
    + public + + + + + + +
    + + + +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when requested method is missing from allowed vector
    +
    +
    + + +
    +
    + + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/image/badge.svg b/docs-api/deep-resource/image/badge.svg new file mode 100644 index 00000000..324db4c5 --- /dev/null +++ b/docs-api/deep-resource/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/docs-api/deep-resource/image/github.png b/docs-api/deep-resource/image/github.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/docs-api/deep-resource/image/github.png differ diff --git a/docs-api/deep-resource/image/search.png b/docs-api/deep-resource/image/search.png new file mode 100644 index 00000000..f5d84b69 Binary files /dev/null and b/docs-api/deep-resource/image/search.png differ diff --git a/docs-api/deep-resource/index.html b/docs-api/deep-resource/index.html new file mode 100644 index 00000000..8e624bb4 --- /dev/null +++ b/docs-api/deep-resource/index.html @@ -0,0 +1,200 @@ + + + + + + DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    deep-resource

    +

    NPM Version +Build Status +Coverage Status +Codacy Badge +API Docs

    +

    deep-resource is a node.js library, part of DEEP Framework.

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less.

    +

    DEEP for Businesses Join char on gitter.im

    +

    User Guide Documentation (to be updated later)

    +

    DEEP is enabling small and medium businesses, as well as enterprises to:

    +
      +
    • Rent applications on a monthly basis by needed functionality from DEEP Marketplace
    • +
    • Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS
    • +
    • Pay only for subscribed applications and stop paying when unsubscribing and not using anymore
    • +
    • Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences
    • +
    • Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability
    • +
    +
    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP for Developers Join char on gitter.im

    +

    API Guide Documentation

    +

    Developer Guide Documentation

    +

    DEEP is enabling developers and architects to:

    +
      +
    • Design microservices architecture on top of serverless environments from cloud providers like AWS
    • +
    • Build distributed software that combines and manages hardware and software in the same microservice
    • +
    • Use the framework's abstracted approach to build applications that could be cloud agnostic
    • +
    • Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same DEEP Microservice
    • +
    • Run in the cloud the software that was built by distributed teams and served self-service in large organizations
    • +
    • Monetize their work of art by uploading microservices to DEEP Marketplace
    • +
    +
    +

    DEEP Microservice is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with DEEP Microservices HelloWorld or DEEP Microservices ToDo App, as well as DEEP CLI (aka deepify).

    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP Architecture on AWS Join char on gitter.im

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    DEEP is using microservices architecture on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DEEP Abstracted LibraryDescriptionAWS Abstracted Service(s)
    deep-assetAssets Management LibraryAmazon S3
    deep-cacheCache Management LibraryAmazon ElastiCache
    deep-coreCore Management Library-
    deep-dbDatabase Management LibraryAmazon DynamoDB, Amazon SQS
    deep-diDependency Injection Management Library-
    deep-eventEvents Management LibraryAmazon Kinesis
    deep-fsFile System Management LibraryAmazon S3
    deep-kernelKernel Management Library-
    deep-logLogs Management LibraryAmazon CloudWatch Logs
    deep-notificationNotifications Management LibraryAmazon SNS
    deep-resourceResouces Management LibraryAWS Lambda, Amazon API Gateway
    deep-securitySecurity Management LibraryAWS IAM, Amazon Cognito
    deep-validationValidation Management Library-
    +

    Feedback

    +

    We are eager to get your feedback, so please use whatever communication channel you prefer:

    + +

    License

    +

    This repository can be used under the MIT license.

    +
    +

    See LICENSE for more details.

    +
    +

    Sponsors

    +

    This repository is being sponsored by:

    +
    +

    Mitoc Group

    +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-resource/package.json b/docs-api/deep-resource/package.json new file mode 100644 index 00000000..67ca28c3 --- /dev/null +++ b/docs-api/deep-resource/package.json @@ -0,0 +1,78 @@ +{ + "name": "deep-resource", + "version": "0.0.68", + "description": "DEEP Resource Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Resource", + "Backend", + "REST" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Veaceslav Cotruta", + "email": "vcotruta@mitocgroup.com" + }, + { + "name": "Dragos Palade", + "email": "dpalade@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "*", + "deep-core": "*", + "superagent": "1.2.*", + "aws4": "1.0.*", + "parse-url": "1.0.*" + }, + "devDependencies": { + "aws-sdk": "2.1.*", + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/docs-api/deep-resource/script/inherited-summary.js b/docs-api/deep-resource/script/inherited-summary.js new file mode 100644 index 00000000..0a35b6df --- /dev/null +++ b/docs-api/deep-resource/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/docs-api/deep-resource/script/inner-link.js b/docs-api/deep-resource/script/inner-link.js new file mode 100644 index 00000000..99d76273 --- /dev/null +++ b/docs-api/deep-resource/script/inner-link.js @@ -0,0 +1,29 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + var el = document.querySelector(location.hash); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = location.href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/docs-api/deep-resource/script/patch-for-local.js b/docs-api/deep-resource/script/patch-for-local.js new file mode 100644 index 00000000..5756d135 --- /dev/null +++ b/docs-api/deep-resource/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/docs-api/deep-resource/script/prettify/Apache-License-2.0.txt b/docs-api/deep-resource/script/prettify/Apache-License-2.0.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/docs-api/deep-resource/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs-api/deep-resource/script/prettify/prettify.js b/docs-api/deep-resource/script/prettify/prettify.js new file mode 100644 index 00000000..eef5ad7e --- /dev/null +++ b/docs-api/deep-resource/script/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/docs-api/deep-resource/script/search_index.js b/docs-api/deep-resource/script/search_index.js new file mode 100644 index 00000000..2e476a16 --- /dev/null +++ b/docs-api/deep-resource/script/search_index.js @@ -0,0 +1,938 @@ +window.esdocSearchIndex = [ + [ + "deep-resource/lib/resource/action.js~action", + "class/lib/Resource/Action.js~Action.html", + "Action deep-resource/lib/Resource/Action.js", + "class" + ], + [ + "deep-resource/lib/resource/exception/cachedrequestexception.js~cachedrequestexception", + "class/lib/Resource/Exception/CachedRequestException.js~CachedRequestException.html", + "CachedRequestException deep-resource/lib/Resource/Exception/CachedRequestException.js", + "class" + ], + [ + "deep-resource/lib/exception/exception.js~exception", + "class/lib/Exception/Exception.js~Exception.html", + "Exception deep-resource/lib/Exception/Exception.js", + "class" + ], + [ + "deep-resource/lib/resource/instance.js~instance", + "class/lib/Resource/Instance.js~Instance.html", + "Instance deep-resource/lib/Resource/Instance.js", + "class" + ], + [ + "deep-resource/lib/resource/lambdaresponse.js~lambdaresponse", + "class/lib/Resource/LambdaResponse.js~LambdaResponse.html", + "LambdaResponse deep-resource/lib/Resource/LambdaResponse.js", + "class" + ], + [ + "deep-resource/lib/resource/localrequest.js~localrequest", + "class/lib/Resource/LocalRequest.js~LocalRequest.html", + "LocalRequest deep-resource/lib/Resource/LocalRequest.js", + "class" + ], + [ + "deep-resource/lib/resource/exception/missingactionexception.js~missingactionexception", + "class/lib/Resource/Exception/MissingActionException.js~MissingActionException.html", + "MissingActionException deep-resource/lib/Resource/Exception/MissingActionException.js", + "class" + ], + [ + "deep-resource/lib/resource/exception/missingcacheimplementationexception.js~missingcacheimplementationexception", + "class/lib/Resource/Exception/MissingCacheImplementationException.js~MissingCacheImplementationException.html", + "MissingCacheImplementationException deep-resource/lib/Resource/Exception/MissingCacheImplementationException.js", + "class" + ], + [ + "deep-resource/lib/exception/missingresourceexception.js~missingresourceexception", + "class/lib/Exception/MissingResourceException.js~MissingResourceException.html", + "MissingResourceException deep-resource/lib/Exception/MissingResourceException.js", + "class" + ], + [ + "deep-resource/lib/resource/request.js~request", + "class/lib/Resource/Request.js~Request.html", + "Request deep-resource/lib/Resource/Request.js", + "class" + ], + [ + "deep-resource/lib/resource.js~resource", + "class/lib/Resource.js~Resource.html", + "Resource deep-resource/lib/Resource.js", + "class" + ], + [ + "deep-resource/lib/resource/response.js~response", + "class/lib/Resource/Response.js~Response.html", + "Response deep-resource/lib/Resource/Response.js", + "class" + ], + [ + "deep-resource/lib/resource/superagentresponse.js~superagentresponse", + "class/lib/Resource/SuperagentResponse.js~SuperagentResponse.html", + "SuperagentResponse deep-resource/lib/Resource/SuperagentResponse.js", + "class" + ], + [ + "deep-resource/lib/resource/exception/unknownmethodexception.js~unknownmethodexception", + "class/lib/Resource/Exception/UnknownMethodException.js~UnknownMethodException.html", + "UnknownMethodException deep-resource/lib/Resource/Exception/UnknownMethodException.js", + "class" + ], + [ + "builtinexternal/ecmascriptexternal.js~array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~arraybuffer", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~dataview", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~DataView", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~date", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Date", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~error", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Error", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~evalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float64array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generator", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Generator", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generatorfunction", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~infinity", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~internalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~json", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~JSON", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~map", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Map", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~nan", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~NaN", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~promise", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Promise", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~proxy", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~rangeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~referenceerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~reflect", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~regexp", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~set", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Set", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~String", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~symbol", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~syntaxerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~typeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~urierror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~URIError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8clampedarray", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakmap", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakset", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~null", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~null", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~string", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~undefined", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~undefined", + "external" + ], + [ + "builtinexternal/webapiexternal.js~canvasrenderingcontext2d", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "external" + ], + [ + "builtinexternal/webapiexternal.js~documentfragment", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "external" + ], + [ + "builtinexternal/webapiexternal.js~element", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Element", + "external" + ], + [ + "builtinexternal/webapiexternal.js~event", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Event", + "external" + ], + [ + "builtinexternal/webapiexternal.js~node", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Node", + "external" + ], + [ + "builtinexternal/webapiexternal.js~nodelist", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~NodeList", + "external" + ], + [ + "builtinexternal/webapiexternal.js~xmlhttprequest", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "external" + ], + [ + "lib/exception/exception.js", + "file/lib/Exception/Exception.js.html", + "lib/Exception/Exception.js", + "file" + ], + [ + "lib/exception/exception.js~exception#constructor", + "class/lib/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/exception/missingresourceexception.js", + "file/lib/Exception/MissingResourceException.js.html", + "lib/Exception/MissingResourceException.js", + "file" + ], + [ + "lib/exception/missingresourceexception.js~missingresourceexception#constructor", + "class/lib/Exception/MissingResourceException.js~MissingResourceException.html#instance-constructor-constructor", + "lib/Exception/MissingResourceException.js~MissingResourceException#constructor", + "method" + ], + [ + "lib/resource.js", + "file/lib/Resource.js.html", + "lib/Resource.js", + "file" + ], + [ + "lib/resource.js~resource#boot", + "class/lib/Resource.js~Resource.html#instance-method-boot", + "lib/Resource.js~Resource#boot", + "method" + ], + [ + "lib/resource.js~resource#constructor", + "class/lib/Resource.js~Resource.html#instance-constructor-constructor", + "lib/Resource.js~Resource#constructor", + "method" + ], + [ + "lib/resource.js~resource#get", + "class/lib/Resource.js~Resource.html#instance-method-get", + "lib/Resource.js~Resource#get", + "method" + ], + [ + "lib/resource.js~resource#has", + "class/lib/Resource.js~Resource.html#instance-method-has", + "lib/Resource.js~Resource#has", + "method" + ], + [ + "lib/resource.js~resource#list", + "class/lib/Resource.js~Resource.html#instance-get-list", + "lib/Resource.js~Resource#list", + "member" + ], + [ + "lib/resource/action.js", + "file/lib/Resource/Action.js.html", + "lib/Resource/Action.js", + "file" + ], + [ + "lib/resource/action.js~action#constructor", + "class/lib/Resource/Action.js~Action.html#instance-constructor-constructor", + "lib/Resource/Action.js~Action#constructor", + "method" + ], + [ + "lib/resource/action.js~action#methods", + "class/lib/Resource/Action.js~Action.html#instance-get-methods", + "lib/Resource/Action.js~Action#methods", + "member" + ], + [ + "lib/resource/action.js~action#name", + "class/lib/Resource/Action.js~Action.html#instance-get-name", + "lib/Resource/Action.js~Action#name", + "member" + ], + [ + "lib/resource/action.js~action#region", + "class/lib/Resource/Action.js~Action.html#instance-get-region", + "lib/Resource/Action.js~Action#region", + "member" + ], + [ + "lib/resource/action.js~action#request", + "class/lib/Resource/Action.js~Action.html#instance-method-request", + "lib/Resource/Action.js~Action#request", + "method" + ], + [ + "lib/resource/action.js~action#resource", + "class/lib/Resource/Action.js~Action.html#instance-get-resource", + "lib/Resource/Action.js~Action#resource", + "member" + ], + [ + "lib/resource/action.js~action#source", + "class/lib/Resource/Action.js~Action.html#instance-get-source", + "lib/Resource/Action.js~Action#source", + "member" + ], + [ + "lib/resource/action.js~action#type", + "class/lib/Resource/Action.js~Action.html#instance-get-type", + "lib/Resource/Action.js~Action#type", + "member" + ], + [ + "lib/resource/action.js~action.external", + "class/lib/Resource/Action.js~Action.html#static-get-EXTERNAL", + "lib/Resource/Action.js~Action.EXTERNAL", + "member" + ], + [ + "lib/resource/action.js~action.http_verbs", + "class/lib/Resource/Action.js~Action.html#static-get-HTTP_VERBS", + "lib/Resource/Action.js~Action.HTTP_VERBS", + "member" + ], + [ + "lib/resource/action.js~action.lambda", + "class/lib/Resource/Action.js~Action.html#static-get-LAMBDA", + "lib/Resource/Action.js~Action.LAMBDA", + "member" + ], + [ + "lib/resource/exception/cachedrequestexception.js", + "file/lib/Resource/Exception/CachedRequestException.js.html", + "lib/Resource/Exception/CachedRequestException.js", + "file" + ], + [ + "lib/resource/exception/cachedrequestexception.js~cachedrequestexception#constructor", + "class/lib/Resource/Exception/CachedRequestException.js~CachedRequestException.html#instance-constructor-constructor", + "lib/Resource/Exception/CachedRequestException.js~CachedRequestException#constructor", + "method" + ], + [ + "lib/resource/exception/missingactionexception.js", + "file/lib/Resource/Exception/MissingActionException.js.html", + "lib/Resource/Exception/MissingActionException.js", + "file" + ], + [ + "lib/resource/exception/missingactionexception.js~missingactionexception#constructor", + "class/lib/Resource/Exception/MissingActionException.js~MissingActionException.html#instance-constructor-constructor", + "lib/Resource/Exception/MissingActionException.js~MissingActionException#constructor", + "method" + ], + [ + "lib/resource/exception/missingcacheimplementationexception.js", + "file/lib/Resource/Exception/MissingCacheImplementationException.js.html", + "lib/Resource/Exception/MissingCacheImplementationException.js", + "file" + ], + [ + "lib/resource/exception/missingcacheimplementationexception.js~missingcacheimplementationexception#constructor", + "class/lib/Resource/Exception/MissingCacheImplementationException.js~MissingCacheImplementationException.html#instance-constructor-constructor", + "lib/Resource/Exception/MissingCacheImplementationException.js~MissingCacheImplementationException#constructor", + "method" + ], + [ + "lib/resource/exception/unknownmethodexception.js", + "file/lib/Resource/Exception/UnknownMethodException.js.html", + "lib/Resource/Exception/UnknownMethodException.js", + "file" + ], + [ + "lib/resource/exception/unknownmethodexception.js~unknownmethodexception#constructor", + "class/lib/Resource/Exception/UnknownMethodException.js~UnknownMethodException.html#instance-constructor-constructor", + "lib/Resource/Exception/UnknownMethodException.js~UnknownMethodException#constructor", + "method" + ], + [ + "lib/resource/instance.js", + "file/lib/Resource/Instance.js.html", + "lib/Resource/Instance.js", + "file" + ], + [ + "lib/resource/instance.js~instance#action", + "class/lib/Resource/Instance.js~Instance.html#instance-method-action", + "lib/Resource/Instance.js~Instance#action", + "method" + ], + [ + "lib/resource/instance.js~instance#actions", + "class/lib/Resource/Instance.js~Instance.html#instance-get-actions", + "lib/Resource/Instance.js~Instance#actions", + "member" + ], + [ + "lib/resource/instance.js~instance#cache", + "class/lib/Resource/Instance.js~Instance.html#instance-get-cache", + "lib/Resource/Instance.js~Instance#cache", + "member" + ], + [ + "lib/resource/instance.js~instance#cache", + "class/lib/Resource/Instance.js~Instance.html#instance-set-cache", + "lib/Resource/Instance.js~Instance#cache", + "member" + ], + [ + "lib/resource/instance.js~instance#constructor", + "class/lib/Resource/Instance.js~Instance.html#instance-constructor-constructor", + "lib/Resource/Instance.js~Instance#constructor", + "method" + ], + [ + "lib/resource/instance.js~instance#has", + "class/lib/Resource/Instance.js~Instance.html#instance-method-has", + "lib/Resource/Instance.js~Instance#has", + "method" + ], + [ + "lib/resource/instance.js~instance#localbackend", + "class/lib/Resource/Instance.js~Instance.html#instance-get-localBackend", + "lib/Resource/Instance.js~Instance#localBackend", + "member" + ], + [ + "lib/resource/instance.js~instance#localbackend", + "class/lib/Resource/Instance.js~Instance.html#instance-set-localBackend", + "lib/Resource/Instance.js~Instance#localBackend", + "member" + ], + [ + "lib/resource/instance.js~instance#name", + "class/lib/Resource/Instance.js~Instance.html#instance-get-name", + "lib/Resource/Instance.js~Instance#name", + "member" + ], + [ + "lib/resource/instance.js~instance#request", + "class/lib/Resource/Instance.js~Instance.html#instance-method-request", + "lib/Resource/Instance.js~Instance#request", + "method" + ], + [ + "lib/resource/instance.js~instance#securitycredentials", + "class/lib/Resource/Instance.js~Instance.html#instance-get-securityCredentials", + "lib/Resource/Instance.js~Instance#securityCredentials", + "member" + ], + [ + "lib/resource/instance.js~instance#securitycredentials", + "class/lib/Resource/Instance.js~Instance.html#instance-set-securityCredentials", + "lib/Resource/Instance.js~Instance#securityCredentials", + "member" + ], + [ + "lib/resource/lambdaresponse.js", + "file/lib/Resource/LambdaResponse.js.html", + "lib/Resource/LambdaResponse.js", + "file" + ], + [ + "lib/resource/lambdaresponse.js~lambdaresponse#constructor", + "class/lib/Resource/LambdaResponse.js~LambdaResponse.html#instance-constructor-constructor", + "lib/Resource/LambdaResponse.js~LambdaResponse#constructor", + "method" + ], + [ + "lib/resource/lambdaresponse.js~lambdaresponse#data", + "class/lib/Resource/LambdaResponse.js~LambdaResponse.html#instance-get-data", + "lib/Resource/LambdaResponse.js~LambdaResponse#data", + "member" + ], + [ + "lib/resource/lambdaresponse.js~lambdaresponse#error", + "class/lib/Resource/LambdaResponse.js~LambdaResponse.html#instance-get-error", + "lib/Resource/LambdaResponse.js~LambdaResponse#error", + "member" + ], + [ + "lib/resource/lambdaresponse.js~lambdaresponse#errortype", + "class/lib/Resource/LambdaResponse.js~LambdaResponse.html#instance-get-errorType", + "lib/Resource/LambdaResponse.js~LambdaResponse#errorType", + "member" + ], + [ + "lib/resource/lambdaresponse.js~lambdaresponse#statuscode", + "class/lib/Resource/LambdaResponse.js~LambdaResponse.html#instance-get-statusCode", + "lib/Resource/LambdaResponse.js~LambdaResponse#statusCode", + "member" + ], + [ + "lib/resource/localrequest.js", + "file/lib/Resource/LocalRequest.js.html", + "lib/Resource/LocalRequest.js", + "file" + ], + [ + "lib/resource/localrequest.js~localrequest#constructor", + "class/lib/Resource/LocalRequest.js~LocalRequest.html#instance-constructor-constructor", + "lib/Resource/LocalRequest.js~LocalRequest#constructor", + "method" + ], + [ + "lib/resource/localrequest.js~localrequest.local_lambda_endpoint", + "class/lib/Resource/LocalRequest.js~LocalRequest.html#static-get-LOCAL_LAMBDA_ENDPOINT", + "lib/Resource/LocalRequest.js~LocalRequest.LOCAL_LAMBDA_ENDPOINT", + "member" + ], + [ + "lib/resource/request.js", + "file/lib/Resource/Request.js.html", + "lib/Resource/Request.js", + "file" + ], + [ + "lib/resource/request.js~request#action", + "class/lib/Resource/Request.js~Request.html#instance-get-action", + "lib/Resource/Request.js~Request#action", + "member" + ], + [ + "lib/resource/request.js~request#cache", + "class/lib/Resource/Request.js~Request.html#instance-method-cache", + "lib/Resource/Request.js~Request#cache", + "method" + ], + [ + "lib/resource/request.js~request#cacheimpl", + "class/lib/Resource/Request.js~Request.html#instance-get-cacheImpl", + "lib/Resource/Request.js~Request#cacheImpl", + "member" + ], + [ + "lib/resource/request.js~request#cacheimpl", + "class/lib/Resource/Request.js~Request.html#instance-set-cacheImpl", + "lib/Resource/Request.js~Request#cacheImpl", + "member" + ], + [ + "lib/resource/request.js~request#cachettl", + "class/lib/Resource/Request.js~Request.html#instance-set-cacheTtl", + "lib/Resource/Request.js~Request#cacheTtl", + "member" + ], + [ + "lib/resource/request.js~request#cachettl", + "class/lib/Resource/Request.js~Request.html#instance-get-cacheTtl", + "lib/Resource/Request.js~Request#cacheTtl", + "member" + ], + [ + "lib/resource/request.js~request#constructor", + "class/lib/Resource/Request.js~Request.html#instance-constructor-constructor", + "lib/Resource/Request.js~Request#constructor", + "method" + ], + [ + "lib/resource/request.js~request#disablecache", + "class/lib/Resource/Request.js~Request.html#instance-method-disableCache", + "lib/Resource/Request.js~Request#disableCache", + "method" + ], + [ + "lib/resource/request.js~request#enablecache", + "class/lib/Resource/Request.js~Request.html#instance-method-enableCache", + "lib/Resource/Request.js~Request#enableCache", + "method" + ], + [ + "lib/resource/request.js~request#invalidatecache", + "class/lib/Resource/Request.js~Request.html#instance-method-invalidateCache", + "lib/Resource/Request.js~Request#invalidateCache", + "method" + ], + [ + "lib/resource/request.js~request#iscached", + "class/lib/Resource/Request.js~Request.html#instance-get-isCached", + "lib/Resource/Request.js~Request#isCached", + "member" + ], + [ + "lib/resource/request.js~request#method", + "class/lib/Resource/Request.js~Request.html#instance-get-method", + "lib/Resource/Request.js~Request#method", + "member" + ], + [ + "lib/resource/request.js~request#native", + "class/lib/Resource/Request.js~Request.html#instance-get-native", + "lib/Resource/Request.js~Request#native", + "member" + ], + [ + "lib/resource/request.js~request#payload", + "class/lib/Resource/Request.js~Request.html#instance-get-payload", + "lib/Resource/Request.js~Request#payload", + "member" + ], + [ + "lib/resource/request.js~request#send", + "class/lib/Resource/Request.js~Request.html#instance-method-send", + "lib/Resource/Request.js~Request#send", + "method" + ], + [ + "lib/resource/request.js~request#usedirectcall", + "class/lib/Resource/Request.js~Request.html#instance-method-useDirectCall", + "lib/Resource/Request.js~Request#useDirectCall", + "method" + ], + [ + "lib/resource/request.js~request.ttl_default", + "class/lib/Resource/Request.js~Request.html#static-get-TTL_DEFAULT", + "lib/Resource/Request.js~Request.TTL_DEFAULT", + "member" + ], + [ + "lib/resource/request.js~request.ttl_forever", + "class/lib/Resource/Request.js~Request.html#static-get-TTL_FOREVER", + "lib/Resource/Request.js~Request.TTL_FOREVER", + "member" + ], + [ + "lib/resource/request.js~request.ttl_invalidate", + "class/lib/Resource/Request.js~Request.html#static-get-TTL_INVALIDATE", + "lib/Resource/Request.js~Request.TTL_INVALIDATE", + "member" + ], + [ + "lib/resource/response.js", + "file/lib/Resource/Response.js.html", + "lib/Resource/Response.js", + "file" + ], + [ + "lib/resource/response.js~response#constructor", + "class/lib/Resource/Response.js~Response.html#instance-constructor-constructor", + "lib/Resource/Response.js~Response#constructor", + "method" + ], + [ + "lib/resource/response.js~response#data", + "class/lib/Resource/Response.js~Response.html#instance-get-data", + "lib/Resource/Response.js~Response#data", + "member" + ], + [ + "lib/resource/response.js~response#error", + "class/lib/Resource/Response.js~Response.html#instance-get-error", + "lib/Resource/Response.js~Response#error", + "member" + ], + [ + "lib/resource/response.js~response#iserror", + "class/lib/Resource/Response.js~Response.html#instance-get-isError", + "lib/Resource/Response.js~Response#isError", + "member" + ], + [ + "lib/resource/response.js~response#rawdata", + "class/lib/Resource/Response.js~Response.html#instance-get-rawData", + "lib/Resource/Response.js~Response#rawData", + "member" + ], + [ + "lib/resource/response.js~response#rawerror", + "class/lib/Resource/Response.js~Response.html#instance-get-rawError", + "lib/Resource/Response.js~Response#rawError", + "member" + ], + [ + "lib/resource/response.js~response#request", + "class/lib/Resource/Response.js~Response.html#instance-get-request", + "lib/Resource/Response.js~Response#request", + "member" + ], + [ + "lib/resource/response.js~response#statuscode", + "class/lib/Resource/Response.js~Response.html#instance-get-statusCode", + "lib/Resource/Response.js~Response#statusCode", + "member" + ], + [ + "lib/resource/superagentresponse.js", + "file/lib/Resource/SuperagentResponse.js.html", + "lib/Resource/SuperagentResponse.js", + "file" + ], + [ + "lib/resource/superagentresponse.js~superagentresponse#constructor", + "class/lib/Resource/SuperagentResponse.js~SuperagentResponse.html#instance-constructor-constructor", + "lib/Resource/SuperagentResponse.js~SuperagentResponse#constructor", + "method" + ], + [ + "lib/resource/superagentresponse.js~superagentresponse#data", + "class/lib/Resource/SuperagentResponse.js~SuperagentResponse.html#instance-get-data", + "lib/Resource/SuperagentResponse.js~SuperagentResponse#data", + "member" + ], + [ + "lib/resource/superagentresponse.js~superagentresponse#error", + "class/lib/Resource/SuperagentResponse.js~SuperagentResponse.html#instance-get-error", + "lib/Resource/SuperagentResponse.js~SuperagentResponse#error", + "member" + ], + [ + "lib/resource/superagentresponse.js~superagentresponse#iserror", + "class/lib/Resource/SuperagentResponse.js~SuperagentResponse.html#instance-get-isError", + "lib/Resource/SuperagentResponse.js~SuperagentResponse#isError", + "member" + ], + [ + "lib/resource/superagentresponse.js~superagentresponse#statuscode", + "class/lib/Resource/SuperagentResponse.js~SuperagentResponse.html#instance-get-statusCode", + "lib/Resource/SuperagentResponse.js~SuperagentResponse#statusCode", + "member" + ], + [ + "lib/bootstrap.js", + "file/lib/bootstrap.js.html", + "lib/bootstrap.js", + "file" + ] +] \ No newline at end of file diff --git a/docs-api/deep-resource/script/test-summary.js b/docs-api/deep-resource/script/test-summary.js new file mode 100644 index 00000000..2f32cb00 --- /dev/null +++ b/docs-api/deep-resource/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-describe')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-describe .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/docs-api/deep-resource/source.html b/docs-api/deep-resource/source.html new file mode 100644 index 00000000..5f929004 --- /dev/null +++ b/docs-api/deep-resource/source.html @@ -0,0 +1,202 @@ + + + + + + Source | DEEP Resource Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Source 82/87

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    lib/Exception/Exception.jsException100 %2/2282 byte192015-10-07 19:56:07 (UTC)
    lib/Exception/MissingResourceException.jsMissingResourceException100 %2/2455 byte202015-08-03 11:39:55 (UTC)
    lib/Resource.jsResource100 %6/62742 byte1212015-10-02 03:00:57 (UTC)
    lib/Resource/Action.jsAction100 %12/122112 byte1152015-10-02 02:37:07 (UTC)
    lib/Resource/Exception/CachedRequestException.jsCachedRequestException50 %1/2316 byte162015-08-03 11:39:55 (UTC)
    lib/Resource/Exception/MissingActionException.jsMissingActionException100 %2/2424 byte202015-08-03 11:39:55 (UTC)
    lib/Resource/Exception/MissingCacheImplementationException.jsMissingCacheImplementationException0 %0/2269 byte132015-08-03 11:39:55 (UTC)
    lib/Resource/Exception/UnknownMethodException.jsUnknownMethodException100 %2/2521 byte222015-09-04 12:52:17 (UTC)
    lib/Resource/Instance.jsInstance100 %13/132401 byte1362015-10-02 02:35:41 (UTC)
    lib/Resource/LambdaResponse.jsLambdaResponse100 %6/61853 byte982015-09-05 12:40:18 (UTC)
    lib/Resource/LocalRequest.jsLocalRequest66 %2/31090 byte522015-10-02 02:24:09 (UTC)
    lib/Resource/Request.jsRequest100 %20/208386 byte4012015-10-02 22:25:39 (UTC)
    lib/Resource/Response.jsResponse100 %9/91724 byte1072015-09-06 13:00:02 (UTC)
    lib/Resource/SuperagentResponse.jsSuperagentResponse83 %5/61019 byte662015-09-05 12:37:02 (UTC)
    lib/bootstrap.js--183 byte112015-09-04 12:52:17 (UTC)
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/ast/source/Exception/AuthException.js.json b/docs-api/deep-security/ast/source/Exception/AuthException.js.json new file mode 100644 index 00000000..ecbc2130 --- /dev/null +++ b/docs-api/deep-security/ast/source/Exception/AuthException.js.json @@ -0,0 +1,628 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 42, + 54 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 42, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 6/30/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 81, + 94 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 57, + 95 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when auth error occurs\n ", + "range": [ + 97, + 137 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "AuthException", + "range": [ + 151, + 164 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 26 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 173, + 182 + ], + "loc": { + "start": { + "line": 12, + "column": 35 + }, + "end": { + "line": 12, + "column": 44 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 226, + 237 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 238, + 243 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 19 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 251, + 256 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Error on authentication. ", + "cooked": "Error on authentication. " + }, + "tail": false, + "range": [ + 257, + 285 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 38 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 290, + 292 + ], + "loc": { + "start": { + "line": 17, + "column": 43 + }, + "end": { + "line": 17, + "column": 45 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 285, + 290 + ], + "loc": { + "start": { + "line": 17, + "column": 38 + }, + "end": { + "line": 17, + "column": 43 + } + } + } + ], + "range": [ + 257, + 292 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 45 + } + } + } + ], + "range": [ + 251, + 293 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 46 + } + } + }, + "range": [ + 251, + 294 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 47 + } + } + } + ], + "range": [ + 245, + 298 + ], + "loc": { + "start": { + "line": 16, + "column": 21 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 237, + 298 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 226, + 298 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} error\n ", + "range": [ + 187, + 223 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 183, + 300 + ], + "loc": { + "start": { + "line": 12, + "column": 45 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 145, + 300 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when auth error occurs\n ", + "range": [ + 97, + 137 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 138, + 300 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when auth error occurs\n ", + "range": [ + 97, + 137 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 42, + 300 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 6/30/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when auth error occurs\n ", + "range": [ + 97, + 137 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} error\n ", + "range": [ + 187, + 223 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-security/ast/source/Exception/Exception.js.json b/docs-api/deep-security/ast/source/Exception/Exception.js.json new file mode 100644 index 00000000..a5724794 --- /dev/null +++ b/docs-api/deep-security/ast/source/Exception/Exception.js.json @@ -0,0 +1,651 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 149, + 158 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 167, + 171 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 172, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "range": [ + 167, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 182, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "range": [ + 167, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 233, + 244 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 248, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 245, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 260, + 265 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 269, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 266, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 260, + 274 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 260, + 275 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 254, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 244, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 233, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 192, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 143, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 136, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 281 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-security/ast/source/Exception/LoadUserException.js.json b/docs-api/deep-security/ast/source/Exception/LoadUserException.js.json new file mode 100644 index 00000000..5dd93087 --- /dev/null +++ b/docs-api/deep-security/ast/source/Exception/LoadUserException.js.json @@ -0,0 +1,686 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 42, + 54 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 42, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 7/10/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 81, + 94 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 57, + 95 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when load user form db failed\n ", + "range": [ + 97, + 144 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "LoadUserException", + "range": [ + 158, + 175 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 30 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 184, + 193 + ], + "loc": { + "start": { + "line": 12, + "column": 39 + }, + "end": { + "line": 12, + "column": 48 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 269, + 280 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "identityId", + "range": [ + 281, + 291 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 24 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 293, + 298 + ], + "loc": { + "start": { + "line": 17, + "column": 26 + }, + "end": { + "line": 17, + "column": 31 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 306, + 311 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Error on loading user ", + "cooked": "Error on loading user " + }, + "tail": false, + "range": [ + 312, + 337 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 35 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " from db. ", + "cooked": " from db. " + }, + "tail": false, + "range": [ + 347, + 360 + ], + "loc": { + "start": { + "line": 18, + "column": 45 + }, + "end": { + "line": 18, + "column": 58 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 365, + 367 + ], + "loc": { + "start": { + "line": 18, + "column": 63 + }, + "end": { + "line": 18, + "column": 65 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "identityId", + "range": [ + 337, + 347 + ], + "loc": { + "start": { + "line": 18, + "column": 35 + }, + "end": { + "line": 18, + "column": 45 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 360, + 365 + ], + "loc": { + "start": { + "line": 18, + "column": 58 + }, + "end": { + "line": 18, + "column": 63 + } + } + } + ], + "range": [ + 312, + 367 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 65 + } + } + } + ], + "range": [ + 306, + 368 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 66 + } + } + }, + "range": [ + 306, + 369 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 67 + } + } + } + ], + "range": [ + 300, + 373 + ], + "loc": { + "start": { + "line": 17, + "column": 33 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 280, + 373 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 269, + 373 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} identityId\n * @param {Object} error\n ", + "range": [ + 198, + 266 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 194, + 375 + ], + "loc": { + "start": { + "line": 12, + "column": 49 + }, + "end": { + "line": 20, + "column": 1 + } + } + }, + "range": [ + 152, + 375 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when load user form db failed\n ", + "range": [ + 97, + 144 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 145, + 375 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when load user form db failed\n ", + "range": [ + 97, + 144 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 42, + 375 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 7/10/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when load user form db failed\n ", + "range": [ + 97, + 144 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} identityId\n * @param {Object} error\n ", + "range": [ + 198, + 266 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-security/ast/source/Exception/MissingLoginProviderException.js.json b/docs-api/deep-security/ast/source/Exception/MissingLoginProviderException.js.json new file mode 100644 index 00000000..a2ffabcc --- /dev/null +++ b/docs-api/deep-security/ast/source/Exception/MissingLoginProviderException.js.json @@ -0,0 +1,628 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 42, + 54 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 42, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 6/23/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 65, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 81, + 94 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 57, + 95 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested login provider is missing\n ", + "range": [ + 97, + 155 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "MissingLoginProviderException", + "range": [ + 169, + 198 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 42 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 207, + 216 + ], + "loc": { + "start": { + "line": 12, + "column": 51 + }, + "end": { + "line": 12, + "column": 60 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 267, + 278 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "providerName", + "range": [ + 279, + 291 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 26 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 299, + 304 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Missing login provider \"", + "cooked": "Missing login provider \"" + }, + "tail": false, + "range": [ + 305, + 332 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 37 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "\" in deep-security.", + "cooked": "\" in deep-security." + }, + "tail": true, + "range": [ + 344, + 365 + ], + "loc": { + "start": { + "line": 17, + "column": 49 + }, + "end": { + "line": 17, + "column": 70 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "providerName", + "range": [ + 332, + 344 + ], + "loc": { + "start": { + "line": 17, + "column": 37 + }, + "end": { + "line": 17, + "column": 49 + } + } + } + ], + "range": [ + 305, + 365 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 70 + } + } + } + ], + "range": [ + 299, + 366 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 71 + } + } + }, + "range": [ + 299, + 367 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 72 + } + } + } + ], + "range": [ + 293, + 371 + ], + "loc": { + "start": { + "line": 16, + "column": 28 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 278, + 371 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 267, + 371 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} providerName\n ", + "range": [ + 221, + 264 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 217, + 373 + ], + "loc": { + "start": { + "line": 12, + "column": 61 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 163, + 373 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested login provider is missing\n ", + "range": [ + 97, + 155 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 156, + 373 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when requested login provider is missing\n ", + "range": [ + 97, + 155 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 42, + 373 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 6/23/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when requested login provider is missing\n ", + "range": [ + 97, + 155 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} providerName\n ", + "range": [ + 221, + 264 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-security/ast/source/LocalToken.js.json b/docs-api/deep-security/ast/source/LocalToken.js.json new file mode 100644 index 00000000..341247d5 --- /dev/null +++ b/docs-api/deep-security/ast/source/LocalToken.js.json @@ -0,0 +1,1021 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 43, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 43, + 56 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 09/01/15.\n ", + "range": [ + 0, + 41 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Token", + "range": [ + 66, + 71 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 13 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Token", + "range": [ + 66, + 71 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 13 + } + } + }, + "range": [ + 66, + 71 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Token", + "raw": "'./Token'", + "range": [ + 78, + 87 + ], + "loc": { + "start": { + "line": 7, + "column": 20 + }, + "end": { + "line": 7, + "column": 29 + } + } + }, + "range": [ + 58, + 88 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 30 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Security token holds details about logged user\n ", + "range": [ + 90, + 147 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "LocalToken", + "range": [ + 161, + 171 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 23 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Token", + "range": [ + 180, + 185 + ], + "loc": { + "start": { + "line": 12, + "column": 32 + }, + "end": { + "line": 12, + "column": 37 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 219, + 230 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 234, + 238 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 231, + 238 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 246, + 251 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 255, + 259 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 252, + 259 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 246, + 260 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 246, + 261 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 240, + 265 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 230, + 265 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 219, + 265 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param args\n ", + "range": [ + 190, + 216 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 269, + 310 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "getCredentials", + "range": [ + 313, + 327 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 23, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 328, + 336 + ], + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 421, + 425 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityId", + "range": [ + 426, + 437 + ], + "loc": { + "start": { + "line": 25, + "column": 9 + }, + "end": { + "line": 25, + "column": 20 + } + } + }, + "range": [ + 421, + 437 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 20 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 440, + 444 + ], + "loc": { + "start": { + "line": 25, + "column": 23 + }, + "end": { + "line": 25, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "_providerUserId", + "range": [ + 445, + 460 + ], + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 43 + } + } + }, + "range": [ + 440, + 460 + ], + "loc": { + "start": { + "line": 25, + "column": 23 + }, + "end": { + "line": 25, + "column": 43 + } + } + }, + "range": [ + 421, + 460 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 43 + } + } + }, + "range": [ + 421, + 461 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 44 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " use provider user id instead of cognito identity id for local backend", + "range": [ + 344, + 416 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 76 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 467, + 475 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 476, + 480 + ], + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 17 + } + } + }, + { + "type": "ThisExpression", + "range": [ + 482, + 486 + ], + "loc": { + "start": { + "line": 27, + "column": 19 + }, + "end": { + "line": 27, + "column": 23 + } + } + } + ], + "range": [ + 467, + 487 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 24 + } + } + }, + "range": [ + 467, + 488 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 25 + } + } + } + ], + "range": [ + 338, + 492 + ], + "loc": { + "start": { + "line": 23, + "column": 27 + }, + "end": { + "line": 28, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 327, + 492 + ], + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 28, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 313, + 492 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 28, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 269, + 310 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 186, + 494 + ], + "loc": { + "start": { + "line": 12, + "column": 38 + }, + "end": { + "line": 29, + "column": 1 + } + } + }, + "range": [ + 155, + 494 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 29, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Security token holds details about logged user\n ", + "range": [ + 90, + 147 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 148, + 494 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 29, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Security token holds details about logged user\n ", + "range": [ + 90, + 147 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 43, + 494 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 29, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 09/01/15.\n ", + "range": [ + 0, + 41 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Security token holds details about logged user\n ", + "range": [ + 90, + 147 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param args\n ", + "range": [ + 190, + 216 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 269, + 310 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " use provider user id instead of cognito identity id for local backend", + "range": [ + 344, + 416 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 76 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-security/ast/source/Security.js.json b/docs-api/deep-security/ast/source/Security.js.json new file mode 100644 index 00000000..b5f3a727 --- /dev/null +++ b/docs-api/deep-security/ast/source/Security.js.json @@ -0,0 +1,9725 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 42, + 54 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 42, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 6/17/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 64, + 70 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + }, + "range": [ + 64, + 70 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-kernel", + "raw": "'deep-kernel'", + "range": [ + 76, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 19 + }, + "end": { + "line": 7, + "column": 32 + } + } + }, + "range": [ + 57, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 33 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "MissingLoginProviderException", + "range": [ + 99, + 128 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 37 + } + } + }, + "imported": { + "type": "Identifier", + "name": "MissingLoginProviderException", + "range": [ + 99, + 128 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 37 + } + } + }, + "range": [ + 99, + 128 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 37 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/MissingLoginProviderException", + "raw": "'./Exception/MissingLoginProviderException'", + "range": [ + 135, + 178 + ], + "loc": { + "start": { + "line": 8, + "column": 44 + }, + "end": { + "line": 8, + "column": 87 + } + } + }, + "range": [ + 91, + 179 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 88 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Token", + "range": [ + 188, + 193 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 13 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Token", + "range": [ + 188, + 193 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 13 + } + } + }, + "range": [ + 188, + 193 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Token", + "raw": "'./Token'", + "range": [ + 200, + 209 + ], + "loc": { + "start": { + "line": 9, + "column": 20 + }, + "end": { + "line": 9, + "column": 29 + } + } + }, + "range": [ + 180, + 210 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 30 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "LocalToken", + "range": [ + 219, + 229 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 18 + } + } + }, + "imported": { + "type": "Identifier", + "name": "LocalToken", + "range": [ + 219, + 229 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 18 + } + } + }, + "range": [ + 219, + 229 + ], + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 18 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./LocalToken", + "raw": "'./LocalToken'", + "range": [ + 236, + 250 + ], + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 39 + } + } + }, + "range": [ + 211, + 251 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 40 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "UserProvider", + "range": [ + 260, + 272 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 20 + } + } + }, + "imported": { + "type": "Identifier", + "name": "UserProvider", + "range": [ + 260, + 272 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 20 + } + } + }, + "range": [ + 260, + 272 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 20 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./UserProvider", + "raw": "'./UserProvider'", + "range": [ + 279, + 295 + ], + "loc": { + "start": { + "line": 11, + "column": 27 + }, + "end": { + "line": 11, + "column": 43 + } + } + }, + "range": [ + 252, + 296 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 44 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Deep Security implementation\n ", + "range": [ + 298, + 337 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Security", + "range": [ + 351, + 359 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 368, + 374 + ], + "loc": { + "start": { + "line": 16, + "column": 30 + }, + "end": { + "line": 16, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "name": "ContainerAware", + "range": [ + 375, + 389 + ], + "loc": { + "start": { + "line": 16, + "column": 37 + }, + "end": { + "line": 16, + "column": 51 + } + } + }, + "range": [ + 368, + 389 + ], + "loc": { + "start": { + "line": 16, + "column": 30 + }, + "end": { + "line": 16, + "column": 51 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 528, + 539 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 23, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "identityPoolId", + "range": [ + 540, + 554 + ], + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 23, + "column": 28 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 557, + 561 + ], + "loc": { + "start": { + "line": 23, + "column": 31 + }, + "end": { + "line": 23, + "column": 35 + } + } + }, + "range": [ + 540, + 561 + ], + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 23, + "column": 35 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "identityProviders", + "range": [ + 563, + 580 + ], + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 54 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 583, + 585 + ], + "loc": { + "start": { + "line": 23, + "column": 57 + }, + "end": { + "line": 23, + "column": 59 + } + } + }, + "range": [ + 563, + 585 + ], + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 59 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 593, + 598 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 593, + 600 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 11 + } + } + }, + "range": [ + 593, + 601 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 607, + 611 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityPoolId", + "range": [ + 612, + 627 + ], + "loc": { + "start": { + "line": 26, + "column": 9 + }, + "end": { + "line": 26, + "column": 24 + } + } + }, + "range": [ + 607, + 627 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 24 + } + } + }, + "right": { + "type": "Identifier", + "name": "identityPoolId", + "range": [ + 630, + 644 + ], + "loc": { + "start": { + "line": 26, + "column": 27 + }, + "end": { + "line": 26, + "column": 41 + } + } + }, + "range": [ + 607, + 644 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 41 + } + } + }, + "range": [ + 607, + 645 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 42 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 650, + 654 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityProviders", + "range": [ + 655, + 673 + ], + "loc": { + "start": { + "line": 27, + "column": 9 + }, + "end": { + "line": 27, + "column": 27 + } + } + }, + "range": [ + 650, + 673 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 27 + } + } + }, + "right": { + "type": "Identifier", + "name": "identityProviders", + "range": [ + 676, + 693 + ], + "loc": { + "start": { + "line": 27, + "column": 30 + }, + "end": { + "line": 27, + "column": 47 + } + } + }, + "range": [ + 650, + 693 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 47 + } + } + }, + "range": [ + 650, + 694 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 48 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 699, + 703 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_token", + "range": [ + 704, + 710 + ], + "loc": { + "start": { + "line": 28, + "column": 9 + }, + "end": { + "line": 28, + "column": 15 + } + } + }, + "range": [ + 699, + 710 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 15 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 713, + 717 + ], + "loc": { + "start": { + "line": 28, + "column": 18 + }, + "end": { + "line": 28, + "column": 22 + } + } + }, + "range": [ + 699, + 717 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 22 + } + } + }, + "range": [ + 699, + 718 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 23 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 723, + 727 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_userProvider", + "range": [ + 728, + 741 + ], + "loc": { + "start": { + "line": 29, + "column": 9 + }, + "end": { + "line": 29, + "column": 22 + } + } + }, + "range": [ + 723, + 741 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 22 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 744, + 748 + ], + "loc": { + "start": { + "line": 29, + "column": 25 + }, + "end": { + "line": 29, + "column": 29 + } + } + }, + "range": [ + 723, + 748 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 29 + } + } + }, + "range": [ + 723, + 749 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 30 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 754, + 758 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_userProviderEndpoint", + "range": [ + 759, + 780 + ], + "loc": { + "start": { + "line": 30, + "column": 9 + }, + "end": { + "line": 30, + "column": 30 + } + } + }, + "range": [ + 754, + 780 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 30 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 783, + 787 + ], + "loc": { + "start": { + "line": 30, + "column": 33 + }, + "end": { + "line": 30, + "column": 37 + } + } + }, + "range": [ + 754, + 787 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 37 + } + } + }, + "range": [ + 754, + 788 + ], + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 38 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 794, + 798 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_onTokenAvailable", + "range": [ + 799, + 816 + ], + "loc": { + "start": { + "line": 32, + "column": 9 + }, + "end": { + "line": 32, + "column": 26 + } + } + }, + "range": [ + 794, + 816 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 26 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 819, + 821 + ], + "loc": { + "start": { + "line": 32, + "column": 29 + }, + "end": { + "line": 32, + "column": 31 + } + } + }, + "range": [ + 794, + 821 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 31 + } + } + }, + "range": [ + 794, + 822 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 32 + } + } + } + ], + "range": [ + 587, + 826 + ], + "loc": { + "start": { + "line": 23, + "column": 61 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 539, + 826 + ], + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 528, + 826 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 33, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Defines all class private properties\n *\n * @param {String} identityPoolId\n * @param {Object} identityProviders\n ", + "range": [ + 394, + 525 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Security}\n ", + "range": [ + 830, + 896 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 38, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "onTokenAvailable", + "range": [ + 899, + 915 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 39, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 916, + 924 + ], + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 27 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 932, + 936 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_onTokenAvailable", + "range": [ + 937, + 954 + ], + "loc": { + "start": { + "line": 40, + "column": 9 + }, + "end": { + "line": 40, + "column": 26 + } + } + }, + "range": [ + 932, + 954 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "push", + "range": [ + 955, + 959 + ], + "loc": { + "start": { + "line": 40, + "column": 27 + }, + "end": { + "line": 40, + "column": 31 + } + } + }, + "range": [ + 932, + 959 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 960, + 968 + ], + "loc": { + "start": { + "line": 40, + "column": 32 + }, + "end": { + "line": 40, + "column": 40 + } + } + } + ], + "range": [ + 932, + 969 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 41 + } + } + }, + "range": [ + 932, + 970 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 42 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 983, + 987 + ], + "loc": { + "start": { + "line": 42, + "column": 11 + }, + "end": { + "line": 42, + "column": 15 + } + } + }, + "range": [ + 976, + 988 + ], + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 16 + } + } + } + ], + "range": [ + 926, + 992 + ], + "loc": { + "start": { + "line": 39, + "column": 29 + }, + "end": { + "line": 43, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 915, + 992 + ], + "loc": { + "start": { + "line": 39, + "column": 18 + }, + "end": { + "line": 43, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 899, + 992 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 43, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Security}\n ", + "range": [ + 830, + 896 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 38, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 996, + 1028 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "PROVIDER_AMAZON", + "range": [ + 1042, + 1057 + ], + "loc": { + "start": { + "line": 48, + "column": 13 + }, + "end": { + "line": 48, + "column": 28 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "www.amazon.com", + "raw": "'www.amazon.com'", + "range": [ + 1073, + 1089 + ], + "loc": { + "start": { + "line": 49, + "column": 11 + }, + "end": { + "line": 49, + "column": 27 + } + } + }, + "range": [ + 1066, + 1090 + ], + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 28 + } + } + } + ], + "range": [ + 1060, + 1094 + ], + "loc": { + "start": { + "line": 48, + "column": 31 + }, + "end": { + "line": 50, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1057, + 1094 + ], + "loc": { + "start": { + "line": 48, + "column": 28 + }, + "end": { + "line": 50, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1031, + 1094 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 996, + 1028 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 1098, + 1130 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 54, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "PROVIDER_FACEBOOK", + "range": [ + 1144, + 1161 + ], + "loc": { + "start": { + "line": 55, + "column": 13 + }, + "end": { + "line": 55, + "column": 30 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "graph.facebook.com", + "raw": "'graph.facebook.com'", + "range": [ + 1177, + 1197 + ], + "loc": { + "start": { + "line": 56, + "column": 11 + }, + "end": { + "line": 56, + "column": 31 + } + } + }, + "range": [ + 1170, + 1198 + ], + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 56, + "column": 32 + } + } + } + ], + "range": [ + 1164, + 1202 + ], + "loc": { + "start": { + "line": 55, + "column": 33 + }, + "end": { + "line": 57, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1161, + 1202 + ], + "loc": { + "start": { + "line": 55, + "column": 30 + }, + "end": { + "line": 57, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1133, + 1202 + ], + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 57, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 1098, + 1130 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 54, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 1206, + 1238 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 61, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "PROVIDER_GOOGLE", + "range": [ + 1252, + 1267 + ], + "loc": { + "start": { + "line": 62, + "column": 13 + }, + "end": { + "line": 62, + "column": 28 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": "accounts.google.com", + "raw": "'accounts.google.com'", + "range": [ + 1283, + 1304 + ], + "loc": { + "start": { + "line": 63, + "column": 11 + }, + "end": { + "line": 63, + "column": 32 + } + } + }, + "range": [ + 1276, + 1305 + ], + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 33 + } + } + } + ], + "range": [ + 1270, + 1309 + ], + "loc": { + "start": { + "line": 62, + "column": 31 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1267, + 1309 + ], + "loc": { + "start": { + "line": 62, + "column": 28 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1241, + 1309 + ], + "loc": { + "start": { + "line": 62, + "column": 2 + }, + "end": { + "line": 64, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 1206, + 1238 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 61, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1313, + 1345 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 68, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "identityProviders", + "range": [ + 1352, + 1369 + ], + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 23 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1385, + 1389 + ], + "loc": { + "start": { + "line": 70, + "column": 11 + }, + "end": { + "line": 70, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityProviders", + "range": [ + 1390, + 1408 + ], + "loc": { + "start": { + "line": 70, + "column": 16 + }, + "end": { + "line": 70, + "column": 34 + } + } + }, + "range": [ + 1385, + 1408 + ], + "loc": { + "start": { + "line": 70, + "column": 11 + }, + "end": { + "line": 70, + "column": 34 + } + } + }, + "range": [ + 1378, + 1409 + ], + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 70, + "column": 35 + } + } + } + ], + "range": [ + 1372, + 1413 + ], + "loc": { + "start": { + "line": 69, + "column": 26 + }, + "end": { + "line": 71, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1369, + 1413 + ], + "loc": { + "start": { + "line": 69, + "column": 23 + }, + "end": { + "line": 71, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1348, + 1413 + ], + "loc": { + "start": { + "line": 69, + "column": 2 + }, + "end": { + "line": 71, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1313, + 1345 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 68, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1417, + 1449 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 75, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "identityPoolId", + "range": [ + 1456, + 1470 + ], + "loc": { + "start": { + "line": 76, + "column": 6 + }, + "end": { + "line": 76, + "column": 20 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1486, + 1490 + ], + "loc": { + "start": { + "line": 77, + "column": 11 + }, + "end": { + "line": 77, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityPoolId", + "range": [ + 1491, + 1506 + ], + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 31 + } + } + }, + "range": [ + 1486, + 1506 + ], + "loc": { + "start": { + "line": 77, + "column": 11 + }, + "end": { + "line": 77, + "column": 31 + } + } + }, + "range": [ + 1479, + 1507 + ], + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 77, + "column": 32 + } + } + } + ], + "range": [ + 1473, + 1511 + ], + "loc": { + "start": { + "line": 76, + "column": 23 + }, + "end": { + "line": 78, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1470, + 1511 + ], + "loc": { + "start": { + "line": 76, + "column": 20 + }, + "end": { + "line": 78, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1452, + 1511 + ], + "loc": { + "start": { + "line": 76, + "column": 2 + }, + "end": { + "line": 78, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1417, + 1449 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 75, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {UserProvider}\n ", + "range": [ + 1515, + 1553 + ], + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 82, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "userProvider", + "range": [ + 1560, + 1572 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1586, + 1590 + ], + "loc": { + "start": { + "line": 84, + "column": 9 + }, + "end": { + "line": 84, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "_userProvider", + "range": [ + 1591, + 1604 + ], + "loc": { + "start": { + "line": 84, + "column": 14 + }, + "end": { + "line": 84, + "column": 27 + } + } + }, + "range": [ + 1586, + 1604 + ], + "loc": { + "start": { + "line": 84, + "column": 9 + }, + "end": { + "line": 84, + "column": 27 + } + } + }, + "prefix": true, + "range": [ + 1585, + 1604 + ], + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 27 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1614, + 1618 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_userProvider", + "range": [ + 1619, + 1632 + ], + "loc": { + "start": { + "line": 85, + "column": 11 + }, + "end": { + "line": 85, + "column": 24 + } + } + }, + "range": [ + 1614, + 1632 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 24 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "UserProvider", + "range": [ + 1639, + 1651 + ], + "loc": { + "start": { + "line": 85, + "column": 31 + }, + "end": { + "line": 85, + "column": 43 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1652, + 1656 + ], + "loc": { + "start": { + "line": 85, + "column": 44 + }, + "end": { + "line": 85, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "name": "_userProviderEndpoint", + "range": [ + 1657, + 1678 + ], + "loc": { + "start": { + "line": 85, + "column": 49 + }, + "end": { + "line": 85, + "column": 70 + } + } + }, + "range": [ + 1652, + 1678 + ], + "loc": { + "start": { + "line": 85, + "column": 44 + }, + "end": { + "line": 85, + "column": 70 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1680, + 1684 + ], + "loc": { + "start": { + "line": 85, + "column": 72 + }, + "end": { + "line": 85, + "column": 76 + } + } + }, + "property": { + "type": "Identifier", + "name": "container", + "range": [ + 1685, + 1694 + ], + "loc": { + "start": { + "line": 85, + "column": 77 + }, + "end": { + "line": 85, + "column": 86 + } + } + }, + "range": [ + 1680, + 1694 + ], + "loc": { + "start": { + "line": 85, + "column": 72 + }, + "end": { + "line": 85, + "column": 86 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 1695, + 1698 + ], + "loc": { + "start": { + "line": 85, + "column": 87 + }, + "end": { + "line": 85, + "column": 90 + } + } + }, + "range": [ + 1680, + 1698 + ], + "loc": { + "start": { + "line": 85, + "column": 72 + }, + "end": { + "line": 85, + "column": 90 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "resource", + "raw": "'resource'", + "range": [ + 1699, + 1709 + ], + "loc": { + "start": { + "line": 85, + "column": 91 + }, + "end": { + "line": 85, + "column": 101 + } + } + } + ], + "range": [ + 1680, + 1710 + ], + "loc": { + "start": { + "line": 85, + "column": 72 + }, + "end": { + "line": 85, + "column": 102 + } + } + } + ], + "range": [ + 1635, + 1711 + ], + "loc": { + "start": { + "line": 85, + "column": 27 + }, + "end": { + "line": 85, + "column": 103 + } + } + }, + "range": [ + 1614, + 1711 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 103 + } + } + }, + "range": [ + 1614, + 1712 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 104 + } + } + } + ], + "range": [ + 1606, + 1718 + ], + "loc": { + "start": { + "line": 84, + "column": 29 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1581, + 1718 + ], + "loc": { + "start": { + "line": 84, + "column": 4 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1731, + 1735 + ], + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_userProvider", + "range": [ + 1736, + 1749 + ], + "loc": { + "start": { + "line": 88, + "column": 16 + }, + "end": { + "line": 88, + "column": 29 + } + } + }, + "range": [ + 1731, + 1749 + ], + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 29 + } + } + }, + "range": [ + 1724, + 1750 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 30 + } + } + } + ], + "range": [ + 1575, + 1754 + ], + "loc": { + "start": { + "line": 83, + "column": 21 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1572, + 1754 + ], + "loc": { + "start": { + "line": 83, + "column": 18 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1556, + 1754 + ], + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 89, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {UserProvider}\n ", + "range": [ + 1515, + 1553 + ], + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 82, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 1758, + 1863 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "boot", + "range": [ + 1866, + 1870 + ], + "loc": { + "start": { + "line": 97, + "column": 2 + }, + "end": { + "line": 97, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "kernel", + "range": [ + 1871, + 1877 + ], + "loc": { + "start": { + "line": 97, + "column": 7 + }, + "end": { + "line": 97, + "column": 13 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 1879, + 1887 + ], + "loc": { + "start": { + "line": 97, + "column": 15 + }, + "end": { + "line": 97, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "globals", + "range": [ + 1944, + 1951 + ], + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 15 + } + } + }, + "init": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 1954, + 1960 + ], + "loc": { + "start": { + "line": 99, + "column": 18 + }, + "end": { + "line": 99, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 1961, + 1967 + ], + "loc": { + "start": { + "line": 99, + "column": 25 + }, + "end": { + "line": 99, + "column": 31 + } + } + }, + "range": [ + 1954, + 1967 + ], + "loc": { + "start": { + "line": 99, + "column": 18 + }, + "end": { + "line": 99, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "globals", + "range": [ + 1968, + 1975 + ], + "loc": { + "start": { + "line": 99, + "column": 32 + }, + "end": { + "line": 99, + "column": 39 + } + } + }, + "range": [ + 1954, + 1975 + ], + "loc": { + "start": { + "line": 99, + "column": 18 + }, + "end": { + "line": 99, + "column": 39 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 1979, + 1985 + ], + "loc": { + "start": { + "line": 99, + "column": 43 + }, + "end": { + "line": 99, + "column": 49 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 1986, + 1992 + ], + "loc": { + "start": { + "line": 99, + "column": 50 + }, + "end": { + "line": 99, + "column": 56 + } + } + }, + "range": [ + 1979, + 1992 + ], + "loc": { + "start": { + "line": 99, + "column": 43 + }, + "end": { + "line": 99, + "column": 56 + } + } + }, + "range": [ + 1954, + 1992 + ], + "loc": { + "start": { + "line": 99, + "column": 18 + }, + "end": { + "line": 99, + "column": 56 + } + } + }, + "range": [ + 1944, + 1992 + ], + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 56 + } + } + } + ], + "kind": "let", + "range": [ + 1940, + 1993 + ], + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 57 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: remove this compatibility hook", + "range": [ + 1895, + 1935 + ], + "loc": { + "start": { + "line": 98, + "column": 4 + }, + "end": { + "line": 98, + "column": 44 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1999, + 2003 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityProviders", + "range": [ + 2004, + 2022 + ], + "loc": { + "start": { + "line": 101, + "column": 9 + }, + "end": { + "line": 101, + "column": 27 + } + } + }, + "range": [ + 1999, + 2022 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 27 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "globals", + "range": [ + 2025, + 2032 + ], + "loc": { + "start": { + "line": 101, + "column": 30 + }, + "end": { + "line": 101, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "security", + "range": [ + 2033, + 2041 + ], + "loc": { + "start": { + "line": 101, + "column": 38 + }, + "end": { + "line": 101, + "column": 46 + } + } + }, + "range": [ + 2025, + 2041 + ], + "loc": { + "start": { + "line": 101, + "column": 30 + }, + "end": { + "line": 101, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "identityProviders", + "range": [ + 2042, + 2059 + ], + "loc": { + "start": { + "line": 101, + "column": 47 + }, + "end": { + "line": 101, + "column": 64 + } + } + }, + "range": [ + 2025, + 2059 + ], + "loc": { + "start": { + "line": 101, + "column": 30 + }, + "end": { + "line": 101, + "column": 64 + } + } + }, + "range": [ + 1999, + 2059 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 64 + } + } + }, + "range": [ + 1999, + 2060 + ], + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 65 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2065, + 2069 + ], + "loc": { + "start": { + "line": 102, + "column": 4 + }, + "end": { + "line": 102, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_userProviderEndpoint", + "range": [ + 2070, + 2091 + ], + "loc": { + "start": { + "line": 102, + "column": 9 + }, + "end": { + "line": 102, + "column": 30 + } + } + }, + "range": [ + 2065, + 2091 + ], + "loc": { + "start": { + "line": 102, + "column": 4 + }, + "end": { + "line": 102, + "column": 30 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "globals", + "range": [ + 2094, + 2101 + ], + "loc": { + "start": { + "line": 102, + "column": 33 + }, + "end": { + "line": 102, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "security", + "range": [ + 2102, + 2110 + ], + "loc": { + "start": { + "line": 102, + "column": 41 + }, + "end": { + "line": 102, + "column": 49 + } + } + }, + "range": [ + 2094, + 2110 + ], + "loc": { + "start": { + "line": 102, + "column": 33 + }, + "end": { + "line": 102, + "column": 49 + } + } + }, + "property": { + "type": "Identifier", + "name": "userProviderEndpoint", + "range": [ + 2111, + 2131 + ], + "loc": { + "start": { + "line": 102, + "column": 50 + }, + "end": { + "line": 102, + "column": 70 + } + } + }, + "range": [ + 2094, + 2131 + ], + "loc": { + "start": { + "line": 102, + "column": 33 + }, + "end": { + "line": 102, + "column": 70 + } + } + }, + "range": [ + 2065, + 2131 + ], + "loc": { + "start": { + "line": 102, + "column": 4 + }, + "end": { + "line": 102, + "column": 70 + } + } + }, + "range": [ + 2065, + 2132 + ], + "loc": { + "start": { + "line": 102, + "column": 4 + }, + "end": { + "line": 102, + "column": 71 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2138, + 2142 + ], + "loc": { + "start": { + "line": 104, + "column": 4 + }, + "end": { + "line": 104, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityPoolId", + "range": [ + 2143, + 2158 + ], + "loc": { + "start": { + "line": 104, + "column": 9 + }, + "end": { + "line": 104, + "column": 24 + } + } + }, + "range": [ + 2138, + 2158 + ], + "loc": { + "start": { + "line": 104, + "column": 4 + }, + "end": { + "line": 104, + "column": 24 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 2161, + 2167 + ], + "loc": { + "start": { + "line": 104, + "column": 27 + }, + "end": { + "line": 104, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 2168, + 2174 + ], + "loc": { + "start": { + "line": 104, + "column": 34 + }, + "end": { + "line": 104, + "column": 40 + } + } + }, + "range": [ + 2161, + 2174 + ], + "loc": { + "start": { + "line": 104, + "column": 27 + }, + "end": { + "line": 104, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "identityPoolId", + "range": [ + 2175, + 2189 + ], + "loc": { + "start": { + "line": 104, + "column": 41 + }, + "end": { + "line": 104, + "column": 55 + } + } + }, + "range": [ + 2161, + 2189 + ], + "loc": { + "start": { + "line": 104, + "column": 27 + }, + "end": { + "line": 104, + "column": 55 + } + } + }, + "range": [ + 2138, + 2189 + ], + "loc": { + "start": { + "line": 104, + "column": 4 + }, + "end": { + "line": 104, + "column": 55 + } + } + }, + "range": [ + 2138, + 2190 + ], + "loc": { + "start": { + "line": 104, + "column": 4 + }, + "end": { + "line": 104, + "column": 56 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 2196, + 2204 + ], + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 106, + "column": 12 + } + } + }, + "arguments": [], + "range": [ + 2196, + 2206 + ], + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 106, + "column": 14 + } + } + }, + "range": [ + 2196, + 2207 + ], + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 106, + "column": 15 + } + } + } + ], + "range": [ + 1889, + 2211 + ], + "loc": { + "start": { + "line": 97, + "column": 25 + }, + "end": { + "line": 107, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1870, + 2211 + ], + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 107, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1866, + 2211 + ], + "loc": { + "start": { + "line": 97, + "column": 2 + }, + "end": { + "line": 107, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 1758, + 1863 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Object}\n ", + "range": [ + 2215, + 2273 + ], + "loc": { + "start": { + "line": 109, + "column": 2 + }, + "end": { + "line": 112, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "getLoginProviderConfig", + "range": [ + 2276, + 2298 + ], + "loc": { + "start": { + "line": 113, + "column": 2 + }, + "end": { + "line": 113, + "column": 24 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 2299, + 2303 + ], + "loc": { + "start": { + "line": 113, + "column": 25 + }, + "end": { + "line": 113, + "column": 29 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "providerName", + "range": [ + 2320, + 2332 + ], + "loc": { + "start": { + "line": 114, + "column": 13 + }, + "end": { + "line": 114, + "column": 25 + } + } + }, + "init": null, + "range": [ + 2320, + 2332 + ], + "loc": { + "start": { + "line": 114, + "column": 13 + }, + "end": { + "line": 114, + "column": 25 + } + } + } + ], + "kind": "let", + "range": [ + 2316, + 2332 + ], + "loc": { + "start": { + "line": 114, + "column": 9 + }, + "end": { + "line": 114, + "column": 25 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2336, + 2340 + ], + "loc": { + "start": { + "line": 114, + "column": 29 + }, + "end": { + "line": 114, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityProviders", + "range": [ + 2341, + 2359 + ], + "loc": { + "start": { + "line": 114, + "column": 34 + }, + "end": { + "line": 114, + "column": 52 + } + } + }, + "range": [ + 2336, + 2359 + ], + "loc": { + "start": { + "line": 114, + "column": 29 + }, + "end": { + "line": 114, + "column": 52 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2374, + 2378 + ], + "loc": { + "start": { + "line": 115, + "column": 11 + }, + "end": { + "line": 115, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityProviders", + "range": [ + 2379, + 2397 + ], + "loc": { + "start": { + "line": 115, + "column": 16 + }, + "end": { + "line": 115, + "column": 34 + } + } + }, + "range": [ + 2374, + 2397 + ], + "loc": { + "start": { + "line": 115, + "column": 11 + }, + "end": { + "line": 115, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 2398, + 2412 + ], + "loc": { + "start": { + "line": 115, + "column": 35 + }, + "end": { + "line": 115, + "column": 49 + } + } + }, + "range": [ + 2374, + 2412 + ], + "loc": { + "start": { + "line": 115, + "column": 11 + }, + "end": { + "line": 115, + "column": 49 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "providerName", + "range": [ + 2413, + 2425 + ], + "loc": { + "start": { + "line": 115, + "column": 50 + }, + "end": { + "line": 115, + "column": 62 + } + } + } + ], + "range": [ + 2374, + 2426 + ], + "loc": { + "start": { + "line": 115, + "column": 11 + }, + "end": { + "line": 115, + "column": 63 + } + } + }, + "prefix": true, + "range": [ + 2373, + 2426 + ], + "loc": { + "start": { + "line": 115, + "column": 10 + }, + "end": { + "line": 115, + "column": 63 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 2438, + 2447 + ], + "loc": { + "start": { + "line": 116, + "column": 8 + }, + "end": { + "line": 116, + "column": 17 + } + } + } + ], + "range": [ + 2428, + 2455 + ], + "loc": { + "start": { + "line": 115, + "column": 65 + }, + "end": { + "line": 117, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 2369, + 2455 + ], + "loc": { + "start": { + "line": 115, + "column": 6 + }, + "end": { + "line": 117, + "column": 7 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "Identifier", + "name": "providerName", + "range": [ + 2467, + 2479 + ], + "loc": { + "start": { + "line": 119, + "column": 10 + }, + "end": { + "line": 119, + "column": 22 + } + } + }, + "right": { + "type": "Identifier", + "name": "name", + "range": [ + 2484, + 2488 + ], + "loc": { + "start": { + "line": 119, + "column": 27 + }, + "end": { + "line": 119, + "column": 31 + } + } + }, + "range": [ + 2467, + 2488 + ], + "loc": { + "start": { + "line": 119, + "column": 10 + }, + "end": { + "line": 119, + "column": 31 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2507, + 2511 + ], + "loc": { + "start": { + "line": 120, + "column": 15 + }, + "end": { + "line": 120, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityProviders", + "range": [ + 2512, + 2530 + ], + "loc": { + "start": { + "line": 120, + "column": 20 + }, + "end": { + "line": 120, + "column": 38 + } + } + }, + "range": [ + 2507, + 2530 + ], + "loc": { + "start": { + "line": 120, + "column": 15 + }, + "end": { + "line": 120, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "providerName", + "range": [ + 2531, + 2543 + ], + "loc": { + "start": { + "line": 120, + "column": 39 + }, + "end": { + "line": 120, + "column": 51 + } + } + }, + "range": [ + 2507, + 2544 + ], + "loc": { + "start": { + "line": 120, + "column": 15 + }, + "end": { + "line": 120, + "column": 52 + } + } + }, + "range": [ + 2500, + 2545 + ], + "loc": { + "start": { + "line": 120, + "column": 8 + }, + "end": { + "line": 120, + "column": 53 + } + } + } + ], + "range": [ + 2490, + 2553 + ], + "loc": { + "start": { + "line": 119, + "column": 33 + }, + "end": { + "line": 121, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 2463, + 2553 + ], + "loc": { + "start": { + "line": 119, + "column": 6 + }, + "end": { + "line": 121, + "column": 7 + } + } + } + ], + "range": [ + 2361, + 2559 + ], + "loc": { + "start": { + "line": 114, + "column": 54 + }, + "end": { + "line": 122, + "column": 5 + } + } + }, + "each": false, + "range": [ + 2311, + 2559 + ], + "loc": { + "start": { + "line": 114, + "column": 4 + }, + "end": { + "line": 122, + "column": 5 + } + } + }, + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "MissingLoginProviderException", + "range": [ + 2575, + 2604 + ], + "loc": { + "start": { + "line": 124, + "column": 14 + }, + "end": { + "line": 124, + "column": 43 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 2605, + 2609 + ], + "loc": { + "start": { + "line": 124, + "column": 44 + }, + "end": { + "line": 124, + "column": 48 + } + } + } + ], + "range": [ + 2571, + 2610 + ], + "loc": { + "start": { + "line": 124, + "column": 10 + }, + "end": { + "line": 124, + "column": 49 + } + } + }, + "range": [ + 2565, + 2611 + ], + "loc": { + "start": { + "line": 124, + "column": 4 + }, + "end": { + "line": 124, + "column": 50 + } + } + } + ], + "range": [ + 2305, + 2615 + ], + "loc": { + "start": { + "line": 113, + "column": 31 + }, + "end": { + "line": 125, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2298, + 2615 + ], + "loc": { + "start": { + "line": 113, + "column": 24 + }, + "end": { + "line": 125, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2276, + 2615 + ], + "loc": { + "start": { + "line": 113, + "column": 2 + }, + "end": { + "line": 125, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Object}\n ", + "range": [ + 2215, + 2273 + ], + "loc": { + "start": { + "line": 109, + "column": 2 + }, + "end": { + "line": 112, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2619, + 2651 + ], + "loc": { + "start": { + "line": 127, + "column": 2 + }, + "end": { + "line": 129, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "amazonLoginProviderConfig", + "range": [ + 2658, + 2683 + ], + "loc": { + "start": { + "line": 130, + "column": 6 + }, + "end": { + "line": 130, + "column": 31 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2699, + 2703 + ], + "loc": { + "start": { + "line": 131, + "column": 11 + }, + "end": { + "line": 131, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "getLoginProviderConfig", + "range": [ + 2704, + 2726 + ], + "loc": { + "start": { + "line": 131, + "column": 16 + }, + "end": { + "line": 131, + "column": 38 + } + } + }, + "range": [ + 2699, + 2726 + ], + "loc": { + "start": { + "line": 131, + "column": 11 + }, + "end": { + "line": 131, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Security", + "range": [ + 2727, + 2735 + ], + "loc": { + "start": { + "line": 131, + "column": 39 + }, + "end": { + "line": 131, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "PROVIDER_AMAZON", + "range": [ + 2736, + 2751 + ], + "loc": { + "start": { + "line": 131, + "column": 48 + }, + "end": { + "line": 131, + "column": 63 + } + } + }, + "range": [ + 2727, + 2751 + ], + "loc": { + "start": { + "line": 131, + "column": 39 + }, + "end": { + "line": 131, + "column": 63 + } + } + } + ], + "range": [ + 2699, + 2752 + ], + "loc": { + "start": { + "line": 131, + "column": 11 + }, + "end": { + "line": 131, + "column": 64 + } + } + }, + "range": [ + 2692, + 2753 + ], + "loc": { + "start": { + "line": 131, + "column": 4 + }, + "end": { + "line": 131, + "column": 65 + } + } + } + ], + "range": [ + 2686, + 2757 + ], + "loc": { + "start": { + "line": 130, + "column": 34 + }, + "end": { + "line": 132, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2683, + 2757 + ], + "loc": { + "start": { + "line": 130, + "column": 31 + }, + "end": { + "line": 132, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2654, + 2757 + ], + "loc": { + "start": { + "line": 130, + "column": 2 + }, + "end": { + "line": 132, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2619, + 2651 + ], + "loc": { + "start": { + "line": 127, + "column": 2 + }, + "end": { + "line": 129, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2761, + 2793 + ], + "loc": { + "start": { + "line": 134, + "column": 2 + }, + "end": { + "line": 136, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "facebookLoginProviderConfig", + "range": [ + 2800, + 2827 + ], + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 33 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2843, + 2847 + ], + "loc": { + "start": { + "line": 138, + "column": 11 + }, + "end": { + "line": 138, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "getLoginProviderConfig", + "range": [ + 2848, + 2870 + ], + "loc": { + "start": { + "line": 138, + "column": 16 + }, + "end": { + "line": 138, + "column": 38 + } + } + }, + "range": [ + 2843, + 2870 + ], + "loc": { + "start": { + "line": 138, + "column": 11 + }, + "end": { + "line": 138, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Security", + "range": [ + 2871, + 2879 + ], + "loc": { + "start": { + "line": 138, + "column": 39 + }, + "end": { + "line": 138, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "PROVIDER_FACEBOOK", + "range": [ + 2880, + 2897 + ], + "loc": { + "start": { + "line": 138, + "column": 48 + }, + "end": { + "line": 138, + "column": 65 + } + } + }, + "range": [ + 2871, + 2897 + ], + "loc": { + "start": { + "line": 138, + "column": 39 + }, + "end": { + "line": 138, + "column": 65 + } + } + } + ], + "range": [ + 2843, + 2898 + ], + "loc": { + "start": { + "line": 138, + "column": 11 + }, + "end": { + "line": 138, + "column": 66 + } + } + }, + "range": [ + 2836, + 2899 + ], + "loc": { + "start": { + "line": 138, + "column": 4 + }, + "end": { + "line": 138, + "column": 67 + } + } + } + ], + "range": [ + 2830, + 2903 + ], + "loc": { + "start": { + "line": 137, + "column": 36 + }, + "end": { + "line": 139, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2827, + 2903 + ], + "loc": { + "start": { + "line": 137, + "column": 33 + }, + "end": { + "line": 139, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2796, + 2903 + ], + "loc": { + "start": { + "line": 137, + "column": 2 + }, + "end": { + "line": 139, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2761, + 2793 + ], + "loc": { + "start": { + "line": 134, + "column": 2 + }, + "end": { + "line": 136, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2907, + 2939 + ], + "loc": { + "start": { + "line": 141, + "column": 2 + }, + "end": { + "line": 143, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "googleLoginProviderConfig", + "range": [ + 2946, + 2971 + ], + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 31 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2987, + 2991 + ], + "loc": { + "start": { + "line": 145, + "column": 11 + }, + "end": { + "line": 145, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "getLoginProviderConfig", + "range": [ + 2992, + 3014 + ], + "loc": { + "start": { + "line": 145, + "column": 16 + }, + "end": { + "line": 145, + "column": 38 + } + } + }, + "range": [ + 2987, + 3014 + ], + "loc": { + "start": { + "line": 145, + "column": 11 + }, + "end": { + "line": 145, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Security", + "range": [ + 3015, + 3023 + ], + "loc": { + "start": { + "line": 145, + "column": 39 + }, + "end": { + "line": 145, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "name": "PROVIDER_GOOGLE", + "range": [ + 3024, + 3039 + ], + "loc": { + "start": { + "line": 145, + "column": 48 + }, + "end": { + "line": 145, + "column": 63 + } + } + }, + "range": [ + 3015, + 3039 + ], + "loc": { + "start": { + "line": 145, + "column": 39 + }, + "end": { + "line": 145, + "column": 63 + } + } + } + ], + "range": [ + 2987, + 3040 + ], + "loc": { + "start": { + "line": 145, + "column": 11 + }, + "end": { + "line": 145, + "column": 64 + } + } + }, + "range": [ + 2980, + 3041 + ], + "loc": { + "start": { + "line": 145, + "column": 4 + }, + "end": { + "line": 145, + "column": 65 + } + } + } + ], + "range": [ + 2974, + 3045 + ], + "loc": { + "start": { + "line": 144, + "column": 34 + }, + "end": { + "line": 146, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2971, + 3045 + ], + "loc": { + "start": { + "line": 144, + "column": 31 + }, + "end": { + "line": 146, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2942, + 3045 + ], + "loc": { + "start": { + "line": 144, + "column": 2 + }, + "end": { + "line": 146, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2907, + 2939 + ], + "loc": { + "start": { + "line": 141, + "column": 2 + }, + "end": { + "line": 143, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {null|Token}\n ", + "range": [ + 3049, + 3085 + ], + "loc": { + "start": { + "line": 148, + "column": 2 + }, + "end": { + "line": 150, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "token", + "range": [ + 3092, + 3097 + ], + "loc": { + "start": { + "line": 151, + "column": 6 + }, + "end": { + "line": 151, + "column": 11 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3113, + 3117 + ], + "loc": { + "start": { + "line": 152, + "column": 11 + }, + "end": { + "line": 152, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_token", + "range": [ + 3118, + 3124 + ], + "loc": { + "start": { + "line": 152, + "column": 16 + }, + "end": { + "line": 152, + "column": 22 + } + } + }, + "range": [ + 3113, + 3124 + ], + "loc": { + "start": { + "line": 152, + "column": 11 + }, + "end": { + "line": 152, + "column": 22 + } + } + }, + "range": [ + 3106, + 3125 + ], + "loc": { + "start": { + "line": 152, + "column": 4 + }, + "end": { + "line": 152, + "column": 23 + } + } + } + ], + "range": [ + 3100, + 3129 + ], + "loc": { + "start": { + "line": 151, + "column": 14 + }, + "end": { + "line": 153, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3097, + 3129 + ], + "loc": { + "start": { + "line": 151, + "column": 11 + }, + "end": { + "line": 153, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 3088, + 3129 + ], + "loc": { + "start": { + "line": 151, + "column": 2 + }, + "end": { + "line": 153, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {null|Token}\n ", + "range": [ + 3049, + 3085 + ], + "loc": { + "start": { + "line": 148, + "column": 2 + }, + "end": { + "line": 150, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} providerName\n * @param {String} userToken\n * @param {String} userId\n * @param {Function} callback\n * @returns {Token}\n ", + "range": [ + 3133, + 3289 + ], + "loc": { + "start": { + "line": 155, + "column": 2 + }, + "end": { + "line": 161, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "login", + "range": [ + 3292, + 3297 + ], + "loc": { + "start": { + "line": 162, + "column": 2 + }, + "end": { + "line": 162, + "column": 7 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "providerName", + "range": [ + 3298, + 3310 + ], + "loc": { + "start": { + "line": 162, + "column": 8 + }, + "end": { + "line": 162, + "column": 20 + } + } + }, + { + "type": "Identifier", + "name": "userToken", + "range": [ + 3312, + 3321 + ], + "loc": { + "start": { + "line": 162, + "column": 22 + }, + "end": { + "line": 162, + "column": 31 + } + } + }, + { + "type": "Identifier", + "name": "userId", + "range": [ + 3323, + 3329 + ], + "loc": { + "start": { + "line": 162, + "column": 33 + }, + "end": { + "line": 162, + "column": 39 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 3331, + 3339 + ], + "loc": { + "start": { + "line": 162, + "column": 41 + }, + "end": { + "line": 162, + "column": 49 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3387, + 3391 + ], + "loc": { + "start": { + "line": 164, + "column": 4 + }, + "end": { + "line": 164, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "getLoginProviderConfig", + "range": [ + 3392, + 3414 + ], + "loc": { + "start": { + "line": 164, + "column": 9 + }, + "end": { + "line": 164, + "column": 31 + } + } + }, + "range": [ + 3387, + 3414 + ], + "loc": { + "start": { + "line": 164, + "column": 4 + }, + "end": { + "line": 164, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "providerName", + "range": [ + 3415, + 3427 + ], + "loc": { + "start": { + "line": 164, + "column": 32 + }, + "end": { + "line": 164, + "column": 44 + } + } + } + ], + "range": [ + 3387, + 3428 + ], + "loc": { + "start": { + "line": 164, + "column": 4 + }, + "end": { + "line": 164, + "column": 45 + } + } + }, + "range": [ + 3387, + 3429 + ], + "loc": { + "start": { + "line": 164, + "column": 4 + }, + "end": { + "line": 164, + "column": 46 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " check if providerName is defined", + "range": [ + 3347, + 3382 + ], + "loc": { + "start": { + "line": 163, + "column": 4 + }, + "end": { + "line": 163, + "column": 39 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "TokenImplementation", + "range": [ + 3439, + 3458 + ], + "loc": { + "start": { + "line": 166, + "column": 8 + }, + "end": { + "line": 166, + "column": 27 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3461, + 3465 + ], + "loc": { + "start": { + "line": 166, + "column": 30 + }, + "end": { + "line": 166, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "_localBackend", + "range": [ + 3466, + 3479 + ], + "loc": { + "start": { + "line": 166, + "column": 35 + }, + "end": { + "line": 166, + "column": 48 + } + } + }, + "range": [ + 3461, + 3479 + ], + "loc": { + "start": { + "line": 166, + "column": 30 + }, + "end": { + "line": 166, + "column": 48 + } + } + }, + "consequent": { + "type": "Identifier", + "name": "LocalToken", + "range": [ + 3482, + 3492 + ], + "loc": { + "start": { + "line": 166, + "column": 51 + }, + "end": { + "line": 166, + "column": 61 + } + } + }, + "alternate": { + "type": "Identifier", + "name": "Token", + "range": [ + 3495, + 3500 + ], + "loc": { + "start": { + "line": 166, + "column": 64 + }, + "end": { + "line": 166, + "column": 69 + } + } + }, + "range": [ + 3461, + 3500 + ], + "loc": { + "start": { + "line": 166, + "column": 30 + }, + "end": { + "line": 166, + "column": 69 + } + } + }, + "range": [ + 3439, + 3500 + ], + "loc": { + "start": { + "line": 166, + "column": 8 + }, + "end": { + "line": 166, + "column": 69 + } + } + } + ], + "kind": "let", + "range": [ + 3435, + 3501 + ], + "loc": { + "start": { + "line": 166, + "column": 4 + }, + "end": { + "line": 166, + "column": 70 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3507, + 3511 + ], + "loc": { + "start": { + "line": 168, + "column": 4 + }, + "end": { + "line": 168, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_token", + "range": [ + 3512, + 3518 + ], + "loc": { + "start": { + "line": 168, + "column": 9 + }, + "end": { + "line": 168, + "column": 15 + } + } + }, + "range": [ + 3507, + 3518 + ], + "loc": { + "start": { + "line": 168, + "column": 4 + }, + "end": { + "line": 168, + "column": 15 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "TokenImplementation", + "range": [ + 3525, + 3544 + ], + "loc": { + "start": { + "line": 168, + "column": 22 + }, + "end": { + "line": 168, + "column": 41 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3545, + 3549 + ], + "loc": { + "start": { + "line": 168, + "column": 42 + }, + "end": { + "line": 168, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityPoolId", + "range": [ + 3550, + 3565 + ], + "loc": { + "start": { + "line": 168, + "column": 47 + }, + "end": { + "line": 168, + "column": 62 + } + } + }, + "range": [ + 3545, + 3565 + ], + "loc": { + "start": { + "line": 168, + "column": 42 + }, + "end": { + "line": 168, + "column": 62 + } + } + }, + { + "type": "Identifier", + "name": "providerName", + "range": [ + 3567, + 3579 + ], + "loc": { + "start": { + "line": 168, + "column": 64 + }, + "end": { + "line": 168, + "column": 76 + } + } + }, + { + "type": "Identifier", + "name": "userToken", + "range": [ + 3581, + 3590 + ], + "loc": { + "start": { + "line": 168, + "column": 78 + }, + "end": { + "line": 168, + "column": 87 + } + } + }, + { + "type": "Identifier", + "name": "userId", + "range": [ + 3592, + 3598 + ], + "loc": { + "start": { + "line": 168, + "column": 89 + }, + "end": { + "line": 168, + "column": 95 + } + } + } + ], + "range": [ + 3521, + 3599 + ], + "loc": { + "start": { + "line": 168, + "column": 18 + }, + "end": { + "line": 168, + "column": 96 + } + } + }, + "range": [ + 3507, + 3599 + ], + "loc": { + "start": { + "line": 168, + "column": 4 + }, + "end": { + "line": 168, + "column": 96 + } + } + }, + "range": [ + 3507, + 3600 + ], + "loc": { + "start": { + "line": 168, + "column": 4 + }, + "end": { + "line": 168, + "column": 97 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3606, + 3610 + ], + "loc": { + "start": { + "line": 170, + "column": 4 + }, + "end": { + "line": 170, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_token", + "range": [ + 3611, + 3617 + ], + "loc": { + "start": { + "line": 170, + "column": 9 + }, + "end": { + "line": 170, + "column": 15 + } + } + }, + "range": [ + 3606, + 3617 + ], + "loc": { + "start": { + "line": 170, + "column": 4 + }, + "end": { + "line": 170, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "userProvider", + "range": [ + 3618, + 3630 + ], + "loc": { + "start": { + "line": 170, + "column": 16 + }, + "end": { + "line": 170, + "column": 28 + } + } + }, + "range": [ + 3606, + 3630 + ], + "loc": { + "start": { + "line": 170, + "column": 4 + }, + "end": { + "line": 170, + "column": 28 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3633, + 3637 + ], + "loc": { + "start": { + "line": 170, + "column": 31 + }, + "end": { + "line": 170, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "userProvider", + "range": [ + 3638, + 3650 + ], + "loc": { + "start": { + "line": 170, + "column": 36 + }, + "end": { + "line": 170, + "column": 48 + } + } + }, + "range": [ + 3633, + 3650 + ], + "loc": { + "start": { + "line": 170, + "column": 31 + }, + "end": { + "line": 170, + "column": 48 + } + } + }, + "range": [ + 3606, + 3650 + ], + "loc": { + "start": { + "line": 170, + "column": 4 + }, + "end": { + "line": 170, + "column": 48 + } + } + }, + "range": [ + 3606, + 3651 + ], + "loc": { + "start": { + "line": 170, + "column": 4 + }, + "end": { + "line": 170, + "column": 49 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3657, + 3661 + ], + "loc": { + "start": { + "line": 172, + "column": 4 + }, + "end": { + "line": 172, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_token", + "range": [ + 3662, + 3668 + ], + "loc": { + "start": { + "line": 172, + "column": 9 + }, + "end": { + "line": 172, + "column": 15 + } + } + }, + "range": [ + 3657, + 3668 + ], + "loc": { + "start": { + "line": 172, + "column": 4 + }, + "end": { + "line": 172, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "getCredentials", + "range": [ + 3669, + 3683 + ], + "loc": { + "start": { + "line": 172, + "column": 16 + }, + "end": { + "line": 172, + "column": 30 + } + } + }, + "range": [ + 3657, + 3683 + ], + "loc": { + "start": { + "line": 172, + "column": 4 + }, + "end": { + "line": 172, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 3688, + 3692 + ], + "loc": { + "start": { + "line": 172, + "column": 35 + }, + "end": { + "line": 172, + "column": 39 + } + } + }, + "range": [ + 3685, + 3692 + ], + "loc": { + "start": { + "line": 172, + "column": 32 + }, + "end": { + "line": 172, + "column": 39 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "hookKey", + "range": [ + 3714, + 3721 + ], + "loc": { + "start": { + "line": 173, + "column": 15 + }, + "end": { + "line": 173, + "column": 22 + } + } + }, + "init": null, + "range": [ + 3714, + 3721 + ], + "loc": { + "start": { + "line": 173, + "column": 15 + }, + "end": { + "line": 173, + "column": 22 + } + } + } + ], + "kind": "let", + "range": [ + 3710, + 3721 + ], + "loc": { + "start": { + "line": 173, + "column": 11 + }, + "end": { + "line": 173, + "column": 22 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3725, + 3729 + ], + "loc": { + "start": { + "line": 173, + "column": 26 + }, + "end": { + "line": 173, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "_onTokenAvailable", + "range": [ + 3730, + 3747 + ], + "loc": { + "start": { + "line": 173, + "column": 31 + }, + "end": { + "line": 173, + "column": 48 + } + } + }, + "range": [ + 3725, + 3747 + ], + "loc": { + "start": { + "line": 173, + "column": 26 + }, + "end": { + "line": 173, + "column": 48 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3764, + 3768 + ], + "loc": { + "start": { + "line": 174, + "column": 13 + }, + "end": { + "line": 174, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_onTokenAvailable", + "range": [ + 3769, + 3786 + ], + "loc": { + "start": { + "line": 174, + "column": 18 + }, + "end": { + "line": 174, + "column": 35 + } + } + }, + "range": [ + 3764, + 3786 + ], + "loc": { + "start": { + "line": 174, + "column": 13 + }, + "end": { + "line": 174, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 3787, + 3801 + ], + "loc": { + "start": { + "line": 174, + "column": 36 + }, + "end": { + "line": 174, + "column": 50 + } + } + }, + "range": [ + 3764, + 3801 + ], + "loc": { + "start": { + "line": 174, + "column": 13 + }, + "end": { + "line": 174, + "column": 50 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "hookKey", + "range": [ + 3802, + 3809 + ], + "loc": { + "start": { + "line": 174, + "column": 51 + }, + "end": { + "line": 174, + "column": 58 + } + } + } + ], + "range": [ + 3764, + 3810 + ], + "loc": { + "start": { + "line": 174, + "column": 13 + }, + "end": { + "line": 174, + "column": 59 + } + } + }, + "prefix": true, + "range": [ + 3763, + 3810 + ], + "loc": { + "start": { + "line": 174, + "column": 12 + }, + "end": { + "line": 174, + "column": 59 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 3824, + 3833 + ], + "loc": { + "start": { + "line": 175, + "column": 10 + }, + "end": { + "line": 175, + "column": 19 + } + } + } + ], + "range": [ + 3812, + 3843 + ], + "loc": { + "start": { + "line": 174, + "column": 61 + }, + "end": { + "line": 176, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 3759, + 3843 + ], + "loc": { + "start": { + "line": 174, + "column": 8 + }, + "end": { + "line": 176, + "column": 9 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3853, + 3857 + ], + "loc": { + "start": { + "line": 178, + "column": 8 + }, + "end": { + "line": 178, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_onTokenAvailable", + "range": [ + 3858, + 3875 + ], + "loc": { + "start": { + "line": 178, + "column": 13 + }, + "end": { + "line": 178, + "column": 30 + } + } + }, + "range": [ + 3853, + 3875 + ], + "loc": { + "start": { + "line": 178, + "column": 8 + }, + "end": { + "line": 178, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "hookKey", + "range": [ + 3876, + 3883 + ], + "loc": { + "start": { + "line": 178, + "column": 31 + }, + "end": { + "line": 178, + "column": 38 + } + } + }, + "range": [ + 3853, + 3884 + ], + "loc": { + "start": { + "line": 178, + "column": 8 + }, + "end": { + "line": 178, + "column": 39 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3885, + 3889 + ], + "loc": { + "start": { + "line": 178, + "column": 40 + }, + "end": { + "line": 178, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "_token", + "range": [ + 3890, + 3896 + ], + "loc": { + "start": { + "line": 178, + "column": 45 + }, + "end": { + "line": 178, + "column": 51 + } + } + }, + "range": [ + 3885, + 3896 + ], + "loc": { + "start": { + "line": 178, + "column": 40 + }, + "end": { + "line": 178, + "column": 51 + } + } + } + ], + "range": [ + 3853, + 3897 + ], + "loc": { + "start": { + "line": 178, + "column": 8 + }, + "end": { + "line": 178, + "column": 52 + } + } + }, + "range": [ + 3853, + 3898 + ], + "loc": { + "start": { + "line": 178, + "column": 8 + }, + "end": { + "line": 178, + "column": 53 + } + } + } + ], + "range": [ + 3749, + 3906 + ], + "loc": { + "start": { + "line": 173, + "column": 50 + }, + "end": { + "line": 179, + "column": 7 + } + } + }, + "each": false, + "range": [ + 3705, + 3906 + ], + "loc": { + "start": { + "line": 173, + "column": 6 + }, + "end": { + "line": 179, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 3914, + 3922 + ], + "loc": { + "start": { + "line": 181, + "column": 6 + }, + "end": { + "line": 181, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 3926, + 3930 + ], + "loc": { + "start": { + "line": 181, + "column": 18 + }, + "end": { + "line": 181, + "column": 22 + } + } + }, + "range": [ + 3923, + 3930 + ], + "loc": { + "start": { + "line": 181, + "column": 15 + }, + "end": { + "line": 181, + "column": 22 + } + } + } + ], + "range": [ + 3914, + 3931 + ], + "loc": { + "start": { + "line": 181, + "column": 6 + }, + "end": { + "line": 181, + "column": 23 + } + } + }, + "range": [ + 3914, + 3932 + ], + "loc": { + "start": { + "line": 181, + "column": 6 + }, + "end": { + "line": 181, + "column": 24 + } + } + } + ], + "range": [ + 3697, + 3938 + ], + "loc": { + "start": { + "line": 172, + "column": 44 + }, + "end": { + "line": 182, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3684, + 3938 + ], + "loc": { + "start": { + "line": 172, + "column": 31 + }, + "end": { + "line": 182, + "column": 5 + } + } + } + ], + "range": [ + 3657, + 3939 + ], + "loc": { + "start": { + "line": 172, + "column": 4 + }, + "end": { + "line": 182, + "column": 6 + } + } + }, + "range": [ + 3657, + 3940 + ], + "loc": { + "start": { + "line": 172, + "column": 4 + }, + "end": { + "line": 182, + "column": 7 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3953, + 3957 + ], + "loc": { + "start": { + "line": 184, + "column": 11 + }, + "end": { + "line": 184, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_token", + "range": [ + 3958, + 3964 + ], + "loc": { + "start": { + "line": 184, + "column": 16 + }, + "end": { + "line": 184, + "column": 22 + } + } + }, + "range": [ + 3953, + 3964 + ], + "loc": { + "start": { + "line": 184, + "column": 11 + }, + "end": { + "line": 184, + "column": 22 + } + } + }, + "range": [ + 3946, + 3965 + ], + "loc": { + "start": { + "line": 184, + "column": 4 + }, + "end": { + "line": 184, + "column": 23 + } + } + } + ], + "range": [ + 3341, + 3969 + ], + "loc": { + "start": { + "line": 162, + "column": 51 + }, + "end": { + "line": 185, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3297, + 3969 + ], + "loc": { + "start": { + "line": 162, + "column": 7 + }, + "end": { + "line": 185, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 3292, + 3969 + ], + "loc": { + "start": { + "line": 162, + "column": 2 + }, + "end": { + "line": 185, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} providerName\n * @param {String} userToken\n * @param {String} userId\n * @param {Function} callback\n * @returns {Token}\n ", + "range": [ + 3133, + 3289 + ], + "loc": { + "start": { + "line": 155, + "column": 2 + }, + "end": { + "line": 161, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Token}\n ", + "range": [ + 3973, + 4036 + ], + "loc": { + "start": { + "line": 187, + "column": 2 + }, + "end": { + "line": 190, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "anonymousLogin", + "range": [ + 4039, + 4053 + ], + "loc": { + "start": { + "line": 191, + "column": 2 + }, + "end": { + "line": 191, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 4054, + 4062 + ], + "loc": { + "start": { + "line": 191, + "column": 17 + }, + "end": { + "line": 191, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "TokenImplementation", + "range": [ + 4074, + 4093 + ], + "loc": { + "start": { + "line": 192, + "column": 8 + }, + "end": { + "line": 192, + "column": 27 + } + } + }, + "init": { + "type": "ConditionalExpression", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4096, + 4100 + ], + "loc": { + "start": { + "line": 192, + "column": 30 + }, + "end": { + "line": 192, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "_localBackend", + "range": [ + 4101, + 4114 + ], + "loc": { + "start": { + "line": 192, + "column": 35 + }, + "end": { + "line": 192, + "column": 48 + } + } + }, + "range": [ + 4096, + 4114 + ], + "loc": { + "start": { + "line": 192, + "column": 30 + }, + "end": { + "line": 192, + "column": 48 + } + } + }, + "consequent": { + "type": "Identifier", + "name": "LocalToken", + "range": [ + 4117, + 4127 + ], + "loc": { + "start": { + "line": 192, + "column": 51 + }, + "end": { + "line": 192, + "column": 61 + } + } + }, + "alternate": { + "type": "Identifier", + "name": "Token", + "range": [ + 4130, + 4135 + ], + "loc": { + "start": { + "line": 192, + "column": 64 + }, + "end": { + "line": 192, + "column": 69 + } + } + }, + "range": [ + 4096, + 4135 + ], + "loc": { + "start": { + "line": 192, + "column": 30 + }, + "end": { + "line": 192, + "column": 69 + } + } + }, + "range": [ + 4074, + 4135 + ], + "loc": { + "start": { + "line": 192, + "column": 8 + }, + "end": { + "line": 192, + "column": 69 + } + } + } + ], + "kind": "let", + "range": [ + 4070, + 4136 + ], + "loc": { + "start": { + "line": 192, + "column": 4 + }, + "end": { + "line": 192, + "column": 70 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4142, + 4146 + ], + "loc": { + "start": { + "line": 194, + "column": 4 + }, + "end": { + "line": 194, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_token", + "range": [ + 4147, + 4153 + ], + "loc": { + "start": { + "line": 194, + "column": 9 + }, + "end": { + "line": 194, + "column": 15 + } + } + }, + "range": [ + 4142, + 4153 + ], + "loc": { + "start": { + "line": 194, + "column": 4 + }, + "end": { + "line": 194, + "column": 15 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "TokenImplementation", + "range": [ + 4160, + 4179 + ], + "loc": { + "start": { + "line": 194, + "column": 22 + }, + "end": { + "line": 194, + "column": 41 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4180, + 4184 + ], + "loc": { + "start": { + "line": 194, + "column": 42 + }, + "end": { + "line": 194, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityPoolId", + "range": [ + 4185, + 4200 + ], + "loc": { + "start": { + "line": 194, + "column": 47 + }, + "end": { + "line": 194, + "column": 62 + } + } + }, + "range": [ + 4180, + 4200 + ], + "loc": { + "start": { + "line": 194, + "column": 42 + }, + "end": { + "line": 194, + "column": 62 + } + } + } + ], + "range": [ + 4156, + 4201 + ], + "loc": { + "start": { + "line": 194, + "column": 18 + }, + "end": { + "line": 194, + "column": 63 + } + } + }, + "range": [ + 4142, + 4201 + ], + "loc": { + "start": { + "line": 194, + "column": 4 + }, + "end": { + "line": 194, + "column": 63 + } + } + }, + "range": [ + 4142, + 4202 + ], + "loc": { + "start": { + "line": 194, + "column": 4 + }, + "end": { + "line": 194, + "column": 64 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4208, + 4212 + ], + "loc": { + "start": { + "line": 196, + "column": 4 + }, + "end": { + "line": 196, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_token", + "range": [ + 4213, + 4219 + ], + "loc": { + "start": { + "line": 196, + "column": 9 + }, + "end": { + "line": 196, + "column": 15 + } + } + }, + "range": [ + 4208, + 4219 + ], + "loc": { + "start": { + "line": 196, + "column": 4 + }, + "end": { + "line": 196, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "userProvider", + "range": [ + 4220, + 4232 + ], + "loc": { + "start": { + "line": 196, + "column": 16 + }, + "end": { + "line": 196, + "column": 28 + } + } + }, + "range": [ + 4208, + 4232 + ], + "loc": { + "start": { + "line": 196, + "column": 4 + }, + "end": { + "line": 196, + "column": 28 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4235, + 4239 + ], + "loc": { + "start": { + "line": 196, + "column": 31 + }, + "end": { + "line": 196, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "userProvider", + "range": [ + 4240, + 4252 + ], + "loc": { + "start": { + "line": 196, + "column": 36 + }, + "end": { + "line": 196, + "column": 48 + } + } + }, + "range": [ + 4235, + 4252 + ], + "loc": { + "start": { + "line": 196, + "column": 31 + }, + "end": { + "line": 196, + "column": 48 + } + } + }, + "range": [ + 4208, + 4252 + ], + "loc": { + "start": { + "line": 196, + "column": 4 + }, + "end": { + "line": 196, + "column": 48 + } + } + }, + "range": [ + 4208, + 4253 + ], + "loc": { + "start": { + "line": 196, + "column": 4 + }, + "end": { + "line": 196, + "column": 49 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4259, + 4263 + ], + "loc": { + "start": { + "line": 198, + "column": 4 + }, + "end": { + "line": 198, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_token", + "range": [ + 4264, + 4270 + ], + "loc": { + "start": { + "line": 198, + "column": 9 + }, + "end": { + "line": 198, + "column": 15 + } + } + }, + "range": [ + 4259, + 4270 + ], + "loc": { + "start": { + "line": 198, + "column": 4 + }, + "end": { + "line": 198, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "getCredentials", + "range": [ + 4271, + 4285 + ], + "loc": { + "start": { + "line": 198, + "column": 16 + }, + "end": { + "line": 198, + "column": 30 + } + } + }, + "range": [ + 4259, + 4285 + ], + "loc": { + "start": { + "line": 198, + "column": 4 + }, + "end": { + "line": 198, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 4290, + 4294 + ], + "loc": { + "start": { + "line": 198, + "column": 35 + }, + "end": { + "line": 198, + "column": 39 + } + } + }, + "range": [ + 4287, + 4294 + ], + "loc": { + "start": { + "line": 198, + "column": 32 + }, + "end": { + "line": 198, + "column": 39 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "hookKey", + "range": [ + 4316, + 4323 + ], + "loc": { + "start": { + "line": 199, + "column": 15 + }, + "end": { + "line": 199, + "column": 22 + } + } + }, + "init": null, + "range": [ + 4316, + 4323 + ], + "loc": { + "start": { + "line": 199, + "column": 15 + }, + "end": { + "line": 199, + "column": 22 + } + } + } + ], + "kind": "let", + "range": [ + 4312, + 4323 + ], + "loc": { + "start": { + "line": 199, + "column": 11 + }, + "end": { + "line": 199, + "column": 22 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4327, + 4331 + ], + "loc": { + "start": { + "line": 199, + "column": 26 + }, + "end": { + "line": 199, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "_onTokenAvailable", + "range": [ + 4332, + 4349 + ], + "loc": { + "start": { + "line": 199, + "column": 31 + }, + "end": { + "line": 199, + "column": 48 + } + } + }, + "range": [ + 4327, + 4349 + ], + "loc": { + "start": { + "line": 199, + "column": 26 + }, + "end": { + "line": 199, + "column": 48 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4366, + 4370 + ], + "loc": { + "start": { + "line": 200, + "column": 13 + }, + "end": { + "line": 200, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_onTokenAvailable", + "range": [ + 4371, + 4388 + ], + "loc": { + "start": { + "line": 200, + "column": 18 + }, + "end": { + "line": 200, + "column": 35 + } + } + }, + "range": [ + 4366, + 4388 + ], + "loc": { + "start": { + "line": 200, + "column": 13 + }, + "end": { + "line": 200, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 4389, + 4403 + ], + "loc": { + "start": { + "line": 200, + "column": 36 + }, + "end": { + "line": 200, + "column": 50 + } + } + }, + "range": [ + 4366, + 4403 + ], + "loc": { + "start": { + "line": 200, + "column": 13 + }, + "end": { + "line": 200, + "column": 50 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "hookKey", + "range": [ + 4404, + 4411 + ], + "loc": { + "start": { + "line": 200, + "column": 51 + }, + "end": { + "line": 200, + "column": 58 + } + } + } + ], + "range": [ + 4366, + 4412 + ], + "loc": { + "start": { + "line": 200, + "column": 13 + }, + "end": { + "line": 200, + "column": 59 + } + } + }, + "prefix": true, + "range": [ + 4365, + 4412 + ], + "loc": { + "start": { + "line": 200, + "column": 12 + }, + "end": { + "line": 200, + "column": 59 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 4426, + 4435 + ], + "loc": { + "start": { + "line": 201, + "column": 10 + }, + "end": { + "line": 201, + "column": 19 + } + } + } + ], + "range": [ + 4414, + 4445 + ], + "loc": { + "start": { + "line": 200, + "column": 61 + }, + "end": { + "line": 202, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 4361, + 4445 + ], + "loc": { + "start": { + "line": 200, + "column": 8 + }, + "end": { + "line": 202, + "column": 9 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4455, + 4459 + ], + "loc": { + "start": { + "line": 204, + "column": 8 + }, + "end": { + "line": 204, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_onTokenAvailable", + "range": [ + 4460, + 4477 + ], + "loc": { + "start": { + "line": 204, + "column": 13 + }, + "end": { + "line": 204, + "column": 30 + } + } + }, + "range": [ + 4455, + 4477 + ], + "loc": { + "start": { + "line": 204, + "column": 8 + }, + "end": { + "line": 204, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "hookKey", + "range": [ + 4478, + 4485 + ], + "loc": { + "start": { + "line": 204, + "column": 31 + }, + "end": { + "line": 204, + "column": 38 + } + } + }, + "range": [ + 4455, + 4486 + ], + "loc": { + "start": { + "line": 204, + "column": 8 + }, + "end": { + "line": 204, + "column": 39 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4487, + 4491 + ], + "loc": { + "start": { + "line": 204, + "column": 40 + }, + "end": { + "line": 204, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "_token", + "range": [ + 4492, + 4498 + ], + "loc": { + "start": { + "line": 204, + "column": 45 + }, + "end": { + "line": 204, + "column": 51 + } + } + }, + "range": [ + 4487, + 4498 + ], + "loc": { + "start": { + "line": 204, + "column": 40 + }, + "end": { + "line": 204, + "column": 51 + } + } + } + ], + "range": [ + 4455, + 4499 + ], + "loc": { + "start": { + "line": 204, + "column": 8 + }, + "end": { + "line": 204, + "column": 52 + } + } + }, + "range": [ + 4455, + 4500 + ], + "loc": { + "start": { + "line": 204, + "column": 8 + }, + "end": { + "line": 204, + "column": 53 + } + } + } + ], + "range": [ + 4351, + 4508 + ], + "loc": { + "start": { + "line": 199, + "column": 50 + }, + "end": { + "line": 205, + "column": 7 + } + } + }, + "each": false, + "range": [ + 4307, + 4508 + ], + "loc": { + "start": { + "line": 199, + "column": 6 + }, + "end": { + "line": 205, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 4516, + 4524 + ], + "loc": { + "start": { + "line": 207, + "column": 6 + }, + "end": { + "line": 207, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 4528, + 4532 + ], + "loc": { + "start": { + "line": 207, + "column": 18 + }, + "end": { + "line": 207, + "column": 22 + } + } + }, + "range": [ + 4525, + 4532 + ], + "loc": { + "start": { + "line": 207, + "column": 15 + }, + "end": { + "line": 207, + "column": 22 + } + } + } + ], + "range": [ + 4516, + 4533 + ], + "loc": { + "start": { + "line": 207, + "column": 6 + }, + "end": { + "line": 207, + "column": 23 + } + } + }, + "range": [ + 4516, + 4534 + ], + "loc": { + "start": { + "line": 207, + "column": 6 + }, + "end": { + "line": 207, + "column": 24 + } + } + } + ], + "range": [ + 4299, + 4540 + ], + "loc": { + "start": { + "line": 198, + "column": 44 + }, + "end": { + "line": 208, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4286, + 4540 + ], + "loc": { + "start": { + "line": 198, + "column": 31 + }, + "end": { + "line": 208, + "column": 5 + } + } + } + ], + "range": [ + 4259, + 4541 + ], + "loc": { + "start": { + "line": 198, + "column": 4 + }, + "end": { + "line": 208, + "column": 6 + } + } + }, + "range": [ + 4259, + 4542 + ], + "loc": { + "start": { + "line": 198, + "column": 4 + }, + "end": { + "line": 208, + "column": 7 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 4555, + 4559 + ], + "loc": { + "start": { + "line": 210, + "column": 11 + }, + "end": { + "line": 210, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_token", + "range": [ + 4560, + 4566 + ], + "loc": { + "start": { + "line": 210, + "column": 16 + }, + "end": { + "line": 210, + "column": 22 + } + } + }, + "range": [ + 4555, + 4566 + ], + "loc": { + "start": { + "line": 210, + "column": 11 + }, + "end": { + "line": 210, + "column": 22 + } + } + }, + "range": [ + 4548, + 4567 + ], + "loc": { + "start": { + "line": 210, + "column": 4 + }, + "end": { + "line": 210, + "column": 23 + } + } + } + ], + "range": [ + 4064, + 4571 + ], + "loc": { + "start": { + "line": 191, + "column": 27 + }, + "end": { + "line": 211, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 4053, + 4571 + ], + "loc": { + "start": { + "line": 191, + "column": 16 + }, + "end": { + "line": 211, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 4039, + 4571 + ], + "loc": { + "start": { + "line": 191, + "column": 2 + }, + "end": { + "line": 211, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Token}\n ", + "range": [ + 3973, + 4036 + ], + "loc": { + "start": { + "line": 187, + "column": 2 + }, + "end": { + "line": 190, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 390, + 4573 + ], + "loc": { + "start": { + "line": 16, + "column": 52 + }, + "end": { + "line": 212, + "column": 1 + } + } + }, + "range": [ + 345, + 4573 + ], + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 212, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Deep Security implementation\n ", + "range": [ + 298, + 337 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 338, + 4573 + ], + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 212, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Deep Security implementation\n ", + "range": [ + 298, + 337 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 42, + 4573 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 212, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 6/17/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Deep Security implementation\n ", + "range": [ + 298, + 337 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Defines all class private properties\n *\n * @param {String} identityPoolId\n * @param {Object} identityProviders\n ", + "range": [ + 394, + 525 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Security}\n ", + "range": [ + 830, + 896 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 38, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 996, + 1028 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 1098, + 1130 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 54, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {string}\n ", + "range": [ + 1206, + 1238 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 61, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1313, + 1345 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 68, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1417, + 1449 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 75, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {UserProvider}\n ", + "range": [ + 1515, + 1553 + ], + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 82, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 1758, + 1863 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: remove this compatibility hook", + "range": [ + 1895, + 1935 + ], + "loc": { + "start": { + "line": 98, + "column": 4 + }, + "end": { + "line": 98, + "column": 44 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} name\n * @returns {Object}\n ", + "range": [ + 2215, + 2273 + ], + "loc": { + "start": { + "line": 109, + "column": 2 + }, + "end": { + "line": 112, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2619, + 2651 + ], + "loc": { + "start": { + "line": 127, + "column": 2 + }, + "end": { + "line": 129, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2761, + 2793 + ], + "loc": { + "start": { + "line": 134, + "column": 2 + }, + "end": { + "line": 136, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2907, + 2939 + ], + "loc": { + "start": { + "line": 141, + "column": 2 + }, + "end": { + "line": 143, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {null|Token}\n ", + "range": [ + 3049, + 3085 + ], + "loc": { + "start": { + "line": 148, + "column": 2 + }, + "end": { + "line": 150, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} providerName\n * @param {String} userToken\n * @param {String} userId\n * @param {Function} callback\n * @returns {Token}\n ", + "range": [ + 3133, + 3289 + ], + "loc": { + "start": { + "line": 155, + "column": 2 + }, + "end": { + "line": 161, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " check if providerName is defined", + "range": [ + 3347, + 3382 + ], + "loc": { + "start": { + "line": 163, + "column": 4 + }, + "end": { + "line": 163, + "column": 39 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n * @returns {Token}\n ", + "range": [ + 3973, + 4036 + ], + "loc": { + "start": { + "line": 187, + "column": 2 + }, + "end": { + "line": 190, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-security/ast/source/Token.js.json b/docs-api/deep-security/ast/source/Token.js.json new file mode 100644 index 00000000..0c9e0651 --- /dev/null +++ b/docs-api/deep-security/ast/source/Token.js.json @@ -0,0 +1,7856 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 42, + 54 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 42, + 55 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 6/23/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "AWS", + "range": [ + 64, + 67 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 10 + } + } + }, + "range": [ + 64, + 67 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 10 + } + } + } + ], + "source": { + "type": "Literal", + "value": "aws-sdk", + "raw": "'aws-sdk'", + "range": [ + 73, + 82 + ], + "loc": { + "start": { + "line": 7, + "column": 16 + }, + "end": { + "line": 7, + "column": 25 + } + } + }, + "range": [ + 57, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 26 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "AuthException", + "range": [ + 92, + 105 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 21 + } + } + }, + "imported": { + "type": "Identifier", + "name": "AuthException", + "range": [ + 92, + 105 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 21 + } + } + }, + "range": [ + 92, + 105 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 21 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/AuthException", + "raw": "'./Exception/AuthException'", + "range": [ + 112, + 139 + ], + "loc": { + "start": { + "line": 8, + "column": 28 + }, + "end": { + "line": 8, + "column": 55 + } + } + }, + "range": [ + 84, + 140 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 56 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Security token holds details about logged user\n ", + "range": [ + 142, + 199 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Token", + "range": [ + 213, + 218 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 18 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 380, + 391 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "identityPoolId", + "range": [ + 392, + 406 + ], + "loc": { + "start": { + "line": 20, + "column": 14 + }, + "end": { + "line": 20, + "column": 28 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "providerName", + "range": [ + 408, + 420 + ], + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 42 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 423, + 427 + ], + "loc": { + "start": { + "line": 20, + "column": 45 + }, + "end": { + "line": 20, + "column": 49 + } + } + }, + "range": [ + 408, + 427 + ], + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 49 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "providerUserToken", + "range": [ + 429, + 446 + ], + "loc": { + "start": { + "line": 20, + "column": 51 + }, + "end": { + "line": 20, + "column": 68 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 449, + 453 + ], + "loc": { + "start": { + "line": 20, + "column": 71 + }, + "end": { + "line": 20, + "column": 75 + } + } + }, + "range": [ + 429, + 453 + ], + "loc": { + "start": { + "line": 20, + "column": 51 + }, + "end": { + "line": 20, + "column": 75 + } + } + }, + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "providerUserId", + "range": [ + 455, + 469 + ], + "loc": { + "start": { + "line": 20, + "column": 77 + }, + "end": { + "line": 20, + "column": 91 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 472, + 476 + ], + "loc": { + "start": { + "line": 20, + "column": 94 + }, + "end": { + "line": 20, + "column": 98 + } + } + }, + "range": [ + 455, + 476 + ], + "loc": { + "start": { + "line": 20, + "column": 77 + }, + "end": { + "line": 20, + "column": 98 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 484, + 488 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityPoolId", + "range": [ + 489, + 504 + ], + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + "range": [ + 484, + 504 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + "right": { + "type": "Identifier", + "name": "identityPoolId", + "range": [ + 507, + 521 + ], + "loc": { + "start": { + "line": 21, + "column": 27 + }, + "end": { + "line": 21, + "column": 41 + } + } + }, + "range": [ + 484, + 521 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 41 + } + } + }, + "range": [ + 484, + 522 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 42 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 527, + 531 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_providerName", + "range": [ + 532, + 545 + ], + "loc": { + "start": { + "line": 22, + "column": 9 + }, + "end": { + "line": 22, + "column": 22 + } + } + }, + "range": [ + 527, + 545 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 22 + } + } + }, + "right": { + "type": "Identifier", + "name": "providerName", + "range": [ + 548, + 560 + ], + "loc": { + "start": { + "line": 22, + "column": 25 + }, + "end": { + "line": 22, + "column": 37 + } + } + }, + "range": [ + 527, + 560 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 37 + } + } + }, + "range": [ + 527, + 561 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 38 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 566, + 570 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_providerUserToken", + "range": [ + 571, + 589 + ], + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 27 + } + } + }, + "range": [ + 566, + 589 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 27 + } + } + }, + "right": { + "type": "Identifier", + "name": "providerUserToken", + "range": [ + 592, + 609 + ], + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 47 + } + } + }, + "range": [ + 566, + 609 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 47 + } + } + }, + "range": [ + 566, + 610 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 48 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 615, + 619 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_providerUserId", + "range": [ + 620, + 635 + ], + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 24 + } + } + }, + "range": [ + 615, + 635 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 24 + } + } + }, + "right": { + "type": "Identifier", + "name": "providerUserId", + "range": [ + 638, + 652 + ], + "loc": { + "start": { + "line": 24, + "column": 27 + }, + "end": { + "line": 24, + "column": 41 + } + } + }, + "range": [ + 615, + 652 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 41 + } + } + }, + "range": [ + 615, + 653 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 42 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 659, + 663 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_user", + "range": [ + 664, + 669 + ], + "loc": { + "start": { + "line": 26, + "column": 9 + }, + "end": { + "line": 26, + "column": 14 + } + } + }, + "range": [ + 659, + 669 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 14 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 672, + 676 + ], + "loc": { + "start": { + "line": 26, + "column": 17 + }, + "end": { + "line": 26, + "column": 21 + } + } + }, + "range": [ + 659, + 676 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 21 + } + } + }, + "range": [ + 659, + 677 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 22 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 682, + 686 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_userProvider", + "range": [ + 687, + 700 + ], + "loc": { + "start": { + "line": 27, + "column": 9 + }, + "end": { + "line": 27, + "column": 22 + } + } + }, + "range": [ + 682, + 700 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 22 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 703, + 707 + ], + "loc": { + "start": { + "line": 27, + "column": 25 + }, + "end": { + "line": 27, + "column": 29 + } + } + }, + "range": [ + 682, + 707 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 29 + } + } + }, + "range": [ + 682, + 708 + ], + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 30 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 713, + 717 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityId", + "range": [ + 718, + 729 + ], + "loc": { + "start": { + "line": 28, + "column": 9 + }, + "end": { + "line": 28, + "column": 20 + } + } + }, + "range": [ + 713, + 729 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 20 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 732, + 736 + ], + "loc": { + "start": { + "line": 28, + "column": 23 + }, + "end": { + "line": 28, + "column": 27 + } + } + }, + "range": [ + 713, + 736 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 27 + } + } + }, + "range": [ + 713, + 737 + ], + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 742, + 746 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_credentials", + "range": [ + 747, + 759 + ], + "loc": { + "start": { + "line": 29, + "column": 9 + }, + "end": { + "line": 29, + "column": 21 + } + } + }, + "range": [ + 742, + 759 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 21 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 762, + 766 + ], + "loc": { + "start": { + "line": 29, + "column": 24 + }, + "end": { + "line": 29, + "column": 28 + } + } + }, + "range": [ + 742, + 766 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 28 + } + } + }, + "range": [ + 742, + 767 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 29 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 773, + 777 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_isAnonymous", + "range": [ + 778, + 790 + ], + "loc": { + "start": { + "line": 31, + "column": 9 + }, + "end": { + "line": 31, + "column": 21 + } + } + }, + "range": [ + 773, + 790 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 21 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 793, + 797 + ], + "loc": { + "start": { + "line": 31, + "column": 24 + }, + "end": { + "line": 31, + "column": 28 + } + } + }, + "range": [ + 773, + 797 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 28 + } + } + }, + "range": [ + 773, + 798 + ], + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 29 + } + } + } + ], + "range": [ + 478, + 802 + ], + "loc": { + "start": { + "line": 20, + "column": 100 + }, + "end": { + "line": 32, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 391, + 802 + ], + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 32, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 380, + 802 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 32, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} identityPoolId\n * @param {String} providerName\n * @param {String} providerUserToken\n * @param {String} providerUserId\n ", + "range": [ + 223, + 377 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 806, + 847 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "getCredentials", + "range": [ + 850, + 864 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 37, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "callback", + "range": [ + 865, + 873 + ], + "loc": { + "start": { + "line": 37, + "column": 17 + }, + "end": { + "line": 37, + "column": 25 + } + } + }, + "right": { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 882, + 886 + ], + "loc": { + "start": { + "line": 37, + "column": 34 + }, + "end": { + "line": 37, + "column": 38 + } + } + }, + "generator": false, + "expression": true, + "range": [ + 876, + 886 + ], + "loc": { + "start": { + "line": 37, + "column": 28 + }, + "end": { + "line": 37, + "column": 38 + } + } + }, + "range": [ + 865, + 886 + ], + "loc": { + "start": { + "line": 37, + "column": 17 + }, + "end": { + "line": 37, + "column": 38 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "AWS", + "range": [ + 940, + 943 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 944, + 950 + ], + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 14 + } + } + }, + "range": [ + 940, + 950 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "maxRetries", + "range": [ + 951, + 961 + ], + "loc": { + "start": { + "line": 39, + "column": 15 + }, + "end": { + "line": 39, + "column": 25 + } + } + }, + "range": [ + 940, + 961 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 25 + } + } + }, + "right": { + "type": "Literal", + "value": 3, + "raw": "3", + "range": [ + 964, + 965 + ], + "loc": { + "start": { + "line": 39, + "column": 28 + }, + "end": { + "line": 39, + "column": 29 + } + } + }, + "range": [ + 940, + 965 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 29 + } + } + }, + "range": [ + 940, + 966 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 30 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: set retries in a smarter way...", + "range": [ + 894, + 935 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 45 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "defaultRegion", + "range": [ + 976, + 989 + ], + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 21 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "AWS", + "range": [ + 992, + 995 + ], + "loc": { + "start": { + "line": 41, + "column": 24 + }, + "end": { + "line": 41, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 996, + 1002 + ], + "loc": { + "start": { + "line": 41, + "column": 28 + }, + "end": { + "line": 41, + "column": 34 + } + } + }, + "range": [ + 992, + 1002 + ], + "loc": { + "start": { + "line": 41, + "column": 24 + }, + "end": { + "line": 41, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "region", + "range": [ + 1003, + 1009 + ], + "loc": { + "start": { + "line": 41, + "column": 35 + }, + "end": { + "line": 41, + "column": 41 + } + } + }, + "range": [ + 992, + 1009 + ], + "loc": { + "start": { + "line": 41, + "column": 24 + }, + "end": { + "line": 41, + "column": 41 + } + } + }, + "range": [ + 976, + 1009 + ], + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 41 + } + } + } + ], + "kind": "let", + "range": [ + 972, + 1010 + ], + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 42 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "AWS", + "range": [ + 1016, + 1019 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 1020, + 1026 + ], + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 14 + } + } + }, + "range": [ + 1016, + 1026 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "update", + "range": [ + 1027, + 1033 + ], + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 43, + "column": 21 + } + } + }, + "range": [ + 1016, + 1033 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "region", + "range": [ + 1042, + 1048 + ], + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 12 + } + } + }, + "value": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Token", + "range": [ + 1050, + 1055 + ], + "loc": { + "start": { + "line": 44, + "column": 14 + }, + "end": { + "line": 44, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "_getRegionFromIdentityPoolId", + "range": [ + 1056, + 1084 + ], + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 48 + } + } + }, + "range": [ + 1050, + 1084 + ], + "loc": { + "start": { + "line": 44, + "column": 14 + }, + "end": { + "line": 44, + "column": 48 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1085, + 1089 + ], + "loc": { + "start": { + "line": 44, + "column": 49 + }, + "end": { + "line": 44, + "column": 53 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityPoolId", + "range": [ + 1090, + 1105 + ], + "loc": { + "start": { + "line": 44, + "column": 54 + }, + "end": { + "line": 44, + "column": 69 + } + } + }, + "range": [ + 1085, + 1105 + ], + "loc": { + "start": { + "line": 44, + "column": 49 + }, + "end": { + "line": 44, + "column": 69 + } + } + } + ], + "range": [ + 1050, + 1106 + ], + "loc": { + "start": { + "line": 44, + "column": 14 + }, + "end": { + "line": 44, + "column": 70 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1042, + 1106 + ], + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 70 + } + } + } + ], + "range": [ + 1034, + 1113 + ], + "loc": { + "start": { + "line": 43, + "column": 22 + }, + "end": { + "line": 45, + "column": 5 + } + } + } + ], + "range": [ + 1016, + 1114 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 45, + "column": 6 + } + } + }, + "range": [ + 1016, + 1115 + ], + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "cognitoParams", + "range": [ + 1125, + 1138 + ], + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 21 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "IdentityPoolId", + "range": [ + 1149, + 1163 + ], + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 20 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1165, + 1169 + ], + "loc": { + "start": { + "line": 48, + "column": 22 + }, + "end": { + "line": 48, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityPoolId", + "range": [ + 1170, + 1185 + ], + "loc": { + "start": { + "line": 48, + "column": 27 + }, + "end": { + "line": 48, + "column": 42 + } + } + }, + "range": [ + 1165, + 1185 + ], + "loc": { + "start": { + "line": 48, + "column": 22 + }, + "end": { + "line": 48, + "column": 42 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1149, + 1185 + ], + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 42 + } + } + } + ], + "range": [ + 1141, + 1192 + ], + "loc": { + "start": { + "line": 47, + "column": 24 + }, + "end": { + "line": 49, + "column": 5 + } + } + }, + "range": [ + 1125, + 1192 + ], + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 49, + "column": 5 + } + } + } + ], + "kind": "let", + "range": [ + 1121, + 1193 + ], + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 49, + "column": 6 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "LogicalExpression", + "operator": "&&", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1203, + 1207 + ], + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_providerName", + "range": [ + 1208, + 1221 + ], + "loc": { + "start": { + "line": 51, + "column": 13 + }, + "end": { + "line": 51, + "column": 26 + } + } + }, + "range": [ + 1203, + 1221 + ], + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 26 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1225, + 1229 + ], + "loc": { + "start": { + "line": 51, + "column": 30 + }, + "end": { + "line": 51, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "_providerUserToken", + "range": [ + 1230, + 1248 + ], + "loc": { + "start": { + "line": 51, + "column": 35 + }, + "end": { + "line": 51, + "column": 53 + } + } + }, + "range": [ + 1225, + 1248 + ], + "loc": { + "start": { + "line": 51, + "column": 30 + }, + "end": { + "line": 51, + "column": 53 + } + } + }, + "range": [ + 1203, + 1248 + ], + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 53 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1258, + 1262 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_isAnonymous", + "range": [ + 1263, + 1275 + ], + "loc": { + "start": { + "line": 52, + "column": 11 + }, + "end": { + "line": 52, + "column": 23 + } + } + }, + "range": [ + 1258, + 1275 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 23 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 1278, + 1283 + ], + "loc": { + "start": { + "line": 52, + "column": 26 + }, + "end": { + "line": 52, + "column": 31 + } + } + }, + "range": [ + 1258, + 1283 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 31 + } + } + }, + "range": [ + 1258, + 1284 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 32 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "cognitoParams", + "range": [ + 1291, + 1304 + ], + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "Logins", + "range": [ + 1305, + 1311 + ], + "loc": { + "start": { + "line": 53, + "column": 20 + }, + "end": { + "line": 53, + "column": 26 + } + } + }, + "range": [ + 1291, + 1311 + ], + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 26 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 1314, + 1316 + ], + "loc": { + "start": { + "line": 53, + "column": 29 + }, + "end": { + "line": 53, + "column": 31 + } + } + }, + "range": [ + 1291, + 1316 + ], + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 31 + } + } + }, + "range": [ + 1291, + 1317 + ], + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 32 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "cognitoParams", + "range": [ + 1324, + 1337 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "Logins", + "range": [ + 1338, + 1344 + ], + "loc": { + "start": { + "line": 54, + "column": 20 + }, + "end": { + "line": 54, + "column": 26 + } + } + }, + "range": [ + 1324, + 1344 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 26 + } + } + }, + "property": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1345, + 1349 + ], + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "_providerName", + "range": [ + 1350, + 1363 + ], + "loc": { + "start": { + "line": 54, + "column": 32 + }, + "end": { + "line": 54, + "column": 45 + } + } + }, + "range": [ + 1345, + 1363 + ], + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 45 + } + } + }, + "range": [ + 1324, + 1364 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 46 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1367, + 1371 + ], + "loc": { + "start": { + "line": 54, + "column": 49 + }, + "end": { + "line": 54, + "column": 53 + } + } + }, + "property": { + "type": "Identifier", + "name": "_providerUserToken", + "range": [ + 1372, + 1390 + ], + "loc": { + "start": { + "line": 54, + "column": 54 + }, + "end": { + "line": 54, + "column": 72 + } + } + }, + "range": [ + 1367, + 1390 + ], + "loc": { + "start": { + "line": 54, + "column": 49 + }, + "end": { + "line": 54, + "column": 72 + } + } + }, + "range": [ + 1324, + 1390 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 72 + } + } + }, + "range": [ + 1324, + 1391 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 73 + } + } + } + ], + "range": [ + 1250, + 1397 + ], + "loc": { + "start": { + "line": 51, + "column": 55 + }, + "end": { + "line": 55, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1199, + 1397 + ], + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 55, + "column": 5 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1403, + 1407 + ], + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_credentials", + "range": [ + 1408, + 1420 + ], + "loc": { + "start": { + "line": 57, + "column": 9 + }, + "end": { + "line": 57, + "column": 21 + } + } + }, + "range": [ + 1403, + 1420 + ], + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 21 + } + } + }, + "right": { + "type": "NewExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "AWS", + "range": [ + 1427, + 1430 + ], + "loc": { + "start": { + "line": 57, + "column": 28 + }, + "end": { + "line": 57, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "CognitoIdentityCredentials", + "range": [ + 1431, + 1457 + ], + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 57, + "column": 58 + } + } + }, + "range": [ + 1427, + 1457 + ], + "loc": { + "start": { + "line": 57, + "column": 28 + }, + "end": { + "line": 57, + "column": 58 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "cognitoParams", + "range": [ + 1458, + 1471 + ], + "loc": { + "start": { + "line": 57, + "column": 59 + }, + "end": { + "line": 57, + "column": 72 + } + } + } + ], + "range": [ + 1423, + 1472 + ], + "loc": { + "start": { + "line": 57, + "column": 24 + }, + "end": { + "line": 57, + "column": 73 + } + } + }, + "range": [ + 1403, + 1472 + ], + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 73 + } + } + }, + "range": [ + 1403, + 1473 + ], + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 74 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " update AWS credentials", + "range": [ + 1479, + 1504 + ], + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 29 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "AWS", + "range": [ + 1509, + 1512 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 1513, + 1519 + ], + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 60, + "column": 14 + } + } + }, + "range": [ + 1509, + 1519 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "credentials", + "range": [ + 1520, + 1531 + ], + "loc": { + "start": { + "line": 60, + "column": 15 + }, + "end": { + "line": 60, + "column": 26 + } + } + }, + "range": [ + 1509, + 1531 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 26 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1534, + 1538 + ], + "loc": { + "start": { + "line": 60, + "column": 29 + }, + "end": { + "line": 60, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "_credentials", + "range": [ + 1539, + 1551 + ], + "loc": { + "start": { + "line": 60, + "column": 34 + }, + "end": { + "line": 60, + "column": 46 + } + } + }, + "range": [ + 1534, + 1551 + ], + "loc": { + "start": { + "line": 60, + "column": 29 + }, + "end": { + "line": 60, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "refresh", + "range": [ + 1552, + 1559 + ], + "loc": { + "start": { + "line": 60, + "column": 47 + }, + "end": { + "line": 60, + "column": 54 + } + } + }, + "range": [ + 1534, + 1559 + ], + "loc": { + "start": { + "line": 60, + "column": 29 + }, + "end": { + "line": 60, + "column": 54 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 1569, + 1574 + ], + "loc": { + "start": { + "line": 60, + "column": 64 + }, + "end": { + "line": 60, + "column": 69 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "error", + "range": [ + 1588, + 1593 + ], + "loc": { + "start": { + "line": 61, + "column": 10 + }, + "end": { + "line": 61, + "column": 15 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1605, + 1613 + ], + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 62, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "AuthException", + "range": [ + 1618, + 1631 + ], + "loc": { + "start": { + "line": 62, + "column": 21 + }, + "end": { + "line": 62, + "column": 34 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "error", + "range": [ + 1632, + 1637 + ], + "loc": { + "start": { + "line": 62, + "column": 35 + }, + "end": { + "line": 62, + "column": 40 + } + } + } + ], + "range": [ + 1614, + 1638 + ], + "loc": { + "start": { + "line": 62, + "column": 17 + }, + "end": { + "line": 62, + "column": 41 + } + } + } + ], + "range": [ + 1605, + 1639 + ], + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 62, + "column": 42 + } + } + }, + "range": [ + 1605, + 1640 + ], + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 62, + "column": 43 + } + } + }, + { + "type": "ReturnStatement", + "argument": null, + "range": [ + 1649, + 1656 + ], + "loc": { + "start": { + "line": 63, + "column": 8 + }, + "end": { + "line": 63, + "column": 15 + } + } + } + ], + "range": [ + 1595, + 1664 + ], + "loc": { + "start": { + "line": 61, + "column": 17 + }, + "end": { + "line": 64, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 1584, + 1664 + ], + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 64, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1672, + 1676 + ], + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityId", + "range": [ + 1677, + 1688 + ], + "loc": { + "start": { + "line": 66, + "column": 11 + }, + "end": { + "line": 66, + "column": 22 + } + } + }, + "range": [ + 1672, + 1688 + ], + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 22 + } + } + }, + "right": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1691, + 1695 + ], + "loc": { + "start": { + "line": 66, + "column": 25 + }, + "end": { + "line": 66, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "_credentials", + "range": [ + 1696, + 1708 + ], + "loc": { + "start": { + "line": 66, + "column": 30 + }, + "end": { + "line": 66, + "column": 42 + } + } + }, + "range": [ + 1691, + 1708 + ], + "loc": { + "start": { + "line": 66, + "column": 25 + }, + "end": { + "line": 66, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "name": "identityId", + "range": [ + 1709, + 1719 + ], + "loc": { + "start": { + "line": 66, + "column": 43 + }, + "end": { + "line": 66, + "column": 53 + } + } + }, + "range": [ + 1691, + 1719 + ], + "loc": { + "start": { + "line": 66, + "column": 25 + }, + "end": { + "line": 66, + "column": 53 + } + } + }, + "range": [ + 1672, + 1719 + ], + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 53 + } + } + }, + "range": [ + 1672, + 1720 + ], + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 54 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "AWS", + "range": [ + 1728, + 1731 + ], + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 1732, + 1738 + ], + "loc": { + "start": { + "line": 68, + "column": 10 + }, + "end": { + "line": 68, + "column": 16 + } + } + }, + "range": [ + 1728, + 1738 + ], + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "update", + "range": [ + 1739, + 1745 + ], + "loc": { + "start": { + "line": 68, + "column": 17 + }, + "end": { + "line": 68, + "column": 23 + } + } + }, + "range": [ + 1728, + 1745 + ], + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "accessKeyId", + "range": [ + 1756, + 1767 + ], + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 19 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1769, + 1773 + ], + "loc": { + "start": { + "line": 69, + "column": 21 + }, + "end": { + "line": 69, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "_credentials", + "range": [ + 1774, + 1786 + ], + "loc": { + "start": { + "line": 69, + "column": 26 + }, + "end": { + "line": 69, + "column": 38 + } + } + }, + "range": [ + 1769, + 1786 + ], + "loc": { + "start": { + "line": 69, + "column": 21 + }, + "end": { + "line": 69, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "accessKeyId", + "range": [ + 1787, + 1798 + ], + "loc": { + "start": { + "line": 69, + "column": 39 + }, + "end": { + "line": 69, + "column": 50 + } + } + }, + "range": [ + 1769, + 1798 + ], + "loc": { + "start": { + "line": 69, + "column": 21 + }, + "end": { + "line": 69, + "column": 50 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1756, + 1798 + ], + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 50 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "secretAccessKey", + "range": [ + 1808, + 1823 + ], + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 23 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1825, + 1829 + ], + "loc": { + "start": { + "line": 70, + "column": 25 + }, + "end": { + "line": 70, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "_credentials", + "range": [ + 1830, + 1842 + ], + "loc": { + "start": { + "line": 70, + "column": 30 + }, + "end": { + "line": 70, + "column": 42 + } + } + }, + "range": [ + 1825, + 1842 + ], + "loc": { + "start": { + "line": 70, + "column": 25 + }, + "end": { + "line": 70, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "name": "secretAccessKey", + "range": [ + 1843, + 1858 + ], + "loc": { + "start": { + "line": 70, + "column": 43 + }, + "end": { + "line": 70, + "column": 58 + } + } + }, + "range": [ + 1825, + 1858 + ], + "loc": { + "start": { + "line": 70, + "column": 25 + }, + "end": { + "line": 70, + "column": 58 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1808, + 1858 + ], + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 58 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "sessionToken", + "range": [ + 1868, + 1880 + ], + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 20 + } + } + }, + "value": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1882, + 1886 + ], + "loc": { + "start": { + "line": 71, + "column": 22 + }, + "end": { + "line": 71, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "_credentials", + "range": [ + 1887, + 1899 + ], + "loc": { + "start": { + "line": 71, + "column": 27 + }, + "end": { + "line": 71, + "column": 39 + } + } + }, + "range": [ + 1882, + 1899 + ], + "loc": { + "start": { + "line": 71, + "column": 22 + }, + "end": { + "line": 71, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "name": "sessionToken", + "range": [ + 1900, + 1912 + ], + "loc": { + "start": { + "line": 71, + "column": 40 + }, + "end": { + "line": 71, + "column": 52 + } + } + }, + "range": [ + 1882, + 1912 + ], + "loc": { + "start": { + "line": 71, + "column": 22 + }, + "end": { + "line": 71, + "column": 52 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1868, + 1912 + ], + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 52 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "region", + "range": [ + 1922, + 1928 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 14 + } + } + }, + "value": { + "type": "Identifier", + "name": "defaultRegion", + "range": [ + 1930, + 1943 + ], + "loc": { + "start": { + "line": 72, + "column": 16 + }, + "end": { + "line": 72, + "column": 29 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1922, + 1943 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 29 + } + } + } + ], + "range": [ + 1746, + 1981 + ], + "loc": { + "start": { + "line": 68, + "column": 24 + }, + "end": { + "line": 73, + "column": 7 + } + } + } + ], + "range": [ + 1728, + 1982 + ], + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 73, + "column": 8 + } + } + }, + "range": [ + 1728, + 1983 + ], + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 73, + "column": 9 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 1991, + 1999 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 2000, + 2004 + ], + "loc": { + "start": { + "line": 75, + "column": 15 + }, + "end": { + "line": 75, + "column": 19 + } + } + }, + { + "type": "ThisExpression", + "range": [ + 2006, + 2010 + ], + "loc": { + "start": { + "line": 75, + "column": 21 + }, + "end": { + "line": 75, + "column": 25 + } + } + } + ], + "range": [ + 1991, + 2011 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 26 + } + } + }, + "range": [ + 1991, + 2012 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 27 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " restore to default region", + "range": [ + 1945, + 1973 + ], + "loc": { + "start": { + "line": 72, + "column": 31 + }, + "end": { + "line": 72, + "column": 59 + } + } + } + ] + } + ], + "range": [ + 1576, + 2018 + ], + "loc": { + "start": { + "line": 60, + "column": 71 + }, + "end": { + "line": 76, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1560, + 2018 + ], + "loc": { + "start": { + "line": 60, + "column": 55 + }, + "end": { + "line": 76, + "column": 5 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 2019, + 2023 + ], + "loc": { + "start": { + "line": 76, + "column": 6 + }, + "end": { + "line": 76, + "column": 10 + } + } + }, + "range": [ + 1560, + 2023 + ], + "loc": { + "start": { + "line": 60, + "column": 55 + }, + "end": { + "line": 76, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 2024, + 2028 + ], + "loc": { + "start": { + "line": 76, + "column": 11 + }, + "end": { + "line": 76, + "column": 15 + } + } + } + ], + "range": [ + 1560, + 2029 + ], + "loc": { + "start": { + "line": 60, + "column": 55 + }, + "end": { + "line": 76, + "column": 16 + } + } + } + ], + "range": [ + 1534, + 2030 + ], + "loc": { + "start": { + "line": 60, + "column": 29 + }, + "end": { + "line": 76, + "column": 17 + } + } + }, + "range": [ + 1509, + 2030 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 76, + "column": 17 + } + } + }, + "range": [ + 1509, + 2031 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 76, + "column": 18 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " update AWS credentials", + "range": [ + 1479, + 1504 + ], + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 29 + } + } + } + ] + } + ], + "range": [ + 888, + 2035 + ], + "loc": { + "start": { + "line": 37, + "column": 40 + }, + "end": { + "line": 77, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 864, + 2035 + ], + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 77, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 850, + 2035 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 77, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 806, + 847 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} identityPoolId\n * @returns {String}\n * @private\n ", + "range": [ + 2039, + 2121 + ], + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_getRegionFromIdentityPoolId", + "range": [ + 2131, + 2159 + ], + "loc": { + "start": { + "line": 84, + "column": 9 + }, + "end": { + "line": 84, + "column": 37 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "identityPoolId", + "range": [ + 2160, + 2174 + ], + "loc": { + "start": { + "line": 84, + "column": 38 + }, + "end": { + "line": 84, + "column": 52 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "identityPoolId", + "range": [ + 2189, + 2203 + ], + "loc": { + "start": { + "line": 85, + "column": 11 + }, + "end": { + "line": 85, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "split", + "range": [ + 2204, + 2209 + ], + "loc": { + "start": { + "line": 85, + "column": 26 + }, + "end": { + "line": 85, + "column": 31 + } + } + }, + "range": [ + 2189, + 2209 + ], + "loc": { + "start": { + "line": 85, + "column": 11 + }, + "end": { + "line": 85, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": ":", + "raw": "':'", + "range": [ + 2210, + 2213 + ], + "loc": { + "start": { + "line": 85, + "column": 32 + }, + "end": { + "line": 85, + "column": 35 + } + } + } + ], + "range": [ + 2189, + 2214 + ], + "loc": { + "start": { + "line": 85, + "column": 11 + }, + "end": { + "line": 85, + "column": 36 + } + } + }, + "property": { + "type": "Literal", + "value": 0, + "raw": "0", + "range": [ + 2215, + 2216 + ], + "loc": { + "start": { + "line": 85, + "column": 37 + }, + "end": { + "line": 85, + "column": 38 + } + } + }, + "range": [ + 2189, + 2217 + ], + "loc": { + "start": { + "line": 85, + "column": 11 + }, + "end": { + "line": 85, + "column": 39 + } + } + }, + "range": [ + 2182, + 2218 + ], + "loc": { + "start": { + "line": 85, + "column": 4 + }, + "end": { + "line": 85, + "column": 40 + } + } + } + ], + "range": [ + 2176, + 2222 + ], + "loc": { + "start": { + "line": 84, + "column": 54 + }, + "end": { + "line": 86, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2159, + 2222 + ], + "loc": { + "start": { + "line": 84, + "column": 37 + }, + "end": { + "line": 86, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2124, + 2222 + ], + "loc": { + "start": { + "line": 84, + "column": 2 + }, + "end": { + "line": 86, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} identityPoolId\n * @returns {String}\n * @private\n ", + "range": [ + 2039, + 2121 + ], + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2226, + 2258 + ], + "loc": { + "start": { + "line": 88, + "column": 2 + }, + "end": { + "line": 90, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "providerName", + "range": [ + 2265, + 2277 + ], + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2293, + 2297 + ], + "loc": { + "start": { + "line": 92, + "column": 11 + }, + "end": { + "line": 92, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_providerName", + "range": [ + 2298, + 2311 + ], + "loc": { + "start": { + "line": 92, + "column": 16 + }, + "end": { + "line": 92, + "column": 29 + } + } + }, + "range": [ + 2293, + 2311 + ], + "loc": { + "start": { + "line": 92, + "column": 11 + }, + "end": { + "line": 92, + "column": 29 + } + } + }, + "range": [ + 2286, + 2312 + ], + "loc": { + "start": { + "line": 92, + "column": 4 + }, + "end": { + "line": 92, + "column": 30 + } + } + } + ], + "range": [ + 2280, + 2316 + ], + "loc": { + "start": { + "line": 91, + "column": 21 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2277, + 2316 + ], + "loc": { + "start": { + "line": 91, + "column": 18 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2261, + 2316 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 93, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2226, + 2258 + ], + "loc": { + "start": { + "line": 88, + "column": 2 + }, + "end": { + "line": 90, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2320, + 2352 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "providerUserToken", + "range": [ + 2359, + 2376 + ], + "loc": { + "start": { + "line": 98, + "column": 6 + }, + "end": { + "line": 98, + "column": 23 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2392, + 2396 + ], + "loc": { + "start": { + "line": 99, + "column": 11 + }, + "end": { + "line": 99, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_providerUserToken", + "range": [ + 2397, + 2415 + ], + "loc": { + "start": { + "line": 99, + "column": 16 + }, + "end": { + "line": 99, + "column": 34 + } + } + }, + "range": [ + 2392, + 2415 + ], + "loc": { + "start": { + "line": 99, + "column": 11 + }, + "end": { + "line": 99, + "column": 34 + } + } + }, + "range": [ + 2385, + 2416 + ], + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 35 + } + } + } + ], + "range": [ + 2379, + 2420 + ], + "loc": { + "start": { + "line": 98, + "column": 26 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2376, + 2420 + ], + "loc": { + "start": { + "line": 98, + "column": 23 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2355, + 2420 + ], + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 100, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2320, + 2352 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2424, + 2456 + ], + "loc": { + "start": { + "line": 102, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "providerUserId", + "range": [ + 2463, + 2477 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 20 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2493, + 2497 + ], + "loc": { + "start": { + "line": 106, + "column": 11 + }, + "end": { + "line": 106, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_providerUserId", + "range": [ + 2498, + 2513 + ], + "loc": { + "start": { + "line": 106, + "column": 16 + }, + "end": { + "line": 106, + "column": 31 + } + } + }, + "range": [ + 2493, + 2513 + ], + "loc": { + "start": { + "line": 106, + "column": 11 + }, + "end": { + "line": 106, + "column": 31 + } + } + }, + "range": [ + 2486, + 2514 + ], + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 106, + "column": 32 + } + } + } + ], + "range": [ + 2480, + 2518 + ], + "loc": { + "start": { + "line": 105, + "column": 23 + }, + "end": { + "line": 107, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2477, + 2518 + ], + "loc": { + "start": { + "line": 105, + "column": 20 + }, + "end": { + "line": 107, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2459, + 2518 + ], + "loc": { + "start": { + "line": 105, + "column": 2 + }, + "end": { + "line": 107, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2424, + 2456 + ], + "loc": { + "start": { + "line": 102, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2522, + 2554 + ], + "loc": { + "start": { + "line": 109, + "column": 2 + }, + "end": { + "line": 111, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "identityId", + "range": [ + 2561, + 2571 + ], + "loc": { + "start": { + "line": 112, + "column": 6 + }, + "end": { + "line": 112, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2587, + 2591 + ], + "loc": { + "start": { + "line": 113, + "column": 11 + }, + "end": { + "line": 113, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_identityId", + "range": [ + 2592, + 2603 + ], + "loc": { + "start": { + "line": 113, + "column": 16 + }, + "end": { + "line": 113, + "column": 27 + } + } + }, + "range": [ + 2587, + 2603 + ], + "loc": { + "start": { + "line": 113, + "column": 11 + }, + "end": { + "line": 113, + "column": 27 + } + } + }, + "range": [ + 2580, + 2604 + ], + "loc": { + "start": { + "line": 113, + "column": 4 + }, + "end": { + "line": 113, + "column": 28 + } + } + } + ], + "range": [ + 2574, + 2608 + ], + "loc": { + "start": { + "line": 112, + "column": 19 + }, + "end": { + "line": 114, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2571, + 2608 + ], + "loc": { + "start": { + "line": 112, + "column": 16 + }, + "end": { + "line": 114, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2557, + 2608 + ], + "loc": { + "start": { + "line": 112, + "column": 2 + }, + "end": { + "line": 114, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2522, + 2554 + ], + "loc": { + "start": { + "line": 109, + "column": 2 + }, + "end": { + "line": 111, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2612, + 2644 + ], + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 118, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "credentials", + "range": [ + 2651, + 2662 + ], + "loc": { + "start": { + "line": 119, + "column": 6 + }, + "end": { + "line": 119, + "column": 17 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2678, + 2682 + ], + "loc": { + "start": { + "line": 120, + "column": 11 + }, + "end": { + "line": 120, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_credentials", + "range": [ + 2683, + 2695 + ], + "loc": { + "start": { + "line": 120, + "column": 16 + }, + "end": { + "line": 120, + "column": 28 + } + } + }, + "range": [ + 2678, + 2695 + ], + "loc": { + "start": { + "line": 120, + "column": 11 + }, + "end": { + "line": 120, + "column": 28 + } + } + }, + "range": [ + 2671, + 2696 + ], + "loc": { + "start": { + "line": 120, + "column": 4 + }, + "end": { + "line": 120, + "column": 29 + } + } + } + ], + "range": [ + 2665, + 2700 + ], + "loc": { + "start": { + "line": 119, + "column": 20 + }, + "end": { + "line": 121, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2662, + 2700 + ], + "loc": { + "start": { + "line": 119, + "column": 17 + }, + "end": { + "line": 121, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2647, + 2700 + ], + "loc": { + "start": { + "line": 119, + "column": 2 + }, + "end": { + "line": 121, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2612, + 2644 + ], + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 118, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 2704, + 2737 + ], + "loc": { + "start": { + "line": 123, + "column": 2 + }, + "end": { + "line": 125, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "isAnonymous", + "range": [ + 2744, + 2755 + ], + "loc": { + "start": { + "line": 126, + "column": 6 + }, + "end": { + "line": 126, + "column": 17 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2771, + 2775 + ], + "loc": { + "start": { + "line": 127, + "column": 11 + }, + "end": { + "line": 127, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_isAnonymous", + "range": [ + 2776, + 2788 + ], + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 127, + "column": 28 + } + } + }, + "range": [ + 2771, + 2788 + ], + "loc": { + "start": { + "line": 127, + "column": 11 + }, + "end": { + "line": 127, + "column": 28 + } + } + }, + "range": [ + 2764, + 2789 + ], + "loc": { + "start": { + "line": 127, + "column": 4 + }, + "end": { + "line": 127, + "column": 29 + } + } + } + ], + "range": [ + 2758, + 2793 + ], + "loc": { + "start": { + "line": 126, + "column": 20 + }, + "end": { + "line": 128, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2755, + 2793 + ], + "loc": { + "start": { + "line": 126, + "column": 17 + }, + "end": { + "line": 128, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 2740, + 2793 + ], + "loc": { + "start": { + "line": 126, + "column": 2 + }, + "end": { + "line": 128, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 2704, + 2737 + ], + "loc": { + "start": { + "line": 123, + "column": 2 + }, + "end": { + "line": 125, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {UserProvider} userProvider\n ", + "range": [ + 2797, + 2846 + ], + "loc": { + "start": { + "line": 130, + "column": 2 + }, + "end": { + "line": 132, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "userProvider", + "range": [ + 2853, + 2865 + ], + "loc": { + "start": { + "line": 133, + "column": 6 + }, + "end": { + "line": 133, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "userProvider", + "range": [ + 2866, + 2878 + ], + "loc": { + "start": { + "line": 133, + "column": 19 + }, + "end": { + "line": 133, + "column": 31 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2886, + 2890 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 134, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_userProvider", + "range": [ + 2891, + 2904 + ], + "loc": { + "start": { + "line": 134, + "column": 9 + }, + "end": { + "line": 134, + "column": 22 + } + } + }, + "range": [ + 2886, + 2904 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 134, + "column": 22 + } + } + }, + "right": { + "type": "Identifier", + "name": "userProvider", + "range": [ + 2907, + 2919 + ], + "loc": { + "start": { + "line": 134, + "column": 25 + }, + "end": { + "line": 134, + "column": 37 + } + } + }, + "range": [ + 2886, + 2919 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 134, + "column": 37 + } + } + }, + "range": [ + 2886, + 2920 + ], + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 134, + "column": 38 + } + } + } + ], + "range": [ + 2880, + 2924 + ], + "loc": { + "start": { + "line": 133, + "column": 33 + }, + "end": { + "line": 135, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2865, + 2924 + ], + "loc": { + "start": { + "line": 133, + "column": 18 + }, + "end": { + "line": 135, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 2849, + 2924 + ], + "loc": { + "start": { + "line": 133, + "column": 2 + }, + "end": { + "line": 135, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {UserProvider} userProvider\n ", + "range": [ + 2797, + 2846 + ], + "loc": { + "start": { + "line": 130, + "column": 2 + }, + "end": { + "line": 132, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 2928, + 2969 + ], + "loc": { + "start": { + "line": 137, + "column": 2 + }, + "end": { + "line": 139, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "getUser", + "range": [ + 2972, + 2979 + ], + "loc": { + "start": { + "line": 140, + "column": 2 + }, + "end": { + "line": 140, + "column": 9 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "callback", + "range": [ + 2980, + 2988 + ], + "loc": { + "start": { + "line": 140, + "column": 10 + }, + "end": { + "line": 140, + "column": 18 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3000, + 3004 + ], + "loc": { + "start": { + "line": 141, + "column": 8 + }, + "end": { + "line": 141, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "isAnonymous", + "range": [ + 3005, + 3016 + ], + "loc": { + "start": { + "line": 141, + "column": 13 + }, + "end": { + "line": 141, + "column": 24 + } + } + }, + "range": [ + 3000, + 3016 + ], + "loc": { + "start": { + "line": 141, + "column": 8 + }, + "end": { + "line": 141, + "column": 24 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 3026, + 3034 + ], + "loc": { + "start": { + "line": 142, + "column": 6 + }, + "end": { + "line": 142, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 3035, + 3039 + ], + "loc": { + "start": { + "line": 142, + "column": 15 + }, + "end": { + "line": 142, + "column": 19 + } + } + } + ], + "range": [ + 3026, + 3040 + ], + "loc": { + "start": { + "line": 142, + "column": 6 + }, + "end": { + "line": 142, + "column": 20 + } + } + }, + "range": [ + 3026, + 3041 + ], + "loc": { + "start": { + "line": 142, + "column": 6 + }, + "end": { + "line": 142, + "column": 21 + } + } + } + ], + "range": [ + 3018, + 3047 + ], + "loc": { + "start": { + "line": 141, + "column": 26 + }, + "end": { + "line": 143, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 2996, + 3047 + ], + "loc": { + "start": { + "line": 141, + "column": 4 + }, + "end": { + "line": 143, + "column": 5 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3057, + 3061 + ], + "loc": { + "start": { + "line": 145, + "column": 8 + }, + "end": { + "line": 145, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_user", + "range": [ + 3062, + 3067 + ], + "loc": { + "start": { + "line": 145, + "column": 13 + }, + "end": { + "line": 145, + "column": 18 + } + } + }, + "range": [ + 3057, + 3067 + ], + "loc": { + "start": { + "line": 145, + "column": 8 + }, + "end": { + "line": 145, + "column": 18 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 3072, + 3076 + ], + "loc": { + "start": { + "line": 145, + "column": 23 + }, + "end": { + "line": 145, + "column": 27 + } + } + }, + "range": [ + 3057, + 3076 + ], + "loc": { + "start": { + "line": 145, + "column": 8 + }, + "end": { + "line": 145, + "column": 27 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3086, + 3090 + ], + "loc": { + "start": { + "line": 146, + "column": 6 + }, + "end": { + "line": 146, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_userProvider", + "range": [ + 3091, + 3104 + ], + "loc": { + "start": { + "line": 146, + "column": 11 + }, + "end": { + "line": 146, + "column": 24 + } + } + }, + "range": [ + 3086, + 3104 + ], + "loc": { + "start": { + "line": 146, + "column": 6 + }, + "end": { + "line": 146, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "loadUserByIdentityId", + "range": [ + 3105, + 3125 + ], + "loc": { + "start": { + "line": 146, + "column": 25 + }, + "end": { + "line": 146, + "column": 45 + } + } + }, + "range": [ + 3086, + 3125 + ], + "loc": { + "start": { + "line": 146, + "column": 6 + }, + "end": { + "line": 146, + "column": 45 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3126, + 3130 + ], + "loc": { + "start": { + "line": 146, + "column": 46 + }, + "end": { + "line": 146, + "column": 50 + } + } + }, + "property": { + "type": "Identifier", + "name": "identityId", + "range": [ + 3131, + 3141 + ], + "loc": { + "start": { + "line": 146, + "column": 51 + }, + "end": { + "line": 146, + "column": 61 + } + } + }, + "range": [ + 3126, + 3141 + ], + "loc": { + "start": { + "line": 146, + "column": 46 + }, + "end": { + "line": 146, + "column": 61 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "user", + "range": [ + 3152, + 3156 + ], + "loc": { + "start": { + "line": 146, + "column": 72 + }, + "end": { + "line": 146, + "column": 76 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "user", + "range": [ + 3172, + 3176 + ], + "loc": { + "start": { + "line": 147, + "column": 12 + }, + "end": { + "line": 147, + "column": 16 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3190, + 3194 + ], + "loc": { + "start": { + "line": 148, + "column": 10 + }, + "end": { + "line": 148, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "_user", + "range": [ + 3195, + 3200 + ], + "loc": { + "start": { + "line": 148, + "column": 15 + }, + "end": { + "line": 148, + "column": 20 + } + } + }, + "range": [ + 3190, + 3200 + ], + "loc": { + "start": { + "line": 148, + "column": 10 + }, + "end": { + "line": 148, + "column": 20 + } + } + }, + "right": { + "type": "Identifier", + "name": "user", + "range": [ + 3203, + 3207 + ], + "loc": { + "start": { + "line": 148, + "column": 23 + }, + "end": { + "line": 148, + "column": 27 + } + } + }, + "range": [ + 3190, + 3207 + ], + "loc": { + "start": { + "line": 148, + "column": 10 + }, + "end": { + "line": 148, + "column": 27 + } + } + }, + "range": [ + 3190, + 3208 + ], + "loc": { + "start": { + "line": 148, + "column": 10 + }, + "end": { + "line": 148, + "column": 28 + } + } + } + ], + "range": [ + 3178, + 3218 + ], + "loc": { + "start": { + "line": 147, + "column": 18 + }, + "end": { + "line": 149, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 3168, + 3218 + ], + "loc": { + "start": { + "line": 147, + "column": 8 + }, + "end": { + "line": 149, + "column": 9 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 3228, + 3236 + ], + "loc": { + "start": { + "line": 151, + "column": 8 + }, + "end": { + "line": 151, + "column": 16 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "user", + "range": [ + 3237, + 3241 + ], + "loc": { + "start": { + "line": 151, + "column": 17 + }, + "end": { + "line": 151, + "column": 21 + } + } + } + ], + "range": [ + 3228, + 3242 + ], + "loc": { + "start": { + "line": 151, + "column": 8 + }, + "end": { + "line": 151, + "column": 22 + } + } + }, + "range": [ + 3228, + 3243 + ], + "loc": { + "start": { + "line": 151, + "column": 8 + }, + "end": { + "line": 151, + "column": 23 + } + } + } + ], + "range": [ + 3158, + 3251 + ], + "loc": { + "start": { + "line": 146, + "column": 78 + }, + "end": { + "line": 152, + "column": 7 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3143, + 3251 + ], + "loc": { + "start": { + "line": 146, + "column": 63 + }, + "end": { + "line": 152, + "column": 7 + } + } + }, + "property": { + "type": "Identifier", + "name": "bind", + "range": [ + 3252, + 3256 + ], + "loc": { + "start": { + "line": 152, + "column": 8 + }, + "end": { + "line": 152, + "column": 12 + } + } + }, + "range": [ + 3143, + 3256 + ], + "loc": { + "start": { + "line": 146, + "column": 63 + }, + "end": { + "line": 152, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "ThisExpression", + "range": [ + 3257, + 3261 + ], + "loc": { + "start": { + "line": 152, + "column": 13 + }, + "end": { + "line": 152, + "column": 17 + } + } + } + ], + "range": [ + 3143, + 3262 + ], + "loc": { + "start": { + "line": 146, + "column": 63 + }, + "end": { + "line": 152, + "column": 18 + } + } + } + ], + "range": [ + 3086, + 3263 + ], + "loc": { + "start": { + "line": 146, + "column": 6 + }, + "end": { + "line": 152, + "column": 19 + } + } + }, + "range": [ + 3086, + 3264 + ], + "loc": { + "start": { + "line": 146, + "column": 6 + }, + "end": { + "line": 152, + "column": 20 + } + } + } + ], + "range": [ + 3078, + 3270 + ], + "loc": { + "start": { + "line": 145, + "column": 29 + }, + "end": { + "line": 153, + "column": 5 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 3284, + 3292 + ], + "loc": { + "start": { + "line": 154, + "column": 6 + }, + "end": { + "line": 154, + "column": 14 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3293, + 3297 + ], + "loc": { + "start": { + "line": 154, + "column": 15 + }, + "end": { + "line": 154, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "_user", + "range": [ + 3298, + 3303 + ], + "loc": { + "start": { + "line": 154, + "column": 20 + }, + "end": { + "line": 154, + "column": 25 + } + } + }, + "range": [ + 3293, + 3303 + ], + "loc": { + "start": { + "line": 154, + "column": 15 + }, + "end": { + "line": 154, + "column": 25 + } + } + } + ], + "range": [ + 3284, + 3304 + ], + "loc": { + "start": { + "line": 154, + "column": 6 + }, + "end": { + "line": 154, + "column": 26 + } + } + }, + "range": [ + 3284, + 3305 + ], + "loc": { + "start": { + "line": 154, + "column": 6 + }, + "end": { + "line": 154, + "column": 27 + } + } + } + ], + "range": [ + 3276, + 3311 + ], + "loc": { + "start": { + "line": 153, + "column": 11 + }, + "end": { + "line": 155, + "column": 5 + } + } + }, + "range": [ + 3053, + 3311 + ], + "loc": { + "start": { + "line": 145, + "column": 4 + }, + "end": { + "line": 155, + "column": 5 + } + } + } + ], + "range": [ + 2990, + 3315 + ], + "loc": { + "start": { + "line": 140, + "column": 20 + }, + "end": { + "line": 156, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2979, + 3315 + ], + "loc": { + "start": { + "line": 140, + "column": 9 + }, + "end": { + "line": 156, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2972, + 3315 + ], + "loc": { + "start": { + "line": 140, + "column": 2 + }, + "end": { + "line": 156, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 2928, + 2969 + ], + "loc": { + "start": { + "line": 137, + "column": 2 + }, + "end": { + "line": 139, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 219, + 3317 + ], + "loc": { + "start": { + "line": 13, + "column": 19 + }, + "end": { + "line": 157, + "column": 1 + } + } + }, + "range": [ + 207, + 3317 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 157, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Security token holds details about logged user\n ", + "range": [ + 142, + 199 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 200, + 3317 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 157, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Security token holds details about logged user\n ", + "range": [ + 142, + 199 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 42, + 3317 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 157, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by mgoria on 6/23/15.\n ", + "range": [ + 0, + 40 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Security token holds details about logged user\n ", + "range": [ + 142, + 199 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} identityPoolId\n * @param {String} providerName\n * @param {String} providerUserToken\n * @param {String} providerUserId\n ", + "range": [ + 223, + 377 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 806, + 847 + ], + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: set retries in a smarter way...", + "range": [ + 894, + 935 + ], + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 45 + } + } + }, + { + "type": "Line", + "value": " update AWS credentials", + "range": [ + 1479, + 1504 + ], + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 29 + } + } + }, + { + "type": "Line", + "value": " restore to default region", + "range": [ + 1945, + 1973 + ], + "loc": { + "start": { + "line": 72, + "column": 31 + }, + "end": { + "line": 72, + "column": 59 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} identityPoolId\n * @returns {String}\n * @private\n ", + "range": [ + 2039, + 2121 + ], + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 83, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2226, + 2258 + ], + "loc": { + "start": { + "line": 88, + "column": 2 + }, + "end": { + "line": 90, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2320, + 2352 + ], + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2424, + 2456 + ], + "loc": { + "start": { + "line": 102, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {String}\n ", + "range": [ + 2522, + 2554 + ], + "loc": { + "start": { + "line": 109, + "column": 2 + }, + "end": { + "line": 111, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 2612, + 2644 + ], + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 118, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 2704, + 2737 + ], + "loc": { + "start": { + "line": 123, + "column": 2 + }, + "end": { + "line": 125, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {UserProvider} userProvider\n ", + "range": [ + 2797, + 2846 + ], + "loc": { + "start": { + "line": 130, + "column": 2 + }, + "end": { + "line": 132, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Function} callback\n ", + "range": [ + 2928, + 2969 + ], + "loc": { + "start": { + "line": 137, + "column": 2 + }, + "end": { + "line": 139, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-security/ast/source/UserProvider.js.json b/docs-api/deep-security/ast/source/UserProvider.js.json new file mode 100644 index 00000000..a80a030c --- /dev/null +++ b/docs-api/deep-security/ast/source/UserProvider.js.json @@ -0,0 +1,1770 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 0, + 12 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 12 + } + } + }, + "range": [ + 0, + 13 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "LoadUserException", + "range": [ + 23, + 40 + ], + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + "imported": { + "type": "Identifier", + "name": "LoadUserException", + "range": [ + 23, + 40 + ], + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + "range": [ + 23, + 40 + ], + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 25 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/LoadUserException", + "raw": "'./Exception/LoadUserException'", + "range": [ + 47, + 78 + ], + "loc": { + "start": { + "line": 3, + "column": 32 + }, + "end": { + "line": 3, + "column": 63 + } + } + }, + "range": [ + 15, + 79 + ], + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 64 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Loads user from db\n ", + "range": [ + 81, + 110 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "UserProvider", + "range": [ + 124, + 136 + ], + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 25 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 236, + 247 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "retrieveUserResource", + "range": [ + 248, + 268 + ], + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 34 + } + } + }, + { + "type": "Identifier", + "name": "deepResourceService", + "range": [ + 270, + 289 + ], + "loc": { + "start": { + "line": 13, + "column": 36 + }, + "end": { + "line": 13, + "column": 55 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 297, + 301 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_retrieveUserResource", + "range": [ + 302, + 323 + ], + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 30 + } + } + }, + "range": [ + 297, + 323 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 30 + } + } + }, + "right": { + "type": "Identifier", + "name": "retrieveUserResource", + "range": [ + 326, + 346 + ], + "loc": { + "start": { + "line": 14, + "column": 33 + }, + "end": { + "line": 14, + "column": 53 + } + } + }, + "range": [ + 297, + 346 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 53 + } + } + }, + "range": [ + 297, + 347 + ], + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 54 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 352, + 356 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_deepResource", + "range": [ + 357, + 370 + ], + "loc": { + "start": { + "line": 15, + "column": 9 + }, + "end": { + "line": 15, + "column": 22 + } + } + }, + "range": [ + 352, + 370 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 22 + } + } + }, + "right": { + "type": "Identifier", + "name": "deepResourceService", + "range": [ + 373, + 392 + ], + "loc": { + "start": { + "line": 15, + "column": 25 + }, + "end": { + "line": 15, + "column": 44 + } + } + }, + "range": [ + 352, + 392 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 44 + } + } + }, + "range": [ + 352, + 393 + ], + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 45 + } + } + } + ], + "range": [ + 291, + 397 + ], + "loc": { + "start": { + "line": 13, + "column": 57 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 247, + 397 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 236, + 397 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} retrieveUserResource\n * @param {Object} deepResourceService\n ", + "range": [ + 141, + 233 + ], + "loc": { + "start": { + "line": 9, + "column": 2 + }, + "end": { + "line": 12, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} id\n * @param {Function} callback\n * @returns {*}\n ", + "range": [ + 401, + 484 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "loadUserByIdentityId", + "range": [ + 487, + 507 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 23, + "column": 22 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "id", + "range": [ + 508, + 510 + ], + "loc": { + "start": { + "line": 23, + "column": 23 + }, + "end": { + "line": 23, + "column": 25 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 512, + 520 + ], + "loc": { + "start": { + "line": 23, + "column": 27 + }, + "end": { + "line": 23, + "column": 35 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "retrieveUserResource", + "range": [ + 532, + 552 + ], + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 28 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 555, + 559 + ], + "loc": { + "start": { + "line": 24, + "column": 31 + }, + "end": { + "line": 24, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "_deepResource", + "range": [ + 560, + 573 + ], + "loc": { + "start": { + "line": 24, + "column": 36 + }, + "end": { + "line": 24, + "column": 49 + } + } + }, + "range": [ + 555, + 573 + ], + "loc": { + "start": { + "line": 24, + "column": 31 + }, + "end": { + "line": 24, + "column": 49 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 574, + 577 + ], + "loc": { + "start": { + "line": 24, + "column": 50 + }, + "end": { + "line": 24, + "column": 53 + } + } + }, + "range": [ + 555, + 577 + ], + "loc": { + "start": { + "line": 24, + "column": 31 + }, + "end": { + "line": 24, + "column": 53 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 578, + 582 + ], + "loc": { + "start": { + "line": 24, + "column": 54 + }, + "end": { + "line": 24, + "column": 58 + } + } + }, + "property": { + "type": "Identifier", + "name": "_retrieveUserResource", + "range": [ + 583, + 604 + ], + "loc": { + "start": { + "line": 24, + "column": 59 + }, + "end": { + "line": 24, + "column": 80 + } + } + }, + "range": [ + 578, + 604 + ], + "loc": { + "start": { + "line": 24, + "column": 54 + }, + "end": { + "line": 24, + "column": 80 + } + } + } + ], + "range": [ + 555, + 605 + ], + "loc": { + "start": { + "line": 24, + "column": 31 + }, + "end": { + "line": 24, + "column": 81 + } + } + }, + "range": [ + 532, + 605 + ], + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 81 + } + } + } + ], + "kind": "let", + "range": [ + 528, + 606 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 82 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "retrieveUserResource", + "range": [ + 612, + 632 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "request", + "range": [ + 633, + 640 + ], + "loc": { + "start": { + "line": 26, + "column": 25 + }, + "end": { + "line": 26, + "column": 32 + } + } + }, + "range": [ + 612, + 640 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "Id", + "range": [ + 642, + 644 + ], + "loc": { + "start": { + "line": 26, + "column": 34 + }, + "end": { + "line": 26, + "column": 36 + } + } + }, + "value": { + "type": "Identifier", + "name": "id", + "range": [ + 646, + 648 + ], + "loc": { + "start": { + "line": 26, + "column": 38 + }, + "end": { + "line": 26, + "column": 40 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 642, + 648 + ], + "loc": { + "start": { + "line": 26, + "column": 34 + }, + "end": { + "line": 26, + "column": 40 + } + } + } + ], + "range": [ + 641, + 649 + ], + "loc": { + "start": { + "line": 26, + "column": 33 + }, + "end": { + "line": 26, + "column": 41 + } + } + } + ], + "range": [ + 612, + 650 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "name": "send", + "range": [ + 651, + 655 + ], + "loc": { + "start": { + "line": 26, + "column": 43 + }, + "end": { + "line": 26, + "column": 47 + } + } + }, + "range": [ + 612, + 655 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 47 + } + } + }, + "arguments": [ + { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "response", + "range": [ + 665, + 673 + ], + "loc": { + "start": { + "line": 26, + "column": 57 + }, + "end": { + "line": 26, + "column": 65 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 687, + 695 + ], + "loc": { + "start": { + "line": 27, + "column": 10 + }, + "end": { + "line": 27, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "error", + "range": [ + 696, + 701 + ], + "loc": { + "start": { + "line": 27, + "column": 19 + }, + "end": { + "line": 27, + "column": 24 + } + } + }, + "range": [ + 687, + 701 + ], + "loc": { + "start": { + "line": 27, + "column": 10 + }, + "end": { + "line": 27, + "column": 24 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "LoadUserException", + "range": [ + 723, + 740 + ], + "loc": { + "start": { + "line": 28, + "column": 18 + }, + "end": { + "line": 28, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "id", + "range": [ + 741, + 743 + ], + "loc": { + "start": { + "line": 28, + "column": 36 + }, + "end": { + "line": 28, + "column": 38 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 745, + 753 + ], + "loc": { + "start": { + "line": 28, + "column": 40 + }, + "end": { + "line": 28, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "name": "error", + "range": [ + 754, + 759 + ], + "loc": { + "start": { + "line": 28, + "column": 49 + }, + "end": { + "line": 28, + "column": 54 + } + } + }, + "range": [ + 745, + 759 + ], + "loc": { + "start": { + "line": 28, + "column": 40 + }, + "end": { + "line": 28, + "column": 54 + } + } + } + ], + "range": [ + 719, + 760 + ], + "loc": { + "start": { + "line": 28, + "column": 14 + }, + "end": { + "line": 28, + "column": 55 + } + } + }, + "range": [ + 713, + 761 + ], + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 56 + } + } + } + ], + "range": [ + 703, + 769 + ], + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 29, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 683, + 769 + ], + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 29, + "column": 7 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 784, + 792 + ], + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 31, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 793, + 797 + ], + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "parse", + "range": [ + 798, + 803 + ], + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 32 + } + } + }, + "range": [ + 793, + 803 + ], + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "response", + "range": [ + 804, + 812 + ], + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "name": "data", + "range": [ + 813, + 817 + ], + "loc": { + "start": { + "line": 31, + "column": 42 + }, + "end": { + "line": 31, + "column": 46 + } + } + }, + "range": [ + 804, + 817 + ], + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "Payload", + "range": [ + 818, + 825 + ], + "loc": { + "start": { + "line": 31, + "column": 47 + }, + "end": { + "line": 31, + "column": 54 + } + } + }, + "range": [ + 804, + 825 + ], + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 54 + } + } + } + ], + "range": [ + 793, + 826 + ], + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 55 + } + } + } + ], + "range": [ + 784, + 827 + ], + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 31, + "column": 56 + } + } + }, + "range": [ + 777, + 828 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 57 + } + } + } + ], + "range": [ + 675, + 834 + ], + "loc": { + "start": { + "line": 26, + "column": 67 + }, + "end": { + "line": 32, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 656, + 834 + ], + "loc": { + "start": { + "line": 26, + "column": 48 + }, + "end": { + "line": 32, + "column": 5 + } + } + } + ], + "range": [ + 612, + 835 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 32, + "column": 6 + } + } + }, + "range": [ + 612, + 836 + ], + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 32, + "column": 7 + } + } + } + ], + "range": [ + 522, + 840 + ], + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 507, + 840 + ], + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 487, + 840 + ], + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 33, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} id\n * @param {Function} callback\n * @returns {*}\n ", + "range": [ + 401, + 484 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 137, + 842 + ], + "loc": { + "start": { + "line": 8, + "column": 26 + }, + "end": { + "line": 34, + "column": 1 + } + } + }, + "range": [ + 118, + 842 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Loads user from db\n ", + "range": [ + 81, + 110 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 111, + 842 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Loads user from db\n ", + "range": [ + 81, + 110 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 0, + 842 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Loads user from db\n ", + "range": [ + 81, + 110 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} retrieveUserResource\n * @param {Object} deepResourceService\n ", + "range": [ + 141, + 233 + ], + "loc": { + "start": { + "line": 9, + "column": 2 + }, + "end": { + "line": 12, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} id\n * @param {Function} callback\n * @returns {*}\n ", + "range": [ + 401, + 484 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-security/ast/source/bootstrap.js.json b/docs-api/deep-security/ast/source/bootstrap.js.json new file mode 100644 index 00000000..afa92b7d --- /dev/null +++ b/docs-api/deep-security/ast/source/bootstrap.js.json @@ -0,0 +1,332 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 89, + 101 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + "range": [ + 89, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Security", + "range": [ + 112, + 120 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 16 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Security", + "range": [ + 112, + 120 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 16 + } + } + }, + "range": [ + 112, + 120 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 16 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Security", + "raw": "'./Security'", + "range": [ + 127, + 139 + ], + "loc": { + "start": { + "line": 9, + "column": 23 + }, + "end": { + "line": 9, + "column": 35 + } + } + }, + "range": [ + 104, + 140 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 36 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "exports", + "range": [ + 146, + 153 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + "init": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "module", + "range": [ + 156, + 162 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exports", + "range": [ + 163, + 170 + ], + "loc": { + "start": { + "line": 11, + "column": 21 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "range": [ + 156, + 170 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "right": { + "type": "Identifier", + "name": "Security", + "range": [ + 173, + 181 + ], + "loc": { + "start": { + "line": 11, + "column": 31 + }, + "end": { + "line": 11, + "column": 39 + } + } + }, + "range": [ + 156, + 181 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 39 + } + } + }, + "range": [ + 146, + 181 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 39 + } + } + } + ], + "kind": "let", + "range": [ + 142, + 182 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 40 + } + } + } + ], + "sourceType": "module", + "range": [ + 89, + 182 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 11, + "column": 40 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-security/badge.svg b/docs-api/deep-security/badge.svg new file mode 100644 index 00000000..e24552c4 --- /dev/null +++ b/docs-api/deep-security/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 100% + 100% + + diff --git a/docs-api/deep-security/class/lib/Exception/AuthException.js~AuthException.html b/docs-api/deep-security/class/lib/Exception/AuthException.js~AuthException.html new file mode 100644 index 00000000..9bb1b04e --- /dev/null +++ b/docs-api/deep-security/class/lib/Exception/AuthException.js~AuthException.html @@ -0,0 +1,200 @@ + + + + + + AuthException | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {AuthException} from 'deep-security/lib/Exception/AuthException.js'
    + public + class + + + + | source +
    + +
    +

    AuthException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → AuthException
    + + + + + + + + + +

    Thrown when auth error occurs

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(error: Object) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(error: Object) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    errorObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/class/lib/Exception/Exception.js~Exception.html b/docs-api/deep-security/class/lib/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..8b252192 --- /dev/null +++ b/docs-api/deep-security/class/lib/Exception/Exception.js~Exception.html @@ -0,0 +1,200 @@ + + + + + + Exception | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    deep-core~Core.Exception.Exception → Exception
    + + + + + + + + + +

    Thrown when any exception occurs

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/class/lib/Exception/LoadUserException.js~LoadUserException.html b/docs-api/deep-security/class/lib/Exception/LoadUserException.js~LoadUserException.html new file mode 100644 index 00000000..80832c6f --- /dev/null +++ b/docs-api/deep-security/class/lib/Exception/LoadUserException.js~LoadUserException.html @@ -0,0 +1,206 @@ + + + + + + LoadUserException | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {LoadUserException} from 'deep-security/lib/Exception/LoadUserException.js'
    + public + class + + + + | source +
    + +
    +

    LoadUserException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → LoadUserException
    + + + + + + + + + +

    Thrown when load user form db failed

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(identityId: String, error: Object) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(identityId: String, error: Object) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    identityIdString
    errorObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/class/lib/Exception/MissingLoginProviderException.js~MissingLoginProviderException.html b/docs-api/deep-security/class/lib/Exception/MissingLoginProviderException.js~MissingLoginProviderException.html new file mode 100644 index 00000000..581b87a2 --- /dev/null +++ b/docs-api/deep-security/class/lib/Exception/MissingLoginProviderException.js~MissingLoginProviderException.html @@ -0,0 +1,200 @@ + + + + + + MissingLoginProviderException | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {MissingLoginProviderException} from 'deep-security/lib/Exception/MissingLoginProviderException.js'
    + public + class + + + + | source +
    + +
    +

    MissingLoginProviderException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → MissingLoginProviderException
    + + + + + + + + + +

    Thrown when requested login provider is missing

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(providerName: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(providerName: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    providerNameString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/class/lib/LocalToken.js~LocalToken.html b/docs-api/deep-security/class/lib/LocalToken.js~LocalToken.html new file mode 100644 index 00000000..faa72ccd --- /dev/null +++ b/docs-api/deep-security/class/lib/LocalToken.js~LocalToken.html @@ -0,0 +1,289 @@ + + + + + + LocalToken | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {LocalToken} from 'deep-security/lib/LocalToken.js'
    + public + class + + + + | source +
    + +
    +

    LocalToken

    + + + + + +

    Extends:

    lib/Token~Token → LocalToken
    + + + + + + + + + +

    Security token holds details about logged user

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: *) +

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

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + getCredentials(callback: Function) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: *) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    args*
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + +

    Public Methods

    + +
    +

    + public + + + + + getCredentials(callback: Function) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    callbackFunction
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/class/lib/Security.js~Security.html b/docs-api/deep-security/class/lib/Security.js~Security.html new file mode 100644 index 00000000..762e1d96 --- /dev/null +++ b/docs-api/deep-security/class/lib/Security.js~Security.html @@ -0,0 +1,1451 @@ + + + + + + Security | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Security} from 'deep-security/lib/Security.js'
    + public + class + + + + | source +
    + +
    +

    Security

    + + + + + +

    Extends:

    deep-kernel~Kernel.ContainerAware → Security
    + + + + + + + + + +

    Deep Security implementation

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

    Static Member Summary

    + + + + + + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    + public + static + get + + + + +
    + + + +
    +
    + + +
    +
    + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(identityPoolId: String, identityProviders: Object) +

    +
    +
    + + +
    Defines all class private properties
    +
    +
    + + +
    +
    +

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + + +
    + + + +
    +
    + + +
    + public + + get + + + + +
    + + + +
    +
    + + +
    + public + + get + + + + +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + identityPoolId: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + + +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + token: null | Token: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + + +
    + + + +
    +
    + + +
    +
    +

    Method Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + anonymousLogin(callback: Function): Token +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + boot(kernel: Kernel, callback: Function) +

    +
    +
    + + +
    Booting a certain service
    +
    +
    + + +
    + public + + + + + + +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + login(providerName: String, userToken: String, userId: String, callback: Function): Token +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + onTokenAvailable(callback: Function): Security +

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

    Static Public Members

    + +
    +

    + public + static + get + + + PROVIDER_AMAZON: string: string + + + + source + +

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

    Return:

    + + + + + +
    string
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + PROVIDER_FACEBOOK: string: string + + + + source + +

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

    Return:

    + + + + + +
    string
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + PROVIDER_GOOGLE: string: string + + + + source + +

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

    Return:

    + + + + + +
    string
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + +

    Public Constructors

    + +
    +

    + public + + + + + constructor(identityPoolId: String, identityProviders: Object) + + + + source + +

    + + + + +

    Defines all class private properties

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    identityPoolIdString
    identityProvidersObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + amazonLoginProviderConfig: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + facebookLoginProviderConfig: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + googleLoginProviderConfig: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + identityPoolId: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + identityProviders: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + token: null | Token: * + + + + source + +

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

    Return:

    + + + + + +
    null | Token
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + userProvider: UserProvider: * + + + + source + +

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

    Return:

    + + + + + +
    UserProvider
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + anonymousLogin(callback: Function): Token + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    callbackFunction
    +
    +
    + +
    +

    Return:

    + + + + + +
    Token
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + boot(kernel: Kernel, callback: Function) + + + + source + +

    + + + + +

    Booting a certain service

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    kernelKernel
    callbackFunction
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    + public + + + + + getLoginProviderConfig(name: String): Object + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    nameString
    +
    +
    + +
    +

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + login(providerName: String, userToken: String, userId: String, callback: Function): Token + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    providerNameString
    userTokenString
    userIdString
    callbackFunction
    +
    +
    + +
    +

    Return:

    + + + + + +
    Token
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + onTokenAvailable(callback: Function): Security + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    callbackFunction
    +
    +
    + +
    +

    Return:

    + + + + + +
    Security
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/class/lib/Token.js~Token.html b/docs-api/deep-security/class/lib/Token.js~Token.html new file mode 100644 index 00000000..0ca07d9c --- /dev/null +++ b/docs-api/deep-security/class/lib/Token.js~Token.html @@ -0,0 +1,911 @@ + + + + + + Token | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Token} from 'deep-security/lib/Token.js'
    + public + class + + + + | source +
    + +
    +

    Token

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

    Security token holds details about logged user

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(identityPoolId: String, providerName: String, providerUserToken: String, providerUserId: String) +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + credentials: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + identityId: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + isAnonymous: Boolean: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + providerName: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + providerUserId: String: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + + +
    + + + +
    +
    + + +
    + public + + set + + + +
    +

    + userProvider(userProvider: UserProvider): * +

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

    Method Summary

    + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + getCredentials(callback: Function) +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + getUser(callback: Function) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(identityPoolId: String, providerName: String, providerUserToken: String, providerUserId: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    identityPoolIdString
    providerNameString
    providerUserTokenString
    providerUserIdString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + credentials: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + identityId: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + isAnonymous: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + providerName: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + providerUserId: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + providerUserToken: String: * + + + + source + +

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

    Return:

    + + + + + +
    String
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + set + + + userProvider(userProvider: UserProvider): * + + + + source + +

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

    Public Methods

    + +
    +

    + public + + + + + getCredentials(callback: Function) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    callbackFunction
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    + public + + + + + getUser(callback: Function) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    callbackFunction
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/class/lib/UserProvider.js~UserProvider.html b/docs-api/deep-security/class/lib/UserProvider.js~UserProvider.html new file mode 100644 index 00000000..38ee4336 --- /dev/null +++ b/docs-api/deep-security/class/lib/UserProvider.js~UserProvider.html @@ -0,0 +1,311 @@ + + + + + + UserProvider | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {UserProvider} from 'deep-security/lib/UserProvider.js'
    + public + class + + + + | source +
    + +
    +

    UserProvider

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

    Loads user from db

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(retrieveUserResource: String, deepResourceService: Object) +

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

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + loadUserByIdentityId(id: String, callback: Function): * +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(retrieveUserResource: String, deepResourceService: Object) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    retrieveUserResourceString
    deepResourceServiceObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + +

    Public Methods

    + +
    +

    + public + + + + + loadUserByIdentityId(id: String, callback: Function): * + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    idString
    callbackFunction
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/coverage.json b/docs-api/deep-security/coverage.json new file mode 100644 index 00000000..a3a08ac0 --- /dev/null +++ b/docs-api/deep-security/coverage.json @@ -0,0 +1,47 @@ +{ + "coverage": "100%", + "expectCount": 42, + "actualCount": 42, + "files": { + "lib/Exception/AuthException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Exception/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Exception/LoadUserException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/LocalToken.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + }, + "lib/Exception/MissingLoginProviderException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Security.js": { + "expectCount": 17, + "actualCount": 17, + "undocumentLines": [] + }, + "lib/Token.js": { + "expectCount": 11, + "actualCount": 11, + "undocumentLines": [] + }, + "lib/UserProvider.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/docs-api/deep-security/css/prettify-tomorrow.css b/docs-api/deep-security/css/prettify-tomorrow.css new file mode 100644 index 00000000..b6f92a78 --- /dev/null +++ b/docs-api/deep-security/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs-api/deep-security/css/style.css b/docs-api/deep-security/css/style.css new file mode 100644 index 00000000..4dc99a1b --- /dev/null +++ b/docs-api/deep-security/css/style.css @@ -0,0 +1,862 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Roboto', sans-serif; + overflow: auto; + font-size: 14px; + /*color: #4d4e53;*/ + color: rgba(0, 0, 0, .68); + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + background-color: #E2E2E2; + padding: 4px; + font-weight: 300; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 19px; +} + +p > code { + background-color: #f5f5f5; + border-radius: 3px; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0 4px; + border-radius: 3px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: white; + top: 0; + border-bottom: solid 1px #E02130; +} +.layout-container > header > a{ + margin: 0 5px; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid rgba(0, 0, 0, 0.1); +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation .nav-dir-path { + margin-top: 0.7em; + margin-bottom: 0.25em; + font-size: 0.8em; + color: #aaa; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #999; + color: white; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +pre.source-code { + background: #f5f5f5; + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150); +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #999; + color: white; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} + +table.test-summary thead { + background: #999; + color: white; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-describe .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; +} + +table.test-summary tr.test-describe .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-describe .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} + +.inner-link-active { + background: rgb(255, 255, 150); +} + +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + +/* coverage badge */ +.esdoc-coverage { + display: inline-block; + height: 20px; + vertical-align: top; +} + +h1 .esdoc-coverage { + position: relative; + top: -4px; +} + +.esdoc-coverage-wrap { + color: white; + font-size: 12px; + font-weight: 500; +} + +.esdoc-coverage-label { + padding: 3px 4px 3px 6px; + background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%); + border-radius: 4px 0 0 4px; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-ratio { + padding: 3px 6px 3px 4px; + border-radius: 0 4px 4px 0; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-low { + background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%); +} + +.esdoc-coverage-middle { + background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%); +} + +.esdoc-coverage-high { + background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%); +} + +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; + background-color: transparent; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} diff --git a/docs-api/deep-security/dump.json b/docs-api/deep-security/dump.json new file mode 100644 index 00000000..721544f2 --- /dev/null +++ b/docs-api/deep-security/dump.json @@ -0,0 +1,2561 @@ +[ + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/AuthException.js", + "memberof": null, + "longname": "lib/Exception/AuthException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 6/30/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when auth error occurs\n */\nexport class AuthException extends Exception {\n /**\n * @param {Object} error\n */\n constructor(error) {\n super(`Error on authentication. ${error}`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "AuthException", + "memberof": "lib/Exception/AuthException.js", + "longname": "lib/Exception/AuthException.js~AuthException", + "access": null, + "export": true, + "importPath": "deep-security/lib/Exception/AuthException.js", + "importStyle": "{AuthException}", + "description": "Thrown when auth error occurs", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/AuthException.js~AuthException", + "longname": "lib/Exception/AuthException.js~AuthException#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "error", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/Exception.js", + "memberof": null, + "longname": "lib/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\n\n/**\n * Thrown when any exception occurs\n */\nexport class Exception extends Core.Exception.Exception {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Exception/Exception.js", + "longname": "lib/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-security/lib/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Thrown when any exception occurs", + "lineNumber": 12, + "interface": false, + "extends": [ + "deep-core~Core.Exception.Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/Exception.js~Exception", + "longname": "lib/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/LoadUserException.js", + "memberof": null, + "longname": "lib/Exception/LoadUserException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 7/10/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when load user form db failed\n */\nexport class LoadUserException extends Exception {\n /**\n * @param {String} identityId\n * @param {Object} error\n */\n constructor(identityId, error) {\n super(`Error on loading user ${identityId} from db. ${error}`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "LoadUserException", + "memberof": "lib/Exception/LoadUserException.js", + "longname": "lib/Exception/LoadUserException.js~LoadUserException", + "access": null, + "export": true, + "importPath": "deep-security/lib/Exception/LoadUserException.js", + "importStyle": "{LoadUserException}", + "description": "Thrown when load user form db failed", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/LoadUserException.js~LoadUserException", + "longname": "lib/Exception/LoadUserException.js~LoadUserException#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "identityId", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "error", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/MissingLoginProviderException.js", + "memberof": null, + "longname": "lib/Exception/MissingLoginProviderException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 6/23/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when requested login provider is missing\n */\nexport class MissingLoginProviderException extends Exception {\n /**\n * @param {String} providerName\n */\n constructor(providerName) {\n super(`Missing login provider \"${providerName}\" in deep-security.`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "MissingLoginProviderException", + "memberof": "lib/Exception/MissingLoginProviderException.js", + "longname": "lib/Exception/MissingLoginProviderException.js~MissingLoginProviderException", + "access": null, + "export": true, + "importPath": "deep-security/lib/Exception/MissingLoginProviderException.js", + "importStyle": "{MissingLoginProviderException}", + "description": "Thrown when requested login provider is missing", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/MissingLoginProviderException.js~MissingLoginProviderException", + "longname": "lib/Exception/MissingLoginProviderException.js~MissingLoginProviderException#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "providerName", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/LocalToken.js", + "memberof": null, + "longname": "lib/LocalToken.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 09/01/15.\n */\n\n'use strict';\n\nimport {Token} from './Token';\n\n/**\n * Security token holds details about logged user\n */\nexport class LocalToken extends Token {\n /**\n * @param args\n */\n constructor(...args) {\n super(...args);\n }\n\n /**\n * @param {Function} callback\n */\n getCredentials(callback) {\n // use provider user id instead of cognito identity id for local backend\n this._identityId = this._providerUserId;\n\n callback(null, this);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "LocalToken", + "memberof": "lib/LocalToken.js", + "longname": "lib/LocalToken.js~LocalToken", + "access": null, + "export": true, + "importPath": "deep-security/lib/LocalToken.js", + "importStyle": "{LocalToken}", + "description": "Security token holds details about logged user", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Token~Token" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/LocalToken.js~LocalToken", + "longname": "lib/LocalToken.js~LocalToken#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "getCredentials", + "memberof": "lib/LocalToken.js~LocalToken", + "longname": "lib/LocalToken.js~LocalToken#getCredentials", + "access": null, + "description": null, + "lineNumber": 23, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_identityId", + "memberof": "lib/LocalToken.js~LocalToken", + "longname": "lib/LocalToken.js~LocalToken#_identityId", + "access": null, + "description": null, + "lineNumber": 25, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Security.js", + "memberof": null, + "longname": "lib/Security.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 6/17/15.\n */\n\n'use strict';\n\nimport Kernel from 'deep-kernel';\nimport {MissingLoginProviderException} from './Exception/MissingLoginProviderException';\nimport {Token} from './Token';\nimport {LocalToken} from './LocalToken';\nimport {UserProvider} from './UserProvider';\n\n/**\n * Deep Security implementation\n */\nexport class Security extends Kernel.ContainerAware {\n /**\n * Defines all class private properties\n *\n * @param {String} identityPoolId\n * @param {Object} identityProviders\n */\n constructor(identityPoolId = null, identityProviders = {}) {\n super();\n\n this._identityPoolId = identityPoolId;\n this._identityProviders = identityProviders;\n this._token = null;\n this._userProvider = null;\n this._userProviderEndpoint = null;\n\n this._onTokenAvailable = [];\n }\n\n /**\n * @param {Function} callback\n * @returns {Security}\n */\n onTokenAvailable(callback) {\n this._onTokenAvailable.push(callback);\n\n return this;\n }\n\n /**\n * @returns {string}\n */\n static get PROVIDER_AMAZON() {\n return 'www.amazon.com';\n }\n\n /**\n * @returns {string}\n */\n static get PROVIDER_FACEBOOK() {\n return 'graph.facebook.com';\n }\n\n /**\n * @returns {string}\n */\n static get PROVIDER_GOOGLE() {\n return 'accounts.google.com';\n }\n\n /**\n * @returns {Object}\n */\n get identityProviders() {\n return this._identityProviders;\n }\n\n /**\n * @returns {Object}\n */\n get identityPoolId() {\n return this._identityPoolId;\n }\n\n /**\n * @returns {UserProvider}\n */\n get userProvider() {\n if (!this._userProvider) {\n this._userProvider = new UserProvider(this._userProviderEndpoint, this.container.get('resource'));\n }\n\n return this._userProvider;\n }\n\n /**\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n */\n boot(kernel, callback) {\n // @todo: remove this compatibility hook\n let globals = kernel.config.globals || kernel.config;\n\n this._identityProviders = globals.security.identityProviders;\n this._userProviderEndpoint = globals.security.userProviderEndpoint;\n\n this._identityPoolId = kernel.config.identityPoolId;\n\n callback();\n }\n\n /**\n * @param {String} name\n * @returns {Object}\n */\n getLoginProviderConfig(name) {\n for (let providerName in this._identityProviders) {\n if (!this._identityProviders.hasOwnProperty(providerName)) {\n continue;\n }\n\n if (providerName === name) {\n return this._identityProviders[providerName];\n }\n }\n\n throw new MissingLoginProviderException(name);\n }\n\n /**\n * @returns {Object}\n */\n get amazonLoginProviderConfig() {\n return this.getLoginProviderConfig(Security.PROVIDER_AMAZON);\n }\n\n /**\n * @returns {Object}\n */\n get facebookLoginProviderConfig() {\n return this.getLoginProviderConfig(Security.PROVIDER_FACEBOOK);\n }\n\n /**\n * @returns {Object}\n */\n get googleLoginProviderConfig() {\n return this.getLoginProviderConfig(Security.PROVIDER_GOOGLE);\n }\n\n /**\n * @returns {null|Token}\n */\n get token() {\n return this._token;\n }\n\n /**\n * @param {String} providerName\n * @param {String} userToken\n * @param {String} userId\n * @param {Function} callback\n * @returns {Token}\n */\n login(providerName, userToken, userId, callback) {\n // check if providerName is defined\n this.getLoginProviderConfig(providerName);\n\n let TokenImplementation = this._localBackend ? LocalToken : Token;\n\n this._token = new TokenImplementation(this._identityPoolId, providerName, userToken, userId);\n\n this._token.userProvider = this.userProvider;\n\n this._token.getCredentials((...args) => {\n for (let hookKey in this._onTokenAvailable) {\n if (!this._onTokenAvailable.hasOwnProperty(hookKey)) {\n continue;\n }\n\n this._onTokenAvailable[hookKey](this._token);\n }\n\n callback(...args);\n });\n\n return this._token;\n }\n\n /**\n * @param {Function} callback\n * @returns {Token}\n */\n anonymousLogin(callback) {\n let TokenImplementation = this._localBackend ? LocalToken : Token;\n\n this._token = new TokenImplementation(this._identityPoolId);\n\n this._token.userProvider = this.userProvider;\n\n this._token.getCredentials((...args) => {\n for (let hookKey in this._onTokenAvailable) {\n if (!this._onTokenAvailable.hasOwnProperty(hookKey)) {\n continue;\n }\n\n this._onTokenAvailable[hookKey](this._token);\n }\n\n callback(...args);\n });\n\n return this._token;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Security", + "memberof": "lib/Security.js", + "longname": "lib/Security.js~Security", + "access": null, + "export": true, + "importPath": "deep-security/lib/Security.js", + "importStyle": "{Security}", + "description": "Deep Security implementation", + "lineNumber": 16, + "interface": false, + "extends": [ + "deep-kernel~Kernel.ContainerAware" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#constructor", + "access": null, + "description": "Defines all class private properties", + "lineNumber": 23, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "identityPoolId", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "identityProviders", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_identityPoolId", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#_identityPoolId", + "access": null, + "description": null, + "lineNumber": 26, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_identityProviders", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#_identityProviders", + "access": null, + "description": null, + "lineNumber": 27, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_token", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#_token", + "access": null, + "description": null, + "lineNumber": 28, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_userProvider", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#_userProvider", + "access": null, + "description": null, + "lineNumber": 29, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_userProviderEndpoint", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#_userProviderEndpoint", + "access": null, + "description": null, + "lineNumber": 30, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_onTokenAvailable", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#_onTokenAvailable", + "access": null, + "description": null, + "lineNumber": 32, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "onTokenAvailable", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#onTokenAvailable", + "access": null, + "description": null, + "lineNumber": 39, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Security}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Security" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "PROVIDER_AMAZON", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security.PROVIDER_AMAZON", + "access": null, + "description": null, + "lineNumber": 48, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{string}" + } + ], + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "PROVIDER_FACEBOOK", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security.PROVIDER_FACEBOOK", + "access": null, + "description": null, + "lineNumber": 55, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{string}" + } + ], + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "PROVIDER_GOOGLE", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security.PROVIDER_GOOGLE", + "access": null, + "description": null, + "lineNumber": 62, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{string}" + } + ], + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "string" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "identityProviders", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#identityProviders", + "access": null, + "description": null, + "lineNumber": 69, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "identityPoolId", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#identityPoolId", + "access": null, + "description": null, + "lineNumber": 76, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "userProvider", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#userProvider", + "access": null, + "description": null, + "lineNumber": 83, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{UserProvider}" + } + ], + "return": { + "nullable": null, + "types": [ + "UserProvider" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_userProvider", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#_userProvider", + "access": null, + "description": null, + "lineNumber": 85, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "boot", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#boot", + "access": null, + "description": "Booting a certain service", + "lineNumber": 97, + "params": [ + { + "nullable": null, + "types": [ + "Kernel" + ], + "spread": false, + "optional": false, + "name": "kernel", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_identityProviders", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#_identityProviders", + "access": null, + "description": null, + "lineNumber": 101, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_userProviderEndpoint", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#_userProviderEndpoint", + "access": null, + "description": null, + "lineNumber": 102, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_identityPoolId", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#_identityPoolId", + "access": null, + "description": null, + "lineNumber": 104, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "getLoginProviderConfig", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#getLoginProviderConfig", + "access": null, + "description": null, + "lineNumber": 113, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "amazonLoginProviderConfig", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#amazonLoginProviderConfig", + "access": null, + "description": null, + "lineNumber": 130, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "facebookLoginProviderConfig", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#facebookLoginProviderConfig", + "access": null, + "description": null, + "lineNumber": 137, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "googleLoginProviderConfig", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#googleLoginProviderConfig", + "access": null, + "description": null, + "lineNumber": 144, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "token", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#token", + "access": null, + "description": null, + "lineNumber": 151, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{null|Token}" + } + ], + "return": { + "nullable": null, + "types": [ + "null", + "Token" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "login", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#login", + "access": null, + "description": null, + "lineNumber": 162, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Token}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "providerName", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "userToken", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "userId", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Token" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_token", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#_token", + "access": null, + "description": null, + "lineNumber": 168, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "anonymousLogin", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#anonymousLogin", + "access": null, + "description": null, + "lineNumber": 191, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Token}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Token" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_token", + "memberof": "lib/Security.js~Security", + "longname": "lib/Security.js~Security#_token", + "access": null, + "description": null, + "lineNumber": 194, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Token.js", + "memberof": null, + "longname": "lib/Token.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by mgoria on 6/23/15.\n */\n\n'use strict';\n\nimport AWS from 'aws-sdk';\nimport {AuthException} from './Exception/AuthException';\n\n/**\n * Security token holds details about logged user\n */\nexport class Token {\n /**\n * @param {String} identityPoolId\n * @param {String} providerName\n * @param {String} providerUserToken\n * @param {String} providerUserId\n */\n constructor(identityPoolId, providerName = null, providerUserToken = null, providerUserId = null) {\n this._identityPoolId = identityPoolId;\n this._providerName = providerName;\n this._providerUserToken = providerUserToken;\n this._providerUserId = providerUserId;\n\n this._user = null;\n this._userProvider = null;\n this._identityId = null;\n this._credentials = null;\n\n this._isAnonymous = true;\n }\n\n /**\n * @param {Function} callback\n */\n getCredentials(callback = () => null) {\n // @todo: set retries in a smarter way...\n AWS.config.maxRetries = 3;\n\n let defaultRegion = AWS.config.region;\n\n AWS.config.update({\n region: Token._getRegionFromIdentityPoolId(this._identityPoolId),\n });\n\n let cognitoParams = {\n IdentityPoolId: this._identityPoolId,\n };\n\n if (this._providerName && this._providerUserToken) {\n this._isAnonymous = false;\n cognitoParams.Logins = {};\n cognitoParams.Logins[this._providerName] = this._providerUserToken;\n }\n\n this._credentials = new AWS.CognitoIdentityCredentials(cognitoParams);\n\n // update AWS credentials\n AWS.config.credentials = this._credentials.refresh(function(error) {\n if (error) {\n callback(new AuthException(error));\n return;\n }\n\n this._identityId = this._credentials.identityId;\n\n AWS.config.update({\n accessKeyId: this._credentials.accessKeyId,\n secretAccessKey: this._credentials.secretAccessKey,\n sessionToken: this._credentials.sessionToken,\n region: defaultRegion, // restore to default region\n });\n\n callback(null, this);\n }.bind(this));\n }\n\n /**\n * @param {String} identityPoolId\n * @returns {String}\n * @private\n */\n static _getRegionFromIdentityPoolId(identityPoolId) {\n return identityPoolId.split(':')[0];\n }\n\n /**\n * @returns {String}\n */\n get providerName() {\n return this._providerName;\n }\n\n /**\n * @returns {String}\n */\n get providerUserToken() {\n return this._providerUserToken;\n }\n\n /**\n * @returns {String}\n */\n get providerUserId() {\n return this._providerUserId;\n }\n\n /**\n * @returns {String}\n */\n get identityId() {\n return this._identityId;\n }\n\n /**\n * @returns {Object}\n */\n get credentials() {\n return this._credentials;\n }\n\n /**\n * @returns {Boolean}\n */\n get isAnonymous() {\n return this._isAnonymous;\n }\n\n /**\n * @param {UserProvider} userProvider\n */\n set userProvider(userProvider) {\n this._userProvider = userProvider;\n }\n\n /**\n * @param {Function} callback\n */\n getUser(callback) {\n if (this.isAnonymous) {\n callback(null);\n }\n\n if (this._user === null) {\n this._userProvider.loadUserByIdentityId(this.identityId, function(user) {\n if (user) {\n this._user = user;\n }\n\n callback(user);\n }.bind(this));\n } else {\n callback(this._user);\n }\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Token", + "memberof": "lib/Token.js", + "longname": "lib/Token.js~Token", + "access": null, + "export": true, + "importPath": "deep-security/lib/Token.js", + "importStyle": "{Token}", + "description": "Security token holds details about logged user", + "lineNumber": 13, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#constructor", + "access": null, + "description": null, + "lineNumber": 20, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "identityPoolId", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "providerName", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "providerUserToken", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "providerUserId", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_identityPoolId", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#_identityPoolId", + "access": null, + "description": null, + "lineNumber": 21, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_providerName", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#_providerName", + "access": null, + "description": null, + "lineNumber": 22, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_providerUserToken", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#_providerUserToken", + "access": null, + "description": null, + "lineNumber": 23, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_providerUserId", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#_providerUserId", + "access": null, + "description": null, + "lineNumber": 24, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_user", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#_user", + "access": null, + "description": null, + "lineNumber": 26, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_userProvider", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#_userProvider", + "access": null, + "description": null, + "lineNumber": 27, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_identityId", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#_identityId", + "access": null, + "description": null, + "lineNumber": 28, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_credentials", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#_credentials", + "access": null, + "description": null, + "lineNumber": 29, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_isAnonymous", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#_isAnonymous", + "access": null, + "description": null, + "lineNumber": 31, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "getCredentials", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#getCredentials", + "access": null, + "description": null, + "lineNumber": 37, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_isAnonymous", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#_isAnonymous", + "access": null, + "description": null, + "lineNumber": 52, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_credentials", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#_credentials", + "access": null, + "description": null, + "lineNumber": 57, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_identityId", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#_identityId", + "access": null, + "description": null, + "lineNumber": 66, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "_getRegionFromIdentityPoolId", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token._getRegionFromIdentityPoolId", + "access": "private", + "description": null, + "lineNumber": 84, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "identityPoolId", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "providerName", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#providerName", + "access": null, + "description": null, + "lineNumber": 91, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "providerUserToken", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#providerUserToken", + "access": null, + "description": null, + "lineNumber": 98, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "providerUserId", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#providerUserId", + "access": null, + "description": null, + "lineNumber": 105, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "identityId", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#identityId", + "access": null, + "description": null, + "lineNumber": 112, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{String}" + } + ], + "return": { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "credentials", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#credentials", + "access": null, + "description": null, + "lineNumber": 119, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "isAnonymous", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#isAnonymous", + "access": null, + "description": null, + "lineNumber": 126, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "userProvider", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#userProvider", + "access": null, + "description": null, + "lineNumber": 133, + "params": [ + { + "nullable": null, + "types": [ + "UserProvider" + ], + "spread": false, + "optional": false, + "name": "userProvider", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_userProvider", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#_userProvider", + "access": null, + "description": null, + "lineNumber": 134, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "getUser", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#getUser", + "access": null, + "description": null, + "lineNumber": 140, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_user", + "memberof": "lib/Token.js~Token", + "longname": "lib/Token.js~Token#_user", + "access": null, + "description": null, + "lineNumber": 148, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/UserProvider.js", + "memberof": null, + "longname": "lib/UserProvider.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "'use strict';\n\nimport {LoadUserException} from './Exception/LoadUserException';\n\n/**\n * Loads user from db\n */\nexport class UserProvider {\n /**\n * @param {String} retrieveUserResource\n * @param {Object} deepResourceService\n */\n constructor(retrieveUserResource, deepResourceService) {\n this._retrieveUserResource = retrieveUserResource;\n this._deepResource = deepResourceService;\n }\n\n /**\n * @param {String} id\n * @param {Function} callback\n * @returns {*}\n */\n loadUserByIdentityId(id, callback) {\n let retrieveUserResource = this._deepResource.get(this._retrieveUserResource);\n\n retrieveUserResource.request({Id: id}).send(function(response) {\n if (response.error) {\n throw new LoadUserException(id, response.error);\n }\n\n return callback(JSON.parse(response.data.Payload));\n });\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "UserProvider", + "memberof": "lib/UserProvider.js", + "longname": "lib/UserProvider.js~UserProvider", + "access": null, + "export": true, + "importPath": "deep-security/lib/UserProvider.js", + "importStyle": "{UserProvider}", + "description": "Loads user from db", + "lineNumber": 8, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/UserProvider.js~UserProvider", + "longname": "lib/UserProvider.js~UserProvider#constructor", + "access": null, + "description": null, + "lineNumber": 13, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "retrieveUserResource", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "deepResourceService", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_retrieveUserResource", + "memberof": "lib/UserProvider.js~UserProvider", + "longname": "lib/UserProvider.js~UserProvider#_retrieveUserResource", + "access": null, + "description": null, + "lineNumber": 14, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_deepResource", + "memberof": "lib/UserProvider.js~UserProvider", + "longname": "lib/UserProvider.js~UserProvider#_deepResource", + "access": null, + "description": null, + "lineNumber": 15, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "loadUserByIdentityId", + "memberof": "lib/UserProvider.js~UserProvider", + "longname": "lib/UserProvider.js~UserProvider#loadUserByIdentityId", + "access": null, + "description": null, + "lineNumber": 23, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "id", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/bootstrap.js", + "memberof": null, + "longname": "lib/bootstrap.js", + "access": null, + "description": null, + "lineNumber": 7, + "content": "/**\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n */\n\n'use strict';\n\nimport {Security} from './Security';\n\nlet exports = module.exports = Security;\n" + }, + { + "kind": "variable", + "static": true, + "variation": null, + "name": "exports", + "memberof": "lib/bootstrap.js", + "longname": "lib/bootstrap.js~exports", + "access": null, + "export": false, + "importPath": "deep-security/lib/bootstrap.js", + "importStyle": null, + "description": null, + "lineNumber": 11, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~null", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Error", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Date", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~String", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~string", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Map", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Set", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "CanvasRenderingContext2D", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DocumentFragment", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Element", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Element", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Event", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Event", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Node", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Node", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NodeList", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~NodeList", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "XMLHttpRequest", + "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "access": null, + "description": null, + "builtinExternal": true + } +] \ No newline at end of file diff --git a/docs-api/deep-security/file/lib/Exception/AuthException.js.html b/docs-api/deep-security/file/lib/Exception/AuthException.js.html new file mode 100644 index 00000000..bc9cc46a --- /dev/null +++ b/docs-api/deep-security/file/lib/Exception/AuthException.js.html @@ -0,0 +1,81 @@ + + + + + + lib/Exception/AuthException.js | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/AuthException.js

    +
    /**
    + * Created by mgoria on 6/30/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when auth error occurs
    + */
    +export class AuthException extends Exception {
    +  /**
    +   * @param {Object} error
    +   */
    +  constructor(error) {
    +    super(`Error on authentication. ${error}`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/file/lib/Exception/Exception.js.html b/docs-api/deep-security/file/lib/Exception/Exception.js.html new file mode 100644 index 00000000..054733aa --- /dev/null +++ b/docs-api/deep-security/file/lib/Exception/Exception.js.html @@ -0,0 +1,81 @@ + + + + + + lib/Exception/Exception.js | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/Exception.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +
    +/**
    + * Thrown when any exception occurs
    + */
    +export class Exception extends Core.Exception.Exception {
    +  /**
    +   * @param {Array} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/file/lib/Exception/LoadUserException.js.html b/docs-api/deep-security/file/lib/Exception/LoadUserException.js.html new file mode 100644 index 00000000..a8d0027a --- /dev/null +++ b/docs-api/deep-security/file/lib/Exception/LoadUserException.js.html @@ -0,0 +1,82 @@ + + + + + + lib/Exception/LoadUserException.js | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/LoadUserException.js

    +
    /**
    + * Created by mgoria on 7/10/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when load user form db failed
    + */
    +export class LoadUserException extends Exception {
    +  /**
    +   * @param {String} identityId
    +   * @param {Object} error
    +   */
    +  constructor(identityId, error) {
    +    super(`Error on loading user ${identityId} from db. ${error}`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/file/lib/Exception/MissingLoginProviderException.js.html b/docs-api/deep-security/file/lib/Exception/MissingLoginProviderException.js.html new file mode 100644 index 00000000..d777f9a8 --- /dev/null +++ b/docs-api/deep-security/file/lib/Exception/MissingLoginProviderException.js.html @@ -0,0 +1,81 @@ + + + + + + lib/Exception/MissingLoginProviderException.js | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/MissingLoginProviderException.js

    +
    /**
    + * Created by mgoria on 6/23/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when requested login provider is missing
    + */
    +export class MissingLoginProviderException extends Exception {
    +  /**
    +   * @param {String} providerName
    +   */
    +  constructor(providerName) {
    +    super(`Missing login provider "${providerName}" in deep-security.`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/file/lib/LocalToken.js.html b/docs-api/deep-security/file/lib/LocalToken.js.html new file mode 100644 index 00000000..875ad307 --- /dev/null +++ b/docs-api/deep-security/file/lib/LocalToken.js.html @@ -0,0 +1,91 @@ + + + + + + lib/LocalToken.js | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/LocalToken.js

    +
    /**
    + * Created by mgoria on 09/01/15.
    + */
    +
    +'use strict';
    +
    +import {Token} from './Token';
    +
    +/**
    + * Security token holds details about logged user
    + */
    +export class LocalToken extends Token {
    +  /**
    +   * @param args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   */
    +  getCredentials(callback) {
    +    // use provider user id instead of cognito identity id for local backend
    +    this._identityId = this._providerUserId;
    +
    +    callback(null, this);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/file/lib/Security.js.html b/docs-api/deep-security/file/lib/Security.js.html new file mode 100644 index 00000000..369fb267 --- /dev/null +++ b/docs-api/deep-security/file/lib/Security.js.html @@ -0,0 +1,274 @@ + + + + + + lib/Security.js | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Security.js

    +
    /**
    + * Created by mgoria on 6/17/15.
    + */
    +
    +'use strict';
    +
    +import Kernel from 'deep-kernel';
    +import {MissingLoginProviderException} from './Exception/MissingLoginProviderException';
    +import {Token} from './Token';
    +import {LocalToken} from './LocalToken';
    +import {UserProvider} from './UserProvider';
    +
    +/**
    + * Deep Security implementation
    + */
    +export class Security extends Kernel.ContainerAware {
    +  /**
    +   * Defines all class private properties
    +   *
    +   * @param {String} identityPoolId
    +   * @param {Object} identityProviders
    +   */
    +  constructor(identityPoolId = null, identityProviders = {}) {
    +    super();
    +
    +    this._identityPoolId = identityPoolId;
    +    this._identityProviders = identityProviders;
    +    this._token = null;
    +    this._userProvider = null;
    +    this._userProviderEndpoint = null;
    +
    +    this._onTokenAvailable = [];
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   * @returns {Security}
    +   */
    +  onTokenAvailable(callback) {
    +    this._onTokenAvailable.push(callback);
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @returns {string}
    +   */
    +  static get PROVIDER_AMAZON() {
    +    return 'www.amazon.com';
    +  }
    +
    +  /**
    +   * @returns {string}
    +   */
    +  static get PROVIDER_FACEBOOK() {
    +    return 'graph.facebook.com';
    +  }
    +
    +  /**
    +   * @returns {string}
    +   */
    +  static get PROVIDER_GOOGLE() {
    +    return 'accounts.google.com';
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get identityProviders() {
    +    return this._identityProviders;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get identityPoolId() {
    +    return this._identityPoolId;
    +  }
    +
    +  /**
    +   * @returns {UserProvider}
    +   */
    +  get userProvider() {
    +    if (!this._userProvider) {
    +      this._userProvider = new UserProvider(this._userProviderEndpoint, this.container.get('resource'));
    +    }
    +
    +    return this._userProvider;
    +  }
    +
    +  /**
    +   * Booting a certain service
    +   *
    +   * @param {Kernel} kernel
    +   * @param {Function} callback
    +   */
    +  boot(kernel, callback) {
    +    // @todo: remove this compatibility hook
    +    let globals = kernel.config.globals || kernel.config;
    +
    +    this._identityProviders = globals.security.identityProviders;
    +    this._userProviderEndpoint = globals.security.userProviderEndpoint;
    +
    +    this._identityPoolId = kernel.config.identityPoolId;
    +
    +    callback();
    +  }
    +
    +  /**
    +   * @param {String} name
    +   * @returns {Object}
    +   */
    +  getLoginProviderConfig(name) {
    +    for (let providerName in this._identityProviders) {
    +      if (!this._identityProviders.hasOwnProperty(providerName)) {
    +        continue;
    +      }
    +
    +      if (providerName === name) {
    +        return this._identityProviders[providerName];
    +      }
    +    }
    +
    +    throw new MissingLoginProviderException(name);
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get amazonLoginProviderConfig() {
    +    return this.getLoginProviderConfig(Security.PROVIDER_AMAZON);
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get facebookLoginProviderConfig() {
    +    return this.getLoginProviderConfig(Security.PROVIDER_FACEBOOK);
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get googleLoginProviderConfig() {
    +    return this.getLoginProviderConfig(Security.PROVIDER_GOOGLE);
    +  }
    +
    +  /**
    +   * @returns {null|Token}
    +   */
    +  get token() {
    +    return this._token;
    +  }
    +
    +  /**
    +   * @param {String} providerName
    +   * @param {String} userToken
    +   * @param {String} userId
    +   * @param {Function} callback
    +   * @returns {Token}
    +   */
    +  login(providerName, userToken, userId, callback) {
    +    // check if providerName is defined
    +    this.getLoginProviderConfig(providerName);
    +
    +    let TokenImplementation = this._localBackend ? LocalToken : Token;
    +
    +    this._token = new TokenImplementation(this._identityPoolId, providerName, userToken, userId);
    +
    +    this._token.userProvider = this.userProvider;
    +
    +    this._token.getCredentials((...args) => {
    +      for (let hookKey in this._onTokenAvailable) {
    +        if (!this._onTokenAvailable.hasOwnProperty(hookKey)) {
    +          continue;
    +        }
    +
    +        this._onTokenAvailable[hookKey](this._token);
    +      }
    +
    +      callback(...args);
    +    });
    +
    +    return this._token;
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   * @returns {Token}
    +   */
    +  anonymousLogin(callback) {
    +    let TokenImplementation = this._localBackend ? LocalToken : Token;
    +
    +    this._token = new TokenImplementation(this._identityPoolId);
    +
    +    this._token.userProvider = this.userProvider;
    +
    +    this._token.getCredentials((...args) => {
    +      for (let hookKey in this._onTokenAvailable) {
    +        if (!this._onTokenAvailable.hasOwnProperty(hookKey)) {
    +          continue;
    +        }
    +
    +        this._onTokenAvailable[hookKey](this._token);
    +      }
    +
    +      callback(...args);
    +    });
    +
    +    return this._token;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/file/lib/Token.js.html b/docs-api/deep-security/file/lib/Token.js.html new file mode 100644 index 00000000..60e2f1d7 --- /dev/null +++ b/docs-api/deep-security/file/lib/Token.js.html @@ -0,0 +1,219 @@ + + + + + + lib/Token.js | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Token.js

    +
    /**
    + * Created by mgoria on 6/23/15.
    + */
    +
    +'use strict';
    +
    +import AWS from 'aws-sdk';
    +import {AuthException} from './Exception/AuthException';
    +
    +/**
    + * Security token holds details about logged user
    + */
    +export class Token {
    +  /**
    +   * @param {String} identityPoolId
    +   * @param {String} providerName
    +   * @param {String} providerUserToken
    +   * @param {String} providerUserId
    +   */
    +  constructor(identityPoolId, providerName = null, providerUserToken = null, providerUserId = null) {
    +    this._identityPoolId = identityPoolId;
    +    this._providerName = providerName;
    +    this._providerUserToken = providerUserToken;
    +    this._providerUserId = providerUserId;
    +
    +    this._user = null;
    +    this._userProvider = null;
    +    this._identityId = null;
    +    this._credentials = null;
    +
    +    this._isAnonymous = true;
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   */
    +  getCredentials(callback = () => null) {
    +    // @todo: set retries in a smarter way...
    +    AWS.config.maxRetries = 3;
    +
    +    let defaultRegion = AWS.config.region;
    +
    +    AWS.config.update({
    +      region: Token._getRegionFromIdentityPoolId(this._identityPoolId),
    +    });
    +
    +    let cognitoParams = {
    +      IdentityPoolId: this._identityPoolId,
    +    };
    +
    +    if (this._providerName && this._providerUserToken) {
    +      this._isAnonymous = false;
    +      cognitoParams.Logins = {};
    +      cognitoParams.Logins[this._providerName] = this._providerUserToken;
    +    }
    +
    +    this._credentials = new AWS.CognitoIdentityCredentials(cognitoParams);
    +
    +    // update AWS credentials
    +    AWS.config.credentials = this._credentials.refresh(function(error) {
    +      if (error) {
    +        callback(new AuthException(error));
    +        return;
    +      }
    +
    +      this._identityId = this._credentials.identityId;
    +
    +      AWS.config.update({
    +        accessKeyId: this._credentials.accessKeyId,
    +        secretAccessKey: this._credentials.secretAccessKey,
    +        sessionToken: this._credentials.sessionToken,
    +        region: defaultRegion, // restore to default region
    +      });
    +
    +      callback(null, this);
    +    }.bind(this));
    +  }
    +
    +  /**
    +   * @param {String} identityPoolId
    +   * @returns {String}
    +   * @private
    +   */
    +  static _getRegionFromIdentityPoolId(identityPoolId) {
    +    return identityPoolId.split(':')[0];
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get providerName() {
    +    return this._providerName;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get providerUserToken() {
    +    return this._providerUserToken;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get providerUserId() {
    +    return this._providerUserId;
    +  }
    +
    +  /**
    +   * @returns {String}
    +   */
    +  get identityId() {
    +    return this._identityId;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get credentials() {
    +    return this._credentials;
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get isAnonymous() {
    +    return this._isAnonymous;
    +  }
    +
    +  /**
    +   * @param {UserProvider} userProvider
    +   */
    +  set userProvider(userProvider) {
    +    this._userProvider = userProvider;
    +  }
    +
    +  /**
    +   * @param {Function} callback
    +   */
    +  getUser(callback) {
    +    if (this.isAnonymous) {
    +      callback(null);
    +    }
    +
    +    if (this._user === null) {
    +      this._userProvider.loadUserByIdentityId(this.identityId, function(user) {
    +        if (user) {
    +          this._user = user;
    +        }
    +
    +        callback(user);
    +      }.bind(this));
    +    } else {
    +      callback(this._user);
    +    }
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/file/lib/UserProvider.js.html b/docs-api/deep-security/file/lib/UserProvider.js.html new file mode 100644 index 00000000..264c0795 --- /dev/null +++ b/docs-api/deep-security/file/lib/UserProvider.js.html @@ -0,0 +1,96 @@ + + + + + + lib/UserProvider.js | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/UserProvider.js

    +
    'use strict';
    +
    +import {LoadUserException} from './Exception/LoadUserException';
    +
    +/**
    + * Loads user from db
    + */
    +export class UserProvider {
    +  /**
    +   * @param {String} retrieveUserResource
    +   * @param {Object} deepResourceService
    +   */
    +  constructor(retrieveUserResource, deepResourceService) {
    +    this._retrieveUserResource = retrieveUserResource;
    +    this._deepResource = deepResourceService;
    +  }
    +
    +  /**
    +   * @param {String} id
    +   * @param {Function} callback
    +   * @returns {*}
    +   */
    +  loadUserByIdentityId(id, callback) {
    +    let retrieveUserResource = this._deepResource.get(this._retrieveUserResource);
    +
    +    retrieveUserResource.request({Id: id}).send(function(response) {
    +      if (response.error) {
    +        throw new LoadUserException(id, response.error);
    +      }
    +
    +      return callback(JSON.parse(response.data.Payload));
    +    });
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/file/lib/bootstrap.js.html b/docs-api/deep-security/file/lib/bootstrap.js.html new file mode 100644 index 00000000..5f850346 --- /dev/null +++ b/docs-api/deep-security/file/lib/bootstrap.js.html @@ -0,0 +1,73 @@ + + + + + + lib/bootstrap.js | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/bootstrap.js

    +
    /**
    + * Created by AlexanderC on 5/22/15.
    + *
    + * Bootstrap file loaded by npm as main
    + */
    +
    +'use strict';
    +
    +import {Security} from './Security';
    +
    +let exports = module.exports = Security;
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/identifiers.html b/docs-api/deep-security/identifiers.html new file mode 100644 index 00000000..483f8780 --- /dev/null +++ b/docs-api/deep-security/identifiers.html @@ -0,0 +1,271 @@ + + + + + + Index | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Identifier

    +

    Class Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Class Summary
    + public + + + + + +
    +

    + AuthException +

    +
    +
    + + +
    Thrown when auth error occurs
    +
    +
    + + +
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Thrown when any exception occurs
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when load user form db failed
    +
    +
    + + +
    + public + + + + + +
    +

    + LocalToken +

    +
    +
    + + +
    Security token holds details about logged user
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when requested login provider is missing
    +
    +
    + + +
    + public + + + + + +
    +

    + Security +

    +
    +
    + + +
    Deep Security implementation
    +
    +
    + + +
    + public + + + + + +
    +

    + Token +

    +
    +
    + + +
    Security token holds details about logged user
    +
    +
    + + +
    + public + + + + + +
    +

    + UserProvider +

    +
    +
    + + +
    Loads user from db
    +
    +
    + + +
    +
    + + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/image/badge.svg b/docs-api/deep-security/image/badge.svg new file mode 100644 index 00000000..324db4c5 --- /dev/null +++ b/docs-api/deep-security/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/docs-api/deep-security/image/github.png b/docs-api/deep-security/image/github.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/docs-api/deep-security/image/github.png differ diff --git a/docs-api/deep-security/image/search.png b/docs-api/deep-security/image/search.png new file mode 100644 index 00000000..f5d84b69 Binary files /dev/null and b/docs-api/deep-security/image/search.png differ diff --git a/docs-api/deep-security/index.html b/docs-api/deep-security/index.html new file mode 100644 index 00000000..5d99fd93 --- /dev/null +++ b/docs-api/deep-security/index.html @@ -0,0 +1,194 @@ + + + + + + DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    deep-security

    +

    NPM Version +Build Status +Coverage Status +Codacy Badge +API Docs

    +

    deep-security is a node.js library, part of DEEP Framework.

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less.

    +

    DEEP for Businesses Join char on gitter.im

    +

    User Guide Documentation (to be updated later)

    +

    DEEP is enabling small and medium businesses, as well as enterprises to:

    +
      +
    • Rent applications on a monthly basis by needed functionality from DEEP Marketplace
    • +
    • Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS
    • +
    • Pay only for subscribed applications and stop paying when unsubscribing and not using anymore
    • +
    • Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences
    • +
    • Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability
    • +
    +
    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP for Developers Join char on gitter.im

    +

    API Guide Documentation

    +

    Developer Guide Documentation

    +

    DEEP is enabling developers and architects to:

    +
      +
    • Design microservices architecture on top of serverless environments from cloud providers like AWS
    • +
    • Build distributed software that combines and manages hardware and software in the same microservice
    • +
    • Use the framework's abstracted approach to build applications that could be cloud agnostic
    • +
    • Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same DEEP Microservice
    • +
    • Run in the cloud the software that was built by distributed teams and served self-service in large organizations
    • +
    • Monetize their work of art by uploading microservices to DEEP Marketplace
    • +
    +
    +

    DEEP Microservice is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with DEEP Microservices HelloWorld or DEEP Microservices ToDo App, as well as DEEP CLI (aka deepify).

    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP Architecture on AWS Join char on gitter.im

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    DEEP is using microservices architecture on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DEEP Abstracted LibraryDescriptionAWS Abstracted Service(s)
    deep-assetAssets Management LibraryAmazon S3
    deep-cacheCache Management LibraryAmazon ElastiCache
    deep-coreCore Management Library-
    deep-dbDatabase Management LibraryAmazon DynamoDB, Amazon SQS
    deep-diDependency Injection Management Library-
    deep-eventEvents Management LibraryAmazon Kinesis
    deep-fsFile System Management LibraryAmazon S3
    deep-kernelKernel Management Library-
    deep-logLogs Management LibraryAmazon CloudWatch Logs
    deep-notificationNotifications Management LibraryAmazon SNS
    deep-resourceResouces Management LibraryAWS Lambda, Amazon API Gateway
    deep-securitySecurity Management LibraryAWS IAM, Amazon Cognito
    deep-validationValidation Management Library-
    +

    Feedback

    +

    We are eager to get your feedback, so please use whatever communication channel you prefer:

    + +

    License

    +

    This repository can be used under the MIT license.

    +
    +

    See LICENSE for more details.

    +
    +

    Sponsors

    +

    This repository is being sponsored by:

    +
    +

    Mitoc Group

    +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-security/package.json b/docs-api/deep-security/package.json new file mode 100644 index 00000000..8c3e1645 --- /dev/null +++ b/docs-api/deep-security/package.json @@ -0,0 +1,74 @@ +{ + "name": "deep-security", + "version": "0.0.53", + "description": "DEEP Security Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Security", + "Auth" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Stefan Hariton", + "email": "shariton@mitocgroup.com" + }, + { + "name": "Dragos Palade", + "email": "dpalade@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "*", + "deep-core": "*" + }, + "devDependencies": { + "aws-sdk": "2.1.*", + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/docs-api/deep-security/script/inherited-summary.js b/docs-api/deep-security/script/inherited-summary.js new file mode 100644 index 00000000..0a35b6df --- /dev/null +++ b/docs-api/deep-security/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/docs-api/deep-security/script/inner-link.js b/docs-api/deep-security/script/inner-link.js new file mode 100644 index 00000000..99d76273 --- /dev/null +++ b/docs-api/deep-security/script/inner-link.js @@ -0,0 +1,29 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + var el = document.querySelector(location.hash); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = location.href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/docs-api/deep-security/script/patch-for-local.js b/docs-api/deep-security/script/patch-for-local.js new file mode 100644 index 00000000..5756d135 --- /dev/null +++ b/docs-api/deep-security/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/docs-api/deep-security/script/prettify/Apache-License-2.0.txt b/docs-api/deep-security/script/prettify/Apache-License-2.0.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/docs-api/deep-security/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs-api/deep-security/script/prettify/prettify.js b/docs-api/deep-security/script/prettify/prettify.js new file mode 100644 index 00000000..eef5ad7e --- /dev/null +++ b/docs-api/deep-security/script/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/docs-api/deep-security/script/search_index.js b/docs-api/deep-security/script/search_index.js new file mode 100644 index 00000000..be4cfe80 --- /dev/null +++ b/docs-api/deep-security/script/search_index.js @@ -0,0 +1,632 @@ +window.esdocSearchIndex = [ + [ + "deep-security/lib/exception/authexception.js~authexception", + "class/lib/Exception/AuthException.js~AuthException.html", + "AuthException deep-security/lib/Exception/AuthException.js", + "class" + ], + [ + "deep-security/lib/exception/exception.js~exception", + "class/lib/Exception/Exception.js~Exception.html", + "Exception deep-security/lib/Exception/Exception.js", + "class" + ], + [ + "deep-security/lib/exception/loaduserexception.js~loaduserexception", + "class/lib/Exception/LoadUserException.js~LoadUserException.html", + "LoadUserException deep-security/lib/Exception/LoadUserException.js", + "class" + ], + [ + "deep-security/lib/localtoken.js~localtoken", + "class/lib/LocalToken.js~LocalToken.html", + "LocalToken deep-security/lib/LocalToken.js", + "class" + ], + [ + "deep-security/lib/exception/missingloginproviderexception.js~missingloginproviderexception", + "class/lib/Exception/MissingLoginProviderException.js~MissingLoginProviderException.html", + "MissingLoginProviderException deep-security/lib/Exception/MissingLoginProviderException.js", + "class" + ], + [ + "deep-security/lib/security.js~security", + "class/lib/Security.js~Security.html", + "Security deep-security/lib/Security.js", + "class" + ], + [ + "deep-security/lib/token.js~token", + "class/lib/Token.js~Token.html", + "Token deep-security/lib/Token.js", + "class" + ], + [ + "deep-security/lib/userprovider.js~userprovider", + "class/lib/UserProvider.js~UserProvider.html", + "UserProvider deep-security/lib/UserProvider.js", + "class" + ], + [ + "builtinexternal/ecmascriptexternal.js~array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~arraybuffer", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~dataview", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~DataView", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~date", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Date", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~error", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Error", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~evalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float64array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generator", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Generator", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generatorfunction", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~infinity", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~internalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~json", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~JSON", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~map", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Map", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~nan", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~NaN", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~promise", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Promise", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~proxy", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~rangeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~referenceerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~reflect", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~regexp", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~set", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Set", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~String", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~symbol", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~syntaxerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~typeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~urierror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~URIError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8clampedarray", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakmap", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakset", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~null", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~null", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~string", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~undefined", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~undefined", + "external" + ], + [ + "builtinexternal/webapiexternal.js~canvasrenderingcontext2d", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "external" + ], + [ + "builtinexternal/webapiexternal.js~documentfragment", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "external" + ], + [ + "builtinexternal/webapiexternal.js~element", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Element", + "external" + ], + [ + "builtinexternal/webapiexternal.js~event", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Event", + "external" + ], + [ + "builtinexternal/webapiexternal.js~node", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Node", + "external" + ], + [ + "builtinexternal/webapiexternal.js~nodelist", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~NodeList", + "external" + ], + [ + "builtinexternal/webapiexternal.js~xmlhttprequest", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "external" + ], + [ + "lib/exception/authexception.js", + "file/lib/Exception/AuthException.js.html", + "lib/Exception/AuthException.js", + "file" + ], + [ + "lib/exception/authexception.js~authexception#constructor", + "class/lib/Exception/AuthException.js~AuthException.html#instance-constructor-constructor", + "lib/Exception/AuthException.js~AuthException#constructor", + "method" + ], + [ + "lib/exception/exception.js", + "file/lib/Exception/Exception.js.html", + "lib/Exception/Exception.js", + "file" + ], + [ + "lib/exception/exception.js~exception#constructor", + "class/lib/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/exception/loaduserexception.js", + "file/lib/Exception/LoadUserException.js.html", + "lib/Exception/LoadUserException.js", + "file" + ], + [ + "lib/exception/loaduserexception.js~loaduserexception#constructor", + "class/lib/Exception/LoadUserException.js~LoadUserException.html#instance-constructor-constructor", + "lib/Exception/LoadUserException.js~LoadUserException#constructor", + "method" + ], + [ + "lib/exception/missingloginproviderexception.js", + "file/lib/Exception/MissingLoginProviderException.js.html", + "lib/Exception/MissingLoginProviderException.js", + "file" + ], + [ + "lib/exception/missingloginproviderexception.js~missingloginproviderexception#constructor", + "class/lib/Exception/MissingLoginProviderException.js~MissingLoginProviderException.html#instance-constructor-constructor", + "lib/Exception/MissingLoginProviderException.js~MissingLoginProviderException#constructor", + "method" + ], + [ + "lib/localtoken.js", + "file/lib/LocalToken.js.html", + "lib/LocalToken.js", + "file" + ], + [ + "lib/localtoken.js~localtoken#constructor", + "class/lib/LocalToken.js~LocalToken.html#instance-constructor-constructor", + "lib/LocalToken.js~LocalToken#constructor", + "method" + ], + [ + "lib/localtoken.js~localtoken#getcredentials", + "class/lib/LocalToken.js~LocalToken.html#instance-method-getCredentials", + "lib/LocalToken.js~LocalToken#getCredentials", + "method" + ], + [ + "lib/security.js", + "file/lib/Security.js.html", + "lib/Security.js", + "file" + ], + [ + "lib/security.js~security#amazonloginproviderconfig", + "class/lib/Security.js~Security.html#instance-get-amazonLoginProviderConfig", + "lib/Security.js~Security#amazonLoginProviderConfig", + "member" + ], + [ + "lib/security.js~security#anonymouslogin", + "class/lib/Security.js~Security.html#instance-method-anonymousLogin", + "lib/Security.js~Security#anonymousLogin", + "method" + ], + [ + "lib/security.js~security#boot", + "class/lib/Security.js~Security.html#instance-method-boot", + "lib/Security.js~Security#boot", + "method" + ], + [ + "lib/security.js~security#constructor", + "class/lib/Security.js~Security.html#instance-constructor-constructor", + "lib/Security.js~Security#constructor", + "method" + ], + [ + "lib/security.js~security#facebookloginproviderconfig", + "class/lib/Security.js~Security.html#instance-get-facebookLoginProviderConfig", + "lib/Security.js~Security#facebookLoginProviderConfig", + "member" + ], + [ + "lib/security.js~security#getloginproviderconfig", + "class/lib/Security.js~Security.html#instance-method-getLoginProviderConfig", + "lib/Security.js~Security#getLoginProviderConfig", + "method" + ], + [ + "lib/security.js~security#googleloginproviderconfig", + "class/lib/Security.js~Security.html#instance-get-googleLoginProviderConfig", + "lib/Security.js~Security#googleLoginProviderConfig", + "member" + ], + [ + "lib/security.js~security#identitypoolid", + "class/lib/Security.js~Security.html#instance-get-identityPoolId", + "lib/Security.js~Security#identityPoolId", + "member" + ], + [ + "lib/security.js~security#identityproviders", + "class/lib/Security.js~Security.html#instance-get-identityProviders", + "lib/Security.js~Security#identityProviders", + "member" + ], + [ + "lib/security.js~security#login", + "class/lib/Security.js~Security.html#instance-method-login", + "lib/Security.js~Security#login", + "method" + ], + [ + "lib/security.js~security#ontokenavailable", + "class/lib/Security.js~Security.html#instance-method-onTokenAvailable", + "lib/Security.js~Security#onTokenAvailable", + "method" + ], + [ + "lib/security.js~security#token", + "class/lib/Security.js~Security.html#instance-get-token", + "lib/Security.js~Security#token", + "member" + ], + [ + "lib/security.js~security#userprovider", + "class/lib/Security.js~Security.html#instance-get-userProvider", + "lib/Security.js~Security#userProvider", + "member" + ], + [ + "lib/security.js~security.provider_amazon", + "class/lib/Security.js~Security.html#static-get-PROVIDER_AMAZON", + "lib/Security.js~Security.PROVIDER_AMAZON", + "member" + ], + [ + "lib/security.js~security.provider_facebook", + "class/lib/Security.js~Security.html#static-get-PROVIDER_FACEBOOK", + "lib/Security.js~Security.PROVIDER_FACEBOOK", + "member" + ], + [ + "lib/security.js~security.provider_google", + "class/lib/Security.js~Security.html#static-get-PROVIDER_GOOGLE", + "lib/Security.js~Security.PROVIDER_GOOGLE", + "member" + ], + [ + "lib/token.js", + "file/lib/Token.js.html", + "lib/Token.js", + "file" + ], + [ + "lib/token.js~token#constructor", + "class/lib/Token.js~Token.html#instance-constructor-constructor", + "lib/Token.js~Token#constructor", + "method" + ], + [ + "lib/token.js~token#credentials", + "class/lib/Token.js~Token.html#instance-get-credentials", + "lib/Token.js~Token#credentials", + "member" + ], + [ + "lib/token.js~token#getcredentials", + "class/lib/Token.js~Token.html#instance-method-getCredentials", + "lib/Token.js~Token#getCredentials", + "method" + ], + [ + "lib/token.js~token#getuser", + "class/lib/Token.js~Token.html#instance-method-getUser", + "lib/Token.js~Token#getUser", + "method" + ], + [ + "lib/token.js~token#identityid", + "class/lib/Token.js~Token.html#instance-get-identityId", + "lib/Token.js~Token#identityId", + "member" + ], + [ + "lib/token.js~token#isanonymous", + "class/lib/Token.js~Token.html#instance-get-isAnonymous", + "lib/Token.js~Token#isAnonymous", + "member" + ], + [ + "lib/token.js~token#providername", + "class/lib/Token.js~Token.html#instance-get-providerName", + "lib/Token.js~Token#providerName", + "member" + ], + [ + "lib/token.js~token#provideruserid", + "class/lib/Token.js~Token.html#instance-get-providerUserId", + "lib/Token.js~Token#providerUserId", + "member" + ], + [ + "lib/token.js~token#providerusertoken", + "class/lib/Token.js~Token.html#instance-get-providerUserToken", + "lib/Token.js~Token#providerUserToken", + "member" + ], + [ + "lib/token.js~token#userprovider", + "class/lib/Token.js~Token.html#instance-set-userProvider", + "lib/Token.js~Token#userProvider", + "member" + ], + [ + "lib/userprovider.js", + "file/lib/UserProvider.js.html", + "lib/UserProvider.js", + "file" + ], + [ + "lib/userprovider.js~userprovider#constructor", + "class/lib/UserProvider.js~UserProvider.html#instance-constructor-constructor", + "lib/UserProvider.js~UserProvider#constructor", + "method" + ], + [ + "lib/userprovider.js~userprovider#loaduserbyidentityid", + "class/lib/UserProvider.js~UserProvider.html#instance-method-loadUserByIdentityId", + "lib/UserProvider.js~UserProvider#loadUserByIdentityId", + "method" + ], + [ + "lib/bootstrap.js", + "file/lib/bootstrap.js.html", + "lib/bootstrap.js", + "file" + ] +] \ No newline at end of file diff --git a/docs-api/deep-security/script/test-summary.js b/docs-api/deep-security/script/test-summary.js new file mode 100644 index 00000000..2f32cb00 --- /dev/null +++ b/docs-api/deep-security/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-describe')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-describe .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/docs-api/deep-security/source.html b/docs-api/deep-security/source.html new file mode 100644 index 00000000..2af5fc43 --- /dev/null +++ b/docs-api/deep-security/source.html @@ -0,0 +1,148 @@ + + + + + + Source | DEEP Security Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Source 42/42

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    lib/Exception/AuthException.jsAuthException100 %2/2301 byte192015-09-04 12:52:17 (UTC)
    lib/Exception/Exception.jsException100 %2/2282 byte192015-10-07 19:56:07 (UTC)
    lib/Exception/LoadUserException.jsLoadUserException100 %2/2376 byte202015-09-04 12:52:17 (UTC)
    lib/Exception/MissingLoginProviderException.jsMissingLoginProviderException100 %2/2374 byte192015-09-04 12:52:17 (UTC)
    lib/LocalToken.jsLocalToken100 %3/3495 byte292015-09-04 12:52:17 (UTC)
    lib/Security.jsSecurity100 %17/174574 byte2122015-10-02 02:42:07 (UTC)
    lib/Token.jsToken100 %11/113318 byte1572015-10-02 02:32:34 (UTC)
    lib/UserProvider.jsUserProvider100 %3/3843 byte342015-09-04 12:52:17 (UTC)
    lib/bootstrap.js--183 byte112015-09-04 12:52:17 (UTC)
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/ast/source/Exception/Exception.js.json b/docs-api/deep-validation/ast/source/Exception/Exception.js.json new file mode 100644 index 00000000..a5724794 --- /dev/null +++ b/docs-api/deep-validation/ast/source/Exception/Exception.js.json @@ -0,0 +1,651 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Core", + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 68, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 11 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-core", + "raw": "'deep-core'", + "range": [ + 78, + 89 + ], + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + "range": [ + 61, + 90 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 29 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Exception", + "range": [ + 149, + 158 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 22 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Core", + "range": [ + 167, + 171 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 172, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "range": [ + 167, + 181 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "Exception", + "range": [ + 182, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 46 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "range": [ + 167, + 191 + ], + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 233, + 244 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "RestElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 248, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 21 + } + } + }, + "range": [ + 245, + 252 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 260, + 265 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "SpreadElement", + "argument": { + "type": "Identifier", + "name": "args", + "range": [ + 269, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "range": [ + 266, + 273 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 17 + } + } + } + ], + "range": [ + 260, + 274 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + "range": [ + 260, + 275 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 19 + } + } + } + ], + "range": [ + 254, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 244, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 233, + 279 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 192, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 143, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 136, + 281 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 281 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/10/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when any exception occurs\n ", + "range": [ + 92, + 135 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} args\n ", + "range": [ + 196, + 230 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-validation/ast/source/Exception/InvalidSchemaException.js.json b/docs-api/deep-validation/ast/source/Exception/InvalidSchemaException.js.json new file mode 100644 index 00000000..4d8c18c5 --- /dev/null +++ b/docs-api/deep-validation/ast/source/Exception/InvalidSchemaException.js.json @@ -0,0 +1,759 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/20/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when DB model validation schema is missing or broken\n ", + "range": [ + 101, + 171 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "InvalidSchemaException", + "range": [ + 185, + 207 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 216, + 225 + ], + "loc": { + "start": { + "line": 12, + "column": 44 + }, + "end": { + "line": 12, + "column": 53 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 302, + 313 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "model", + "range": [ + 314, + 319 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 19 + } + } + }, + { + "type": "Identifier", + "name": "errorString", + "range": [ + 321, + 332 + ], + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 32 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 340, + 345 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "deep-db model ", + "cooked": "deep-db model " + }, + "tail": false, + "range": [ + 346, + 363 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 27 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " validation schema fails: ", + "cooked": " validation schema fails: " + }, + "tail": false, + "range": [ + 384, + 413 + ], + "loc": { + "start": { + "line": 18, + "column": 48 + }, + "end": { + "line": 18, + "column": 77 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 424, + 426 + ], + "loc": { + "start": { + "line": 18, + "column": 88 + }, + "end": { + "line": 18, + "column": 90 + } + } + } + ], + "expressions": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "JSON", + "range": [ + 363, + 367 + ], + "loc": { + "start": { + "line": 18, + "column": 27 + }, + "end": { + "line": 18, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "stringify", + "range": [ + 368, + 377 + ], + "loc": { + "start": { + "line": 18, + "column": 32 + }, + "end": { + "line": 18, + "column": 41 + } + } + }, + "range": [ + 363, + 377 + ], + "loc": { + "start": { + "line": 18, + "column": 27 + }, + "end": { + "line": 18, + "column": 41 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "model", + "range": [ + 378, + 383 + ], + "loc": { + "start": { + "line": 18, + "column": 42 + }, + "end": { + "line": 18, + "column": 47 + } + } + } + ], + "range": [ + 363, + 384 + ], + "loc": { + "start": { + "line": 18, + "column": 27 + }, + "end": { + "line": 18, + "column": 48 + } + } + }, + { + "type": "Identifier", + "name": "errorString", + "range": [ + 413, + 424 + ], + "loc": { + "start": { + "line": 18, + "column": 77 + }, + "end": { + "line": 18, + "column": 88 + } + } + } + ], + "range": [ + 346, + 426 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 90 + } + } + } + ], + "range": [ + 340, + 427 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 91 + } + } + }, + "range": [ + 340, + 428 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 92 + } + } + } + ], + "range": [ + 334, + 432 + ], + "loc": { + "start": { + "line": 17, + "column": 34 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 313, + 432 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 302, + 432 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} model\n * @param {String} errorString\n ", + "range": [ + 230, + 299 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 226, + 434 + ], + "loc": { + "start": { + "line": 12, + "column": 54 + }, + "end": { + "line": 20, + "column": 1 + } + } + }, + "range": [ + 179, + 434 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when DB model validation schema is missing or broken\n ", + "range": [ + 101, + 171 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 172, + 434 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when DB model validation schema is missing or broken\n ", + "range": [ + 101, + 171 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 434 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/20/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when DB model validation schema is missing or broken\n ", + "range": [ + 101, + 171 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} model\n * @param {String} errorString\n ", + "range": [ + 230, + 299 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-validation/ast/source/Exception/ModelNotFoundException.js.json b/docs-api/deep-validation/ast/source/Exception/ModelNotFoundException.js.json new file mode 100644 index 00000000..f0dedff4 --- /dev/null +++ b/docs-api/deep-validation/ast/source/Exception/ModelNotFoundException.js.json @@ -0,0 +1,628 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing requested model\n ", + "range": [ + 101, + 147 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "ModelNotFoundException", + "range": [ + 161, + 183 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 192, + 201 + ], + "loc": { + "start": { + "line": 12, + "column": 44 + }, + "end": { + "line": 12, + "column": 53 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 249, + 260 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 261, + 270 + ], + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 278, + 283 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Model ", + "cooked": "Model " + }, + "tail": false, + "range": [ + 284, + 293 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 19 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": " was not found", + "cooked": " was not found" + }, + "tail": true, + "range": [ + 302, + 318 + ], + "loc": { + "start": { + "line": 17, + "column": 28 + }, + "end": { + "line": 17, + "column": 44 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 293, + 302 + ], + "loc": { + "start": { + "line": 17, + "column": 19 + }, + "end": { + "line": 17, + "column": 28 + } + } + } + ], + "range": [ + 284, + 318 + ], + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 44 + } + } + } + ], + "range": [ + 278, + 319 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 45 + } + } + }, + "range": [ + 278, + 320 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 46 + } + } + } + ], + "range": [ + 272, + 324 + ], + "loc": { + "start": { + "line": 16, + "column": 25 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 260, + 324 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 249, + 324 + ], + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 18, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n ", + "range": [ + 206, + 246 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 202, + 326 + ], + "loc": { + "start": { + "line": 12, + "column": 54 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + "range": [ + 155, + 326 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing requested model\n ", + "range": [ + 101, + 147 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 148, + 326 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when missing requested model\n ", + "range": [ + 101, + 147 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 326 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when missing requested model\n ", + "range": [ + 101, + 147 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} modelName\n ", + "range": [ + 206, + 246 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 15, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-validation/ast/source/Exception/ObjectValidationFailedException.js.json b/docs-api/deep-validation/ast/source/Exception/ObjectValidationFailedException.js.json new file mode 100644 index 00000000..ea63e6cd --- /dev/null +++ b/docs-api/deep-validation/ast/source/Exception/ObjectValidationFailedException.js.json @@ -0,0 +1,686 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/22/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + "range": [ + 69, + 78 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception", + "raw": "'./Exception'", + "range": [ + 85, + 98 + ], + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + "range": [ + 61, + 99 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when object validation fails on a joi schema/model\n ", + "range": [ + 101, + 169 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "ObjectValidationFailedException", + "range": [ + 183, + 214 + ], + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 44 + } + } + }, + "superClass": { + "type": "Identifier", + "name": "Exception", + "range": [ + 223, + 232 + ], + "loc": { + "start": { + "line": 12, + "column": 53 + }, + "end": { + "line": 12, + "column": 62 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 308, + 319 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "schemaName", + "range": [ + 320, + 330 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 24 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 332, + 337 + ], + "loc": { + "start": { + "line": 17, + "column": 26 + }, + "end": { + "line": 17, + "column": 31 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 345, + 350 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Object validation failed on schema ", + "cooked": "Object validation failed on schema " + }, + "tail": false, + "range": [ + 351, + 389 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 48 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": ": ", + "cooked": ": " + }, + "tail": false, + "range": [ + 399, + 404 + ], + "loc": { + "start": { + "line": 18, + "column": 58 + }, + "end": { + "line": 18, + "column": 63 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 409, + 411 + ], + "loc": { + "start": { + "line": 18, + "column": 68 + }, + "end": { + "line": 18, + "column": 70 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "schemaName", + "range": [ + 389, + 399 + ], + "loc": { + "start": { + "line": 18, + "column": 48 + }, + "end": { + "line": 18, + "column": 58 + } + } + }, + { + "type": "Identifier", + "name": "error", + "range": [ + 404, + 409 + ], + "loc": { + "start": { + "line": 18, + "column": 63 + }, + "end": { + "line": 18, + "column": 68 + } + } + } + ], + "range": [ + 351, + 411 + ], + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 70 + } + } + } + ], + "range": [ + 345, + 412 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 71 + } + } + }, + "range": [ + 345, + 413 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 72 + } + } + } + ], + "range": [ + 339, + 417 + ], + "loc": { + "start": { + "line": 17, + "column": 33 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 319, + 417 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 308, + 417 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} schemaName\n * @param {String} error\n ", + "range": [ + 237, + 305 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 233, + 419 + ], + "loc": { + "start": { + "line": 12, + "column": 63 + }, + "end": { + "line": 20, + "column": 1 + } + } + }, + "range": [ + 177, + 419 + ], + "loc": { + "start": { + "line": 12, + "column": 7 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when object validation fails on a joi schema/model\n ", + "range": [ + 101, + 169 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 170, + 419 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Thrown when object validation fails on a joi schema/model\n ", + "range": [ + 101, + 169 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 419 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/22/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Thrown when object validation fails on a joi schema/model\n ", + "range": [ + 101, + 169 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} schemaName\n * @param {String} error\n ", + "range": [ + 237, + 305 + ], + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-validation/ast/source/Helpers/Joi.js.json b/docs-api/deep-validation/ast/source/Helpers/Joi.js.json new file mode 100644 index 00000000..6853645f --- /dev/null +++ b/docs-api/deep-validation/ast/source/Helpers/Joi.js.json @@ -0,0 +1,4041 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "BaseJoi", + "range": [ + 68, + 75 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 14 + } + } + }, + "range": [ + 68, + 75 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 14 + } + } + } + ], + "source": { + "type": "Literal", + "value": "joi", + "raw": "'joi'", + "range": [ + 81, + 86 + ], + "loc": { + "start": { + "line": 7, + "column": 20 + }, + "end": { + "line": 7, + "column": 25 + } + } + }, + "range": [ + 61, + 87 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 26 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Vogels", + "range": [ + 95, + 101 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 13 + } + } + }, + "range": [ + 95, + 101 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./vogelsPolyfill", + "raw": "'./vogelsPolyfill'", + "range": [ + 107, + 125 + ], + "loc": { + "start": { + "line": 8, + "column": 19 + }, + "end": { + "line": 8, + "column": 37 + } + } + }, + "range": [ + 88, + 126 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 38 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Abstraction on Joi validation expressions\n ", + "range": [ + 128, + 180 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Joi", + "range": [ + 194, + 197 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 16 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "uuid", + "range": [ + 248, + 252 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Vogels", + "range": [ + 268, + 274 + ], + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "types", + "range": [ + 275, + 280 + ], + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 23 + } + } + }, + "range": [ + 268, + 280 + ], + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "uuid", + "range": [ + 281, + 285 + ], + "loc": { + "start": { + "line": 18, + "column": 24 + }, + "end": { + "line": 18, + "column": 28 + } + } + }, + "range": [ + 268, + 285 + ], + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 28 + } + } + }, + "arguments": [], + "range": [ + 268, + 287 + ], + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 30 + } + } + }, + "range": [ + 261, + 288 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 31 + } + } + } + ], + "range": [ + 255, + 292 + ], + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 252, + 292 + ], + "loc": { + "start": { + "line": 17, + "column": 17 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 237, + 292 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 202, + 234 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 296, + 328 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "timeUUID", + "range": [ + 342, + 350 + ], + "loc": { + "start": { + "line": 24, + "column": 13 + }, + "end": { + "line": 24, + "column": 21 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Vogels", + "range": [ + 366, + 372 + ], + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "types", + "range": [ + 373, + 378 + ], + "loc": { + "start": { + "line": 25, + "column": 18 + }, + "end": { + "line": 25, + "column": 23 + } + } + }, + "range": [ + 366, + 378 + ], + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "timeUUID", + "range": [ + 379, + 387 + ], + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 32 + } + } + }, + "range": [ + 366, + 387 + ], + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 32 + } + } + }, + "arguments": [], + "range": [ + 366, + 389 + ], + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 34 + } + } + }, + "range": [ + 359, + 390 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 35 + } + } + } + ], + "range": [ + 353, + 394 + ], + "loc": { + "start": { + "line": 24, + "column": 24 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 350, + 394 + ], + "loc": { + "start": { + "line": 24, + "column": 21 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 331, + 394 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 296, + 328 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 398, + 430 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "stringSet", + "range": [ + 444, + 453 + ], + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 31, + "column": 22 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Vogels", + "range": [ + 469, + 475 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "types", + "range": [ + 476, + 481 + ], + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 23 + } + } + }, + "range": [ + 469, + 481 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "stringSet", + "range": [ + 482, + 491 + ], + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 33 + } + } + }, + "range": [ + 469, + 491 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 33 + } + } + }, + "arguments": [], + "range": [ + 469, + 493 + ], + "loc": { + "start": { + "line": 32, + "column": 11 + }, + "end": { + "line": 32, + "column": 35 + } + } + }, + "range": [ + 462, + 494 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 36 + } + } + } + ], + "range": [ + 456, + 498 + ], + "loc": { + "start": { + "line": 31, + "column": 25 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 453, + 498 + ], + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 433, + 498 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 33, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 398, + 430 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 502, + 534 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "numberSet", + "range": [ + 548, + 557 + ], + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 22 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Vogels", + "range": [ + 573, + 579 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "types", + "range": [ + 580, + 585 + ], + "loc": { + "start": { + "line": 39, + "column": 18 + }, + "end": { + "line": 39, + "column": 23 + } + } + }, + "range": [ + 573, + 585 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "numberSet", + "range": [ + 586, + 595 + ], + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 39, + "column": 33 + } + } + }, + "range": [ + 573, + 595 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 33 + } + } + }, + "arguments": [], + "range": [ + 573, + 597 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 35 + } + } + }, + "range": [ + 566, + 598 + ], + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 36 + } + } + } + ], + "range": [ + 560, + 602 + ], + "loc": { + "start": { + "line": 38, + "column": 25 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 557, + 602 + ], + "loc": { + "start": { + "line": 38, + "column": 22 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 537, + 602 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 40, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 502, + 534 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 606, + 638 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "binarySet", + "range": [ + 652, + 661 + ], + "loc": { + "start": { + "line": 45, + "column": 13 + }, + "end": { + "line": 45, + "column": 22 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Vogels", + "range": [ + 677, + 683 + ], + "loc": { + "start": { + "line": 46, + "column": 11 + }, + "end": { + "line": 46, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "types", + "range": [ + 684, + 689 + ], + "loc": { + "start": { + "line": 46, + "column": 18 + }, + "end": { + "line": 46, + "column": 23 + } + } + }, + "range": [ + 677, + 689 + ], + "loc": { + "start": { + "line": 46, + "column": 11 + }, + "end": { + "line": 46, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "binarySet", + "range": [ + 690, + 699 + ], + "loc": { + "start": { + "line": 46, + "column": 24 + }, + "end": { + "line": 46, + "column": 33 + } + } + }, + "range": [ + 677, + 699 + ], + "loc": { + "start": { + "line": 46, + "column": 11 + }, + "end": { + "line": 46, + "column": 33 + } + } + }, + "arguments": [], + "range": [ + 677, + 701 + ], + "loc": { + "start": { + "line": 46, + "column": 11 + }, + "end": { + "line": 46, + "column": 35 + } + } + }, + "range": [ + 670, + 702 + ], + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 36 + } + } + } + ], + "range": [ + 664, + 706 + ], + "loc": { + "start": { + "line": 45, + "column": 25 + }, + "end": { + "line": 47, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 661, + 706 + ], + "loc": { + "start": { + "line": 45, + "column": 22 + }, + "end": { + "line": 47, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 641, + 706 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 47, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 606, + 638 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 710, + 742 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "binary", + "range": [ + 756, + 762 + ], + "loc": { + "start": { + "line": 52, + "column": 13 + }, + "end": { + "line": 52, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "BaseJoi", + "range": [ + 778, + 785 + ], + "loc": { + "start": { + "line": 53, + "column": 11 + }, + "end": { + "line": 53, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "binary", + "range": [ + 786, + 792 + ], + "loc": { + "start": { + "line": 53, + "column": 19 + }, + "end": { + "line": 53, + "column": 25 + } + } + }, + "range": [ + 778, + 792 + ], + "loc": { + "start": { + "line": 53, + "column": 11 + }, + "end": { + "line": 53, + "column": 25 + } + } + }, + "arguments": [], + "range": [ + 778, + 794 + ], + "loc": { + "start": { + "line": 53, + "column": 11 + }, + "end": { + "line": 53, + "column": 27 + } + } + }, + "range": [ + 771, + 795 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 28 + } + } + } + ], + "range": [ + 765, + 799 + ], + "loc": { + "start": { + "line": 52, + "column": 22 + }, + "end": { + "line": 54, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 762, + 799 + ], + "loc": { + "start": { + "line": 52, + "column": 19 + }, + "end": { + "line": 54, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 745, + 799 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 54, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 710, + 742 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 803, + 835 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 58, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "number", + "range": [ + 849, + 855 + ], + "loc": { + "start": { + "line": 59, + "column": 13 + }, + "end": { + "line": 59, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "BaseJoi", + "range": [ + 871, + 878 + ], + "loc": { + "start": { + "line": 60, + "column": 11 + }, + "end": { + "line": 60, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "number", + "range": [ + 879, + 885 + ], + "loc": { + "start": { + "line": 60, + "column": 19 + }, + "end": { + "line": 60, + "column": 25 + } + } + }, + "range": [ + 871, + 885 + ], + "loc": { + "start": { + "line": 60, + "column": 11 + }, + "end": { + "line": 60, + "column": 25 + } + } + }, + "arguments": [], + "range": [ + 871, + 887 + ], + "loc": { + "start": { + "line": 60, + "column": 11 + }, + "end": { + "line": 60, + "column": 27 + } + } + }, + "range": [ + 864, + 888 + ], + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 28 + } + } + } + ], + "range": [ + 858, + 892 + ], + "loc": { + "start": { + "line": 59, + "column": 22 + }, + "end": { + "line": 61, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 855, + 892 + ], + "loc": { + "start": { + "line": 59, + "column": 19 + }, + "end": { + "line": 61, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 838, + 892 + ], + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 61, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 803, + 835 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 58, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 896, + 928 + ], + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "string", + "range": [ + 942, + 948 + ], + "loc": { + "start": { + "line": 66, + "column": 13 + }, + "end": { + "line": 66, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "BaseJoi", + "range": [ + 964, + 971 + ], + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "string", + "range": [ + 972, + 978 + ], + "loc": { + "start": { + "line": 67, + "column": 19 + }, + "end": { + "line": 67, + "column": 25 + } + } + }, + "range": [ + 964, + 978 + ], + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 25 + } + } + }, + "arguments": [], + "range": [ + 964, + 980 + ], + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 27 + } + } + }, + "range": [ + 957, + 981 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 28 + } + } + } + ], + "range": [ + 951, + 985 + ], + "loc": { + "start": { + "line": 66, + "column": 22 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 948, + 985 + ], + "loc": { + "start": { + "line": 66, + "column": 19 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 931, + 985 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 68, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 896, + 928 + ], + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 989, + 1021 + ], + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 72, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "boolean", + "range": [ + 1035, + 1042 + ], + "loc": { + "start": { + "line": 73, + "column": 13 + }, + "end": { + "line": 73, + "column": 20 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "BaseJoi", + "range": [ + 1058, + 1065 + ], + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 74, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "boolean", + "range": [ + 1066, + 1073 + ], + "loc": { + "start": { + "line": 74, + "column": 19 + }, + "end": { + "line": 74, + "column": 26 + } + } + }, + "range": [ + 1058, + 1073 + ], + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 74, + "column": 26 + } + } + }, + "arguments": [], + "range": [ + 1058, + 1075 + ], + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 74, + "column": 28 + } + } + }, + "range": [ + 1051, + 1076 + ], + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 74, + "column": 29 + } + } + } + ], + "range": [ + 1045, + 1080 + ], + "loc": { + "start": { + "line": 73, + "column": 23 + }, + "end": { + "line": 75, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1042, + 1080 + ], + "loc": { + "start": { + "line": 73, + "column": 20 + }, + "end": { + "line": 75, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1024, + 1080 + ], + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 75, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 989, + 1021 + ], + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 72, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1084, + 1116 + ], + "loc": { + "start": { + "line": 77, + "column": 2 + }, + "end": { + "line": 79, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "email", + "range": [ + 1130, + 1135 + ], + "loc": { + "start": { + "line": 80, + "column": 13 + }, + "end": { + "line": 80, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "BaseJoi", + "range": [ + 1151, + 1158 + ], + "loc": { + "start": { + "line": 81, + "column": 11 + }, + "end": { + "line": 81, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "string", + "range": [ + 1159, + 1165 + ], + "loc": { + "start": { + "line": 81, + "column": 19 + }, + "end": { + "line": 81, + "column": 25 + } + } + }, + "range": [ + 1151, + 1165 + ], + "loc": { + "start": { + "line": 81, + "column": 11 + }, + "end": { + "line": 81, + "column": 25 + } + } + }, + "arguments": [], + "range": [ + 1151, + 1167 + ], + "loc": { + "start": { + "line": 81, + "column": 11 + }, + "end": { + "line": 81, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "email", + "range": [ + 1168, + 1173 + ], + "loc": { + "start": { + "line": 81, + "column": 28 + }, + "end": { + "line": 81, + "column": 33 + } + } + }, + "range": [ + 1151, + 1173 + ], + "loc": { + "start": { + "line": 81, + "column": 11 + }, + "end": { + "line": 81, + "column": 33 + } + } + }, + "arguments": [], + "range": [ + 1151, + 1175 + ], + "loc": { + "start": { + "line": 81, + "column": 11 + }, + "end": { + "line": 81, + "column": 35 + } + } + }, + "range": [ + 1144, + 1176 + ], + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 36 + } + } + } + ], + "range": [ + 1138, + 1180 + ], + "loc": { + "start": { + "line": 80, + "column": 21 + }, + "end": { + "line": 82, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1135, + 1180 + ], + "loc": { + "start": { + "line": 80, + "column": 18 + }, + "end": { + "line": 82, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1119, + 1180 + ], + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 82, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1084, + 1116 + ], + "loc": { + "start": { + "line": 77, + "column": 2 + }, + "end": { + "line": 79, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1184, + 1216 + ], + "loc": { + "start": { + "line": 84, + "column": 2 + }, + "end": { + "line": 86, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "website", + "range": [ + 1230, + 1237 + ], + "loc": { + "start": { + "line": 87, + "column": 13 + }, + "end": { + "line": 87, + "column": 20 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "BaseJoi", + "range": [ + 1253, + 1260 + ], + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "string", + "range": [ + 1261, + 1267 + ], + "loc": { + "start": { + "line": 88, + "column": 19 + }, + "end": { + "line": 88, + "column": 25 + } + } + }, + "range": [ + 1253, + 1267 + ], + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 25 + } + } + }, + "arguments": [], + "range": [ + 1253, + 1269 + ], + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "uri", + "range": [ + 1270, + 1273 + ], + "loc": { + "start": { + "line": 88, + "column": 28 + }, + "end": { + "line": 88, + "column": 31 + } + } + }, + "range": [ + 1253, + 1273 + ], + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 31 + } + } + }, + "arguments": [], + "range": [ + 1253, + 1275 + ], + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 33 + } + } + }, + "range": [ + 1246, + 1276 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 34 + } + } + } + ], + "range": [ + 1240, + 1280 + ], + "loc": { + "start": { + "line": 87, + "column": 23 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1237, + 1280 + ], + "loc": { + "start": { + "line": 87, + "column": 20 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1219, + 1280 + ], + "loc": { + "start": { + "line": 87, + "column": 2 + }, + "end": { + "line": 89, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1184, + 1216 + ], + "loc": { + "start": { + "line": 84, + "column": 2 + }, + "end": { + "line": 86, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1284, + 1316 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 93, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "map", + "range": [ + 1330, + 1333 + ], + "loc": { + "start": { + "line": 94, + "column": 13 + }, + "end": { + "line": 94, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "BaseJoi", + "range": [ + 1349, + 1356 + ], + "loc": { + "start": { + "line": 95, + "column": 11 + }, + "end": { + "line": 95, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "object", + "range": [ + 1357, + 1363 + ], + "loc": { + "start": { + "line": 95, + "column": 19 + }, + "end": { + "line": 95, + "column": 25 + } + } + }, + "range": [ + 1349, + 1363 + ], + "loc": { + "start": { + "line": 95, + "column": 11 + }, + "end": { + "line": 95, + "column": 25 + } + } + }, + "arguments": [], + "range": [ + 1349, + 1365 + ], + "loc": { + "start": { + "line": 95, + "column": 11 + }, + "end": { + "line": 95, + "column": 27 + } + } + }, + "range": [ + 1342, + 1366 + ], + "loc": { + "start": { + "line": 95, + "column": 4 + }, + "end": { + "line": 95, + "column": 28 + } + } + } + ], + "range": [ + 1336, + 1370 + ], + "loc": { + "start": { + "line": 94, + "column": 19 + }, + "end": { + "line": 96, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1333, + 1370 + ], + "loc": { + "start": { + "line": 94, + "column": 16 + }, + "end": { + "line": 96, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1319, + 1370 + ], + "loc": { + "start": { + "line": 94, + "column": 2 + }, + "end": { + "line": 96, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1284, + 1316 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 93, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 1374, + 1401 + ], + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 100, + "column": 5 + } + } + } + ], + "static": true + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "mapSet", + "range": [ + 1415, + 1421 + ], + "loc": { + "start": { + "line": 101, + "column": 13 + }, + "end": { + "line": 101, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "array", + "range": [ + 1434, + 1439 + ], + "loc": { + "start": { + "line": 102, + "column": 8 + }, + "end": { + "line": 102, + "column": 13 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "BaseJoi", + "range": [ + 1442, + 1449 + ], + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "array", + "range": [ + 1450, + 1455 + ], + "loc": { + "start": { + "line": 102, + "column": 24 + }, + "end": { + "line": 102, + "column": 29 + } + } + }, + "range": [ + 1442, + 1455 + ], + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 29 + } + } + }, + "arguments": [], + "range": [ + 1442, + 1457 + ], + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 31 + } + } + }, + "range": [ + 1434, + 1457 + ], + "loc": { + "start": { + "line": 102, + "column": 8 + }, + "end": { + "line": 102, + "column": 31 + } + } + } + ], + "kind": "let", + "range": [ + 1430, + 1458 + ], + "loc": { + "start": { + "line": 102, + "column": 4 + }, + "end": { + "line": 102, + "column": 32 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "array", + "range": [ + 1467, + 1472 + ], + "loc": { + "start": { + "line": 103, + "column": 8 + }, + "end": { + "line": 103, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "includes", + "range": [ + 1473, + 1481 + ], + "loc": { + "start": { + "line": 103, + "column": 14 + }, + "end": { + "line": 103, + "column": 22 + } + } + }, + "range": [ + 1467, + 1481 + ], + "loc": { + "start": { + "line": 103, + "column": 8 + }, + "end": { + "line": 103, + "column": 22 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "array", + "range": [ + 1498, + 1503 + ], + "loc": { + "start": { + "line": 104, + "column": 13 + }, + "end": { + "line": 104, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "name": "includes", + "range": [ + 1504, + 1512 + ], + "loc": { + "start": { + "line": 104, + "column": 19 + }, + "end": { + "line": 104, + "column": 27 + } + } + }, + "range": [ + 1498, + 1512 + ], + "loc": { + "start": { + "line": 104, + "column": 13 + }, + "end": { + "line": 104, + "column": 27 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "BaseJoi", + "range": [ + 1513, + 1520 + ], + "loc": { + "start": { + "line": 104, + "column": 28 + }, + "end": { + "line": 104, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "object", + "range": [ + 1521, + 1527 + ], + "loc": { + "start": { + "line": 104, + "column": 36 + }, + "end": { + "line": 104, + "column": 42 + } + } + }, + "range": [ + 1513, + 1527 + ], + "loc": { + "start": { + "line": 104, + "column": 28 + }, + "end": { + "line": 104, + "column": 42 + } + } + }, + "arguments": [], + "range": [ + 1513, + 1529 + ], + "loc": { + "start": { + "line": 104, + "column": 28 + }, + "end": { + "line": 104, + "column": 44 + } + } + } + ], + "range": [ + 1498, + 1530 + ], + "loc": { + "start": { + "line": 104, + "column": 13 + }, + "end": { + "line": 104, + "column": 45 + } + } + }, + "range": [ + 1491, + 1531 + ], + "loc": { + "start": { + "line": 104, + "column": 6 + }, + "end": { + "line": 104, + "column": 46 + } + } + } + ], + "range": [ + 1483, + 1537 + ], + "loc": { + "start": { + "line": 103, + "column": 24 + }, + "end": { + "line": 105, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1463, + 1537 + ], + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 105, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "array", + "range": [ + 1550, + 1555 + ], + "loc": { + "start": { + "line": 107, + "column": 11 + }, + "end": { + "line": 107, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "items", + "range": [ + 1556, + 1561 + ], + "loc": { + "start": { + "line": 107, + "column": 17 + }, + "end": { + "line": 107, + "column": 22 + } + } + }, + "range": [ + 1550, + 1561 + ], + "loc": { + "start": { + "line": 107, + "column": 11 + }, + "end": { + "line": 107, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "BaseJoi", + "range": [ + 1562, + 1569 + ], + "loc": { + "start": { + "line": 107, + "column": 23 + }, + "end": { + "line": 107, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "object", + "range": [ + 1570, + 1576 + ], + "loc": { + "start": { + "line": 107, + "column": 31 + }, + "end": { + "line": 107, + "column": 37 + } + } + }, + "range": [ + 1562, + 1576 + ], + "loc": { + "start": { + "line": 107, + "column": 23 + }, + "end": { + "line": 107, + "column": 37 + } + } + }, + "arguments": [], + "range": [ + 1562, + 1578 + ], + "loc": { + "start": { + "line": 107, + "column": 23 + }, + "end": { + "line": 107, + "column": 39 + } + } + } + ], + "range": [ + 1550, + 1579 + ], + "loc": { + "start": { + "line": 107, + "column": 11 + }, + "end": { + "line": 107, + "column": 40 + } + } + }, + "range": [ + 1543, + 1580 + ], + "loc": { + "start": { + "line": 107, + "column": 4 + }, + "end": { + "line": 107, + "column": 41 + } + } + } + ], + "range": [ + 1424, + 1584 + ], + "loc": { + "start": { + "line": 101, + "column": 22 + }, + "end": { + "line": 108, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1421, + 1584 + ], + "loc": { + "start": { + "line": 101, + "column": 19 + }, + "end": { + "line": 108, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1404, + 1584 + ], + "loc": { + "start": { + "line": 101, + "column": 2 + }, + "end": { + "line": 108, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 1374, + 1401 + ], + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 100, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 198, + 1586 + ], + "loc": { + "start": { + "line": 13, + "column": 17 + }, + "end": { + "line": 109, + "column": 1 + } + } + }, + "range": [ + 188, + 1586 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 109, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Abstraction on Joi validation expressions\n ", + "range": [ + 128, + 180 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 181, + 1586 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 109, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Abstraction on Joi validation expressions\n ", + "range": [ + 128, + 180 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 1586 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 109, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Abstraction on Joi validation expressions\n ", + "range": [ + 128, + 180 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 202, + 234 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 296, + 328 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 398, + 430 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 502, + 534 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 606, + 638 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 44, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 710, + 742 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 51, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 803, + 835 + ], + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 58, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 896, + 928 + ], + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 989, + 1021 + ], + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 72, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1084, + 1116 + ], + "loc": { + "start": { + "line": 77, + "column": 2 + }, + "end": { + "line": 79, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1184, + 1216 + ], + "loc": { + "start": { + "line": 84, + "column": 2 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 1284, + 1316 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 93, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {*}\n ", + "range": [ + 1374, + 1401 + ], + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 100, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-validation/ast/source/Helpers/vogelsPolyfill.js.json b/docs-api/deep-validation/ast/source/Helpers/vogelsPolyfill.js.json new file mode 100644 index 00000000..0bda3df6 --- /dev/null +++ b/docs-api/deep-validation/ast/source/Helpers/vogelsPolyfill.js.json @@ -0,0 +1,2174 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Joi", + "range": [ + 68, + 71 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 10 + } + } + }, + "range": [ + 68, + 71 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 10 + } + } + } + ], + "source": { + "type": "Literal", + "value": "joi", + "raw": "'joi'", + "range": [ + 77, + 82 + ], + "loc": { + "start": { + "line": 7, + "column": 16 + }, + "end": { + "line": 7, + "column": 21 + } + } + }, + "range": [ + 61, + 83 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "UUID_REGEXP", + "range": [ + 89, + 100 + ], + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 15 + } + } + }, + "init": { + "type": "Literal", + "value": {}, + "raw": "/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/", + "regex": { + "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", + "flags": "" + }, + "range": [ + 103, + 182 + ], + "loc": { + "start": { + "line": 9, + "column": 18 + }, + "end": { + "line": 9, + "column": 97 + } + } + }, + "range": [ + 89, + 182 + ], + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 97 + } + } + } + ], + "kind": "let", + "range": [ + 85, + 183 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 98 + } + } + }, + { + "type": "ExportDefaultDeclaration", + "declaration": { + "type": "ConditionalExpression", + "test": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "Identifier", + "name": "window", + "range": [ + 208, + 214 + ], + "loc": { + "start": { + "line": 11, + "column": 23 + }, + "end": { + "line": 11, + "column": 29 + } + } + }, + "prefix": true, + "range": [ + 201, + 214 + ], + "loc": { + "start": { + "line": 11, + "column": 16 + }, + "end": { + "line": 11, + "column": 29 + } + } + }, + "right": { + "type": "Literal", + "value": "undefined", + "raw": "'undefined'", + "range": [ + 219, + 230 + ], + "loc": { + "start": { + "line": 11, + "column": 34 + }, + "end": { + "line": 11, + "column": 45 + } + } + }, + "range": [ + 201, + 230 + ], + "loc": { + "start": { + "line": 11, + "column": 16 + }, + "end": { + "line": 11, + "column": 45 + } + } + }, + "consequent": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "types", + "range": [ + 237, + 242 + ], + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 7 + } + } + }, + "value": { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "uuid", + "range": [ + 250, + 254 + ], + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Joi", + "range": [ + 282, + 285 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "string", + "range": [ + 286, + 292 + ], + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 23 + } + } + }, + "range": [ + 282, + 292 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 23 + } + } + }, + "arguments": [], + "range": [ + 282, + 294 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "regex", + "range": [ + 295, + 300 + ], + "loc": { + "start": { + "line": 14, + "column": 26 + }, + "end": { + "line": 14, + "column": 31 + } + } + }, + "range": [ + 282, + 300 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "UUID_REGEXP", + "range": [ + 301, + 312 + ], + "loc": { + "start": { + "line": 14, + "column": 32 + }, + "end": { + "line": 14, + "column": 43 + } + } + } + ], + "range": [ + 282, + 313 + ], + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 44 + } + } + }, + "range": [ + 275, + 314 + ], + "loc": { + "start": { + "line": 14, + "column": 6 + }, + "end": { + "line": 14, + "column": 45 + } + } + } + ], + "range": [ + 267, + 320 + ], + "loc": { + "start": { + "line": 13, + "column": 21 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 256, + 320 + ], + "loc": { + "start": { + "line": 13, + "column": 10 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 250, + 320 + ], + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "timeUUID", + "range": [ + 327, + 335 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Joi", + "range": [ + 363, + 366 + ], + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "string", + "range": [ + 367, + 373 + ], + "loc": { + "start": { + "line": 18, + "column": 17 + }, + "end": { + "line": 18, + "column": 23 + } + } + }, + "range": [ + 363, + 373 + ], + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 23 + } + } + }, + "arguments": [], + "range": [ + 363, + 375 + ], + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "name": "regex", + "range": [ + 376, + 381 + ], + "loc": { + "start": { + "line": 18, + "column": 26 + }, + "end": { + "line": 18, + "column": 31 + } + } + }, + "range": [ + 363, + 381 + ], + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "UUID_REGEXP", + "range": [ + 382, + 393 + ], + "loc": { + "start": { + "line": 18, + "column": 32 + }, + "end": { + "line": 18, + "column": 43 + } + } + } + ], + "range": [ + 363, + 394 + ], + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 44 + } + } + }, + "range": [ + 356, + 395 + ], + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 45 + } + } + } + ], + "range": [ + 348, + 401 + ], + "loc": { + "start": { + "line": 17, + "column": 25 + }, + "end": { + "line": 19, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 337, + 401 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 19, + "column": 5 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 327, + 401 + ], + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 19, + "column": 5 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "stringSet", + "range": [ + 408, + 417 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "_joiVector", + "range": [ + 445, + 455 + ], + "loc": { + "start": { + "line": 22, + "column": 13 + }, + "end": { + "line": 22, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Joi", + "range": [ + 456, + 459 + ], + "loc": { + "start": { + "line": 22, + "column": 24 + }, + "end": { + "line": 22, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "string", + "range": [ + 460, + 466 + ], + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + "range": [ + 456, + 466 + ], + "loc": { + "start": { + "line": 22, + "column": 24 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 456, + 468 + ], + "loc": { + "start": { + "line": 22, + "column": 24 + }, + "end": { + "line": 22, + "column": 36 + } + } + } + ], + "range": [ + 445, + 469 + ], + "loc": { + "start": { + "line": 22, + "column": 13 + }, + "end": { + "line": 22, + "column": 37 + } + } + }, + "range": [ + 438, + 470 + ], + "loc": { + "start": { + "line": 22, + "column": 6 + }, + "end": { + "line": 22, + "column": 38 + } + } + } + ], + "range": [ + 430, + 476 + ], + "loc": { + "start": { + "line": 21, + "column": 26 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 419, + 476 + ], + "loc": { + "start": { + "line": 21, + "column": 15 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 408, + 476 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "numberSet", + "range": [ + 483, + 492 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "_joiVector", + "range": [ + 520, + 530 + ], + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Joi", + "range": [ + 531, + 534 + ], + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "number", + "range": [ + 535, + 541 + ], + "loc": { + "start": { + "line": 26, + "column": 28 + }, + "end": { + "line": 26, + "column": 34 + } + } + }, + "range": [ + 531, + 541 + ], + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 531, + 543 + ], + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 36 + } + } + } + ], + "range": [ + 520, + 544 + ], + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 37 + } + } + }, + "range": [ + 513, + 545 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 38 + } + } + } + ], + "range": [ + 505, + 551 + ], + "loc": { + "start": { + "line": 25, + "column": 26 + }, + "end": { + "line": 27, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 494, + 551 + ], + "loc": { + "start": { + "line": 25, + "column": 15 + }, + "end": { + "line": 27, + "column": 5 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 483, + 551 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 27, + "column": 5 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "binarySet", + "range": [ + 558, + 567 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "_joiVector", + "range": [ + 595, + 605 + ], + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Joi", + "range": [ + 606, + 609 + ], + "loc": { + "start": { + "line": 30, + "column": 24 + }, + "end": { + "line": 30, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "string", + "range": [ + 610, + 616 + ], + "loc": { + "start": { + "line": 30, + "column": 28 + }, + "end": { + "line": 30, + "column": 34 + } + } + }, + "range": [ + 606, + 616 + ], + "loc": { + "start": { + "line": 30, + "column": 24 + }, + "end": { + "line": 30, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 606, + 618 + ], + "loc": { + "start": { + "line": 30, + "column": 24 + }, + "end": { + "line": 30, + "column": 36 + } + } + } + ], + "range": [ + 595, + 619 + ], + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 37 + } + } + }, + "range": [ + 588, + 620 + ], + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 38 + } + } + } + ], + "range": [ + 580, + 626 + ], + "loc": { + "start": { + "line": 29, + "column": 26 + }, + "end": { + "line": 31, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 569, + 626 + ], + "loc": { + "start": { + "line": 29, + "column": 15 + }, + "end": { + "line": 31, + "column": 5 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 558, + 626 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 31, + "column": 5 + } + } + } + ], + "range": [ + 244, + 631 + ], + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 32, + "column": 3 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 237, + 631 + ], + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 32, + "column": 3 + } + } + } + ], + "range": [ + 233, + 634 + ], + "loc": { + "start": { + "line": 11, + "column": 48 + }, + "end": { + "line": 33, + "column": 1 + } + } + }, + "alternate": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "require", + "range": [ + 637, + 644 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 11 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "vogels", + "raw": "'vogels'", + "range": [ + 645, + 653 + ], + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 20 + } + } + } + ], + "range": [ + 637, + 654 + ], + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 21 + } + } + }, + "range": [ + 201, + 654 + ], + "loc": { + "start": { + "line": 11, + "column": 16 + }, + "end": { + "line": 33, + "column": 21 + } + }, + "leadingComments": [], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Fixes weird joi exception!\n *\n * @param {Object} proto\n * @returns {Object}\n * @private\n ", + "range": [ + 658, + 756 + ], + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 41, + "column": 3 + } + } + } + ] + }, + "range": [ + 185, + 656 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 33, + "column": 23 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Fixes weird joi exception!\n *\n * @param {Object} proto\n * @returns {Object}\n * @private\n ", + "range": [ + 658, + 756 + ], + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 41, + "column": 3 + } + } + } + ] + }, + { + "type": "FunctionDeclaration", + "id": { + "type": "Identifier", + "name": "_joiVector", + "range": [ + 766, + 776 + ], + "loc": { + "start": { + "line": 42, + "column": 9 + }, + "end": { + "line": 42, + "column": 19 + } + } + }, + "params": [ + { + "type": "Identifier", + "name": "proto", + "range": [ + 777, + 782 + ], + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "arr", + "range": [ + 792, + 795 + ], + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 9 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Joi", + "range": [ + 798, + 801 + ], + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "array", + "range": [ + 802, + 807 + ], + "loc": { + "start": { + "line": 43, + "column": 16 + }, + "end": { + "line": 43, + "column": 21 + } + } + }, + "range": [ + 798, + 807 + ], + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 21 + } + } + }, + "arguments": [], + "range": [ + 798, + 809 + ], + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 23 + } + } + }, + "range": [ + 792, + 809 + ], + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 23 + } + } + } + ], + "kind": "let", + "range": [ + 788, + 810 + ], + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 43, + "column": 24 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "arr", + "range": [ + 818, + 821 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "includes", + "range": [ + 822, + 830 + ], + "loc": { + "start": { + "line": 45, + "column": 10 + }, + "end": { + "line": 45, + "column": 18 + } + } + }, + "range": [ + 818, + 830 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 18 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "arr", + "range": [ + 845, + 848 + ], + "loc": { + "start": { + "line": 46, + "column": 11 + }, + "end": { + "line": 46, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "includes", + "range": [ + 849, + 857 + ], + "loc": { + "start": { + "line": 46, + "column": 15 + }, + "end": { + "line": 46, + "column": 23 + } + } + }, + "range": [ + 845, + 857 + ], + "loc": { + "start": { + "line": 46, + "column": 11 + }, + "end": { + "line": 46, + "column": 23 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "proto", + "range": [ + 858, + 863 + ], + "loc": { + "start": { + "line": 46, + "column": 24 + }, + "end": { + "line": 46, + "column": 29 + } + } + } + ], + "range": [ + 845, + 864 + ], + "loc": { + "start": { + "line": 46, + "column": 11 + }, + "end": { + "line": 46, + "column": 30 + } + } + }, + "range": [ + 838, + 865 + ], + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 31 + } + } + } + ], + "range": [ + 832, + 869 + ], + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 47, + "column": 3 + } + } + }, + "alternate": null, + "range": [ + 814, + 869 + ], + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 47, + "column": 3 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "arr", + "range": [ + 880, + 883 + ], + "loc": { + "start": { + "line": 49, + "column": 9 + }, + "end": { + "line": 49, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "items", + "range": [ + 884, + 889 + ], + "loc": { + "start": { + "line": 49, + "column": 13 + }, + "end": { + "line": 49, + "column": 18 + } + } + }, + "range": [ + 880, + 889 + ], + "loc": { + "start": { + "line": 49, + "column": 9 + }, + "end": { + "line": 49, + "column": 18 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "proto", + "range": [ + 890, + 895 + ], + "loc": { + "start": { + "line": 49, + "column": 19 + }, + "end": { + "line": 49, + "column": 24 + } + } + } + ], + "range": [ + 880, + 896 + ], + "loc": { + "start": { + "line": 49, + "column": 9 + }, + "end": { + "line": 49, + "column": 25 + } + } + }, + "range": [ + 873, + 897 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 49, + "column": 26 + } + } + } + ], + "range": [ + 784, + 899 + ], + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 50, + "column": 1 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 757, + 899 + ], + "loc": { + "start": { + "line": 42, + "column": 0 + }, + "end": { + "line": 50, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Fixes weird joi exception!\n *\n * @param {Object} proto\n * @returns {Object}\n * @private\n ", + "range": [ + 658, + 756 + ], + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 41, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 899 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 50, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/25/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Fixes weird joi exception!\n *\n * @param {Object} proto\n * @returns {Object}\n * @private\n ", + "range": [ + 658, + 756 + ], + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 41, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-validation/ast/source/ObjectToJoi.js.json b/docs-api/deep-validation/ast/source/ObjectToJoi.js.json new file mode 100644 index 00000000..537b502f --- /dev/null +++ b/docs-api/deep-validation/ast/source/ObjectToJoi.js.json @@ -0,0 +1,2812 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "JoiHelper", + "range": [ + 76, + 85 + ], + "loc": { + "start": { + "line": 7, + "column": 15 + }, + "end": { + "line": 7, + "column": 24 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Joi", + "range": [ + 69, + 72 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + "range": [ + 69, + 85 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 24 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Helpers/Joi", + "raw": "'./Helpers/Joi'", + "range": [ + 92, + 107 + ], + "loc": { + "start": { + "line": 7, + "column": 31 + }, + "end": { + "line": 7, + "column": 46 + } + } + }, + "range": [ + 61, + 108 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 47 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "InvalidSchemaException", + "range": [ + 117, + 139 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 30 + } + } + }, + "imported": { + "type": "Identifier", + "name": "InvalidSchemaException", + "range": [ + 117, + 139 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 30 + } + } + }, + "range": [ + 117, + 139 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 30 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/InvalidSchemaException", + "raw": "'./Exception/InvalidSchemaException'", + "range": [ + 146, + 182 + ], + "loc": { + "start": { + "line": 8, + "column": 37 + }, + "end": { + "line": 8, + "column": 73 + } + } + }, + "range": [ + 109, + 183 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 74 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Exporting simple object to joi\n ", + "range": [ + 185, + 226 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "ObjectToJoi", + "range": [ + 240, + 251 + ], + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 24 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 300, + 311 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "baseObject", + "range": [ + 312, + 322 + ], + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 24 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 330, + 334 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_baseObject", + "range": [ + 335, + 346 + ], + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 20 + } + } + }, + "range": [ + 330, + 346 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 20 + } + } + }, + "right": { + "type": "Identifier", + "name": "baseObject", + "range": [ + 349, + 359 + ], + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 33 + } + } + }, + "range": [ + 330, + 359 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 33 + } + } + }, + "range": [ + 330, + 360 + ], + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 34 + } + } + } + ], + "range": [ + 324, + 364 + ], + "loc": { + "start": { + "line": 17, + "column": 26 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 311, + 364 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 300, + 364 + ], + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} baseObject\n ", + "range": [ + 256, + 297 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 368, + 400 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "baseObject", + "range": [ + 407, + 417 + ], + "loc": { + "start": { + "line": 24, + "column": 6 + }, + "end": { + "line": 24, + "column": 16 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 433, + 437 + ], + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_baseObject", + "range": [ + 438, + 449 + ], + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 27 + } + } + }, + "range": [ + 433, + 449 + ], + "loc": { + "start": { + "line": 25, + "column": 11 + }, + "end": { + "line": 25, + "column": 27 + } + } + }, + "range": [ + 426, + 450 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 28 + } + } + } + ], + "range": [ + 420, + 454 + ], + "loc": { + "start": { + "line": 24, + "column": 19 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 417, + 454 + ], + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 403, + 454 + ], + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 26, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 368, + 400 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 458, + 490 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "transform", + "range": [ + 493, + 502 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 31, + "column": 11 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "TryStatement", + "block": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "ObjectToJoi", + "range": [ + 530, + 541 + ], + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "_transform", + "range": [ + 542, + 552 + ], + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 35 + } + } + }, + "range": [ + 530, + 552 + ], + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 553, + 557 + ], + "loc": { + "start": { + "line": 33, + "column": 36 + }, + "end": { + "line": 33, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "_baseObject", + "range": [ + 558, + 569 + ], + "loc": { + "start": { + "line": 33, + "column": 41 + }, + "end": { + "line": 33, + "column": 52 + } + } + }, + "range": [ + 553, + 569 + ], + "loc": { + "start": { + "line": 33, + "column": 36 + }, + "end": { + "line": 33, + "column": 52 + } + } + } + ], + "range": [ + 530, + 570 + ], + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 53 + } + } + }, + "range": [ + 523, + 571 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 54 + } + } + } + ], + "range": [ + 515, + 577 + ], + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + "handler": { + "type": "CatchClause", + "param": { + "type": "Identifier", + "name": "e", + "range": [ + 585, + 586 + ], + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 14 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "InvalidSchemaException", + "range": [ + 606, + 628 + ], + "loc": { + "start": { + "line": 35, + "column": 16 + }, + "end": { + "line": 35, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 629, + 633 + ], + "loc": { + "start": { + "line": 35, + "column": 39 + }, + "end": { + "line": 35, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "name": "_baseObject", + "range": [ + 634, + 645 + ], + "loc": { + "start": { + "line": 35, + "column": 44 + }, + "end": { + "line": 35, + "column": 55 + } + } + }, + "range": [ + 629, + 645 + ], + "loc": { + "start": { + "line": 35, + "column": 39 + }, + "end": { + "line": 35, + "column": 55 + } + } + }, + { + "type": "Identifier", + "name": "e", + "range": [ + 647, + 648 + ], + "loc": { + "start": { + "line": 35, + "column": 57 + }, + "end": { + "line": 35, + "column": 58 + } + } + } + ], + "range": [ + 602, + 649 + ], + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 59 + } + } + }, + "range": [ + 596, + 650 + ], + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 35, + "column": 60 + } + } + } + ], + "range": [ + 588, + 656 + ], + "loc": { + "start": { + "line": 34, + "column": 16 + }, + "end": { + "line": 36, + "column": 5 + } + } + }, + "range": [ + 578, + 656 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 36, + "column": 5 + } + } + }, + "finalizer": null, + "range": [ + 511, + 656 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 36, + "column": 5 + } + } + } + ], + "range": [ + 505, + 660 + ], + "loc": { + "start": { + "line": 31, + "column": 14 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 502, + 660 + ], + "loc": { + "start": { + "line": 31, + "column": 11 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 493, + 660 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 37, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 458, + 490 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} obj\n * @returns {Object}\n * @private\n ", + "range": [ + 664, + 735 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_transform", + "range": [ + 745, + 755 + ], + "loc": { + "start": { + "line": 44, + "column": 9 + }, + "end": { + "line": 44, + "column": 19 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "obj", + "range": [ + 756, + 759 + ], + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "transObj", + "range": [ + 771, + 779 + ], + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 45, + "column": 16 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 782, + 784 + ], + "loc": { + "start": { + "line": 45, + "column": 19 + }, + "end": { + "line": 45, + "column": 21 + } + } + }, + "range": [ + 771, + 784 + ], + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 45, + "column": 21 + } + } + } + ], + "kind": "let", + "range": [ + 767, + 785 + ], + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 22 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "property", + "range": [ + 800, + 808 + ], + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 21 + } + } + }, + "init": null, + "range": [ + 800, + 808 + ], + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 21 + } + } + } + ], + "kind": "let", + "range": [ + 796, + 808 + ], + "loc": { + "start": { + "line": 47, + "column": 9 + }, + "end": { + "line": 47, + "column": 21 + } + } + }, + "right": { + "type": "Identifier", + "name": "obj", + "range": [ + 812, + 815 + ], + "loc": { + "start": { + "line": 47, + "column": 25 + }, + "end": { + "line": 47, + "column": 28 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "obj", + "range": [ + 830, + 833 + ], + "loc": { + "start": { + "line": 48, + "column": 11 + }, + "end": { + "line": 48, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 834, + 848 + ], + "loc": { + "start": { + "line": 48, + "column": 15 + }, + "end": { + "line": 48, + "column": 29 + } + } + }, + "range": [ + 830, + 848 + ], + "loc": { + "start": { + "line": 48, + "column": 11 + }, + "end": { + "line": 48, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "property", + "range": [ + 849, + 857 + ], + "loc": { + "start": { + "line": 48, + "column": 30 + }, + "end": { + "line": 48, + "column": 38 + } + } + } + ], + "range": [ + 830, + 858 + ], + "loc": { + "start": { + "line": 48, + "column": 11 + }, + "end": { + "line": 48, + "column": 39 + } + } + }, + "prefix": true, + "range": [ + 829, + 858 + ], + "loc": { + "start": { + "line": 48, + "column": 10 + }, + "end": { + "line": 48, + "column": 39 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 870, + 879 + ], + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 49, + "column": 17 + } + } + } + ], + "range": [ + 860, + 887 + ], + "loc": { + "start": { + "line": 48, + "column": 41 + }, + "end": { + "line": 50, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 825, + 887 + ], + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 50, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "value", + "range": [ + 899, + 904 + ], + "loc": { + "start": { + "line": 52, + "column": 10 + }, + "end": { + "line": 52, + "column": 15 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "obj", + "range": [ + 907, + 910 + ], + "loc": { + "start": { + "line": 52, + "column": 18 + }, + "end": { + "line": 52, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "property", + "range": [ + 911, + 919 + ], + "loc": { + "start": { + "line": 52, + "column": 22 + }, + "end": { + "line": 52, + "column": 30 + } + } + }, + "range": [ + 907, + 920 + ], + "loc": { + "start": { + "line": 52, + "column": 18 + }, + "end": { + "line": 52, + "column": 31 + } + } + }, + "range": [ + 899, + 920 + ], + "loc": { + "start": { + "line": 52, + "column": 10 + }, + "end": { + "line": 52, + "column": 31 + } + } + } + ], + "kind": "let", + "range": [ + 895, + 921 + ], + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 32 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "Identifier", + "name": "value", + "range": [ + 940, + 945 + ], + "loc": { + "start": { + "line": 54, + "column": 17 + }, + "end": { + "line": 54, + "column": 22 + } + } + }, + "prefix": true, + "range": [ + 933, + 945 + ], + "loc": { + "start": { + "line": 54, + "column": 10 + }, + "end": { + "line": 54, + "column": 22 + } + } + }, + "right": { + "type": "Literal", + "value": "object", + "raw": "'object'", + "range": [ + 950, + 958 + ], + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 35 + } + } + }, + "range": [ + 933, + 958 + ], + "loc": { + "start": { + "line": 54, + "column": 10 + }, + "end": { + "line": 54, + "column": 35 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "transObj", + "range": [ + 970, + 978 + ], + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "property", + "range": [ + 979, + 987 + ], + "loc": { + "start": { + "line": 55, + "column": 17 + }, + "end": { + "line": 55, + "column": 25 + } + } + }, + "range": [ + 970, + 988 + ], + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 26 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "ObjectToJoi", + "range": [ + 991, + 1002 + ], + "loc": { + "start": { + "line": 55, + "column": 29 + }, + "end": { + "line": 55, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "_transform", + "range": [ + 1003, + 1013 + ], + "loc": { + "start": { + "line": 55, + "column": 41 + }, + "end": { + "line": 55, + "column": 51 + } + } + }, + "range": [ + 991, + 1013 + ], + "loc": { + "start": { + "line": 55, + "column": 29 + }, + "end": { + "line": 55, + "column": 51 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "value", + "range": [ + 1014, + 1019 + ], + "loc": { + "start": { + "line": 55, + "column": 52 + }, + "end": { + "line": 55, + "column": 57 + } + } + } + ], + "range": [ + 991, + 1020 + ], + "loc": { + "start": { + "line": 55, + "column": 29 + }, + "end": { + "line": 55, + "column": 58 + } + } + }, + "range": [ + 970, + 1020 + ], + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 58 + } + } + }, + "range": [ + 970, + 1021 + ], + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 59 + } + } + } + ], + "range": [ + 960, + 1029 + ], + "loc": { + "start": { + "line": 54, + "column": 37 + }, + "end": { + "line": 56, + "column": 7 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "validationSchema", + "range": [ + 1049, + 1065 + ], + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 28 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "JoiHelper", + "range": [ + 1068, + 1077 + ], + "loc": { + "start": { + "line": 57, + "column": 31 + }, + "end": { + "line": 57, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "value", + "range": [ + 1078, + 1083 + ], + "loc": { + "start": { + "line": 57, + "column": 41 + }, + "end": { + "line": 57, + "column": 46 + } + } + }, + "range": [ + 1068, + 1084 + ], + "loc": { + "start": { + "line": 57, + "column": 31 + }, + "end": { + "line": 57, + "column": 47 + } + } + }, + "range": [ + 1049, + 1084 + ], + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 47 + } + } + } + ], + "kind": "let", + "range": [ + 1045, + 1085 + ], + "loc": { + "start": { + "line": 57, + "column": 8 + }, + "end": { + "line": 57, + "column": 48 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "===", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "Identifier", + "name": "validationSchema", + "range": [ + 1106, + 1122 + ], + "loc": { + "start": { + "line": 59, + "column": 19 + }, + "end": { + "line": 59, + "column": 35 + } + } + }, + "prefix": true, + "range": [ + 1099, + 1122 + ], + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 35 + } + } + }, + "right": { + "type": "Literal", + "value": "undefined", + "raw": "'undefined'", + "range": [ + 1127, + 1138 + ], + "loc": { + "start": { + "line": 59, + "column": 40 + }, + "end": { + "line": 59, + "column": 51 + } + } + }, + "range": [ + 1099, + 1138 + ], + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 51 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "InvalidSchemaException", + "range": [ + 1162, + 1184 + ], + "loc": { + "start": { + "line": 60, + "column": 20 + }, + "end": { + "line": 60, + "column": 42 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "obj", + "range": [ + 1185, + 1188 + ], + "loc": { + "start": { + "line": 60, + "column": 43 + }, + "end": { + "line": 60, + "column": 46 + } + } + }, + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": "Unknown field type ", + "cooked": "Unknown field type " + }, + "tail": false, + "range": [ + 1190, + 1212 + ], + "loc": { + "start": { + "line": 60, + "column": 48 + }, + "end": { + "line": 60, + "column": 70 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 1217, + 1219 + ], + "loc": { + "start": { + "line": 60, + "column": 75 + }, + "end": { + "line": 60, + "column": 77 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "value", + "range": [ + 1212, + 1217 + ], + "loc": { + "start": { + "line": 60, + "column": 70 + }, + "end": { + "line": 60, + "column": 75 + } + } + } + ], + "range": [ + 1190, + 1219 + ], + "loc": { + "start": { + "line": 60, + "column": 48 + }, + "end": { + "line": 60, + "column": 77 + } + } + } + ], + "range": [ + 1158, + 1220 + ], + "loc": { + "start": { + "line": 60, + "column": 16 + }, + "end": { + "line": 60, + "column": 78 + } + } + }, + "range": [ + 1152, + 1221 + ], + "loc": { + "start": { + "line": 60, + "column": 10 + }, + "end": { + "line": 60, + "column": 79 + } + } + } + ], + "range": [ + 1140, + 1231 + ], + "loc": { + "start": { + "line": 59, + "column": 53 + }, + "end": { + "line": 61, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 1095, + 1231 + ], + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 61, + "column": 9 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "transObj", + "range": [ + 1241, + 1249 + ], + "loc": { + "start": { + "line": 63, + "column": 8 + }, + "end": { + "line": 63, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "property", + "range": [ + 1250, + 1258 + ], + "loc": { + "start": { + "line": 63, + "column": 17 + }, + "end": { + "line": 63, + "column": 25 + } + } + }, + "range": [ + 1241, + 1259 + ], + "loc": { + "start": { + "line": 63, + "column": 8 + }, + "end": { + "line": 63, + "column": 26 + } + } + }, + "right": { + "type": "Identifier", + "name": "validationSchema", + "range": [ + 1262, + 1278 + ], + "loc": { + "start": { + "line": 63, + "column": 29 + }, + "end": { + "line": 63, + "column": 45 + } + } + }, + "range": [ + 1241, + 1278 + ], + "loc": { + "start": { + "line": 63, + "column": 8 + }, + "end": { + "line": 63, + "column": 45 + } + } + }, + "range": [ + 1241, + 1279 + ], + "loc": { + "start": { + "line": 63, + "column": 8 + }, + "end": { + "line": 63, + "column": 46 + } + } + } + ], + "range": [ + 1035, + 1287 + ], + "loc": { + "start": { + "line": 56, + "column": 13 + }, + "end": { + "line": 64, + "column": 7 + } + } + }, + "range": [ + 929, + 1287 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 64, + "column": 7 + } + } + } + ], + "range": [ + 817, + 1293 + ], + "loc": { + "start": { + "line": 47, + "column": 30 + }, + "end": { + "line": 65, + "column": 5 + } + } + }, + "each": false, + "range": [ + 791, + 1293 + ], + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 65, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "transObj", + "range": [ + 1306, + 1314 + ], + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 19 + } + } + }, + "range": [ + 1299, + 1315 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 20 + } + } + } + ], + "range": [ + 761, + 1319 + ], + "loc": { + "start": { + "line": 44, + "column": 25 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 755, + 1319 + ], + "loc": { + "start": { + "line": 44, + "column": 19 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 738, + 1319 + ], + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 68, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} obj\n * @returns {Object}\n * @private\n ", + "range": [ + 664, + 735 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 252, + 1321 + ], + "loc": { + "start": { + "line": 13, + "column": 25 + }, + "end": { + "line": 69, + "column": 1 + } + } + }, + "range": [ + 234, + 1321 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Exporting simple object to joi\n ", + "range": [ + 185, + 226 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 227, + 1321 + ], + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Exporting simple object to joi\n ", + "range": [ + 185, + 226 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 1321 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Exporting simple object to joi\n ", + "range": [ + 185, + 226 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} baseObject\n ", + "range": [ + 256, + 297 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 16, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 368, + 400 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object}\n ", + "range": [ + 458, + 490 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} obj\n * @returns {Object}\n * @private\n ", + "range": [ + 664, + 735 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-validation/ast/source/Validation.js.json b/docs-api/deep-validation/ast/source/Validation.js.json new file mode 100644 index 00000000..7ac97ee3 --- /dev/null +++ b/docs-api/deep-validation/ast/source/Validation.js.json @@ -0,0 +1,7315 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 46, + 58 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + "range": [ + 46, + 59 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 68, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + }, + "range": [ + 68, + 74 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 13 + } + } + } + ], + "source": { + "type": "Literal", + "value": "deep-kernel", + "raw": "'deep-kernel'", + "range": [ + 80, + 93 + ], + "loc": { + "start": { + "line": 7, + "column": 19 + }, + "end": { + "line": 7, + "column": 32 + } + } + }, + "range": [ + 61, + 94 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 33 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "ObjectToJoi", + "range": [ + 103, + 114 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 19 + } + } + }, + "imported": { + "type": "Identifier", + "name": "ObjectToJoi", + "range": [ + 103, + 114 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 19 + } + } + }, + "range": [ + 103, + 114 + ], + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 19 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./ObjectToJoi", + "raw": "'./ObjectToJoi'", + "range": [ + 121, + 136 + ], + "loc": { + "start": { + "line": 8, + "column": 26 + }, + "end": { + "line": 8, + "column": 41 + } + } + }, + "range": [ + 95, + 137 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 42 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "ModelNotFoundException", + "range": [ + 146, + 168 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 30 + } + } + }, + "imported": { + "type": "Identifier", + "name": "ModelNotFoundException", + "range": [ + 146, + 168 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 30 + } + } + }, + "range": [ + 146, + 168 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 30 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/ModelNotFoundException", + "raw": "'./Exception/ModelNotFoundException'", + "range": [ + 175, + 211 + ], + "loc": { + "start": { + "line": 9, + "column": 37 + }, + "end": { + "line": 9, + "column": 73 + } + } + }, + "range": [ + 138, + 212 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 74 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "Joi", + "range": [ + 220, + 223 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 10 + } + } + }, + "range": [ + 220, + 223 + ], + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 10 + } + } + } + ], + "source": { + "type": "Literal", + "value": "joi", + "raw": "'joi'", + "range": [ + 229, + 234 + ], + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 21 + } + } + }, + "range": [ + 213, + 235 + ], + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 22 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "ObjectValidationFailedException", + "range": [ + 244, + 275 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 39 + } + } + }, + "imported": { + "type": "Identifier", + "name": "ObjectValidationFailedException", + "range": [ + 244, + 275 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 39 + } + } + }, + "range": [ + 244, + 275 + ], + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 39 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/ObjectValidationFailedException", + "raw": "'./Exception/ObjectValidationFailedException'", + "range": [ + 282, + 327 + ], + "loc": { + "start": { + "line": 11, + "column": 46 + }, + "end": { + "line": 11, + "column": 91 + } + } + }, + "range": [ + 236, + 328 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 92 + } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Exception", + "range": [ + 337, + 346 + ], + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 17 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Exception", + "range": [ + 337, + 346 + ], + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 17 + } + } + }, + "range": [ + 337, + 346 + ], + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 17 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Exception/Exception", + "raw": "'./Exception/Exception'", + "range": [ + 353, + 376 + ], + "loc": { + "start": { + "line": 12, + "column": 24 + }, + "end": { + "line": 12, + "column": 47 + } + } + }, + "range": [ + 329, + 377 + ], + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 48 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Validation engine\n ", + "range": [ + 379, + 407 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "Validation", + "range": [ + 421, + 431 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 23 + } + } + }, + "superClass": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Kernel", + "range": [ + 440, + 446 + ], + "loc": { + "start": { + "line": 17, + "column": 32 + }, + "end": { + "line": 17, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "ContainerAware", + "range": [ + 447, + 461 + ], + "loc": { + "start": { + "line": 17, + "column": 39 + }, + "end": { + "line": 17, + "column": 53 + } + } + }, + "range": [ + 440, + 461 + ], + "loc": { + "start": { + "line": 17, + "column": 32 + }, + "end": { + "line": 17, + "column": 53 + } + } + }, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 505, + 516 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "AssignmentPattern", + "left": { + "type": "Identifier", + "name": "models", + "range": [ + 517, + 523 + ], + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 20 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 526, + 528 + ], + "loc": { + "start": { + "line": 21, + "column": 23 + }, + "end": { + "line": 21, + "column": 25 + } + } + }, + "range": [ + 517, + 528 + ], + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 25 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Super", + "range": [ + 536, + 541 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 9 + } + } + }, + "arguments": [], + "range": [ + 536, + 543 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 11 + } + } + }, + "range": [ + 536, + 544 + ], + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 12 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 550, + 554 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_immutable", + "range": [ + 555, + 565 + ], + "loc": { + "start": { + "line": 24, + "column": 9 + }, + "end": { + "line": 24, + "column": 19 + } + } + }, + "range": [ + 550, + 565 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 19 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 568, + 573 + ], + "loc": { + "start": { + "line": 24, + "column": 22 + }, + "end": { + "line": 24, + "column": 27 + } + } + }, + "range": [ + 550, + 573 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 27 + } + } + }, + "range": [ + 550, + 574 + ], + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 579, + 583 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_models", + "range": [ + 584, + 591 + ], + "loc": { + "start": { + "line": 25, + "column": 9 + }, + "end": { + "line": 25, + "column": 16 + } + } + }, + "range": [ + 579, + 591 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 16 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 594, + 598 + ], + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawModelsToSchemas", + "range": [ + 599, + 618 + ], + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 43 + } + } + }, + "range": [ + 594, + 618 + ], + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 43 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "models", + "range": [ + 619, + 625 + ], + "loc": { + "start": { + "line": 25, + "column": 44 + }, + "end": { + "line": 25, + "column": 50 + } + } + } + ], + "range": [ + 594, + 626 + ], + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 51 + } + } + }, + "range": [ + 579, + 626 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 51 + } + } + }, + "range": [ + 579, + 627 + ], + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 52 + } + } + } + ], + "range": [ + 530, + 631 + ], + "loc": { + "start": { + "line": 21, + "column": 27 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 516, + 631 + ], + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 505, + 631 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 26, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} models\n ", + "range": [ + 466, + 502 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Boolean} state\n ", + "range": [ + 635, + 672 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "immutable", + "range": [ + 679, + 688 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "state", + "range": [ + 689, + 694 + ], + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 21 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 702, + 706 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_assureImmutable", + "range": [ + 707, + 723 + ], + "loc": { + "start": { + "line": 32, + "column": 9 + }, + "end": { + "line": 32, + "column": 25 + } + } + }, + "range": [ + 702, + 723 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 25 + } + } + }, + "arguments": [], + "range": [ + 702, + 725 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 27 + } + } + }, + "range": [ + 702, + 726 + ], + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 732, + 736 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_immutable", + "range": [ + 737, + 747 + ], + "loc": { + "start": { + "line": 34, + "column": 9 + }, + "end": { + "line": 34, + "column": 19 + } + } + }, + "range": [ + 732, + 747 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 19 + } + } + }, + "right": { + "type": "Identifier", + "name": "state", + "range": [ + 750, + 755 + ], + "loc": { + "start": { + "line": 34, + "column": 22 + }, + "end": { + "line": 34, + "column": 27 + } + } + }, + "range": [ + 732, + 755 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 27 + } + } + }, + "range": [ + 732, + 756 + ], + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 28 + } + } + } + ], + "range": [ + 696, + 760 + ], + "loc": { + "start": { + "line": 31, + "column": 23 + }, + "end": { + "line": 35, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 688, + 760 + ], + "loc": { + "start": { + "line": 31, + "column": 15 + }, + "end": { + "line": 35, + "column": 3 + } + } + }, + "kind": "set", + "computed": false, + "range": [ + 675, + 760 + ], + "loc": { + "start": { + "line": 31, + "column": 2 + }, + "end": { + "line": 35, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Boolean} state\n ", + "range": [ + 635, + 672 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 764, + 797 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "immutable", + "range": [ + 804, + 813 + ], + "loc": { + "start": { + "line": 40, + "column": 6 + }, + "end": { + "line": 40, + "column": 15 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 829, + 833 + ], + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_immutable", + "range": [ + 834, + 844 + ], + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 26 + } + } + }, + "range": [ + 829, + 844 + ], + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 26 + } + } + }, + "range": [ + 822, + 845 + ], + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 27 + } + } + } + ], + "range": [ + 816, + 849 + ], + "loc": { + "start": { + "line": 40, + "column": 18 + }, + "end": { + "line": 42, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 813, + 849 + ], + "loc": { + "start": { + "line": 40, + "column": 15 + }, + "end": { + "line": 42, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 800, + 849 + ], + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 42, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 764, + 797 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @param {*} valueObject\n * @returns {*}\n ", + "range": [ + 853, + 939 + ], + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "validate", + "range": [ + 942, + 950 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 49, + "column": 10 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 951, + 960 + ], + "loc": { + "start": { + "line": 49, + "column": 11 + }, + "end": { + "line": 49, + "column": 20 + } + } + }, + { + "type": "Identifier", + "name": "valueObject", + "range": [ + 962, + 973 + ], + "loc": { + "start": { + "line": 49, + "column": 22 + }, + "end": { + "line": 49, + "column": 33 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "model", + "range": [ + 985, + 990 + ], + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 13 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 993, + 997 + ], + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 998, + 1001 + ], + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 24 + } + } + }, + "range": [ + 993, + 1001 + ], + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 1002, + 1011 + ], + "loc": { + "start": { + "line": 50, + "column": 25 + }, + "end": { + "line": 50, + "column": 34 + } + } + } + ], + "range": [ + 993, + 1012 + ], + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 35 + } + } + }, + "range": [ + 985, + 1012 + ], + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 35 + } + } + } + ], + "kind": "let", + "range": [ + 981, + 1013 + ], + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 36 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "result", + "range": [ + 1022, + 1028 + ], + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 14 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Joi", + "range": [ + 1031, + 1034 + ], + "loc": { + "start": { + "line": 51, + "column": 17 + }, + "end": { + "line": 51, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "validate", + "range": [ + 1035, + 1043 + ], + "loc": { + "start": { + "line": 51, + "column": 21 + }, + "end": { + "line": 51, + "column": 29 + } + } + }, + "range": [ + 1031, + 1043 + ], + "loc": { + "start": { + "line": 51, + "column": 17 + }, + "end": { + "line": 51, + "column": 29 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "valueObject", + "range": [ + 1044, + 1055 + ], + "loc": { + "start": { + "line": 51, + "column": 30 + }, + "end": { + "line": 51, + "column": 41 + } + } + }, + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Joi", + "range": [ + 1057, + 1060 + ], + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "name": "object", + "range": [ + 1061, + 1067 + ], + "loc": { + "start": { + "line": 51, + "column": 47 + }, + "end": { + "line": 51, + "column": 53 + } + } + }, + "range": [ + 1057, + 1067 + ], + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 53 + } + } + }, + "arguments": [], + "range": [ + 1057, + 1069 + ], + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 55 + } + } + }, + "property": { + "type": "Identifier", + "name": "keys", + "range": [ + 1070, + 1074 + ], + "loc": { + "start": { + "line": 51, + "column": 56 + }, + "end": { + "line": 51, + "column": 60 + } + } + }, + "range": [ + 1057, + 1074 + ], + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 60 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "model", + "range": [ + 1075, + 1080 + ], + "loc": { + "start": { + "line": 51, + "column": 61 + }, + "end": { + "line": 51, + "column": 66 + } + } + } + ], + "range": [ + 1057, + 1081 + ], + "loc": { + "start": { + "line": 51, + "column": 43 + }, + "end": { + "line": 51, + "column": 67 + } + } + } + ], + "range": [ + 1031, + 1082 + ], + "loc": { + "start": { + "line": 51, + "column": 17 + }, + "end": { + "line": 51, + "column": 68 + } + } + }, + "range": [ + 1022, + 1082 + ], + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 68 + } + } + } + ], + "kind": "let", + "range": [ + 1018, + 1083 + ], + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 69 + } + } + }, + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "result", + "range": [ + 1093, + 1099 + ], + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "error", + "range": [ + 1100, + 1105 + ], + "loc": { + "start": { + "line": 53, + "column": 15 + }, + "end": { + "line": 53, + "column": 20 + } + } + }, + "range": [ + 1093, + 1105 + ], + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 20 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "ObjectValidationFailedException", + "range": [ + 1125, + 1156 + ], + "loc": { + "start": { + "line": 54, + "column": 16 + }, + "end": { + "line": 54, + "column": 47 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 1157, + 1166 + ], + "loc": { + "start": { + "line": 54, + "column": 48 + }, + "end": { + "line": 54, + "column": 57 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "result", + "range": [ + 1168, + 1174 + ], + "loc": { + "start": { + "line": 54, + "column": 59 + }, + "end": { + "line": 54, + "column": 65 + } + } + }, + "property": { + "type": "Identifier", + "name": "error", + "range": [ + 1175, + 1180 + ], + "loc": { + "start": { + "line": 54, + "column": 66 + }, + "end": { + "line": 54, + "column": 71 + } + } + }, + "range": [ + 1168, + 1180 + ], + "loc": { + "start": { + "line": 54, + "column": 59 + }, + "end": { + "line": 54, + "column": 71 + } + } + } + ], + "range": [ + 1121, + 1181 + ], + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 72 + } + } + }, + "range": [ + 1115, + 1182 + ], + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 73 + } + } + } + ], + "range": [ + 1107, + 1188 + ], + "loc": { + "start": { + "line": 53, + "column": 22 + }, + "end": { + "line": 55, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 1089, + 1188 + ], + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 55, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "result", + "range": [ + 1201, + 1207 + ], + "loc": { + "start": { + "line": 57, + "column": 11 + }, + "end": { + "line": 57, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "value", + "range": [ + 1208, + 1213 + ], + "loc": { + "start": { + "line": 57, + "column": 18 + }, + "end": { + "line": 57, + "column": 23 + } + } + }, + "range": [ + 1201, + 1213 + ], + "loc": { + "start": { + "line": 57, + "column": 11 + }, + "end": { + "line": 57, + "column": 23 + } + } + }, + "range": [ + 1194, + 1214 + ], + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 24 + } + } + } + ], + "range": [ + 975, + 1218 + ], + "loc": { + "start": { + "line": 49, + "column": 35 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 950, + 1218 + ], + "loc": { + "start": { + "line": 49, + "column": 10 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 942, + 1218 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 58, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @param {*} valueObject\n * @returns {*}\n ", + "range": [ + 853, + 939 + ], + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object[]}\n ", + "range": [ + 1222, + 1256 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "models", + "range": [ + 1263, + 1269 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 12 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1285, + 1289 + ], + "loc": { + "start": { + "line": 64, + "column": 11 + }, + "end": { + "line": 64, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_models", + "range": [ + 1290, + 1297 + ], + "loc": { + "start": { + "line": 64, + "column": 16 + }, + "end": { + "line": 64, + "column": 23 + } + } + }, + "range": [ + 1285, + 1297 + ], + "loc": { + "start": { + "line": 64, + "column": 11 + }, + "end": { + "line": 64, + "column": 23 + } + } + }, + "range": [ + 1278, + 1298 + ], + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 24 + } + } + } + ], + "range": [ + 1272, + 1302 + ], + "loc": { + "start": { + "line": 63, + "column": 15 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1269, + 1302 + ], + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + "kind": "get", + "computed": false, + "range": [ + 1259, + 1302 + ], + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 65, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @returns {Object[]}\n ", + "range": [ + 1222, + 1256 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @param {Object} schema\n * @returns {Validation}\n ", + "range": [ + 1306, + 1401 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 71, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "setRaw", + "range": [ + 1404, + 1410 + ], + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 72, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 1411, + 1420 + ], + "loc": { + "start": { + "line": 72, + "column": 9 + }, + "end": { + "line": 72, + "column": 18 + } + } + }, + { + "type": "Identifier", + "name": "schema", + "range": [ + 1422, + 1428 + ], + "loc": { + "start": { + "line": 72, + "column": 20 + }, + "end": { + "line": 72, + "column": 26 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1436, + 1440 + ], + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 73, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_assureImmutable", + "range": [ + 1441, + 1457 + ], + "loc": { + "start": { + "line": 73, + "column": 9 + }, + "end": { + "line": 73, + "column": 25 + } + } + }, + "range": [ + 1436, + 1457 + ], + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 73, + "column": 25 + } + } + }, + "arguments": [], + "range": [ + 1436, + 1459 + ], + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 73, + "column": 27 + } + } + }, + "range": [ + 1436, + 1460 + ], + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 73, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1466, + 1470 + ], + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_models", + "range": [ + 1471, + 1478 + ], + "loc": { + "start": { + "line": 75, + "column": 9 + }, + "end": { + "line": 75, + "column": 16 + } + } + }, + "range": [ + 1466, + 1478 + ], + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "modelName", + "range": [ + 1479, + 1488 + ], + "loc": { + "start": { + "line": 75, + "column": 17 + }, + "end": { + "line": 75, + "column": 26 + } + } + }, + "range": [ + 1466, + 1489 + ], + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 27 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Validation", + "range": [ + 1492, + 1502 + ], + "loc": { + "start": { + "line": 75, + "column": 30 + }, + "end": { + "line": 75, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "name": "normalizeSchema", + "range": [ + 1503, + 1518 + ], + "loc": { + "start": { + "line": 75, + "column": 41 + }, + "end": { + "line": 75, + "column": 56 + } + } + }, + "range": [ + 1492, + 1518 + ], + "loc": { + "start": { + "line": 75, + "column": 30 + }, + "end": { + "line": 75, + "column": 56 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "schema", + "range": [ + 1519, + 1525 + ], + "loc": { + "start": { + "line": 75, + "column": 57 + }, + "end": { + "line": 75, + "column": 63 + } + } + } + ], + "range": [ + 1492, + 1526 + ], + "loc": { + "start": { + "line": 75, + "column": 30 + }, + "end": { + "line": 75, + "column": 64 + } + } + }, + "range": [ + 1466, + 1526 + ], + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 64 + } + } + }, + "range": [ + 1466, + 1527 + ], + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 65 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 1540, + 1544 + ], + "loc": { + "start": { + "line": 77, + "column": 11 + }, + "end": { + "line": 77, + "column": 15 + } + } + }, + "range": [ + 1533, + 1545 + ], + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 77, + "column": 16 + } + } + } + ], + "range": [ + 1430, + 1549 + ], + "loc": { + "start": { + "line": 72, + "column": 28 + }, + "end": { + "line": 78, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1410, + 1549 + ], + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 78, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1404, + 1549 + ], + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 78, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @param {Object} schema\n * @returns {Validation}\n ", + "range": [ + 1306, + 1401 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 71, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @param {Object} schema\n * @returns {Validation}\n ", + "range": [ + 1553, + 1648 + ], + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 84, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "set", + "range": [ + 1651, + 1654 + ], + "loc": { + "start": { + "line": 85, + "column": 2 + }, + "end": { + "line": 85, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 1655, + 1664 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 15 + } + } + }, + { + "type": "Identifier", + "name": "schema", + "range": [ + 1666, + 1672 + ], + "loc": { + "start": { + "line": 85, + "column": 17 + }, + "end": { + "line": 85, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1680, + 1684 + ], + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_assureImmutable", + "range": [ + 1685, + 1701 + ], + "loc": { + "start": { + "line": 86, + "column": 9 + }, + "end": { + "line": 86, + "column": 25 + } + } + }, + "range": [ + 1680, + 1701 + ], + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 25 + } + } + }, + "arguments": [], + "range": [ + 1680, + 1703 + ], + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 27 + } + } + }, + "range": [ + 1680, + 1704 + ], + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1710, + 1714 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_models", + "range": [ + 1715, + 1722 + ], + "loc": { + "start": { + "line": 88, + "column": 9 + }, + "end": { + "line": 88, + "column": 16 + } + } + }, + "range": [ + 1710, + 1722 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "modelName", + "range": [ + 1723, + 1732 + ], + "loc": { + "start": { + "line": 88, + "column": 17 + }, + "end": { + "line": 88, + "column": 26 + } + } + }, + "range": [ + 1710, + 1733 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 27 + } + } + }, + "right": { + "type": "Identifier", + "name": "schema", + "range": [ + 1736, + 1742 + ], + "loc": { + "start": { + "line": 88, + "column": 30 + }, + "end": { + "line": 88, + "column": 36 + } + } + }, + "range": [ + 1710, + 1742 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 36 + } + } + }, + "range": [ + 1710, + 1743 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 37 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 1756, + 1760 + ], + "loc": { + "start": { + "line": 90, + "column": 11 + }, + "end": { + "line": 90, + "column": 15 + } + } + }, + "range": [ + 1749, + 1761 + ], + "loc": { + "start": { + "line": 90, + "column": 4 + }, + "end": { + "line": 90, + "column": 16 + } + } + } + ], + "range": [ + 1674, + 1765 + ], + "loc": { + "start": { + "line": 85, + "column": 25 + }, + "end": { + "line": 91, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1654, + 1765 + ], + "loc": { + "start": { + "line": 85, + "column": 5 + }, + "end": { + "line": 91, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1651, + 1765 + ], + "loc": { + "start": { + "line": 85, + "column": 2 + }, + "end": { + "line": 91, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @param {Object} schema\n * @returns {Validation}\n ", + "range": [ + 1553, + 1648 + ], + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 84, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @returns {Boolean}\n ", + "range": [ + 1769, + 1833 + ], + "loc": { + "start": { + "line": 93, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "has", + "range": [ + 1836, + 1839 + ], + "loc": { + "start": { + "line": 97, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 1840, + 1849 + ], + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 15 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "BinaryExpression", + "operator": "!==", + "left": { + "type": "UnaryExpression", + "operator": "typeof", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1871, + 1875 + ], + "loc": { + "start": { + "line": 98, + "column": 18 + }, + "end": { + "line": 98, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "_models", + "range": [ + 1876, + 1883 + ], + "loc": { + "start": { + "line": 98, + "column": 23 + }, + "end": { + "line": 98, + "column": 30 + } + } + }, + "range": [ + 1871, + 1883 + ], + "loc": { + "start": { + "line": 98, + "column": 18 + }, + "end": { + "line": 98, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "modelName", + "range": [ + 1884, + 1893 + ], + "loc": { + "start": { + "line": 98, + "column": 31 + }, + "end": { + "line": 98, + "column": 40 + } + } + }, + "range": [ + 1871, + 1894 + ], + "loc": { + "start": { + "line": 98, + "column": 18 + }, + "end": { + "line": 98, + "column": 41 + } + } + }, + "prefix": true, + "range": [ + 1864, + 1894 + ], + "loc": { + "start": { + "line": 98, + "column": 11 + }, + "end": { + "line": 98, + "column": 41 + } + } + }, + "right": { + "type": "Literal", + "value": "undefined", + "raw": "'undefined'", + "range": [ + 1899, + 1910 + ], + "loc": { + "start": { + "line": 98, + "column": 46 + }, + "end": { + "line": 98, + "column": 57 + } + } + }, + "range": [ + 1864, + 1910 + ], + "loc": { + "start": { + "line": 98, + "column": 11 + }, + "end": { + "line": 98, + "column": 57 + } + } + }, + "range": [ + 1857, + 1911 + ], + "loc": { + "start": { + "line": 98, + "column": 4 + }, + "end": { + "line": 98, + "column": 58 + } + } + } + ], + "range": [ + 1851, + 1915 + ], + "loc": { + "start": { + "line": 97, + "column": 17 + }, + "end": { + "line": 99, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1839, + 1915 + ], + "loc": { + "start": { + "line": 97, + "column": 5 + }, + "end": { + "line": 99, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1836, + 1915 + ], + "loc": { + "start": { + "line": 97, + "column": 2 + }, + "end": { + "line": 99, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @returns {Boolean}\n ", + "range": [ + 1769, + 1833 + ], + "loc": { + "start": { + "line": 93, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @returns {Object}\n ", + "range": [ + 1919, + 1982 + ], + "loc": { + "start": { + "line": 101, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "get", + "range": [ + 1985, + 1988 + ], + "loc": { + "start": { + "line": 105, + "column": 2 + }, + "end": { + "line": 105, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 1989, + 1998 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 15 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2011, + 2015 + ], + "loc": { + "start": { + "line": 106, + "column": 9 + }, + "end": { + "line": 106, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "has", + "range": [ + 2016, + 2019 + ], + "loc": { + "start": { + "line": 106, + "column": 14 + }, + "end": { + "line": 106, + "column": 17 + } + } + }, + "range": [ + 2011, + 2019 + ], + "loc": { + "start": { + "line": 106, + "column": 9 + }, + "end": { + "line": 106, + "column": 17 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 2020, + 2029 + ], + "loc": { + "start": { + "line": 106, + "column": 18 + }, + "end": { + "line": 106, + "column": 27 + } + } + } + ], + "range": [ + 2011, + 2030 + ], + "loc": { + "start": { + "line": 106, + "column": 9 + }, + "end": { + "line": 106, + "column": 28 + } + } + }, + "prefix": true, + "range": [ + 2010, + 2030 + ], + "loc": { + "start": { + "line": 106, + "column": 8 + }, + "end": { + "line": 106, + "column": 28 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "ModelNotFoundException", + "range": [ + 2050, + 2072 + ], + "loc": { + "start": { + "line": 107, + "column": 16 + }, + "end": { + "line": 107, + "column": 38 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 2073, + 2082 + ], + "loc": { + "start": { + "line": 107, + "column": 39 + }, + "end": { + "line": 107, + "column": 48 + } + } + } + ], + "range": [ + 2046, + 2083 + ], + "loc": { + "start": { + "line": 107, + "column": 12 + }, + "end": { + "line": 107, + "column": 49 + } + } + }, + "range": [ + 2040, + 2084 + ], + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 50 + } + } + } + ], + "range": [ + 2032, + 2090 + ], + "loc": { + "start": { + "line": 106, + "column": 30 + }, + "end": { + "line": 108, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 2006, + 2090 + ], + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 108, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2103, + 2107 + ], + "loc": { + "start": { + "line": 110, + "column": 11 + }, + "end": { + "line": 110, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_models", + "range": [ + 2108, + 2115 + ], + "loc": { + "start": { + "line": 110, + "column": 16 + }, + "end": { + "line": 110, + "column": 23 + } + } + }, + "range": [ + 2103, + 2115 + ], + "loc": { + "start": { + "line": 110, + "column": 11 + }, + "end": { + "line": 110, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "modelName", + "range": [ + 2116, + 2125 + ], + "loc": { + "start": { + "line": 110, + "column": 24 + }, + "end": { + "line": 110, + "column": 33 + } + } + }, + "range": [ + 2103, + 2126 + ], + "loc": { + "start": { + "line": 110, + "column": 11 + }, + "end": { + "line": 110, + "column": 34 + } + } + }, + "range": [ + 2096, + 2127 + ], + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 35 + } + } + } + ], + "range": [ + 2000, + 2131 + ], + "loc": { + "start": { + "line": 105, + "column": 17 + }, + "end": { + "line": 111, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1988, + 2131 + ], + "loc": { + "start": { + "line": 105, + "column": 5 + }, + "end": { + "line": 111, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1985, + 2131 + ], + "loc": { + "start": { + "line": 105, + "column": 2 + }, + "end": { + "line": 111, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @returns {Object}\n ", + "range": [ + 1919, + 1982 + ], + "loc": { + "start": { + "line": 101, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 2135, + 2240 + ], + "loc": { + "start": { + "line": 113, + "column": 2 + }, + "end": { + "line": 118, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "boot", + "range": [ + 2243, + 2247 + ], + "loc": { + "start": { + "line": 119, + "column": 2 + }, + "end": { + "line": 119, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "kernel", + "range": [ + 2248, + 2254 + ], + "loc": { + "start": { + "line": 119, + "column": 7 + }, + "end": { + "line": 119, + "column": 13 + } + } + }, + { + "type": "Identifier", + "name": "callback", + "range": [ + 2256, + 2264 + ], + "loc": { + "start": { + "line": 119, + "column": 15 + }, + "end": { + "line": 119, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2272, + 2276 + ], + "loc": { + "start": { + "line": 120, + "column": 4 + }, + "end": { + "line": 120, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_assureImmutable", + "range": [ + 2277, + 2293 + ], + "loc": { + "start": { + "line": 120, + "column": 9 + }, + "end": { + "line": 120, + "column": 25 + } + } + }, + "range": [ + 2272, + 2293 + ], + "loc": { + "start": { + "line": 120, + "column": 4 + }, + "end": { + "line": 120, + "column": 25 + } + } + }, + "arguments": [], + "range": [ + 2272, + 2295 + ], + "loc": { + "start": { + "line": 120, + "column": 4 + }, + "end": { + "line": 120, + "column": 27 + } + } + }, + "range": [ + 2272, + 2296 + ], + "loc": { + "start": { + "line": 120, + "column": 4 + }, + "end": { + "line": 120, + "column": 28 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2302, + 2306 + ], + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 122, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_models", + "range": [ + 2307, + 2314 + ], + "loc": { + "start": { + "line": 122, + "column": 9 + }, + "end": { + "line": 122, + "column": 16 + } + } + }, + "range": [ + 2302, + 2314 + ], + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 122, + "column": 16 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2317, + 2321 + ], + "loc": { + "start": { + "line": 122, + "column": 19 + }, + "end": { + "line": 122, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "_rawModelsToSchemas", + "range": [ + 2322, + 2341 + ], + "loc": { + "start": { + "line": 122, + "column": 24 + }, + "end": { + "line": 122, + "column": 43 + } + } + }, + "range": [ + 2317, + 2341 + ], + "loc": { + "start": { + "line": 122, + "column": 19 + }, + "end": { + "line": 122, + "column": 43 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "kernel", + "range": [ + 2342, + 2348 + ], + "loc": { + "start": { + "line": 122, + "column": 44 + }, + "end": { + "line": 122, + "column": 50 + } + } + }, + "property": { + "type": "Identifier", + "name": "config", + "range": [ + 2349, + 2355 + ], + "loc": { + "start": { + "line": 122, + "column": 51 + }, + "end": { + "line": 122, + "column": 57 + } + } + }, + "range": [ + 2342, + 2355 + ], + "loc": { + "start": { + "line": 122, + "column": 44 + }, + "end": { + "line": 122, + "column": 57 + } + } + }, + "property": { + "type": "Identifier", + "name": "models", + "range": [ + 2356, + 2362 + ], + "loc": { + "start": { + "line": 122, + "column": 58 + }, + "end": { + "line": 122, + "column": 64 + } + } + }, + "range": [ + 2342, + 2362 + ], + "loc": { + "start": { + "line": 122, + "column": 44 + }, + "end": { + "line": 122, + "column": 64 + } + } + } + ], + "range": [ + 2317, + 2363 + ], + "loc": { + "start": { + "line": 122, + "column": 19 + }, + "end": { + "line": 122, + "column": 65 + } + } + }, + "range": [ + 2302, + 2363 + ], + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 122, + "column": 65 + } + } + }, + "range": [ + 2302, + 2364 + ], + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 122, + "column": 66 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "callback", + "range": [ + 2370, + 2378 + ], + "loc": { + "start": { + "line": 124, + "column": 4 + }, + "end": { + "line": 124, + "column": 12 + } + } + }, + "arguments": [], + "range": [ + 2370, + 2380 + ], + "loc": { + "start": { + "line": 124, + "column": 4 + }, + "end": { + "line": 124, + "column": 14 + } + } + }, + "range": [ + 2370, + 2381 + ], + "loc": { + "start": { + "line": 124, + "column": 4 + }, + "end": { + "line": 124, + "column": 15 + } + } + } + ], + "range": [ + 2266, + 2385 + ], + "loc": { + "start": { + "line": 119, + "column": 25 + }, + "end": { + "line": 125, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2247, + 2385 + ], + "loc": { + "start": { + "line": 119, + "column": 6 + }, + "end": { + "line": 125, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2243, + 2385 + ], + "loc": { + "start": { + "line": 119, + "column": 2 + }, + "end": { + "line": 125, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 2135, + 2240 + ], + "loc": { + "start": { + "line": 113, + "column": 2 + }, + "end": { + "line": 118, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} rawModels\n * @returns {Object}\n * @private\n ", + "range": [ + 2389, + 2465 + ], + "loc": { + "start": { + "line": 127, + "column": 2 + }, + "end": { + "line": 131, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_rawModelsToSchemas", + "range": [ + 2468, + 2487 + ], + "loc": { + "start": { + "line": 132, + "column": 2 + }, + "end": { + "line": 132, + "column": 21 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "rawModels", + "range": [ + 2488, + 2497 + ], + "loc": { + "start": { + "line": 132, + "column": 22 + }, + "end": { + "line": 132, + "column": 31 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "modelsSchema", + "range": [ + 2509, + 2521 + ], + "loc": { + "start": { + "line": 133, + "column": 8 + }, + "end": { + "line": 133, + "column": 20 + } + } + }, + "init": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 2524, + 2526 + ], + "loc": { + "start": { + "line": 133, + "column": 23 + }, + "end": { + "line": 133, + "column": 25 + } + } + }, + "range": [ + 2509, + 2526 + ], + "loc": { + "start": { + "line": 133, + "column": 8 + }, + "end": { + "line": 133, + "column": 25 + } + } + } + ], + "kind": "let", + "range": [ + 2505, + 2527 + ], + "loc": { + "start": { + "line": 133, + "column": 4 + }, + "end": { + "line": 133, + "column": 26 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "modelKey", + "range": [ + 2542, + 2550 + ], + "loc": { + "start": { + "line": 135, + "column": 13 + }, + "end": { + "line": 135, + "column": 21 + } + } + }, + "init": null, + "range": [ + 2542, + 2550 + ], + "loc": { + "start": { + "line": 135, + "column": 13 + }, + "end": { + "line": 135, + "column": 21 + } + } + } + ], + "kind": "let", + "range": [ + 2538, + 2550 + ], + "loc": { + "start": { + "line": 135, + "column": 9 + }, + "end": { + "line": 135, + "column": 21 + } + } + }, + "right": { + "type": "Identifier", + "name": "rawModels", + "range": [ + 2554, + 2563 + ], + "loc": { + "start": { + "line": 135, + "column": 25 + }, + "end": { + "line": 135, + "column": 34 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "rawModels", + "range": [ + 2578, + 2587 + ], + "loc": { + "start": { + "line": 136, + "column": 11 + }, + "end": { + "line": 136, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 2588, + 2602 + ], + "loc": { + "start": { + "line": 136, + "column": 21 + }, + "end": { + "line": 136, + "column": 35 + } + } + }, + "range": [ + 2578, + 2602 + ], + "loc": { + "start": { + "line": 136, + "column": 11 + }, + "end": { + "line": 136, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelKey", + "range": [ + 2603, + 2611 + ], + "loc": { + "start": { + "line": 136, + "column": 36 + }, + "end": { + "line": 136, + "column": 44 + } + } + } + ], + "range": [ + 2578, + 2612 + ], + "loc": { + "start": { + "line": 136, + "column": 11 + }, + "end": { + "line": 136, + "column": 45 + } + } + }, + "prefix": true, + "range": [ + 2577, + 2612 + ], + "loc": { + "start": { + "line": 136, + "column": 10 + }, + "end": { + "line": 136, + "column": 45 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 2624, + 2633 + ], + "loc": { + "start": { + "line": 137, + "column": 8 + }, + "end": { + "line": 137, + "column": 17 + } + } + } + ], + "range": [ + 2614, + 2641 + ], + "loc": { + "start": { + "line": 136, + "column": 47 + }, + "end": { + "line": 138, + "column": 7 + } + } + }, + "alternate": null, + "range": [ + 2573, + 2641 + ], + "loc": { + "start": { + "line": 136, + "column": 6 + }, + "end": { + "line": 138, + "column": 7 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "backendModels", + "range": [ + 2653, + 2666 + ], + "loc": { + "start": { + "line": 140, + "column": 10 + }, + "end": { + "line": 140, + "column": 23 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "rawModels", + "range": [ + 2669, + 2678 + ], + "loc": { + "start": { + "line": 140, + "column": 26 + }, + "end": { + "line": 140, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "modelKey", + "range": [ + 2679, + 2687 + ], + "loc": { + "start": { + "line": 140, + "column": 36 + }, + "end": { + "line": 140, + "column": 44 + } + } + }, + "range": [ + 2669, + 2688 + ], + "loc": { + "start": { + "line": 140, + "column": 26 + }, + "end": { + "line": 140, + "column": 45 + } + } + }, + "range": [ + 2653, + 2688 + ], + "loc": { + "start": { + "line": 140, + "column": 10 + }, + "end": { + "line": 140, + "column": 45 + } + } + } + ], + "kind": "let", + "range": [ + 2649, + 2689 + ], + "loc": { + "start": { + "line": 140, + "column": 6 + }, + "end": { + "line": 140, + "column": 46 + } + } + }, + { + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "modelName", + "range": [ + 2706, + 2715 + ], + "loc": { + "start": { + "line": 142, + "column": 15 + }, + "end": { + "line": 142, + "column": 24 + } + } + }, + "init": null, + "range": [ + 2706, + 2715 + ], + "loc": { + "start": { + "line": 142, + "column": 15 + }, + "end": { + "line": 142, + "column": 24 + } + } + } + ], + "kind": "let", + "range": [ + 2702, + 2715 + ], + "loc": { + "start": { + "line": 142, + "column": 11 + }, + "end": { + "line": 142, + "column": 24 + } + } + }, + "right": { + "type": "Identifier", + "name": "backendModels", + "range": [ + 2719, + 2732 + ], + "loc": { + "start": { + "line": 142, + "column": 28 + }, + "end": { + "line": 142, + "column": 41 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "UnaryExpression", + "operator": "!", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "backendModels", + "range": [ + 2749, + 2762 + ], + "loc": { + "start": { + "line": 143, + "column": 13 + }, + "end": { + "line": 143, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 2763, + 2777 + ], + "loc": { + "start": { + "line": 143, + "column": 27 + }, + "end": { + "line": 143, + "column": 41 + } + } + }, + "range": [ + 2749, + 2777 + ], + "loc": { + "start": { + "line": 143, + "column": 13 + }, + "end": { + "line": 143, + "column": 41 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "modelName", + "range": [ + 2778, + 2787 + ], + "loc": { + "start": { + "line": 143, + "column": 42 + }, + "end": { + "line": 143, + "column": 51 + } + } + } + ], + "range": [ + 2749, + 2788 + ], + "loc": { + "start": { + "line": 143, + "column": 13 + }, + "end": { + "line": 143, + "column": 52 + } + } + }, + "prefix": true, + "range": [ + 2748, + 2788 + ], + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 143, + "column": 52 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ContinueStatement", + "label": null, + "range": [ + 2802, + 2811 + ], + "loc": { + "start": { + "line": 144, + "column": 10 + }, + "end": { + "line": 144, + "column": 19 + } + } + } + ], + "range": [ + 2790, + 2821 + ], + "loc": { + "start": { + "line": 143, + "column": 54 + }, + "end": { + "line": 145, + "column": 9 + } + } + }, + "alternate": null, + "range": [ + 2744, + 2821 + ], + "loc": { + "start": { + "line": 143, + "column": 8 + }, + "end": { + "line": 145, + "column": 9 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "schema", + "range": [ + 2835, + 2841 + ], + "loc": { + "start": { + "line": 147, + "column": 12 + }, + "end": { + "line": 147, + "column": 18 + } + } + }, + "init": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "backendModels", + "range": [ + 2844, + 2857 + ], + "loc": { + "start": { + "line": 147, + "column": 21 + }, + "end": { + "line": 147, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "modelName", + "range": [ + 2858, + 2867 + ], + "loc": { + "start": { + "line": 147, + "column": 35 + }, + "end": { + "line": 147, + "column": 44 + } + } + }, + "range": [ + 2844, + 2868 + ], + "loc": { + "start": { + "line": 147, + "column": 21 + }, + "end": { + "line": 147, + "column": 45 + } + } + }, + "range": [ + 2835, + 2868 + ], + "loc": { + "start": { + "line": 147, + "column": 12 + }, + "end": { + "line": 147, + "column": 45 + } + } + } + ], + "kind": "let", + "range": [ + 2831, + 2869 + ], + "loc": { + "start": { + "line": 147, + "column": 8 + }, + "end": { + "line": 147, + "column": 46 + } + }, + "trailingComments": [ + { + "type": "Line", + "value": " @todo: move this sh*t into DB somehow...", + "range": [ + 2879, + 2922 + ], + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 149, + "column": 51 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "schema", + "range": [ + 2931, + 2937 + ], + "loc": { + "start": { + "line": 150, + "column": 8 + }, + "end": { + "line": 150, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "name": "Id", + "range": [ + 2938, + 2940 + ], + "loc": { + "start": { + "line": 150, + "column": 15 + }, + "end": { + "line": 150, + "column": 17 + } + } + }, + "range": [ + 2931, + 2940 + ], + "loc": { + "start": { + "line": 150, + "column": 8 + }, + "end": { + "line": 150, + "column": 17 + } + } + }, + "right": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "schema", + "range": [ + 2943, + 2949 + ], + "loc": { + "start": { + "line": 150, + "column": 20 + }, + "end": { + "line": 150, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "Id", + "range": [ + 2950, + 2952 + ], + "loc": { + "start": { + "line": 150, + "column": 27 + }, + "end": { + "line": 150, + "column": 29 + } + } + }, + "range": [ + 2943, + 2952 + ], + "loc": { + "start": { + "line": 150, + "column": 20 + }, + "end": { + "line": 150, + "column": 29 + } + } + }, + "right": { + "type": "Literal", + "value": "timeUUID", + "raw": "'timeUUID'", + "range": [ + 2956, + 2966 + ], + "loc": { + "start": { + "line": 150, + "column": 33 + }, + "end": { + "line": 150, + "column": 43 + } + } + }, + "range": [ + 2943, + 2966 + ], + "loc": { + "start": { + "line": 150, + "column": 20 + }, + "end": { + "line": 150, + "column": 43 + } + } + }, + "range": [ + 2931, + 2966 + ], + "loc": { + "start": { + "line": 150, + "column": 8 + }, + "end": { + "line": 150, + "column": 43 + } + } + }, + "range": [ + 2931, + 2967 + ], + "loc": { + "start": { + "line": 150, + "column": 8 + }, + "end": { + "line": 150, + "column": 44 + } + }, + "leadingComments": [ + { + "type": "Line", + "value": " @todo: move this sh*t into DB somehow...", + "range": [ + 2879, + 2922 + ], + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 149, + "column": 51 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "modelsSchema", + "range": [ + 2977, + 2989 + ], + "loc": { + "start": { + "line": 152, + "column": 8 + }, + "end": { + "line": 152, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "modelName", + "range": [ + 2990, + 2999 + ], + "loc": { + "start": { + "line": 152, + "column": 21 + }, + "end": { + "line": 152, + "column": 30 + } + } + }, + "range": [ + 2977, + 3000 + ], + "loc": { + "start": { + "line": 152, + "column": 8 + }, + "end": { + "line": 152, + "column": 31 + } + } + }, + "right": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Validation", + "range": [ + 3003, + 3013 + ], + "loc": { + "start": { + "line": 152, + "column": 34 + }, + "end": { + "line": 152, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "name": "normalizeSchema", + "range": [ + 3014, + 3029 + ], + "loc": { + "start": { + "line": 152, + "column": 45 + }, + "end": { + "line": 152, + "column": 60 + } + } + }, + "range": [ + 3003, + 3029 + ], + "loc": { + "start": { + "line": 152, + "column": 34 + }, + "end": { + "line": 152, + "column": 60 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "schema", + "range": [ + 3030, + 3036 + ], + "loc": { + "start": { + "line": 152, + "column": 61 + }, + "end": { + "line": 152, + "column": 67 + } + } + } + ], + "range": [ + 3003, + 3037 + ], + "loc": { + "start": { + "line": 152, + "column": 34 + }, + "end": { + "line": 152, + "column": 68 + } + } + }, + "range": [ + 2977, + 3037 + ], + "loc": { + "start": { + "line": 152, + "column": 8 + }, + "end": { + "line": 152, + "column": 68 + } + } + }, + "range": [ + 2977, + 3038 + ], + "loc": { + "start": { + "line": 152, + "column": 8 + }, + "end": { + "line": 152, + "column": 69 + } + } + } + ], + "range": [ + 2734, + 3046 + ], + "loc": { + "start": { + "line": 142, + "column": 43 + }, + "end": { + "line": 153, + "column": 7 + } + } + }, + "each": false, + "range": [ + 2697, + 3046 + ], + "loc": { + "start": { + "line": 142, + "column": 6 + }, + "end": { + "line": 153, + "column": 7 + } + } + } + ], + "range": [ + 2565, + 3052 + ], + "loc": { + "start": { + "line": 135, + "column": 36 + }, + "end": { + "line": 154, + "column": 5 + } + } + }, + "each": false, + "range": [ + 2533, + 3052 + ], + "loc": { + "start": { + "line": 135, + "column": 4 + }, + "end": { + "line": 154, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Identifier", + "name": "modelsSchema", + "range": [ + 3065, + 3077 + ], + "loc": { + "start": { + "line": 156, + "column": 11 + }, + "end": { + "line": 156, + "column": 23 + } + } + }, + "range": [ + 3058, + 3078 + ], + "loc": { + "start": { + "line": 156, + "column": 4 + }, + "end": { + "line": 156, + "column": 24 + } + } + } + ], + "range": [ + 2499, + 3082 + ], + "loc": { + "start": { + "line": 132, + "column": 33 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2487, + 3082 + ], + "loc": { + "start": { + "line": 132, + "column": 21 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 2468, + 3082 + ], + "loc": { + "start": { + "line": 132, + "column": 2 + }, + "end": { + "line": 157, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Array} rawModels\n * @returns {Object}\n * @private\n ", + "range": [ + 2389, + 2465 + ], + "loc": { + "start": { + "line": 127, + "column": 2 + }, + "end": { + "line": 131, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @private\n ", + "range": [ + 3086, + 3109 + ], + "loc": { + "start": { + "line": 159, + "column": 2 + }, + "end": { + "line": 161, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "_assureImmutable", + "range": [ + 3112, + 3128 + ], + "loc": { + "start": { + "line": 162, + "column": 2 + }, + "end": { + "line": 162, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3141, + 3145 + ], + "loc": { + "start": { + "line": 163, + "column": 8 + }, + "end": { + "line": 163, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_immutable", + "range": [ + 3146, + 3156 + ], + "loc": { + "start": { + "line": 163, + "column": 13 + }, + "end": { + "line": 163, + "column": 23 + } + } + }, + "range": [ + 3141, + 3156 + ], + "loc": { + "start": { + "line": 163, + "column": 8 + }, + "end": { + "line": 163, + "column": 23 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "Exception", + "range": [ + 3176, + 3185 + ], + "loc": { + "start": { + "line": 164, + "column": 16 + }, + "end": { + "line": 164, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "You are not abble to alter the state after setting it immutable", + "raw": "'You are not abble to alter the state after setting it immutable'", + "range": [ + 3186, + 3251 + ], + "loc": { + "start": { + "line": 164, + "column": 26 + }, + "end": { + "line": 164, + "column": 91 + } + } + } + ], + "range": [ + 3172, + 3252 + ], + "loc": { + "start": { + "line": 164, + "column": 12 + }, + "end": { + "line": 164, + "column": 92 + } + } + }, + "range": [ + 3166, + 3253 + ], + "loc": { + "start": { + "line": 164, + "column": 6 + }, + "end": { + "line": 164, + "column": 93 + } + } + } + ], + "range": [ + 3158, + 3259 + ], + "loc": { + "start": { + "line": 163, + "column": 25 + }, + "end": { + "line": 165, + "column": 5 + } + } + }, + "alternate": null, + "range": [ + 3137, + 3259 + ], + "loc": { + "start": { + "line": 163, + "column": 4 + }, + "end": { + "line": 165, + "column": 5 + } + } + } + ], + "range": [ + 3131, + 3263 + ], + "loc": { + "start": { + "line": 162, + "column": 21 + }, + "end": { + "line": 166, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3128, + 3263 + ], + "loc": { + "start": { + "line": 162, + "column": 18 + }, + "end": { + "line": 166, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 3112, + 3263 + ], + "loc": { + "start": { + "line": 162, + "column": 2 + }, + "end": { + "line": 166, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @private\n ", + "range": [ + 3086, + 3109 + ], + "loc": { + "start": { + "line": 159, + "column": 2 + }, + "end": { + "line": 161, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} rawSchema\n * @returns {Object}\n ", + "range": [ + 3267, + 3330 + ], + "loc": { + "start": { + "line": 168, + "column": 2 + }, + "end": { + "line": 171, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "normalizeSchema", + "range": [ + 3340, + 3355 + ], + "loc": { + "start": { + "line": 172, + "column": 9 + }, + "end": { + "line": 172, + "column": 24 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "rawSchema", + "range": [ + 3356, + 3365 + ], + "loc": { + "start": { + "line": 172, + "column": 25 + }, + "end": { + "line": 172, + "column": 34 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "ObjectToJoi", + "range": [ + 3384, + 3395 + ], + "loc": { + "start": { + "line": 173, + "column": 15 + }, + "end": { + "line": 173, + "column": 26 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "rawSchema", + "range": [ + 3396, + 3405 + ], + "loc": { + "start": { + "line": 173, + "column": 27 + }, + "end": { + "line": 173, + "column": 36 + } + } + } + ], + "range": [ + 3380, + 3406 + ], + "loc": { + "start": { + "line": 173, + "column": 11 + }, + "end": { + "line": 173, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "name": "transform", + "range": [ + 3407, + 3416 + ], + "loc": { + "start": { + "line": 173, + "column": 38 + }, + "end": { + "line": 173, + "column": 47 + } + } + }, + "range": [ + 3380, + 3416 + ], + "loc": { + "start": { + "line": 173, + "column": 11 + }, + "end": { + "line": 173, + "column": 47 + } + } + }, + "arguments": [], + "range": [ + 3380, + 3418 + ], + "loc": { + "start": { + "line": 173, + "column": 11 + }, + "end": { + "line": 173, + "column": 49 + } + } + }, + "range": [ + 3373, + 3419 + ], + "loc": { + "start": { + "line": 173, + "column": 4 + }, + "end": { + "line": 173, + "column": 50 + } + } + } + ], + "range": [ + 3367, + 3423 + ], + "loc": { + "start": { + "line": 172, + "column": 36 + }, + "end": { + "line": 174, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3355, + 3423 + ], + "loc": { + "start": { + "line": 172, + "column": 24 + }, + "end": { + "line": 174, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 3333, + 3423 + ], + "loc": { + "start": { + "line": 172, + "column": 2 + }, + "end": { + "line": 174, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * @param {Object} rawSchema\n * @returns {Object}\n ", + "range": [ + 3267, + 3330 + ], + "loc": { + "start": { + "line": 168, + "column": 2 + }, + "end": { + "line": 171, + "column": 5 + } + } + } + ], + "static": true + } + ], + "range": [ + 462, + 3425 + ], + "loc": { + "start": { + "line": 17, + "column": 54 + }, + "end": { + "line": 175, + "column": 1 + } + } + }, + "range": [ + 415, + 3425 + ], + "loc": { + "start": { + "line": 17, + "column": 7 + }, + "end": { + "line": 175, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Validation engine\n ", + "range": [ + 379, + 407 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": [], + "source": null, + "range": [ + 408, + 3425 + ], + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 175, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Validation engine\n ", + "range": [ + 379, + 407 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 46, + 3425 + ], + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 175, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 6/15/15.\n ", + "range": [ + 0, + 44 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Validation engine\n ", + "range": [ + 379, + 407 + ], + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} models\n ", + "range": [ + 466, + 502 + ], + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Boolean} state\n ", + "range": [ + 635, + 672 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 30, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Boolean}\n ", + "range": [ + 764, + 797 + ], + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 39, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @param {*} valueObject\n * @returns {*}\n ", + "range": [ + 853, + 939 + ], + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @returns {Object[]}\n ", + "range": [ + 1222, + 1256 + ], + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @param {Object} schema\n * @returns {Validation}\n ", + "range": [ + 1306, + 1401 + ], + "loc": { + "start": { + "line": 67, + "column": 2 + }, + "end": { + "line": 71, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @param {Object} schema\n * @returns {Validation}\n ", + "range": [ + 1553, + 1648 + ], + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 84, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @returns {Boolean}\n ", + "range": [ + 1769, + 1833 + ], + "loc": { + "start": { + "line": 93, + "column": 2 + }, + "end": { + "line": 96, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {String} modelName\n * @returns {Object}\n ", + "range": [ + 1919, + 1982 + ], + "loc": { + "start": { + "line": 101, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n ", + "range": [ + 2135, + 2240 + ], + "loc": { + "start": { + "line": 113, + "column": 2 + }, + "end": { + "line": 118, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Array} rawModels\n * @returns {Object}\n * @private\n ", + "range": [ + 2389, + 2465 + ], + "loc": { + "start": { + "line": 127, + "column": 2 + }, + "end": { + "line": 131, + "column": 5 + } + } + }, + { + "type": "Line", + "value": " @todo: move this sh*t into DB somehow...", + "range": [ + 2879, + 2922 + ], + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 149, + "column": 51 + } + } + }, + { + "type": "Block", + "value": "*\n * @private\n ", + "range": [ + 3086, + 3109 + ], + "loc": { + "start": { + "line": 159, + "column": 2 + }, + "end": { + "line": 161, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * @param {Object} rawSchema\n * @returns {Object}\n ", + "range": [ + 3267, + 3330 + ], + "loc": { + "start": { + "line": 168, + "column": 2 + }, + "end": { + "line": 171, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-validation/ast/source/bootstrap.js.json b/docs-api/deep-validation/ast/source/bootstrap.js.json new file mode 100644 index 00000000..b02a4910 --- /dev/null +++ b/docs-api/deep-validation/ast/source/bootstrap.js.json @@ -0,0 +1,332 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "Literal", + "value": "use strict", + "raw": "'use strict'", + "range": [ + 89, + 101 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + "range": [ + 89, + 102 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportSpecifier", + "local": { + "type": "Identifier", + "name": "Validation", + "range": [ + 112, + 122 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 18 + } + } + }, + "imported": { + "type": "Identifier", + "name": "Validation", + "range": [ + 112, + 122 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 18 + } + } + }, + "range": [ + 112, + 122 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 18 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./Validation", + "raw": "'./Validation'", + "range": [ + 129, + 143 + ], + "loc": { + "start": { + "line": 9, + "column": 25 + }, + "end": { + "line": 9, + "column": 39 + } + } + }, + "range": [ + 104, + 144 + ], + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 40 + } + } + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "exports", + "range": [ + 150, + 157 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + "init": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "module", + "range": [ + 160, + 166 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "exports", + "range": [ + 167, + 174 + ], + "loc": { + "start": { + "line": 11, + "column": 21 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "range": [ + 160, + 174 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 28 + } + } + }, + "right": { + "type": "Identifier", + "name": "Validation", + "range": [ + 177, + 187 + ], + "loc": { + "start": { + "line": 11, + "column": 31 + }, + "end": { + "line": 11, + "column": 41 + } + } + }, + "range": [ + 160, + 187 + ], + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 41 + } + } + }, + "range": [ + 150, + 187 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 41 + } + } + } + ], + "kind": "let", + "range": [ + 146, + 188 + ], + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 42 + } + } + } + ], + "sourceType": "module", + "range": [ + 89, + 188 + ], + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 11, + "column": 42 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n ", + "range": [ + 0, + 87 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] +} \ No newline at end of file diff --git a/docs-api/deep-validation/badge.svg b/docs-api/deep-validation/badge.svg new file mode 100644 index 00000000..e24552c4 --- /dev/null +++ b/docs-api/deep-validation/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 100% + 100% + + diff --git a/docs-api/deep-validation/class/lib/Exception/Exception.js~Exception.html b/docs-api/deep-validation/class/lib/Exception/Exception.js~Exception.html new file mode 100644 index 00000000..16d41fa6 --- /dev/null +++ b/docs-api/deep-validation/class/lib/Exception/Exception.js~Exception.html @@ -0,0 +1,199 @@ + + + + + + Exception | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    Exception

    + + + + + +

    Extends:

    deep-core~Core.Exception.Exception → Exception
    + + + + + + + + + +

    Thrown when any exception occurs

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(args: Array) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(args: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    argsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/class/lib/Exception/InvalidSchemaException.js~InvalidSchemaException.html b/docs-api/deep-validation/class/lib/Exception/InvalidSchemaException.js~InvalidSchemaException.html new file mode 100644 index 00000000..6639e7b6 --- /dev/null +++ b/docs-api/deep-validation/class/lib/Exception/InvalidSchemaException.js~InvalidSchemaException.html @@ -0,0 +1,205 @@ + + + + + + InvalidSchemaException | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {InvalidSchemaException} from 'deep-validation/lib/Exception/InvalidSchemaException.js'
    + public + class + + + + | source +
    + +
    +

    InvalidSchemaException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → InvalidSchemaException
    + + + + + + + + + +

    Thrown when DB model validation schema is missing or broken

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(model: Object, errorString: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(model: Object, errorString: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    modelObject
    errorStringString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/class/lib/Exception/ModelNotFoundException.js~ModelNotFoundException.html b/docs-api/deep-validation/class/lib/Exception/ModelNotFoundException.js~ModelNotFoundException.html new file mode 100644 index 00000000..736da410 --- /dev/null +++ b/docs-api/deep-validation/class/lib/Exception/ModelNotFoundException.js~ModelNotFoundException.html @@ -0,0 +1,199 @@ + + + + + + ModelNotFoundException | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {ModelNotFoundException} from 'deep-validation/lib/Exception/ModelNotFoundException.js'
    + public + class + + + + | source +
    + +
    +

    ModelNotFoundException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → ModelNotFoundException
    + + + + + + + + + +

    Thrown when missing requested model

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(modelName: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(modelName: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    modelNameString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/class/lib/Exception/ObjectValidationFailedException.js~ObjectValidationFailedException.html b/docs-api/deep-validation/class/lib/Exception/ObjectValidationFailedException.js~ObjectValidationFailedException.html new file mode 100644 index 00000000..480fee3d --- /dev/null +++ b/docs-api/deep-validation/class/lib/Exception/ObjectValidationFailedException.js~ObjectValidationFailedException.html @@ -0,0 +1,205 @@ + + + + + + ObjectValidationFailedException | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {ObjectValidationFailedException} from 'deep-validation/lib/Exception/ObjectValidationFailedException.js'
    + public + class + + + + | source +
    + +
    +

    ObjectValidationFailedException

    + + + + + +

    Extends:

    lib/Exception/Exception~Exception → ObjectValidationFailedException
    + + + + + + + + + +

    Thrown when object validation fails on a joi schema/model

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(schemaName: String, error: String) +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(schemaName: String, error: String) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    schemaNameString
    errorString
    +
    +
    + + + + + + + + + + + + + + + +
    +
    + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/class/lib/Helpers/Joi.js~Joi.html b/docs-api/deep-validation/class/lib/Helpers/Joi.js~Joi.html new file mode 100644 index 00000000..3da9ec93 --- /dev/null +++ b/docs-api/deep-validation/class/lib/Helpers/Joi.js~Joi.html @@ -0,0 +1,1093 @@ + + + + + + Joi | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    + + public + class + + + + | source +
    + +
    +

    Joi

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

    Abstraction on Joi validation expressions

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

    Static Member Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Members
    + public + static + get + + + +
    +

    + binary: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + binarySet: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + boolean: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + email: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + map: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + mapSet: *: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + number: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + numberSet: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + string: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + stringSet: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + timeUUID: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + uuid: Object: * +

    +
    +
    + + + +
    +
    + + +
    + public + static + get + + + +
    +

    + website: Object: * +

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

    Static Public Members

    + +
    +

    + public + static + get + + + binary: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + binarySet: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + boolean: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + email: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + map: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + mapSet: *: * + + + + source + +

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

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + number: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + numberSet: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + string: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + stringSet: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + timeUUID: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + uuid: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + static + get + + + website: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    + + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/class/lib/ObjectToJoi.js~ObjectToJoi.html b/docs-api/deep-validation/class/lib/ObjectToJoi.js~ObjectToJoi.html new file mode 100644 index 00000000..3a9332d3 --- /dev/null +++ b/docs-api/deep-validation/class/lib/ObjectToJoi.js~ObjectToJoi.html @@ -0,0 +1,365 @@ + + + + + + ObjectToJoi | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {ObjectToJoi} from 'deep-validation/lib/ObjectToJoi.js'
    + public + class + + + + | source +
    + +
    +

    ObjectToJoi

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

    Exporting simple object to joi

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(baseObject: Object) +

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

    Member Summary

    + + + + + + + + + +
    Public Members
    + public + + get + + + +
    +

    + baseObject: Object: * +

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

    Method Summary

    + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + transform(): Object +

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

    Public Constructors

    + +
    +

    + public + + + + + constructor(baseObject: Object) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    baseObjectObject
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + get + + + baseObject: Object: * + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + transform(): Object + + + + source + +

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

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/class/lib/Validation.js~Validation.html b/docs-api/deep-validation/class/lib/Validation.js~Validation.html new file mode 100644 index 00000000..c017bd27 --- /dev/null +++ b/docs-api/deep-validation/class/lib/Validation.js~Validation.html @@ -0,0 +1,1090 @@ + + + + + + Validation | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +
    +
    import {Validation} from 'deep-validation/lib/Validation.js'
    + public + class + + + + | source +
    + +
    +

    Validation

    + + + + + +

    Extends:

    deep-kernel~Kernel.ContainerAware → Validation
    + + + + + + + + + +

    Validation engine

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

    Static Method Summary

    + + + + + + + + + +
    Static Public Methods
    + public + static + + + + +
    +

    + normalizeSchema(rawSchema: Object): Object +

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

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor(models: Array) +

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

    Member Summary

    + + + + + + + + + + + + + + + + + + + +
    Public Members
    + public + + set + + + +
    +

    + immutable(state: Boolean): * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + immutable: Boolean: * +

    +
    +
    + + + +
    +
    + + +
    + public + + get + + + +
    +

    + models: Object[]: * +

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

    Method Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + boot(kernel: Kernel, callback: Function) +

    +
    +
    + + +
    Booting a certain service
    +
    +
    + + +
    + public + + + + + +
    +

    + get(modelName: String): Object +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + has(modelName: String): Boolean +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + set(modelName: String, schema: Object): Validation +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + setRaw(modelName: String, schema: Object): Validation +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + validate(modelName: String, valueObject: *): * +

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

    Static Public Methods

    + +
    +

    + public + static + + + + normalizeSchema(rawSchema: Object): Object + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    rawSchemaObject
    +
    +
    + +
    +

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Constructors

    + +
    +

    + public + + + + + constructor(models: Array) + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    modelsArray
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    Public Members

    + +
    +

    + public + + set + + + immutable(state: Boolean): * + + + + source + +

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

    + public + + get + + + immutable: Boolean: * + + + + source + +

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

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + get + + + models: Object[]: * + + + + source + +

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

    Return:

    + + + + + +
    Object[]
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    Public Methods

    + +
    +

    + public + + + + + boot(kernel: Kernel, callback: Function) + + + + source + +

    + + + + +

    Booting a certain service

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    kernelKernel
    callbackFunction
    +
    +
    + + + + + + + + + + + + + + + +
    +
    +

    + public + + + + + get(modelName: String): Object + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    modelNameString
    +
    +
    + +
    +

    Return:

    + + + + + +
    Object
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + has(modelName: String): Boolean + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    modelNameString
    +
    +
    + +
    +

    Return:

    + + + + + +
    Boolean
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + set(modelName: String, schema: Object): Validation + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    modelNameString
    schemaObject
    +
    +
    + +
    +

    Return:

    + + + + + +
    Validation
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + setRaw(modelName: String, schema: Object): Validation + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    modelNameString
    schemaObject
    +
    +
    + +
    +

    Return:

    + + + + + +
    Validation
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +

    + public + + + + + validate(modelName: String, valueObject: *): * + + + + source + +

    + + + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    modelNameString
    valueObject*
    +
    +
    + +
    +

    Return:

    + + + + + +
    *
    +
    +
    +
    + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/coverage.json b/docs-api/deep-validation/coverage.json new file mode 100644 index 00000000..93753732 --- /dev/null +++ b/docs-api/deep-validation/coverage.json @@ -0,0 +1,42 @@ +{ + "coverage": "100%", + "expectCount": 38, + "actualCount": 38, + "files": { + "lib/Exception/Exception.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Exception/InvalidSchemaException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Helpers/Joi.js": { + "expectCount": 14, + "actualCount": 14, + "undocumentLines": [] + }, + "lib/Exception/ModelNotFoundException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/ObjectToJoi.js": { + "expectCount": 4, + "actualCount": 4, + "undocumentLines": [] + }, + "lib/Exception/ObjectValidationFailedException.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "lib/Validation.js": { + "expectCount": 12, + "actualCount": 12, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/docs-api/deep-validation/css/prettify-tomorrow.css b/docs-api/deep-validation/css/prettify-tomorrow.css new file mode 100644 index 00000000..b6f92a78 --- /dev/null +++ b/docs-api/deep-validation/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs-api/deep-validation/css/style.css b/docs-api/deep-validation/css/style.css new file mode 100644 index 00000000..4dc99a1b --- /dev/null +++ b/docs-api/deep-validation/css/style.css @@ -0,0 +1,862 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Roboto', sans-serif; + overflow: auto; + font-size: 14px; + /*color: #4d4e53;*/ + color: rgba(0, 0, 0, .68); + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + background-color: #E2E2E2; + padding: 4px; + font-weight: 300; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 19px; +} + +p > code { + background-color: #f5f5f5; + border-radius: 3px; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0 4px; + border-radius: 3px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: white; + top: 0; + border-bottom: solid 1px #E02130; +} +.layout-container > header > a{ + margin: 0 5px; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid rgba(0, 0, 0, 0.1); +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation .nav-dir-path { + margin-top: 0.7em; + margin-bottom: 0.25em; + font-size: 0.8em; + color: #aaa; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #999; + color: white; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +pre.source-code { + background: #f5f5f5; + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150); +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #999; + color: white; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} + +table.test-summary thead { + background: #999; + color: white; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-describe .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; +} + +table.test-summary tr.test-describe .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-describe .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} + +.inner-link-active { + background: rgb(255, 255, 150); +} + +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + +/* coverage badge */ +.esdoc-coverage { + display: inline-block; + height: 20px; + vertical-align: top; +} + +h1 .esdoc-coverage { + position: relative; + top: -4px; +} + +.esdoc-coverage-wrap { + color: white; + font-size: 12px; + font-weight: 500; +} + +.esdoc-coverage-label { + padding: 3px 4px 3px 6px; + background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%); + border-radius: 4px 0 0 4px; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-ratio { + padding: 3px 6px 3px 4px; + border-radius: 0 4px 4px 0; + display: inline-block; + height: 20px; + box-sizing: border-box; + line-height: 14px; +} + +.esdoc-coverage-low { + background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%); +} + +.esdoc-coverage-middle { + background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%); +} + +.esdoc-coverage-high { + background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%); +} + +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; + background-color: transparent; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} diff --git a/docs-api/deep-validation/dump.json b/docs-api/deep-validation/dump.json new file mode 100644 index 00000000..64b189b1 --- /dev/null +++ b/docs-api/deep-validation/dump.json @@ -0,0 +1,2141 @@ +[ + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/Exception.js", + "memberof": null, + "longname": "lib/Exception/Exception.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/10/15.\n */\n\n'use strict';\n\nimport Core from 'deep-core';\n\n/**\n * Thrown when any exception occurs\n */\nexport class Exception extends Core.Exception.Exception {\n /**\n * @param {Array} args\n */\n constructor(...args) {\n super(...args);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Exception", + "memberof": "lib/Exception/Exception.js", + "longname": "lib/Exception/Exception.js~Exception", + "access": null, + "export": true, + "importPath": "deep-validation/lib/Exception/Exception.js", + "importStyle": "{Exception}", + "description": "Thrown when any exception occurs", + "lineNumber": 12, + "interface": false, + "extends": [ + "deep-core~Core.Exception.Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/Exception.js~Exception", + "longname": "lib/Exception/Exception.js~Exception#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/InvalidSchemaException.js", + "memberof": null, + "longname": "lib/Exception/InvalidSchemaException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/20/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when DB model validation schema is missing or broken\n */\nexport class InvalidSchemaException extends Exception {\n /**\n * @param {Object} model\n * @param {String} errorString\n */\n constructor(model, errorString) {\n super(`deep-db model ${JSON.stringify(model)} validation schema fails: ${errorString}`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "InvalidSchemaException", + "memberof": "lib/Exception/InvalidSchemaException.js", + "longname": "lib/Exception/InvalidSchemaException.js~InvalidSchemaException", + "access": null, + "export": true, + "importPath": "deep-validation/lib/Exception/InvalidSchemaException.js", + "importStyle": "{InvalidSchemaException}", + "description": "Thrown when DB model validation schema is missing or broken", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/InvalidSchemaException.js~InvalidSchemaException", + "longname": "lib/Exception/InvalidSchemaException.js~InvalidSchemaException#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "model", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "errorString", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/ModelNotFoundException.js", + "memberof": null, + "longname": "lib/Exception/ModelNotFoundException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/15/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when missing requested model\n */\nexport class ModelNotFoundException extends Exception {\n /**\n * @param {String} modelName\n */\n constructor(modelName) {\n super(`Model ${modelName} was not found`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "ModelNotFoundException", + "memberof": "lib/Exception/ModelNotFoundException.js", + "longname": "lib/Exception/ModelNotFoundException.js~ModelNotFoundException", + "access": null, + "export": true, + "importPath": "deep-validation/lib/Exception/ModelNotFoundException.js", + "importStyle": "{ModelNotFoundException}", + "description": "Thrown when missing requested model", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/ModelNotFoundException.js~ModelNotFoundException", + "longname": "lib/Exception/ModelNotFoundException.js~ModelNotFoundException#constructor", + "access": null, + "description": null, + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "modelName", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Exception/ObjectValidationFailedException.js", + "memberof": null, + "longname": "lib/Exception/ObjectValidationFailedException.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/22/15.\n */\n\n'use strict';\n\nimport {Exception} from './Exception';\n\n/**\n * Thrown when object validation fails on a joi schema/model\n */\nexport class ObjectValidationFailedException extends Exception {\n /**\n * @param {String} schemaName\n * @param {String} error\n */\n constructor(schemaName, error) {\n super(`Object validation failed on schema ${schemaName}: ${error}`);\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "ObjectValidationFailedException", + "memberof": "lib/Exception/ObjectValidationFailedException.js", + "longname": "lib/Exception/ObjectValidationFailedException.js~ObjectValidationFailedException", + "access": null, + "export": true, + "importPath": "deep-validation/lib/Exception/ObjectValidationFailedException.js", + "importStyle": "{ObjectValidationFailedException}", + "description": "Thrown when object validation fails on a joi schema/model", + "lineNumber": 12, + "interface": false, + "extends": [ + "lib/Exception/Exception~Exception" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Exception/ObjectValidationFailedException.js~ObjectValidationFailedException", + "longname": "lib/Exception/ObjectValidationFailedException.js~ObjectValidationFailedException#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "schemaName", + "description": "" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "error", + "description": "" + } + ], + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Helpers/Joi.js", + "memberof": null, + "longname": "lib/Helpers/Joi.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 5/25/15.\n */\n\n'use strict';\n\nimport BaseJoi from 'joi';\nimport Vogels from './vogelsPolyfill';\n\n/**\n * Abstraction on Joi validation expressions\n */\nexport class Joi {\n /**\n * @returns {Object}\n */\n static get uuid() {\n return Vogels.types.uuid();\n }\n\n /**\n * @returns {Object}\n */\n static get timeUUID() {\n return Vogels.types.timeUUID();\n }\n\n /**\n * @returns {Object}\n */\n static get stringSet() {\n return Vogels.types.stringSet();\n }\n\n /**\n * @returns {Object}\n */\n static get numberSet() {\n return Vogels.types.numberSet();\n }\n\n /**\n * @returns {Object}\n */\n static get binarySet() {\n return Vogels.types.binarySet();\n }\n\n /**\n * @returns {Object}\n */\n static get binary() {\n return BaseJoi.binary();\n }\n\n /**\n * @returns {Object}\n */\n static get number() {\n return BaseJoi.number();\n }\n\n /**\n * @returns {Object}\n */\n static get string() {\n return BaseJoi.string();\n }\n\n /**\n * @returns {Object}\n */\n static get boolean() {\n return BaseJoi.boolean();\n }\n\n /**\n * @returns {Object}\n */\n static get email() {\n return BaseJoi.string().email();\n }\n\n /**\n * @returns {Object}\n */\n static get website() {\n return BaseJoi.string().uri();\n }\n\n /**\n * @returns {Object}\n */\n static get map() {\n return BaseJoi.object();\n }\n\n /**\n * @returns {*}\n */\n static get mapSet() {\n let array = BaseJoi.array();\n if (array.includes) {\n return array.includes(BaseJoi.object());\n }\n\n return array.items(BaseJoi.object());\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Joi", + "memberof": "lib/Helpers/Joi.js", + "longname": "lib/Helpers/Joi.js~Joi", + "access": null, + "export": true, + "importPath": "deep-validation/lib/Helpers/Joi.js", + "importStyle": "{Joi}", + "description": "Abstraction on Joi validation expressions", + "lineNumber": 13, + "interface": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "uuid", + "memberof": "lib/Helpers/Joi.js~Joi", + "longname": "lib/Helpers/Joi.js~Joi.uuid", + "access": null, + "description": null, + "lineNumber": 17, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "timeUUID", + "memberof": "lib/Helpers/Joi.js~Joi", + "longname": "lib/Helpers/Joi.js~Joi.timeUUID", + "access": null, + "description": null, + "lineNumber": 24, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "stringSet", + "memberof": "lib/Helpers/Joi.js~Joi", + "longname": "lib/Helpers/Joi.js~Joi.stringSet", + "access": null, + "description": null, + "lineNumber": 31, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "numberSet", + "memberof": "lib/Helpers/Joi.js~Joi", + "longname": "lib/Helpers/Joi.js~Joi.numberSet", + "access": null, + "description": null, + "lineNumber": 38, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "binarySet", + "memberof": "lib/Helpers/Joi.js~Joi", + "longname": "lib/Helpers/Joi.js~Joi.binarySet", + "access": null, + "description": null, + "lineNumber": 45, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "binary", + "memberof": "lib/Helpers/Joi.js~Joi", + "longname": "lib/Helpers/Joi.js~Joi.binary", + "access": null, + "description": null, + "lineNumber": 52, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "number", + "memberof": "lib/Helpers/Joi.js~Joi", + "longname": "lib/Helpers/Joi.js~Joi.number", + "access": null, + "description": null, + "lineNumber": 59, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "string", + "memberof": "lib/Helpers/Joi.js~Joi", + "longname": "lib/Helpers/Joi.js~Joi.string", + "access": null, + "description": null, + "lineNumber": 66, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "boolean", + "memberof": "lib/Helpers/Joi.js~Joi", + "longname": "lib/Helpers/Joi.js~Joi.boolean", + "access": null, + "description": null, + "lineNumber": 73, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "email", + "memberof": "lib/Helpers/Joi.js~Joi", + "longname": "lib/Helpers/Joi.js~Joi.email", + "access": null, + "description": null, + "lineNumber": 80, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "website", + "memberof": "lib/Helpers/Joi.js~Joi", + "longname": "lib/Helpers/Joi.js~Joi.website", + "access": null, + "description": null, + "lineNumber": 87, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "map", + "memberof": "lib/Helpers/Joi.js~Joi", + "longname": "lib/Helpers/Joi.js~Joi.map", + "access": null, + "description": null, + "lineNumber": 94, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "get", + "static": true, + "variation": null, + "name": "mapSet", + "memberof": "lib/Helpers/Joi.js~Joi", + "longname": "lib/Helpers/Joi.js~Joi.mapSet", + "access": null, + "description": null, + "lineNumber": 101, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Helpers/vogelsPolyfill.js", + "memberof": null, + "longname": "lib/Helpers/vogelsPolyfill.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/25/15.\n */\n\n'use strict';\n\nimport Joi from 'joi';\n\nlet UUID_REGEXP = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;\n\nexport default (typeof window !== 'undefined' ? {\n types: {\n uuid: function() {\n return Joi.string().regex(UUID_REGEXP);\n },\n\n timeUUID: function() {\n return Joi.string().regex(UUID_REGEXP);\n },\n\n stringSet: function() {\n return _joiVector(Joi.string());\n },\n\n numberSet: function() {\n return _joiVector(Joi.number());\n },\n\n binarySet: function() {\n return _joiVector(Joi.string());\n },\n },\n} : require('vogels'));\n\n/**\n * Fixes weird joi exception!\n *\n * @param {Object} proto\n * @returns {Object}\n * @private\n */\nfunction _joiVector(proto) {\n let arr = Joi.array();\n\n if (arr.includes) {\n return arr.includes(proto);\n }\n\n return arr.items(proto);\n}\n" + }, + { + "kind": "variable", + "static": true, + "variation": null, + "name": "UUID_REGEXP", + "memberof": "lib/Helpers/vogelsPolyfill.js", + "longname": "lib/Helpers/vogelsPolyfill.js~UUID_REGEXP", + "access": null, + "export": false, + "importPath": "deep-validation/lib/Helpers/vogelsPolyfill.js", + "importStyle": null, + "description": null, + "lineNumber": 9, + "undocument": true, + "type": { + "types": [ + "object" + ] + } + }, + { + "kind": "function", + "static": true, + "variation": null, + "name": "_joiVector", + "memberof": "lib/Helpers/vogelsPolyfill.js", + "longname": "lib/Helpers/vogelsPolyfill.js~_joiVector", + "access": "private", + "export": false, + "importPath": "deep-validation/lib/Helpers/vogelsPolyfill.js", + "importStyle": null, + "description": "Fixes weird joi exception!", + "lineNumber": 42, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "proto", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/ObjectToJoi.js", + "memberof": null, + "longname": "lib/ObjectToJoi.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/15/15.\n */\n\n'use strict';\n\nimport {Joi as JoiHelper} from './Helpers/Joi';\nimport {InvalidSchemaException} from './Exception/InvalidSchemaException';\n\n/**\n * Exporting simple object to joi\n */\nexport class ObjectToJoi {\n /**\n * @param {Object} baseObject\n */\n constructor(baseObject) {\n this._baseObject = baseObject;\n }\n\n /**\n * @returns {Object}\n */\n get baseObject() {\n return this._baseObject;\n }\n\n /**\n * @returns {Object}\n */\n transform() {\n try {\n return ObjectToJoi._transform(this._baseObject);\n } catch (e) {\n throw new InvalidSchemaException(this._baseObject, e);\n }\n }\n\n /**\n * @param {Object} obj\n * @returns {Object}\n * @private\n */\n static _transform(obj) {\n let transObj = {};\n\n for (let property in obj) {\n if (!obj.hasOwnProperty(property)) {\n continue;\n }\n\n let value = obj[property];\n\n if (typeof value === 'object') {\n transObj[property] = ObjectToJoi._transform(value);\n } else {\n let validationSchema = JoiHelper[value];\n\n if (typeof validationSchema === 'undefined') {\n throw new InvalidSchemaException(obj, `Unknown field type ${value}`);\n }\n\n transObj[property] = validationSchema;\n }\n }\n\n return transObj;\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "ObjectToJoi", + "memberof": "lib/ObjectToJoi.js", + "longname": "lib/ObjectToJoi.js~ObjectToJoi", + "access": null, + "export": true, + "importPath": "deep-validation/lib/ObjectToJoi.js", + "importStyle": "{ObjectToJoi}", + "description": "Exporting simple object to joi", + "lineNumber": 13, + "interface": false + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/ObjectToJoi.js~ObjectToJoi", + "longname": "lib/ObjectToJoi.js~ObjectToJoi#constructor", + "access": null, + "description": null, + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "baseObject", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_baseObject", + "memberof": "lib/ObjectToJoi.js~ObjectToJoi", + "longname": "lib/ObjectToJoi.js~ObjectToJoi#_baseObject", + "access": null, + "description": null, + "lineNumber": 18, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "baseObject", + "memberof": "lib/ObjectToJoi.js~ObjectToJoi", + "longname": "lib/ObjectToJoi.js~ObjectToJoi#baseObject", + "access": null, + "description": null, + "lineNumber": 24, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "transform", + "memberof": "lib/ObjectToJoi.js~ObjectToJoi", + "longname": "lib/ObjectToJoi.js~ObjectToJoi#transform", + "access": null, + "description": null, + "lineNumber": 31, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "_transform", + "memberof": "lib/ObjectToJoi.js~ObjectToJoi", + "longname": "lib/ObjectToJoi.js~ObjectToJoi._transform", + "access": "private", + "description": null, + "lineNumber": 44, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "obj", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/Validation.js", + "memberof": null, + "longname": "lib/Validation.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * Created by AlexanderC on 6/15/15.\n */\n\n'use strict';\n\nimport Kernel from 'deep-kernel';\nimport {ObjectToJoi} from './ObjectToJoi';\nimport {ModelNotFoundException} from './Exception/ModelNotFoundException';\nimport Joi from 'joi';\nimport {ObjectValidationFailedException} from './Exception/ObjectValidationFailedException';\nimport {Exception} from './Exception/Exception';\n\n/**\n * Validation engine\n */\nexport class Validation extends Kernel.ContainerAware {\n /**\n * @param {Array} models\n */\n constructor(models = []) {\n super();\n\n this._immutable = false;\n this._models = this._rawModelsToSchemas(models);\n }\n\n /**\n * @param {Boolean} state\n */\n set immutable(state) {\n this._assureImmutable();\n\n this._immutable = state;\n }\n\n /**\n * @returns {Boolean}\n */\n get immutable() {\n return this._immutable;\n }\n\n /**\n * @param {String} modelName\n * @param {*} valueObject\n * @returns {*}\n */\n validate(modelName, valueObject) {\n let model = this.get(modelName);\n let result = Joi.validate(valueObject, Joi.object().keys(model));\n\n if (result.error) {\n throw new ObjectValidationFailedException(modelName, result.error);\n }\n\n return result.value;\n }\n\n /**\n * @returns {Object[]}\n */\n get models() {\n return this._models;\n }\n\n /**\n * @param {String} modelName\n * @param {Object} schema\n * @returns {Validation}\n */\n setRaw(modelName, schema) {\n this._assureImmutable();\n\n this._models[modelName] = Validation.normalizeSchema(schema);\n\n return this;\n }\n\n /**\n * @param {String} modelName\n * @param {Object} schema\n * @returns {Validation}\n */\n set(modelName, schema) {\n this._assureImmutable();\n\n this._models[modelName] = schema;\n\n return this;\n }\n\n /**\n * @param {String} modelName\n * @returns {Boolean}\n */\n has(modelName) {\n return typeof this._models[modelName] !== 'undefined';\n }\n\n /**\n * @param {String} modelName\n * @returns {Object}\n */\n get(modelName) {\n if (!this.has(modelName)) {\n throw new ModelNotFoundException(modelName);\n }\n\n return this._models[modelName];\n }\n\n /**\n * Booting a certain service\n *\n * @param {Kernel} kernel\n * @param {Function} callback\n */\n boot(kernel, callback) {\n this._assureImmutable();\n\n this._models = this._rawModelsToSchemas(kernel.config.models);\n\n callback();\n }\n\n /**\n * @param {Array} rawModels\n * @returns {Object}\n * @private\n */\n _rawModelsToSchemas(rawModels) {\n let modelsSchema = {};\n\n for (let modelKey in rawModels) {\n if (!rawModels.hasOwnProperty(modelKey)) {\n continue;\n }\n\n let backendModels = rawModels[modelKey];\n\n for (let modelName in backendModels) {\n if (!backendModels.hasOwnProperty(modelName)) {\n continue;\n }\n\n let schema = backendModels[modelName];\n\n // @todo: move this sh*t into DB somehow...\n schema.Id = schema.Id || 'timeUUID';\n\n modelsSchema[modelName] = Validation.normalizeSchema(schema);\n }\n }\n\n return modelsSchema;\n }\n\n /**\n * @private\n */\n _assureImmutable() {\n if (this._immutable) {\n throw new Exception('You are not abble to alter the state after setting it immutable');\n }\n }\n\n /**\n * @param {Object} rawSchema\n * @returns {Object}\n */\n static normalizeSchema(rawSchema) {\n return new ObjectToJoi(rawSchema).transform();\n }\n}\n" + }, + { + "kind": "class", + "static": true, + "variation": null, + "name": "Validation", + "memberof": "lib/Validation.js", + "longname": "lib/Validation.js~Validation", + "access": null, + "export": true, + "importPath": "deep-validation/lib/Validation.js", + "importStyle": "{Validation}", + "description": "Validation engine", + "lineNumber": 17, + "interface": false, + "extends": [ + "deep-kernel~Kernel.ContainerAware" + ] + }, + { + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#constructor", + "access": null, + "description": null, + "lineNumber": 21, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "models", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_immutable", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#_immutable", + "access": null, + "description": null, + "lineNumber": 24, + "undocument": true, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_models", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#_models", + "access": null, + "description": null, + "lineNumber": 25, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "set", + "static": false, + "variation": null, + "name": "immutable", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#immutable", + "access": null, + "description": null, + "lineNumber": 31, + "params": [ + { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "optional": false, + "name": "state", + "description": "" + } + ], + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_immutable", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#_immutable", + "access": null, + "description": null, + "lineNumber": 34, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "immutable", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#immutable", + "access": null, + "description": null, + "lineNumber": 40, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "validate", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#validate", + "access": null, + "description": null, + "lineNumber": 49, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{*}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "modelName", + "description": "" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "valueObject", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "get", + "static": false, + "variation": null, + "name": "models", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#models", + "access": null, + "description": null, + "lineNumber": 63, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object[]}" + } + ], + "return": { + "nullable": null, + "types": [ + "Object[]" + ], + "spread": false, + "description": "" + }, + "type": { + "types": [ + "*" + ] + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "setRaw", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#setRaw", + "access": null, + "description": null, + "lineNumber": 72, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Validation}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "modelName", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "schema", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Validation" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "set", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#set", + "access": null, + "description": null, + "lineNumber": 85, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Validation}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "modelName", + "description": "" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "schema", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Validation" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "has", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#has", + "access": null, + "description": null, + "lineNumber": 97, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Boolean}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "modelName", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "get", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#get", + "access": null, + "description": null, + "lineNumber": 105, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": false, + "name": "modelName", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "boot", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#boot", + "access": null, + "description": "Booting a certain service", + "lineNumber": 119, + "params": [ + { + "nullable": null, + "types": [ + "Kernel" + ], + "spread": false, + "optional": false, + "name": "kernel", + "description": "" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "" + } + ], + "generator": false + }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_models", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#_models", + "access": null, + "description": null, + "lineNumber": 122, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_rawModelsToSchemas", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#_rawModelsToSchemas", + "access": "private", + "description": null, + "lineNumber": 132, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "rawModels", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "_assureImmutable", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation#_assureImmutable", + "access": "private", + "description": null, + "lineNumber": 162, + "params": [], + "generator": false + }, + { + "kind": "method", + "static": true, + "variation": null, + "name": "normalizeSchema", + "memberof": "lib/Validation.js~Validation", + "longname": "lib/Validation.js~Validation.normalizeSchema", + "access": null, + "description": null, + "lineNumber": 172, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object}" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "rawSchema", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "description": "" + }, + "generator": false + }, + { + "kind": "file", + "static": true, + "variation": null, + "name": "lib/bootstrap.js", + "memberof": null, + "longname": "lib/bootstrap.js", + "access": null, + "description": null, + "lineNumber": 7, + "content": "/**\n * Created by AlexanderC on 5/22/15.\n *\n * Bootstrap file loaded by npm as main\n */\n\n'use strict';\n\nimport {Validation} from './Validation';\n\nlet exports = module.exports = Validation;\n" + }, + { + "kind": "variable", + "static": true, + "variation": null, + "name": "exports", + "memberof": "lib/bootstrap.js", + "longname": "lib/bootstrap.js~exports", + "access": null, + "export": false, + "importPath": "deep-validation/lib/bootstrap.js", + "importStyle": null, + "description": null, + "lineNumber": 11, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~null", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~object", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~function", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Error", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~number", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Date", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~String", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~string", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Map", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Set", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "BuiltinExternal/ECMAScriptExternal.js", + "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "CanvasRenderingContext2D", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "DocumentFragment", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Element", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Element", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Event", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Event", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "Node", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~Node", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "NodeList", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~NodeList", + "access": null, + "description": null, + "builtinExternal": true + }, + { + "kind": "external", + "static": true, + "variation": null, + "name": "XMLHttpRequest", + "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest", + "memberof": "BuiltinExternal/WebAPIExternal.js", + "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "access": null, + "description": null, + "builtinExternal": true + } +] \ No newline at end of file diff --git a/docs-api/deep-validation/file/lib/Exception/Exception.js.html b/docs-api/deep-validation/file/lib/Exception/Exception.js.html new file mode 100644 index 00000000..70b65d99 --- /dev/null +++ b/docs-api/deep-validation/file/lib/Exception/Exception.js.html @@ -0,0 +1,80 @@ + + + + + + lib/Exception/Exception.js | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/Exception.js

    +
    /**
    + * Created by AlexanderC on 6/10/15.
    + */
    +
    +'use strict';
    +
    +import Core from 'deep-core';
    +
    +/**
    + * Thrown when any exception occurs
    + */
    +export class Exception extends Core.Exception.Exception {
    +  /**
    +   * @param {Array} args
    +   */
    +  constructor(...args) {
    +    super(...args);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/file/lib/Exception/InvalidSchemaException.js.html b/docs-api/deep-validation/file/lib/Exception/InvalidSchemaException.js.html new file mode 100644 index 00000000..d87adcf8 --- /dev/null +++ b/docs-api/deep-validation/file/lib/Exception/InvalidSchemaException.js.html @@ -0,0 +1,81 @@ + + + + + + lib/Exception/InvalidSchemaException.js | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/InvalidSchemaException.js

    +
    /**
    + * Created by AlexanderC on 6/20/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when DB model validation schema is missing or broken
    + */
    +export class InvalidSchemaException extends Exception {
    +  /**
    +   * @param {Object} model
    +   * @param {String} errorString
    +   */
    +  constructor(model, errorString) {
    +    super(`deep-db model ${JSON.stringify(model)} validation schema fails: ${errorString}`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/file/lib/Exception/ModelNotFoundException.js.html b/docs-api/deep-validation/file/lib/Exception/ModelNotFoundException.js.html new file mode 100644 index 00000000..a94cf248 --- /dev/null +++ b/docs-api/deep-validation/file/lib/Exception/ModelNotFoundException.js.html @@ -0,0 +1,80 @@ + + + + + + lib/Exception/ModelNotFoundException.js | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/ModelNotFoundException.js

    +
    /**
    + * Created by AlexanderC on 6/15/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when missing requested model
    + */
    +export class ModelNotFoundException extends Exception {
    +  /**
    +   * @param {String} modelName
    +   */
    +  constructor(modelName) {
    +    super(`Model ${modelName} was not found`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/file/lib/Exception/ObjectValidationFailedException.js.html b/docs-api/deep-validation/file/lib/Exception/ObjectValidationFailedException.js.html new file mode 100644 index 00000000..acbad418 --- /dev/null +++ b/docs-api/deep-validation/file/lib/Exception/ObjectValidationFailedException.js.html @@ -0,0 +1,81 @@ + + + + + + lib/Exception/ObjectValidationFailedException.js | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Exception/ObjectValidationFailedException.js

    +
    /**
    + * Created by AlexanderC on 6/22/15.
    + */
    +
    +'use strict';
    +
    +import {Exception} from './Exception';
    +
    +/**
    + * Thrown when object validation fails on a joi schema/model
    + */
    +export class ObjectValidationFailedException extends Exception {
    +  /**
    +   * @param {String} schemaName
    +   * @param {String} error
    +   */
    +  constructor(schemaName, error) {
    +    super(`Object validation failed on schema ${schemaName}: ${error}`);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/file/lib/Helpers/Joi.js.html b/docs-api/deep-validation/file/lib/Helpers/Joi.js.html new file mode 100644 index 00000000..e51740d2 --- /dev/null +++ b/docs-api/deep-validation/file/lib/Helpers/Joi.js.html @@ -0,0 +1,170 @@ + + + + + + lib/Helpers/Joi.js | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Helpers/Joi.js

    +
    /**
    + * Created by AlexanderC on 5/25/15.
    + */
    +
    +'use strict';
    +
    +import BaseJoi from 'joi';
    +import Vogels from './vogelsPolyfill';
    +
    +/**
    + * Abstraction on Joi validation expressions
    + */
    +export class Joi {
    +  /**
    +   * @returns {Object}
    +   */
    +  static get uuid() {
    +    return Vogels.types.uuid();
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  static get timeUUID() {
    +    return Vogels.types.timeUUID();
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  static get stringSet() {
    +    return Vogels.types.stringSet();
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  static get numberSet() {
    +    return Vogels.types.numberSet();
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  static get binarySet() {
    +    return Vogels.types.binarySet();
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  static get binary() {
    +    return BaseJoi.binary();
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  static get number() {
    +    return BaseJoi.number();
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  static get string() {
    +    return BaseJoi.string();
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  static get boolean() {
    +    return BaseJoi.boolean();
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  static get email() {
    +    return BaseJoi.string().email();
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  static get website() {
    +    return BaseJoi.string().uri();
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  static get map() {
    +    return BaseJoi.object();
    +  }
    +
    +  /**
    +   * @returns {*}
    +   */
    +  static get mapSet() {
    +    let array = BaseJoi.array();
    +    if (array.includes) {
    +      return array.includes(BaseJoi.object());
    +    }
    +
    +    return array.items(BaseJoi.object());
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/file/lib/Helpers/vogelsPolyfill.js.html b/docs-api/deep-validation/file/lib/Helpers/vogelsPolyfill.js.html new file mode 100644 index 00000000..3fd7fc81 --- /dev/null +++ b/docs-api/deep-validation/file/lib/Helpers/vogelsPolyfill.js.html @@ -0,0 +1,111 @@ + + + + + + lib/Helpers/vogelsPolyfill.js | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Helpers/vogelsPolyfill.js

    +
    /**
    + * Created by AlexanderC on 6/25/15.
    + */
    +
    +'use strict';
    +
    +import Joi from 'joi';
    +
    +let UUID_REGEXP = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
    +
    +export default (typeof window !== 'undefined' ? {
    +  types: {
    +    uuid: function() {
    +      return Joi.string().regex(UUID_REGEXP);
    +    },
    +
    +    timeUUID: function() {
    +      return Joi.string().regex(UUID_REGEXP);
    +    },
    +
    +    stringSet: function() {
    +      return _joiVector(Joi.string());
    +    },
    +
    +    numberSet: function() {
    +      return _joiVector(Joi.number());
    +    },
    +
    +    binarySet: function() {
    +      return _joiVector(Joi.string());
    +    },
    +  },
    +} : require('vogels'));
    +
    +/**
    + * Fixes weird joi exception!
    + *
    + * @param {Object} proto
    + * @returns {Object}
    + * @private
    + */
    +function _joiVector(proto) {
    +  let arr = Joi.array();
    +
    +  if (arr.includes) {
    +    return arr.includes(proto);
    +  }
    +
    +  return arr.items(proto);
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/file/lib/ObjectToJoi.js.html b/docs-api/deep-validation/file/lib/ObjectToJoi.js.html new file mode 100644 index 00000000..3d5ce79d --- /dev/null +++ b/docs-api/deep-validation/file/lib/ObjectToJoi.js.html @@ -0,0 +1,130 @@ + + + + + + lib/ObjectToJoi.js | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/ObjectToJoi.js

    +
    /**
    + * Created by AlexanderC on 6/15/15.
    + */
    +
    +'use strict';
    +
    +import {Joi as JoiHelper} from './Helpers/Joi';
    +import {InvalidSchemaException} from './Exception/InvalidSchemaException';
    +
    +/**
    + * Exporting simple object to joi
    + */
    +export class ObjectToJoi {
    +  /**
    +   * @param {Object} baseObject
    +   */
    +  constructor(baseObject) {
    +    this._baseObject = baseObject;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  get baseObject() {
    +    return this._baseObject;
    +  }
    +
    +  /**
    +   * @returns {Object}
    +   */
    +  transform() {
    +    try {
    +      return ObjectToJoi._transform(this._baseObject);
    +    } catch (e) {
    +      throw new InvalidSchemaException(this._baseObject, e);
    +    }
    +  }
    +
    +  /**
    +   * @param {Object} obj
    +   * @returns {Object}
    +   * @private
    +   */
    +  static _transform(obj) {
    +    let transObj = {};
    +
    +    for (let property in obj) {
    +      if (!obj.hasOwnProperty(property)) {
    +        continue;
    +      }
    +
    +      let value = obj[property];
    +
    +      if (typeof value === 'object') {
    +        transObj[property] = ObjectToJoi._transform(value);
    +      } else {
    +        let validationSchema = JoiHelper[value];
    +
    +        if (typeof validationSchema === 'undefined') {
    +          throw new InvalidSchemaException(obj, `Unknown field type ${value}`);
    +        }
    +
    +        transObj[property] = validationSchema;
    +      }
    +    }
    +
    +    return transObj;
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/file/lib/Validation.js.html b/docs-api/deep-validation/file/lib/Validation.js.html new file mode 100644 index 00000000..c52bf06b --- /dev/null +++ b/docs-api/deep-validation/file/lib/Validation.js.html @@ -0,0 +1,236 @@ + + + + + + lib/Validation.js | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/Validation.js

    +
    /**
    + * Created by AlexanderC on 6/15/15.
    + */
    +
    +'use strict';
    +
    +import Kernel from 'deep-kernel';
    +import {ObjectToJoi} from './ObjectToJoi';
    +import {ModelNotFoundException} from './Exception/ModelNotFoundException';
    +import Joi from 'joi';
    +import {ObjectValidationFailedException} from './Exception/ObjectValidationFailedException';
    +import {Exception} from './Exception/Exception';
    +
    +/**
    + * Validation engine
    + */
    +export class Validation extends Kernel.ContainerAware {
    +  /**
    +   * @param {Array} models
    +   */
    +  constructor(models = []) {
    +    super();
    +
    +    this._immutable = false;
    +    this._models = this._rawModelsToSchemas(models);
    +  }
    +
    +  /**
    +   * @param {Boolean} state
    +   */
    +  set immutable(state) {
    +    this._assureImmutable();
    +
    +    this._immutable = state;
    +  }
    +
    +  /**
    +   * @returns {Boolean}
    +   */
    +  get immutable() {
    +    return this._immutable;
    +  }
    +
    +  /**
    +   * @param {String} modelName
    +   * @param {*} valueObject
    +   * @returns {*}
    +   */
    +  validate(modelName, valueObject) {
    +    let model = this.get(modelName);
    +    let result = Joi.validate(valueObject, Joi.object().keys(model));
    +
    +    if (result.error) {
    +      throw new ObjectValidationFailedException(modelName, result.error);
    +    }
    +
    +    return result.value;
    +  }
    +
    +  /**
    +   * @returns {Object[]}
    +   */
    +  get models() {
    +    return this._models;
    +  }
    +
    +  /**
    +   * @param {String} modelName
    +   * @param {Object} schema
    +   * @returns {Validation}
    +   */
    +  setRaw(modelName, schema) {
    +    this._assureImmutable();
    +
    +    this._models[modelName] = Validation.normalizeSchema(schema);
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {String} modelName
    +   * @param {Object} schema
    +   * @returns {Validation}
    +   */
    +  set(modelName, schema) {
    +    this._assureImmutable();
    +
    +    this._models[modelName] = schema;
    +
    +    return this;
    +  }
    +
    +  /**
    +   * @param {String} modelName
    +   * @returns {Boolean}
    +   */
    +  has(modelName) {
    +    return typeof this._models[modelName] !== 'undefined';
    +  }
    +
    +  /**
    +   * @param {String} modelName
    +   * @returns {Object}
    +   */
    +  get(modelName) {
    +    if (!this.has(modelName)) {
    +      throw new ModelNotFoundException(modelName);
    +    }
    +
    +    return this._models[modelName];
    +  }
    +
    +  /**
    +   * Booting a certain service
    +   *
    +   * @param {Kernel} kernel
    +   * @param {Function} callback
    +   */
    +  boot(kernel, callback) {
    +    this._assureImmutable();
    +
    +    this._models = this._rawModelsToSchemas(kernel.config.models);
    +
    +    callback();
    +  }
    +
    +  /**
    +   * @param {Array} rawModels
    +   * @returns {Object}
    +   * @private
    +   */
    +  _rawModelsToSchemas(rawModels) {
    +    let modelsSchema = {};
    +
    +    for (let modelKey in rawModels) {
    +      if (!rawModels.hasOwnProperty(modelKey)) {
    +        continue;
    +      }
    +
    +      let backendModels = rawModels[modelKey];
    +
    +      for (let modelName in backendModels) {
    +        if (!backendModels.hasOwnProperty(modelName)) {
    +          continue;
    +        }
    +
    +        let schema = backendModels[modelName];
    +
    +        // @todo: move this sh*t into DB somehow...
    +        schema.Id = schema.Id || 'timeUUID';
    +
    +        modelsSchema[modelName] = Validation.normalizeSchema(schema);
    +      }
    +    }
    +
    +    return modelsSchema;
    +  }
    +
    +  /**
    +   * @private
    +   */
    +  _assureImmutable() {
    +    if (this._immutable) {
    +      throw new Exception('You are not abble to alter the state after setting it immutable');
    +    }
    +  }
    +
    +  /**
    +   * @param {Object} rawSchema
    +   * @returns {Object}
    +   */
    +  static normalizeSchema(rawSchema) {
    +    return new ObjectToJoi(rawSchema).transform();
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/file/lib/bootstrap.js.html b/docs-api/deep-validation/file/lib/bootstrap.js.html new file mode 100644 index 00000000..eb16f7fc --- /dev/null +++ b/docs-api/deep-validation/file/lib/bootstrap.js.html @@ -0,0 +1,72 @@ + + + + + + lib/bootstrap.js | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    lib/bootstrap.js

    +
    /**
    + * Created by AlexanderC on 5/22/15.
    + *
    + * Bootstrap file loaded by npm as main
    + */
    +
    +'use strict';
    +
    +import {Validation} from './Validation';
    +
    +let exports = module.exports = Validation;
    +
    + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/identifiers.html b/docs-api/deep-validation/identifiers.html new file mode 100644 index 00000000..ab354d55 --- /dev/null +++ b/docs-api/deep-validation/identifiers.html @@ -0,0 +1,245 @@ + + + + + + Index | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Identifier

    +

    Class Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Static Public Class Summary
    + public + + + + + +
    +

    + Exception +

    +
    +
    + + +
    Thrown when any exception occurs
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when DB model validation schema is missing or broken
    +
    +
    + + +
    + public + + + + + +
    +

    + Joi +

    +
    +
    + + +
    Abstraction on Joi validation expressions
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when missing requested model
    +
    +
    + + +
    + public + + + + + +
    +

    + ObjectToJoi +

    +
    +
    + + +
    Exporting simple object to joi
    +
    +
    + + +
    + public + + + + + + +
    + + +
    Thrown when object validation fails on a joi schema/model
    +
    +
    + + +
    + public + + + + + +
    +

    + Validation +

    +
    +
    + + +
    Validation engine
    +
    +
    + + +
    +
    + + + + +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/image/badge.svg b/docs-api/deep-validation/image/badge.svg new file mode 100644 index 00000000..324db4c5 --- /dev/null +++ b/docs-api/deep-validation/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/docs-api/deep-validation/image/github.png b/docs-api/deep-validation/image/github.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/docs-api/deep-validation/image/github.png differ diff --git a/docs-api/deep-validation/image/search.png b/docs-api/deep-validation/image/search.png new file mode 100644 index 00000000..f5d84b69 Binary files /dev/null and b/docs-api/deep-validation/image/search.png differ diff --git a/docs-api/deep-validation/index.html b/docs-api/deep-validation/index.html new file mode 100644 index 00000000..76750dc8 --- /dev/null +++ b/docs-api/deep-validation/index.html @@ -0,0 +1,193 @@ + + + + + + DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    deep-validation

    +

    NPM Version +Build Status +Coverage Status +Codacy Badge +API Docs

    +

    deep-validation is a node.js library, part of DEEP Framework.

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less.

    +

    DEEP for Businesses Join char on gitter.im

    +

    User Guide Documentation (to be updated later)

    +

    DEEP is enabling small and medium businesses, as well as enterprises to:

    +
      +
    • Rent applications on a monthly basis by needed functionality from DEEP Marketplace
    • +
    • Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS
    • +
    • Pay only for subscribed applications and stop paying when unsubscribing and not using anymore
    • +
    • Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences
    • +
    • Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability
    • +
    +
    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP for Developers Join char on gitter.im

    +

    API Guide Documentation

    +

    Developer Guide Documentation

    +

    DEEP is enabling developers and architects to:

    +
      +
    • Design microservices architecture on top of serverless environments from cloud providers like AWS
    • +
    • Build distributed software that combines and manages hardware and software in the same microservice
    • +
    • Use the framework's abstracted approach to build applications that could be cloud agnostic
    • +
    • Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same DEEP Microservice
    • +
    • Run in the cloud the software that was built by distributed teams and served self-service in large organizations
    • +
    • Monetize their work of art by uploading microservices to DEEP Marketplace
    • +
    +
    +

    DEEP Microservice is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with DEEP Microservices HelloWorld or DEEP Microservices ToDo App, as well as DEEP CLI (aka deepify).

    +

    DEEP Marketplace (aka www.deep.mg) is a web application built using DEEP and published on serverless environment from Amazon Web Services (aka aws.amazon.com). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS.

    +
    +

    DEEP Architecture on AWS Join char on gitter.im

    +

    Digital Enterprise End-to-end Platform, aka DEEP

    +

    DEEP is using microservices architecture on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DEEP Abstracted LibraryDescriptionAWS Abstracted Service(s)
    deep-assetAssets Management LibraryAmazon S3
    deep-cacheCache Management LibraryAmazon ElastiCache
    deep-coreCore Management Library-
    deep-dbDatabase Management LibraryAmazon DynamoDB, Amazon SQS
    deep-diDependency Injection Management Library-
    deep-eventEvents Management LibraryAmazon Kinesis
    deep-fsFile System Management LibraryAmazon S3
    deep-kernelKernel Management Library-
    deep-logLogs Management LibraryAmazon CloudWatch Logs
    deep-notificationNotifications Management LibraryAmazon SNS
    deep-resourceResouces Management LibraryAWS Lambda, Amazon API Gateway
    deep-securitySecurity Management LibraryAWS IAM, Amazon Cognito
    deep-validationValidation Management Library-
    +

    Feedback

    +

    We are eager to get your feedback, so please use whatever communication channel you prefer:

    + +

    License

    +

    This repository can be used under the MIT license.

    +
    +

    See LICENSE for more details.

    +
    +

    Sponsors

    +

    This repository is being sponsored by:

    +
    +

    Mitoc Group

    +
    +
    +
    + + + + + + + + + + + + diff --git a/docs-api/deep-validation/package.json b/docs-api/deep-validation/package.json new file mode 100644 index 00000000..3eaf3f50 --- /dev/null +++ b/docs-api/deep-validation/package.json @@ -0,0 +1,75 @@ +{ + "name": "deep-validation", + "version": "0.0.48", + "description": "DEEP Validation Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Validation", + "Forms", + "Models" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Stefan Hariton", + "email": "shariton@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "*", + "deep-core": "*", + "joi": "6.6.*", + "vogels": "2.0.0-rc10" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true, + "browser": { + "vogels": false + } +} diff --git a/docs-api/deep-validation/script/inherited-summary.js b/docs-api/deep-validation/script/inherited-summary.js new file mode 100644 index 00000000..0a35b6df --- /dev/null +++ b/docs-api/deep-validation/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/docs-api/deep-validation/script/inner-link.js b/docs-api/deep-validation/script/inner-link.js new file mode 100644 index 00000000..99d76273 --- /dev/null +++ b/docs-api/deep-validation/script/inner-link.js @@ -0,0 +1,29 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + var el = document.querySelector(location.hash); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = location.href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/docs-api/deep-validation/script/patch-for-local.js b/docs-api/deep-validation/script/patch-for-local.js new file mode 100644 index 00000000..5756d135 --- /dev/null +++ b/docs-api/deep-validation/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/docs-api/deep-validation/script/prettify/Apache-License-2.0.txt b/docs-api/deep-validation/script/prettify/Apache-License-2.0.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/docs-api/deep-validation/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs-api/deep-validation/script/prettify/prettify.js b/docs-api/deep-validation/script/prettify/prettify.js new file mode 100644 index 00000000..eef5ad7e --- /dev/null +++ b/docs-api/deep-validation/script/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/docs-api/deep-validation/script/search_index.js b/docs-api/deep-validation/script/search_index.js new file mode 100644 index 00000000..5f88cf86 --- /dev/null +++ b/docs-api/deep-validation/script/search_index.js @@ -0,0 +1,608 @@ +window.esdocSearchIndex = [ + [ + "deep-validation/lib/exception/exception.js~exception", + "class/lib/Exception/Exception.js~Exception.html", + "Exception deep-validation/lib/Exception/Exception.js", + "class" + ], + [ + "deep-validation/lib/exception/invalidschemaexception.js~invalidschemaexception", + "class/lib/Exception/InvalidSchemaException.js~InvalidSchemaException.html", + "InvalidSchemaException deep-validation/lib/Exception/InvalidSchemaException.js", + "class" + ], + [ + "deep-validation/lib/helpers/joi.js~joi", + "class/lib/Helpers/Joi.js~Joi.html", + "Joi deep-validation/lib/Helpers/Joi.js", + "class" + ], + [ + "deep-validation/lib/exception/modelnotfoundexception.js~modelnotfoundexception", + "class/lib/Exception/ModelNotFoundException.js~ModelNotFoundException.html", + "ModelNotFoundException deep-validation/lib/Exception/ModelNotFoundException.js", + "class" + ], + [ + "deep-validation/lib/objecttojoi.js~objecttojoi", + "class/lib/ObjectToJoi.js~ObjectToJoi.html", + "ObjectToJoi deep-validation/lib/ObjectToJoi.js", + "class" + ], + [ + "deep-validation/lib/exception/objectvalidationfailedexception.js~objectvalidationfailedexception", + "class/lib/Exception/ObjectValidationFailedException.js~ObjectValidationFailedException.html", + "ObjectValidationFailedException deep-validation/lib/Exception/ObjectValidationFailedException.js", + "class" + ], + [ + "deep-validation/lib/validation.js~validation", + "class/lib/Validation.js~Validation.html", + "Validation deep-validation/lib/Validation.js", + "class" + ], + [ + "builtinexternal/ecmascriptexternal.js~array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~arraybuffer", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~dataview", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~DataView", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~date", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Date", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~error", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Error", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~evalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~EvalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~float64array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Float64Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generator", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Generator", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~generatorfunction", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~infinity", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Infinity", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~int8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Int8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~internalerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~InternalError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~json", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~JSON", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~map", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Map", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~nan", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~NaN", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~promise", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Promise", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~proxy", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Proxy", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~rangeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RangeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~referenceerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~reflect", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Reflect", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~regexp", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~RegExp", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~set", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Set", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~String", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~symbol", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Symbol", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~syntaxerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~typeerror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~TypeError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~urierror", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~URIError", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint16array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint32array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8array", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~uint8clampedarray", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakmap", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakMap", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~weakset", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~WeakSet", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~boolean", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~boolean", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~function", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~function", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~null", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~null", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~number", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~number", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~object", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~object", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~string", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~string", + "external" + ], + [ + "builtinexternal/ecmascriptexternal.js~undefined", + "external/index.html", + "BuiltinExternal/ECMAScriptExternal.js~undefined", + "external" + ], + [ + "builtinexternal/webapiexternal.js~canvasrenderingcontext2d", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", + "external" + ], + [ + "builtinexternal/webapiexternal.js~documentfragment", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~DocumentFragment", + "external" + ], + [ + "builtinexternal/webapiexternal.js~element", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Element", + "external" + ], + [ + "builtinexternal/webapiexternal.js~event", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Event", + "external" + ], + [ + "builtinexternal/webapiexternal.js~node", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~Node", + "external" + ], + [ + "builtinexternal/webapiexternal.js~nodelist", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~NodeList", + "external" + ], + [ + "builtinexternal/webapiexternal.js~xmlhttprequest", + "external/index.html", + "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", + "external" + ], + [ + "lib/exception/exception.js", + "file/lib/Exception/Exception.js.html", + "lib/Exception/Exception.js", + "file" + ], + [ + "lib/exception/exception.js~exception#constructor", + "class/lib/Exception/Exception.js~Exception.html#instance-constructor-constructor", + "lib/Exception/Exception.js~Exception#constructor", + "method" + ], + [ + "lib/exception/invalidschemaexception.js", + "file/lib/Exception/InvalidSchemaException.js.html", + "lib/Exception/InvalidSchemaException.js", + "file" + ], + [ + "lib/exception/invalidschemaexception.js~invalidschemaexception#constructor", + "class/lib/Exception/InvalidSchemaException.js~InvalidSchemaException.html#instance-constructor-constructor", + "lib/Exception/InvalidSchemaException.js~InvalidSchemaException#constructor", + "method" + ], + [ + "lib/exception/modelnotfoundexception.js", + "file/lib/Exception/ModelNotFoundException.js.html", + "lib/Exception/ModelNotFoundException.js", + "file" + ], + [ + "lib/exception/modelnotfoundexception.js~modelnotfoundexception#constructor", + "class/lib/Exception/ModelNotFoundException.js~ModelNotFoundException.html#instance-constructor-constructor", + "lib/Exception/ModelNotFoundException.js~ModelNotFoundException#constructor", + "method" + ], + [ + "lib/exception/objectvalidationfailedexception.js", + "file/lib/Exception/ObjectValidationFailedException.js.html", + "lib/Exception/ObjectValidationFailedException.js", + "file" + ], + [ + "lib/exception/objectvalidationfailedexception.js~objectvalidationfailedexception#constructor", + "class/lib/Exception/ObjectValidationFailedException.js~ObjectValidationFailedException.html#instance-constructor-constructor", + "lib/Exception/ObjectValidationFailedException.js~ObjectValidationFailedException#constructor", + "method" + ], + [ + "lib/helpers/joi.js", + "file/lib/Helpers/Joi.js.html", + "lib/Helpers/Joi.js", + "file" + ], + [ + "lib/helpers/joi.js~joi.binary", + "class/lib/Helpers/Joi.js~Joi.html#static-get-binary", + "lib/Helpers/Joi.js~Joi.binary", + "member" + ], + [ + "lib/helpers/joi.js~joi.binaryset", + "class/lib/Helpers/Joi.js~Joi.html#static-get-binarySet", + "lib/Helpers/Joi.js~Joi.binarySet", + "member" + ], + [ + "lib/helpers/joi.js~joi.boolean", + "class/lib/Helpers/Joi.js~Joi.html#static-get-boolean", + "lib/Helpers/Joi.js~Joi.boolean", + "member" + ], + [ + "lib/helpers/joi.js~joi.email", + "class/lib/Helpers/Joi.js~Joi.html#static-get-email", + "lib/Helpers/Joi.js~Joi.email", + "member" + ], + [ + "lib/helpers/joi.js~joi.map", + "class/lib/Helpers/Joi.js~Joi.html#static-get-map", + "lib/Helpers/Joi.js~Joi.map", + "member" + ], + [ + "lib/helpers/joi.js~joi.mapset", + "class/lib/Helpers/Joi.js~Joi.html#static-get-mapSet", + "lib/Helpers/Joi.js~Joi.mapSet", + "member" + ], + [ + "lib/helpers/joi.js~joi.number", + "class/lib/Helpers/Joi.js~Joi.html#static-get-number", + "lib/Helpers/Joi.js~Joi.number", + "member" + ], + [ + "lib/helpers/joi.js~joi.numberset", + "class/lib/Helpers/Joi.js~Joi.html#static-get-numberSet", + "lib/Helpers/Joi.js~Joi.numberSet", + "member" + ], + [ + "lib/helpers/joi.js~joi.string", + "class/lib/Helpers/Joi.js~Joi.html#static-get-string", + "lib/Helpers/Joi.js~Joi.string", + "member" + ], + [ + "lib/helpers/joi.js~joi.stringset", + "class/lib/Helpers/Joi.js~Joi.html#static-get-stringSet", + "lib/Helpers/Joi.js~Joi.stringSet", + "member" + ], + [ + "lib/helpers/joi.js~joi.timeuuid", + "class/lib/Helpers/Joi.js~Joi.html#static-get-timeUUID", + "lib/Helpers/Joi.js~Joi.timeUUID", + "member" + ], + [ + "lib/helpers/joi.js~joi.uuid", + "class/lib/Helpers/Joi.js~Joi.html#static-get-uuid", + "lib/Helpers/Joi.js~Joi.uuid", + "member" + ], + [ + "lib/helpers/joi.js~joi.website", + "class/lib/Helpers/Joi.js~Joi.html#static-get-website", + "lib/Helpers/Joi.js~Joi.website", + "member" + ], + [ + "lib/helpers/vogelspolyfill.js", + "file/lib/Helpers/vogelsPolyfill.js.html", + "lib/Helpers/vogelsPolyfill.js", + "file" + ], + [ + "lib/objecttojoi.js", + "file/lib/ObjectToJoi.js.html", + "lib/ObjectToJoi.js", + "file" + ], + [ + "lib/objecttojoi.js~objecttojoi#baseobject", + "class/lib/ObjectToJoi.js~ObjectToJoi.html#instance-get-baseObject", + "lib/ObjectToJoi.js~ObjectToJoi#baseObject", + "member" + ], + [ + "lib/objecttojoi.js~objecttojoi#constructor", + "class/lib/ObjectToJoi.js~ObjectToJoi.html#instance-constructor-constructor", + "lib/ObjectToJoi.js~ObjectToJoi#constructor", + "method" + ], + [ + "lib/objecttojoi.js~objecttojoi#transform", + "class/lib/ObjectToJoi.js~ObjectToJoi.html#instance-method-transform", + "lib/ObjectToJoi.js~ObjectToJoi#transform", + "method" + ], + [ + "lib/validation.js", + "file/lib/Validation.js.html", + "lib/Validation.js", + "file" + ], + [ + "lib/validation.js~validation#boot", + "class/lib/Validation.js~Validation.html#instance-method-boot", + "lib/Validation.js~Validation#boot", + "method" + ], + [ + "lib/validation.js~validation#constructor", + "class/lib/Validation.js~Validation.html#instance-constructor-constructor", + "lib/Validation.js~Validation#constructor", + "method" + ], + [ + "lib/validation.js~validation#get", + "class/lib/Validation.js~Validation.html#instance-method-get", + "lib/Validation.js~Validation#get", + "method" + ], + [ + "lib/validation.js~validation#has", + "class/lib/Validation.js~Validation.html#instance-method-has", + "lib/Validation.js~Validation#has", + "method" + ], + [ + "lib/validation.js~validation#immutable", + "class/lib/Validation.js~Validation.html#instance-get-immutable", + "lib/Validation.js~Validation#immutable", + "member" + ], + [ + "lib/validation.js~validation#immutable", + "class/lib/Validation.js~Validation.html#instance-set-immutable", + "lib/Validation.js~Validation#immutable", + "member" + ], + [ + "lib/validation.js~validation#models", + "class/lib/Validation.js~Validation.html#instance-get-models", + "lib/Validation.js~Validation#models", + "member" + ], + [ + "lib/validation.js~validation#set", + "class/lib/Validation.js~Validation.html#instance-method-set", + "lib/Validation.js~Validation#set", + "method" + ], + [ + "lib/validation.js~validation#setraw", + "class/lib/Validation.js~Validation.html#instance-method-setRaw", + "lib/Validation.js~Validation#setRaw", + "method" + ], + [ + "lib/validation.js~validation#validate", + "class/lib/Validation.js~Validation.html#instance-method-validate", + "lib/Validation.js~Validation#validate", + "method" + ], + [ + "lib/validation.js~validation.normalizeschema", + "class/lib/Validation.js~Validation.html#static-method-normalizeSchema", + "lib/Validation.js~Validation.normalizeSchema", + "method" + ], + [ + "lib/bootstrap.js", + "file/lib/bootstrap.js.html", + "lib/bootstrap.js", + "file" + ] +] \ No newline at end of file diff --git a/docs-api/deep-validation/script/test-summary.js b/docs-api/deep-validation/script/test-summary.js new file mode 100644 index 00000000..2f32cb00 --- /dev/null +++ b/docs-api/deep-validation/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-describe')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-describe .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/docs-api/deep-validation/source.html b/docs-api/deep-validation/source.html new file mode 100644 index 00000000..1c741ffd --- /dev/null +++ b/docs-api/deep-validation/source.html @@ -0,0 +1,147 @@ + + + + + + Source | DEEP Validation Library API Document + + + + + + + + +
    + Home + Identifier + Source + + Repository + +
    + + + +

    Source 38/38

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    lib/Exception/Exception.jsException100 %2/2282 byte192015-10-07 19:56:07 (UTC)
    lib/Exception/InvalidSchemaException.jsInvalidSchemaException100 %2/2435 byte202015-08-04 12:54:49 (UTC)
    lib/Exception/ModelNotFoundException.jsModelNotFoundException100 %2/2327 byte192015-09-04 12:52:17 (UTC)
    lib/Exception/ObjectValidationFailedException.jsObjectValidationFailedException100 %2/2420 byte202015-09-04 12:52:17 (UTC)
    lib/Helpers/Joi.jsJoi100 %14/141587 byte1092015-09-04 12:52:17 (UTC)
    lib/Helpers/vogelsPolyfill.js--900 byte502015-09-04 12:52:17 (UTC)
    lib/ObjectToJoi.jsObjectToJoi100 %4/41322 byte692015-09-05 13:20:42 (UTC)
    lib/Validation.jsValidation100 %12/123426 byte1752015-10-07 19:56:07 (UTC)
    lib/bootstrap.js--189 byte112015-09-04 12:52:17 (UTC)
    +
    + + + + + + + + + + + + diff --git a/docs/components/asset.md b/docs/components/asset.md new file mode 100644 index 00000000..ad6185ae --- /dev/null +++ b/docs/components/asset.md @@ -0,0 +1,15 @@ +deep-asset +========== + +Examples +-------- + +```javascript +let app = DeepFramework.Kernel; +let deepAsset = app.get('asset'); + +let iconPath = deepAsset.bind(microserviceObject).locate('images/icon.png'); + +// short syntax +let iconPath = deepAsset.locate('@microservice_identifier:images/icon.png'); +``` diff --git a/docs/components/cache.md b/docs/components/cache.md new file mode 100644 index 00000000..ec202231 --- /dev/null +++ b/docs/components/cache.md @@ -0,0 +1,56 @@ +deep-cache +========= + +> In backend is used AWS ElastiCache Redis cluster and in frontend the local storage (backend cache is not supported yet by AWS) + +Examples +-------- + +```javascript +var app = DeepFramework.Kernel; +var cache = app.get('cache'); +var customCacheDriver = app.get('cache.prototype').createDriver('memory' /*, ...args */); + +cache.namespace = 'some_prefix_'; +cache.silent = true; // Don't throw an exception when calling method "get" if key doesn't exist + +cache.has('name', function(exception, result) { + if (result) { + console.log(`The key 'name' exists in cache`); + } +}); + +cache.get('name', function(exception, result) { + if (exception) { + console.log('Unable to retrieve cached item', exception); + } else { + console.log(`My name is ${result}`); + } +}); + +cache.set('name', 'AlexanderC', 60, function(exception, result) { + if (exception) { + console.log('Unable to persist item in cache', exception); + } else { + console.log(`My name is stored as AlexanderC for 1 minute`); + } +}); + +cache.invalidate('name', 60, function(exception, result) { + if (exception) { + console.log('Unable to invalidate cached item', exception); + } else { + console.log(`My name would be invalidated in a minute`); + } +}); + +// This is not implemented by all drivers +cache.flush(function(exception, result) { + if (exception) { + console.log('Unable to clean up the cache', exception); + } else { + console.log(`There are no more item stored in the cache`); + } +}); + +``` diff --git a/docs/components/core.md b/docs/components/core.md new file mode 100644 index 00000000..202e5673 --- /dev/null +++ b/docs/components/core.md @@ -0,0 +1,7 @@ +deep-core +========= + +Here are defined core functionality used internally by each core module. + + + diff --git a/docs/components/db.md b/docs/components/db.md new file mode 100644 index 00000000..20b24348 --- /dev/null +++ b/docs/components/db.md @@ -0,0 +1,96 @@ +deep-db +====== + +> DB is built on top of [Vogels](https://github.com/ryanfitz/vogels) `Active Record` implementation. +> Note that `db.get(...)` would return a native `Vogels` model that you can work with. + +Extended Model +------------------------- +Some of the default Vogels methods were wrapped in commodity methods. + +* for the next method list cb will be a callback function that will be triggered with two parameters: a error as the first, if any, and the second will be +the response for the request. + +- `Model.findAll(cb)`: Finds all the entries of a certain model. Use this consciously because it can put a lot of requests on DynamoDb, so also on your wallet. + +- `Model.findOneById(Id, cb)`: Find one entry by it's Id from the first parameter. + +- `Model.findOneBy(fieldName, fieldValue, cb)`: Finds the first entry that has the field value specified. + +- `Model.findBy(fieldName, fieldValue, cb, limit)`: Finds the entries that have the specified value with a limit. If some don't specify. +a limit, the default will be 10. + +- `Model.findAllBy(fieldName, fieldValue, cb)`: Same as the last two, but returns all the entries found. + +- `Model.findMatching(params, cb, limit)`: Gets as input a key-value object and returns the entries that correspond to it, limited by the last parameter, or +by the default 10. + +- `Model.findOneMatching(params, cb)`: Same as the above but returns only one. + +- `Model.findAllMatching(params, cb)`: Same as the above two, but returns all the entries. + +- `Model.deleteById(Id, cb)`: Deletes an entry by it's Id. + +- `Model.createItem(data, cb)`: Insert an entry to the database. + +- `Model.createUniqueOnFields(fields, data, cb)`: Creates a unique entry for the specified fields in the first parameter as an array. For example if some want +to create an unique entry on PersonalEmail and WorkEmail, the function should be called with: +```javascript +Model.createUniqueOnFields( + ["PersonalEmail", "WorkEmail"], + { + ..., + "PersonalEmail": "user@example.com", + "WorkEmail": "user.work@example.com", + ... + }, + function(err, response) {...} + ); +``` + +In this case the entry will be created if there doesn't exist any entry with the same values for both fields + +Examples +-------- + +```javascript +let app = DeepFramework.Kernel; +let db = app.get('db'); + +console.log(db.models); + +if (db.has('User')) { + let User = db.get('User'); + + User.create({ + "email": "foo-bar@example.com", + "first_name": "Foo", + "last_name": "Bar" + }, function (err, user) { + if (err) { + console.log('Error on creating user: ' + err); + } else { + console.log('Created user at', user.get('createdAt')); + + user.set({ + email: 'bar-foo@example.com' + }); + + user.update(function (err) { + if (err) { + console.log('Error on updating user email: ' + err); + } else { + console.log('Updated user email'); + } + }); + } + }); +} +``` + + + +Models Anatomy +-------------- + +See [deep-validation](validation.md#models-anatomy) `Models Anatomy` section \ No newline at end of file diff --git a/docs/components/di.md b/docs/components/di.md new file mode 100644 index 00000000..20063890 --- /dev/null +++ b/docs/components/di.md @@ -0,0 +1,19 @@ +deep-di +====== + +DI is the core module used by other components + +Examples +-------- + +```javascript +let app = DeepFramework.Kernel; +let di = app.container; + +di.addParameter('param1', 'Some value'); +di.addService('service1', SomeUserDefinedObject); + +di.register('service1', SomeServiceClass, ['param1', 'service1']); + +let service1 = di.get('service1'); +``` \ No newline at end of file diff --git a/docs/components/event.md b/docs/components/event.md new file mode 100644 index 00000000..d5193464 --- /dev/null +++ b/docs/components/event.md @@ -0,0 +1,9 @@ +deep-event +========== + +Examples +-------- + +```javascript +// TDB +``` \ No newline at end of file diff --git a/docs/components/fs.md b/docs/components/fs.md new file mode 100644 index 00000000..5584405f --- /dev/null +++ b/docs/components/fs.md @@ -0,0 +1,20 @@ +deep-fs +====== + +Examples +-------- + +```javascript +let app = DeepFramework.Kernel; +let fs = app.get('fs'); + +let public = fs.public; // this is the S3 static website hosting bucket +let system = fs.system; // persistent folder (actually S3 bucket) +let tmp = fs.tmp; // temporary folder (actually S3 bucket, cleaned up by a process) + +system.readFile('some/file.txt', function() { + // ... +}); +``` + +> `deep-fs` module is built on top of [s3fs](https://github.com/RiptideCloud/s3fs) that mimics nodejs native `fs` module \ No newline at end of file diff --git a/docs/components/kernel.md b/docs/components/kernel.md new file mode 100644 index 00000000..66901119 --- /dev/null +++ b/docs/components/kernel.md @@ -0,0 +1,27 @@ +deep-kernel +========== + +Examples +-------- + +```javascript +let app = DeepFramework.Kernel; + +let currentMicroservice = app.microservice(); +let someMicroservice = app.microservice('someOther.microservice.identifier'); + +console.log(app.microservices); // list available microservices +console.log(app.services); // loaded core services prototypes + +let di = app.container; + +if (di.get('service1') === app.get('service1')) { + console.log('Kernel proxies get method to container'); +} + +if (app.isFrontend) { + console.log('deep-framework runs in browser'); +} else if(app.isBackend) { + console.log('deep-framework runs in nodejs'); +} +``` \ No newline at end of file diff --git a/docs/components/log.md b/docs/components/log.md new file mode 100644 index 00000000..8f9fdc90 --- /dev/null +++ b/docs/components/log.md @@ -0,0 +1,47 @@ +deep-log +======== + +Basic usage +----------- + +```javascript +let app = DeepFramework.Kernel; +let log = app.get('log'); + +log.log('sample error', 'error', {sample_context_var: 'some value'}); + +/** + ==== Available levels ==== + + Log.EMERGENCY -> emergency + Log.ALERT -> alert + Log.CRITICAL -> critical + Log.ERROR -> error + Log.WARNING -> warning + Log.NOTICE -> notice + Log.INFO -> info + Log.DEBUG -> debug +*/ +``` + +Working with drivers +-------------------- + +```javascript +let log = app.get('log'); + +let sentryDsn = 'https://ljh3bohb3l5jhb3kjh5bhbkjhbjjtfiytjv@app.getsentry.com/12345'; + +let consoleDriver = log.create('console'); +let sentryDriver = log.create('sentry', sentryDsn); // aka raven + +// register drivers first +log + .register(consoleDriver) + .register(sentryDriver) + // .register('console') + +console.log(log.drivers); // the list of available drivers + +log.log('sample error', 'error', {sample_context_var: 'some value'}); +``` \ No newline at end of file diff --git a/docs/components/notification.md b/docs/components/notification.md new file mode 100644 index 00000000..38d34cf6 --- /dev/null +++ b/docs/components/notification.md @@ -0,0 +1,9 @@ +deep-notification +================= + +Examples +-------- + +```javascript +// TDB +``` \ No newline at end of file diff --git a/docs/components/resource.md b/docs/components/resource.md new file mode 100644 index 00000000..357c1987 --- /dev/null +++ b/docs/components/resource.md @@ -0,0 +1,67 @@ +deep-resource +============= + +Examples +-------- + +```javascript +let app = DeepFramework.Kernel; +let resource = app.get('resource'); + +// list all resources from all microservices +console.log(resource.list); + +// accessing one resource +let userResource = resource.get('@deep.microservices.helloworld:user'); + +// listing resource actions +console.log(userResource.actions); + +// accessing one action +if (userResource.has('retrieve')) { + let retrieveUserAction = userResource.action('retrieve'); +} + +// making a request from resource object +let payload = { + id: '' +} + +userResource.request('retrieve', payload, 'GET').send(function(response) { + if (response.isError) { + throw new Error(response.error); + } else { + console.log(response.data); + } +}); + +// making a request from action object +retrieveUserAction.request(payload, 'GET').send(function(response) { + if (response.isError) { + throw new Error(response.error); + } else { + console.log(response.data); + } +}); + +// let's cache it for a minute (Note: by default each request is cached for 10 seconds!) +let retrieveUserRequest = userResource.request('retrieve', payload); + +retrieveUserRequest.cache(60).send(function(response) { + if (response.isError) { + throw new Error(response.error); + } else { + console.log(response.data); + } +}); + +// predefined cache values: +retrieveUserRequest.cache(-1) // invalidate cache +retrieveUserRequest.cache(0) // cache forever + +// You can disable cache for a request +retrieveUserRequest.disableCache() + +// ...or invalidate the stored cache (if available) +retrieveUserRequest.invalidateCache() +``` diff --git a/docs/components/security.md b/docs/components/security.md new file mode 100644 index 00000000..be30946f --- /dev/null +++ b/docs/components/security.md @@ -0,0 +1,9 @@ +deep-security +============ + +Examples +-------- + +```javascript +// TDB +``` \ No newline at end of file diff --git a/docs/components/validation.md b/docs/components/validation.md new file mode 100644 index 00000000..65f7b570 --- /dev/null +++ b/docs/components/validation.md @@ -0,0 +1,65 @@ +deep-validation +============== + +Examples +-------- + +```javascript +let app = DeepFramework.Kernel; +let validation = app.get('validation'); + +console.log(validation.models); + +if (validation.has('User')) { + let model = validation.get('User'); +} + +validation.set('User1', joiSchemaObject); +validation.setRaw('User2', modelAlikeSchemaObject); + +let validatedUserObject = validation.validate('User1', {...}); +``` + +> `deep-db` models are loaded from `deep-validation` + +> [Vogels](https://github.com/ryanfitz/vogels) types are built in + +Models Anatomy +-------------- + +Here's a sample model: + +```json +{ + "FirstName": "string", + "LastName": "string", + "Email": "string", + "Age": "number", + "Phones": { + "Work": "string", + "Mobile": "string" + }, + "Location": { + "Country": "string", + "City": "string", + "Address": "string", + "Zip": "string" + } +} +``` + +> Field types are strings mapped internally to [Joi](https://github.com/hapijs/joi) validation schemas. + +The following types are supported: + +- uuid +- timeUUID (mainly used as unique identifier) +- stringSet +- numberSet +- binarySet +- binary +- number +- string +- boolean +- email +- website \ No newline at end of file diff --git a/docs/config/.deepignore.md b/docs/config/.deepignore.md new file mode 100644 index 00000000..b9511270 --- /dev/null +++ b/docs/config/.deepignore.md @@ -0,0 +1,5 @@ +`.deepignore` config +==================== + +`.deepignore` configuration file is used to ignore certain file or folders. +It's a standard ignore file. diff --git a/docs/deep-architecture.png b/docs/deep-architecture.png new file mode 100644 index 00000000..123bb697 Binary files /dev/null and b/docs/deep-architecture.png differ diff --git a/docs/deep-ecosystem.png b/docs/deep-ecosystem.png new file mode 100644 index 00000000..c3a3260c Binary files /dev/null and b/docs/deep-ecosystem.png differ diff --git a/docs/framework.md b/docs/framework.md new file mode 100644 index 00000000..4809169e --- /dev/null +++ b/docs/framework.md @@ -0,0 +1,61 @@ +deep-framework +============= + +Main modules: +----------- + +- [deep-asset](components/asset.md) (Managing and accessing assets) +- [deep-cache](components/cache.md) (Cache management) +- [deep-core](components/core.md) (Core features and base functionality) +- [deep-validation](components/validation.md) (Validation engine widely used in framework) +- [deep-db](components/db.md) (Database abstraction layer based on Active Record pattern) +- [deep-di](components/di.md) (Dependency Injection) +- [deep-event](components/event.md) (Cross runtime event system) +- [deep-fs](components/fs.md) (File system abstraction layer that mimics NodeJS js fs base module) +- [deep-kernel](components/kernel.md) (Kernel module that combines all the beans together) +- [deep-log](components/logs.md) (Logging components) +- [deep-notification](components/notification.md) (Broadcasting notifications to the end user) +- [deep-resource](components/resource.md) (Resources management and invocation) +- [deep-security](components/security.md) (Managing and injecting user context into the runtime) + +The deep-framework Anatomy +------------------------- + +Each DEEP framework module except the basis (`deep-core`) uses `deep-kernel` and `deep-di`. + +`deep-kernel` enforces each module to extend a `Kernel.ContainerAware` abstract class +that is loaded in runtime into a service. + +> `deep-kernel` transforms each module into a service (ex. `deep-db` as `db`, `deep-log` as `logs` etc.) + +`Kernel.ContainerAware` makes possible you to bind a microservice instance using `.bind(microserviceObject)` method. + +> Be aware- a service action that requires a `microservice` would throw an error if it is missing + +Initializing and using the app +------------------------------ + +```javascript +import deep-framework from 'deep-framework'; + +let app = DeepFramework.Kernel; + +app.loadFromFile("_config.json", function() { + // your application was initialized + + let fs = app.container.get('fs'); // deep-fs service + let asset = app.get('asset'); // deep-asset service + + let helloWorldMicroservice = app.microservice('deep.microservices.helloworld'); // microservice instance + let currentMicroservice = app.microservice(); // current microservice instance + + let microserviceAwareAsset = asset.bind(helloWorldMicroservice); + microserviceAwareAsset = asset.bind('deep.microservices.helloworld'); + + let iconPath = microserviceAwareAsset.locate('images/icon.png'); + let sameIconPath = asset.locate('@deep.microservices.helloworld:images/icon.png'); +}); +``` + +> Note that mainly all the services implements `path resolving feature`: `'@xxxx:yyyy'` where `xxxx` is the +> microservice identifier and `yyyy` is some service specific descriptor diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 00000000..404213c2 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,40 @@ +DEEP +==== + +This Platform-as-a-Service consists from [DEEP Framework](https://www.npmjs.com/package/deep-framework) at lower level and [DEEP Microservices](https://github.com/MitocGroup/deep-microservices-todo-app) on higher level. + +The Anatomy +----------- + +[DEEP Framework](https://www.npmjs.com/package/deep-framework) is the base of every microservice +and gives the developers the opportunity to reduce the learning curve of AWS services and infrastructure +and make possible pushing code from the very first day. It helps to avoid calling AWS resources +directly rather than using a developer friendly environment and tools to achieve highest performance +and lower cost of the development process and results into a fast, reliable and successful application. + +[DEEP Microservices](https://github.com/MitocGroup/deep-microservices-todo-app) is the minimal functional +codebase which consists each web app that contains a couple of backend resources and a frontend on top of it. + +Quick start +----------- + +- Open terminal (console) +- Install `git` and `nodejs` +- Execute `npm install deepify -g` in order to setup [DEEP Development Tools](https://github.com/MitocGroup/deep/blob/dev/docs/tools.md) +- Execute `deepify helloworld path/to/web_app` to dump the basic `Hello World` example +- Execute `deepify server path/to/web_app -o` to run your web app locally +- Execute `deepify deploy path/to/web_app` to run your web app on AWS + +Security +-------- + +Security is one of the most important things to take into consideration when working on AWS. +Follow the [step by step guide](security/secure-aws-credentials.md) of creating secured AWS +credentials to be used with `DEEP`. + +Links +----- + +- [Deep Framework](framework.md) +- [Deep Microservice](microservice.md) +- [Deep Tools](tools.md) diff --git a/docs/microservice.md b/docs/microservice.md new file mode 100644 index 00000000..e67a1269 --- /dev/null +++ b/docs/microservice.md @@ -0,0 +1,156 @@ +DEEP Microservice +================= + +Structure +--------- + +- `DeepHelloWorld`/ + - `Frontend`/ # @see [structure](structure/frontend.md) + - `.deepignore` # @see [docs](config/.deepignore.md) + - `_build` # If exists, DEEP uses this folder by default and ignores everything else in `Frontend` + - `bootstrap.js` # **required** + - `index.html` # **required** for root microservice + - `css`/ + - `js`/ + - `images`/ + - ... + - `Backend`/ + - `resources.json` # **required** + - `src`/ + - `SayHello`/ + - `package.json` # **required** + - `bootstrap.js` # **required** + - `Handler.js` + - ... + - `Models`/ + - `User.json` + - `Property.json` + - ... + - `Docs`/ + - `index.md` + - ... + - `Tests`/ # @see [structure](test/unit_testing.md) + - Backend + - Frontend + - ... + - `deepkg.json` # **required** + - `parameters.json` + +Configuration file (`deepkg.json`) +---------------------------------- + +```javascript +{ + "identifier": "deep.microservices.helloworld", // unique across the DEEP, used to retrieve certain microservices in framework and system wise + "name": "HelloWorld", // non unique, human readable microservice name + "description": "Say hello to the world...", // optional microservice description + "version": "0.0.1", // microservice version compatible with semantical versioning syntax (same as NPM) + "propertyRoot": true, // flag that indicates that microservice is treated a a root one (must contain an `Frontend/index.html` file) + "author": { // the list of authors + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "website": "www.mitocgroup.com" + }, + "contributors": [ // the list of contributors + { + "name": "DEEP Dev Team", + "email": "hello@deep.mg", + "website": "www.deep.mg" + } + ], + "tags": [ + "DEEP", "sample" + ], + "frontendEngine": ["angular"], // The engine used in frontend. Optional, default ["angular"] + "dependencies": { // a list of other microservices that the current one depends on + "deep.microservices.helloworld": "~1.0.*" + }, + "autoload": { // optional override path of the microservice components + "frontend": "Frontend/", + "backend": "Backend/", + "models": "Models/", + "docs": "Docs/" + } +} +``` + +Resources file (`resources.json`) +--------------------------------- + +> Be aware that `resource` and `action` names have to be LOWERCASE (use dashes for delimiting things)! + +```javascript +{ + "user": { + "retrieve": { + "description": "Retrieves a user", // description of the functionality + "type": "lambda", // resource type (supported: `lambda`, `external`) + "methods": ["GET"], // supported HTTP methods + "source": "src/User/Retrieve", // the source of the resource (ex. for external type: http://example.com/api/v1/users) + "engine": { // only available for `"type": "lambda"` + "memory": 512, // max. amount of RAM allocated to a lambda (default 128, max. 1536) + "timeout": 30, // timeout Lambda runs within, (max. 60) + "runtime": "nodejs" // Lambda runtime engine (default nodejs) + } + }, + "other-action": { + ... + } + }, + "other-resource": { + "other-action": { + ... + } + } +} +``` + +> Note that only `nodejs` Lambda runtime is currently supported by the dev server + +Custom parameters (`parameters.json`) +------------------------------------- + +```javascript +{ + "frontend": { // shared in frontend only + "key1": { + "type": "string", + "required": "false" + }, + ... + }, + "backend": { // shared in backend only + "key1": { + "type": "string", + "required": "false" + }, + ... + } +} + +``` + +> Note that `root` microservice can contain a `globals` section shared with both frontend and backend + +[Read More](https://github.com/raml-org/raml-spec/blob/master/raml-0.8.md#named-parameters) about RAML parameters... + +Example of `globals` section +---------------------------- + +```javascript +{ + "globals": { + "userProviderEndpoint": { + "displayName": "User Provider Endpoint", + "type": "string", + "required": true, + "pattern": "^@[^:]+:.+$", + "example": "@deep.auth:user-retrieve", + "default": "@deep.auth:user-retrieve" + }, + ... + }, + "frontend": ... + "backend": ... +} +``` diff --git a/docs/security/assets/apply-policy-button.png b/docs/security/assets/apply-policy-button.png new file mode 100644 index 00000000..3cde316c Binary files /dev/null and b/docs/security/assets/apply-policy-button.png differ diff --git a/docs/security/assets/attach-policy-button.png b/docs/security/assets/attach-policy-button.png new file mode 100644 index 00000000..28b530eb Binary files /dev/null and b/docs/security/assets/attach-policy-button.png differ diff --git a/docs/security/assets/attach-policy-list-button.png b/docs/security/assets/attach-policy-list-button.png new file mode 100644 index 00000000..dbc3f9ea Binary files /dev/null and b/docs/security/assets/attach-policy-list-button.png differ diff --git a/docs/security/assets/aws-secure-deep-policy.json b/docs/security/assets/aws-secure-deep-policy.json new file mode 100644 index 00000000..69049988 --- /dev/null +++ b/docs/security/assets/aws-secure-deep-policy.json @@ -0,0 +1,19 @@ +{ + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "iam:CreateRole", + "iam:PutRolePolicy", + "iam:List*", + "iam:Get*", + "iam:Delete*", + "iam:Pass*", + "iam:Attach*", + "iam:Upload*" + ], + "Resource": "*" + } + ] +} \ No newline at end of file diff --git a/docs/security/assets/click-here-link.png b/docs/security/assets/click-here-link.png new file mode 100644 index 00000000..19300a21 Binary files /dev/null and b/docs/security/assets/click-here-link.png differ diff --git a/docs/security/assets/close-credentials-button.png b/docs/security/assets/close-credentials-button.png new file mode 100644 index 00000000..2dfbd74c Binary files /dev/null and b/docs/security/assets/close-credentials-button.png differ diff --git a/docs/security/assets/console-login.png b/docs/security/assets/console-login.png new file mode 100644 index 00000000..48db4de3 Binary files /dev/null and b/docs/security/assets/console-login.png differ diff --git a/docs/security/assets/create-button.png b/docs/security/assets/create-button.png new file mode 100644 index 00000000..80c452f9 Binary files /dev/null and b/docs/security/assets/create-button.png differ diff --git a/docs/security/assets/credentials-dropdown.png b/docs/security/assets/credentials-dropdown.png new file mode 100644 index 00000000..9b56c17d Binary files /dev/null and b/docs/security/assets/credentials-dropdown.png differ diff --git a/docs/security/assets/custom-policy-item.png b/docs/security/assets/custom-policy-item.png new file mode 100644 index 00000000..230f6243 Binary files /dev/null and b/docs/security/assets/custom-policy-item.png differ diff --git a/docs/security/assets/enter-user-names.png b/docs/security/assets/enter-user-names.png new file mode 100644 index 00000000..6e5fb242 Binary files /dev/null and b/docs/security/assets/enter-user-names.png differ diff --git a/docs/security/assets/iam-service.png b/docs/security/assets/iam-service.png new file mode 100644 index 00000000..94223bdf Binary files /dev/null and b/docs/security/assets/iam-service.png differ diff --git a/docs/security/assets/inline-policies-section.png b/docs/security/assets/inline-policies-section.png new file mode 100644 index 00000000..e2a60103 Binary files /dev/null and b/docs/security/assets/inline-policies-section.png differ diff --git a/docs/security/assets/make-credentials-inactive.png b/docs/security/assets/make-credentials-inactive.png new file mode 100644 index 00000000..4ef8341b Binary files /dev/null and b/docs/security/assets/make-credentials-inactive.png differ diff --git a/docs/security/assets/new-users-button.png b/docs/security/assets/new-users-button.png new file mode 100644 index 00000000..2ec3dfa8 Binary files /dev/null and b/docs/security/assets/new-users-button.png differ diff --git a/docs/security/assets/policy-document-textarea.png b/docs/security/assets/policy-document-textarea.png new file mode 100644 index 00000000..77070dda Binary files /dev/null and b/docs/security/assets/policy-document-textarea.png differ diff --git a/docs/security/assets/policy-name-text-field.png b/docs/security/assets/policy-name-text-field.png new file mode 100644 index 00000000..25503763 Binary files /dev/null and b/docs/security/assets/policy-name-text-field.png differ diff --git a/docs/security/assets/policy-names-list.png b/docs/security/assets/policy-names-list.png new file mode 100644 index 00000000..d45c0153 Binary files /dev/null and b/docs/security/assets/policy-names-list.png differ diff --git a/docs/security/assets/services-dropdown.png b/docs/security/assets/services-dropdown.png new file mode 100644 index 00000000..86375064 Binary files /dev/null and b/docs/security/assets/services-dropdown.png differ diff --git a/docs/security/assets/user-list.png b/docs/security/assets/user-list.png new file mode 100644 index 00000000..242276c7 Binary files /dev/null and b/docs/security/assets/user-list.png differ diff --git a/docs/security/assets/users-item.png b/docs/security/assets/users-item.png new file mode 100644 index 00000000..f2d4a95b Binary files /dev/null and b/docs/security/assets/users-item.png differ diff --git a/docs/security/secure-aws-credentials.md b/docs/security/secure-aws-credentials.md new file mode 100644 index 00000000..5d6d4f89 --- /dev/null +++ b/docs/security/secure-aws-credentials.md @@ -0,0 +1,106 @@ +Creating secured AWS credentials +-------------------------------- + +In order to avoid excessive bills in case your AWS account get hacked +you may create secured credentials that suits DEEP requirements. + +The AWS Services we are giving access to: + - [Lambda](https://aws.amazon.com/lambda/) + - [ElastiCache](https://aws.amazon.com/elasticache/) (disabled until VPC is available in lambdas) + - [S3](https://aws.amazon.com/s3/) + - [DynamoDB](https://aws.amazon.com/dynamodb/) + - [CloudFront](https://aws.amazon.com/cloudfront/) + - [APIGateway](https://aws.amazon.com/api-gateway/) + - [Cognito](https://aws.amazon.com/cognito/) + - [IAM](https://aws.amazon.com/iam/) + +The steps +========= + + - Sign in to the `AWS Console` + +![AWS Console login button](assets/console-login.png) + + - Choose `IAM` service from the `Services` dropdown + +![Services dropdown](assets/services-dropdown.png) + +![IAM Service](assets/iam-service.png) + + - Choose `Users` from the sidebar + +![Users sidebar item](assets/users-item.png) + + - Click the `Create New Users` button + +![Create New Users button](assets/new-users-button.png) + + - Enter an username in one of the `Enter User Names` text fields + +![Enter User Names text fields](assets/enter-user-names.png) + + - Click `Create` at the bottom of the page + +![Create button](assets/create-button.png) + + - Click on the `Hide User Security Credentials` spoiler link and SAVE your security credentials + +![Credentials spoiler link](assets/credentials-dropdown.png) + + - Click on the `Close` button TWICE at the bottom of the page + +![Close button](assets/close-credentials-button.png) + + - Click on your user from the user list + +![User list](assets/user-list.png) + + - Click on the `Attach Policy` button from the `Permissions` section + +![Attach Policy button](assets/attach-policy-button.png) + + - Select the following items from the list of `Policy Name`s: + - [AWSLambdaFullAccess](https://console.aws.amazon.com/iam/home?region=us-west-2#policies/arn:aws:iam::aws:policy/AWSLambdaFullAccess) + - [AmazonElastiCacheFullAccess](https://console.aws.amazon.com/iam/home?region=us-west-2#policies/arn:aws:iam::aws:policy/AmazonElastiCacheFullAccess) + - [AmazonS3FullAccess](https://console.aws.amazon.com/iam/home?region=us-west-2#policies/arn:aws:iam::aws:policy/AmazonS3FullAccess) + - [AmazonDynamoDBFullAccess](https://console.aws.amazon.com/iam/home?region=us-west-2#policies/arn:aws:iam::aws:policy/AmazonDynamoDBFullAccess) + - [CloudFrontFullAccess](https://console.aws.amazon.com/iam/home?region=us-west-2#policies/arn:aws:iam::aws:policy/CloudFrontFullAccess) + - [AmazonAPIGatewayAdministrator](https://console.aws.amazon.com/iam/home?region=us-west-2#policies/arn:aws:iam::aws:policy/AmazonAPIGatewayAdministrator) + - [AmazonCognitoPowerUser](https://console.aws.amazon.com/iam/home?region=us-west-2#policies/arn:aws:iam::aws:policy/AmazonCognitoPowerUser) + +![Policy Names list](assets/policy-names-list.png) + + - Click on the `Attach Policy` button at the bottom of the page + +![Attach Policy button](assets/attach-policy-list-button.png) + + - Go to the `Inline Policies` section and click on the arrow from the right side to open the spoiler + +![Inline Policies section](assets/inline-policies-section.png) + + - Click on the `click here` link inside the `Inline Policies` spoiler + +![click here link](assets/click-here-link.png) + + - Select the `Custom Policy` list item and than on the appeared `Select` button + +![Custom Policy item](assets/custom-policy-item.png) + + - Copy the content of [secured IAM policy](assets/aws-secure-deep-policy.json) into the `Policy Document` text area + +![Policy Document text area](assets/policy-document-textarea.png) + + - Type a name for the policy in `Policy Name` text field + +![Policy Name text field](assets/policy-name-text-field.png) + + - Click on the `Apply Policy` button from the bottom of the page + +![Apply Policy button](assets/apply-policy-button.png) + + - Done! + +> Using credentials in the [deploy config](../tools/deploy.md#example-of-deeployjson) + +> If your credentials were compromised you can make them inactive by clicking `Make Inactive` link +> from the `Actions` section in `Access Keys` of the chosen user ![Make Inactive](assets/make-credentials-inactive.png) \ No newline at end of file diff --git a/docs/structure/frontend.md b/docs/structure/frontend.md new file mode 100644 index 00000000..87fc6755 --- /dev/null +++ b/docs/structure/frontend.md @@ -0,0 +1,90 @@ +Frontend Structure +================== + + +Structure +--------- + +- `Frontend`/ + - `bootstrap.js` (required by DEEP) + - `index.html` (required by DEEP for an root microservice only) + - `fonts`/ + - `img`/ + - `stylesheets`/ + - `sass`/ + - `js`/ + - `package.json` (required by JSPM) + - `config.{functionality}.js` (used by JSPM, ex. `config.property.js`) + - `app`/ + - `angular`/ (library specific application) + - `controllers`/ + - `directives`/ + - `filters`/ + - `module`/ + - `services`/ + - `views`/ + - `index.js` (mandatory in old app) + - `name.js` (mandatory in old app) + - `lib`/ (for non JSPM dependencies) + - `vendor`/ (created by JSPM using package.json config) + + +How to set up JSPM +------------------ + +1. Save your `dependencies` from your old `package.json`. +2. Create file `package.json` and insert the text below and change it corresponding to your microservice. + ```javascript + { + "name": "DeepMg{functionality}", //exanple DeepMgBilling, DeepMgCore + "version": "0.0.0", + "description": "DEEP Micro Services {functionality}", //exanple Billing, Core + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "build": "npm run build:styles && npm run build:modules", + "build:modules": "jspm bundle js/app/angular/index lib/modules_bundle.min.js --minify --skip-source-maps --inject", + "build:modules:sfx": "jspm bundle-sfx app/angular/index lib/modules_bundle.sfx.min.js --minify", + "build:styles": "sass --scss ../sass/main.scss ../stylesheets/main.min.css -E 'UTF-8'" + }, + "jspm": { + "directories": { + "baseURL": "..", + "lib": "", + "ss": "", + "packages": "vendor" + }, + "configFile": "config.{functionality}.js", // ex. config.billing.js, config.core.js + "dependencies": { + // Your dependencies goes here + }, + "devDependencies": { + "traceur": "github:jmcriffey/bower-traceur@0.0.88", + "traceur-runtime": "github:jmcriffey/bower-traceur-runtime@0.0.88" + } + } + } + + ``` +3. In the terminal type `~#: cd {project_root}/{microservice}/Frontend/js` and than `~#: jspm init && jspm install`. + +Setup img and fonts directories (if you are using `WebStorm`) +----------------------------------------------------------- + +1. Move all your `*.sass` files in `sass/` directory. +2. Right click on `sass/` directory and select `Replace in path...`. +3. Write in Text to find: `assets/img` and in Replace with `img` and hit find, in pop up window click `All Files`. +4. Right click on `sass/` directory and select `Replace in path...`. +5. Write in Text to find: `assets/fonts` and in Replace with `fonts` and hit find, in pop up window click `All Files`. + +Angular application naming convention +-------------------------------------- + +Because of possible conficts with third-party microservices, while creating angular application, you should follow this name standard: `{microservice_name or microservice_identifier}{component_name}` + +Examples: +- controller - `DeepAuthSignInController` +- service - `DeepAuthMsAuthentication` +- filter - `deepAuthNumberWithWords` +- route name - `deep.auth.signin` +- directive - `deepAuthProfilePopup` +- module name - `deep.auth` diff --git a/docs/test/unit_testing.md b/docs/test/unit_testing.md new file mode 100755 index 00000000..f230bc6d --- /dev/null +++ b/docs/test/unit_testing.md @@ -0,0 +1,261 @@ +# Unit testing setup + + +### 1. Fix package.json + +Install globally packages below: + +```js +"devDependencies": { + "jspm": "^0.15.7", +}, +``` + +### 2. Fix package.json + +In /DeepMgYourServiceName/Frontend/js/package.json need to add to npm devDependencies: + +```js +"devDependencies": { + "jspm": "^0.15.7", +}, +``` + +### 3. Install dependencies + +From /DeepMgYourServiceName/Frontend/js/ folder need to run: + +```sh +npm install +``` + +### 4. Create folders in for Backend and Frondend unit tests in /DeepMgYourServiceName/Tests/ folder: + +```sh +mkdir Frondend Backend +``` + +### 5. Karma configuration + +Don’t add your styling inside of a tag or in the HEAD, use external .css files. Keeping your CSS files separate means that future pages can link to them and use the same code, so changing the design on multiple pages becomes easy. + +Copy config.karma.js from (https://github.com/MitocGroup/deep-management/blob/dev/DeepMgProperty/Tests/Frontend/config.karma.js) to in /DeepMgYourServiceName/Tests/Frontend/ folder . This karma configuration file defines which files should be uploaded, tested and so on; which plugins, preprocessors will be used; coverage report path, reports format, karma modes, debug level - please refer to the official docs for more details http://karma-runner.github.io/0.13/config/configuration-file.html . + +> Note: Karma is essentially a tool which spawns a web server that executes source code against test code for each of the browsers connected. + +Change line 34 in config.karma.js +from: + config: 'config.property.js', +to: + config: 'config..js', + +For example, 'config.auth.js', 'config.billing.js', 'config.core.js', ‘config.photo.js’. + +### 6. Adding health checks + +Copy folders from (https://github.com/MitocGroup/deep-management/tree/dev/DeepMgProperty/Tests/Frontend/angular) folder to /DeepMgYourServiceName/Tests/angular/ folder. + +Here you can find some details about folders: + + controllers (empty folder) - files with unit tests for controllers + directives (empty folder) - files with unit tests for directives + filters (empty folder) - files with unit tests for filters + health-checks (non-empty file, please leave all tests in this file, we will use it to test if are karma+istambul+jasmine+angular installed correctly) - file with health check tests + +### 7. Launch unit testing + +To run test and enjoy please run from root folder: + +```sh +karma start DeepMgYourServiceName/Tests/Frontend/config.karma.js +``` + +### 8. To get started with Travis CI + +* Sign in to Travis CI with your GitHub account, accepting the GitHub access permissions confirmation. + +* Once you’re signed in, and we’ve synchronized your repositories from GitHub, go to your profile page and enable Travis CI for the repository you want to build. + +> Note: You can only enable Travis CI builds for repositories you have admin access to. + +* Add a .travis.yml file to your repository to tell Travis CI what to build: + + +```sh +language: node_js +sudo: false +node_js: +- '0.11' +- '0.12' + +branches: + only: + - master + - stage + - test + - dev + +before_install: +- npm install -g jspm +- if [ -f 'package.json' ]; then echo "package.json already exists"; else cp test/package.json . ; fi +- test/bin/setup_npm.sh + +# run codacy and coveralls to analyse code and send coverage reports to them +after_success: +- npm run codacy +- npm run coveralls +``` + + +### 9. FAQ +1. If you encounter the following: +```sh +GitHub rate limit reached. To increase the limit use GitHub authentication. +Run jspm endpoint config github to set this up. +``` +Steps to fix: +1.1. Go to https://github.com/settings/tokens + +1.2. Create a token , label it "Travis" + +1.3. Copy paste the token + +1.4. To support private GitHub, simply authenticate with your private GitHub account (You'll be asked for the token): + + ```sh + jspm registry config github + ``` + + ```sh + Would you like to set up your GitHub credentials? [yes]: + If using two-factor authentication or to avoid using your password you can generate an access token at https://github.com/settings/applications. +
    + Enter your GitHub username: username + Enter your GitHub password or access token: + Would you like to test these credentials? [yes]: + ``` + + This will enable private repo installs. + +1.5. Run the ```jspm registry export``` command will export the list of commands needed to recreate exactly that registry through configuration calls to jspm: + + ```sh + jspm config registries.github.remote https://github.jspm.io + jspm config registries.github.auth JSPM_GITHUB_AUTH_TOKEN + jspm config registries.github.maxRepoSize 100 + jspm config registries.github.handler jspm-github + ``` + + > JSPM_GITHUB_AUTH_TOKEN: unencrypted Base64 encoding of your GitHub username and password or access token + +1.6. [Install travis-cli](https://github.com/travis-ci/travis.rb#installation) + + ```sh + $ ruby -v + ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14] + ``` + + ```sh + $ gem install travis -v 1.8.0 --no-rdoc --no-ri + ``` + + ```sh + $ travis version + 1.8.0 + ``` + +1.7. Go to the root of your repo, encrypt the token your ```JSPM_GITHUB_AUTH_TOKEN ``` + + ```sh + travis encrypt 'JSPM_GITHUB_AUTH_TOKEN=[JSPM_GITHUB_AUTH_TOKEN]' + ``` + outputs your ```ENCRYPTED_STRING``` + +1.8. Include in your ```.travis.yml``` + + env: + global: + - secure: [ENCRYPTED_STRING] + + before_install: + - npm install -g jspm + - jspm config registries.github.auth $JSPM_GITHUB_AUTH_TOKEN + +1.9. Optional + + ```sh + nano ~/.jspm/config + ``` + + remove the ```registries.github``` part so that the token will only be used by Travis (not by you). + +2. How to init karma? + + +2.1. Steps to do: +Run `karma init config.karma.js` in your `${MICROSERVICE}/Tests/Frontend` path: + +```sh +Which testing framework do you want to use ? `jasmine` +Do you want to use Require.js ? `no` +Do you want to capture any browsers automatically ? `PhantomJS` +What is the location of your source and test files ? `Tests/Frontend/angular/**/*.spec.js` +Should any of the files included by the previous patterns be excluded ? ` ` +Do you want Karma to watch all the files and run the tests on change ? `no` +``` + +3. How to make troubleshooting? + +3.1. Steps to check if ```Babel can not call Class as Function``` + +``` +Cannot call a class as a function at _classCallCheck ... +``` +**Solution:** Rewrite all classes provided to angular as function from: + +``` +class MyService{}; + +angular.module(MODULE_NAME).service('MyService', MyService); +``` +to + +``` +class MyService{}; + +angular.module(MODULE_NAME).service('MyService', [function() { + return new MyService(); +}]); +``` + +3.1. Steps to check if ```Dependencies do not get injected``` + +``` +Failed to instantiate module ${module name} due to: +TypeError: 'undefined' is not an object +``` +**Solution** Use inline array annotations instead of $inject Property Annotation + +``` +class MyService{ + constructor(dependency) {} +}; + +MyService.$inject = ['dependency']; + +angular.module(MODULE_NAME).service('MyService', ['dependency', function(dependency) { + return new MyService(dependency); +}]); +``` + +change to + +``` +class MyService{ + constructor(dependency) {} +}; + +angular.module(MODULE_NAME).service('MyService', ['dependency', function(dependency) { + return new MyService(dependency); +}]); +``` \ No newline at end of file diff --git a/docs/tools.md b/docs/tools.md new file mode 100644 index 00000000..e130265b --- /dev/null +++ b/docs/tools.md @@ -0,0 +1,84 @@ +DEEP Development Tools +====================== + +Tools set is indeed to help developers to focus on the code and not on infrastructure management. + +Entry point of each command is the executable `deepify` (ex. `deepify deploy`, `deepify undeploy`). + +> Type `deepify --help` in order to get some info. + +> `deepify --version` or `deepify [command] --version` will print out the current wrapper/command version + +Running Lambda locally +---------------------- + +In order to test lambdas before deploying them you are able to use lambda binary. + +```bash +~#: deepify lambda tests/lambda/handler_hello.js --event='{"name":"Developer"}' +``` + +For more details read [documentation](tools/lambda.md) + +Running development server +-------------------------- + +To start local development server you have to run + +```bash +~#: deepify server path/to/web_app +``` + +For more details read [documentation](tools/server.md) + +Dependencies management locally +------------------------------- + +In order to push microservices from local machine use `deepify push-deps` command, +as well as to pull - use `deepify pull-deps` command. Dependencies are uploaded to +or downloaded from specified S3 bucket. + +```bash +~#: deepify push-deps path/to/web_app +``` + +```bash +~#: deepify pull-deps path/to/web_app +``` + +For more details read [documentation](tools/deps.md) + +Creating/Updating web apps on local machine +------------------------------------------- + +In order to publish microservices from local machine use `deepify deploy` command. + +```bash +~#: deepify deploy path/to/web_app +``` + +> Note that the command would look for an internal config to update an web app + +For more details read [documentation](tools/deploy.md) + +Dump the "Hello World" web app +------------------------------ + +In order to dump the "Hello World" sample web app into `path/to/web_app` run the following command: + +```bash +~#: deepify helloworld path/to/web_app +``` + +For more details read [documentation](tools/helloworld.md) + +Remove provisioning and uploaded data +------------------------------------- + +In order to remove provision created for `path/to/web_app` run the following command: + +```bash +~#: deepify undeploy path/to/web_app +``` + +For more details read [documentation](tools/undeploy.md) diff --git a/docs/tools/deploy.md b/docs/tools/deploy.md new file mode 100644 index 00000000..02a3ff2a --- /dev/null +++ b/docs/tools/deploy.md @@ -0,0 +1,64 @@ +Deep Property CRUD +================== + +Deep installs a application using native package manager in a same way `DeepPlatform` does internally. + +> To be able to use `deepify deploy` command you have to install globally `deep-package-manager` module + +Instead of providing configuration parameter inline (from command line directly) an `deeploy.json` +configuration file is used. The `deeploy.json` file must be located in bundle root directory. + +> After creating application environment `deepify deploy` command saves internal +> config in `.cfg.deeploy.json` file from the application root + +Example: + +```bash +~#: deepify deploy tests/pm/sample_application --dump-local="tests/pm/sample_application_" --dry-run +``` + +Example of `deeploy.json` +------------------------ + +```js +{ + "dependencies": { + "bucket": "deep.deps.repository", // bucket dependencies to be uploaded to + "prefix": "", // repository prefix + "aws": { // native AWS config injected into aws-sdk library (OPTIONAL! aws config from the top level used) + "accessKeyId": "", + "secretAccessKey": "", + "region": "us-east-1", + "httpOptions": { + "timeout": 30000 + } + }, + }, + "env": "dev", + "awsAccountId": 999999999999, + "appIdentifier": "deep_platform_dev", + "aws": { // native AWS config injected into aws-sdk library + "accessKeyId": "", + "secretAccessKey": "", + "region": "us-east-1", + "httpOptions": { + "timeout": 30000 + } + } +} +``` + +> `dependencies` is optional and needed mainly when working with different devs that makes changes to other microservices +> and test that separately (npm repository alike) + +> `aws` application from the `deeploy.json` root is the native `aws-sdk` configuration object +(refer to [AWS docs](http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html)). + +> `appIdentifier` should be unique per application! + +Available hooks +--------------- + +The list of available hooks: + + - [Post Deploy](deploy/hooks/post-deploy.md) \ No newline at end of file diff --git a/docs/tools/deploy/hooks/post-deploy.md b/docs/tools/deploy/hooks/post-deploy.md new file mode 100644 index 00000000..2c6efbb0 --- /dev/null +++ b/docs/tools/deploy/hooks/post-deploy.md @@ -0,0 +1,47 @@ +Post deploy hook +================ + +Post deploy hook is triggered after a application was completely deployed in both cases- on install and update. + +> Note that `this.provisioning.config` would be available ONLY on a application installation! + +Usage +----- + +In order to get the hook triggered you have to add an `hook.post-deploy.js` file into the microservice root + +Example of `hook.post-deploy.js` hook file +------------------------------------------ + +```javascript +'use strict'; + +var exports = module.exports = function(callback) { + var microservice = this.microservice; + var provisioning = this.provisioning; + + if (this.isUpdate) { + console.log('Update! Skipping public bucket location retrieval post deploy hook...'); + + callback(); + return; + } + + console.log('Start retrieving public bucket location in "' + microservice.identifier + '" post deploy hook.'); + + var s3 = provisioning.s3; + var publicBucket = provisioning.config.s3.buckets.public.name; + + s3.getBucketLocation({Bucket: publicBucket}, function(error, data) { + if (error) { + console.error('Error while retrieving public bucket(' + publicBucket + ') location: ' + error); + } else { + var region = data.LocationConstraint || 'unknown'; + + console.log('Public bucket(' + publicBucket + ') is located in "' + region + '" region.'); + } + + callback(); + }.bind(this)); +}; +``` \ No newline at end of file diff --git a/docs/tools/deps.md b/docs/tools/deps.md new file mode 100644 index 00000000..5209be68 --- /dev/null +++ b/docs/tools/deps.md @@ -0,0 +1,29 @@ +Deepify +======= + +Deepify is a `npm publish` alike tool that helps developer publish his microservices +from local machine to remote repository (S3). Also it is used by `deep-package-manager` to publish and pull microservices dependencies. + +> To be able to use 'deepify pull' command you have to install globally `deep-package-manager` module + +Instead of providing configuration parameter inline (from command line directly) an `deeploy.json` +configuration file is used. The `deeploy.json` file must be located in bundle root directory. + +> `deepify pull` command is used to resolve dependencies in a application + +Usage +----- + +> `deepify publish tests/pm/sample_bundle --dry-run` is used to push microservices within the whole bundle +> `deepify publish tests/pm/sample_bundle:HelloWorld,some-other-microservice-dir` is used to push certain microservices + +Important: `deepify pull` and `deepify publish` commands does have the same syntax + +> `--dry-run` option is used to skip uploading dependencies to remote repository + +Example of `deeploy.json` +------------------------- + +[See deeploy docs](deeploy.md#example-of-deeployjson) + +> If Repository S3 bucket (ex. `deep.deps.repository`) is missing while trying to publish microservices- an exception is thrown! diff --git a/docs/tools/helloworld.md b/docs/tools/helloworld.md new file mode 100644 index 00000000..55ee6212 --- /dev/null +++ b/docs/tools/helloworld.md @@ -0,0 +1,8 @@ +Deep "Hello World" +=================== + +Run in terminal: + +```bash +~#: deepify helloworld path/to/sample_application +``` \ No newline at end of file diff --git a/docs/tools/lambda.md b/docs/tools/lambda.md new file mode 100644 index 00000000..243b6170 --- /dev/null +++ b/docs/tools/lambda.md @@ -0,0 +1,50 @@ +Local Lambda execution +====================== + +This tool mimics AWS Lambda NodeJS environment to run lambdas locally. + +> To be able to use `deepify lambda` command you have to install globally `deep-package-manager` module + +It is reading by default `.aws.json` config from lambda root folder to set up `aws-sdk` instance to run correctly. +The content should be an json object with the native AWS configuration structure +(refer to [AWS docs](http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html)). + +Usage example +------------- + +```bash +~#: deepify lambda tests/lambda/handler_hello.js --event='{"name":"Developer"}' +``` + +> `tests/lambda/handler_hello.js` is the path to the handler that contains `exports.handler`. +> Note that `.../bootstrap.js` is the default file name if a directory provided + +> '{"name":"Developer"}' is the JSON object provided as the lambda payload + + +Example of `.aws.json` +---------------------- + +```json +{ + "accessKeyId": "AKIAI6Z72HOXE3MGXEOQ", + "secretAccessKey": "0x+4Yb6XfKZGCvIYsWYAGdrd8XEElnZiG9Vbl47a", + "region": "us-west-2", + "httpOptions": { + "timeout": 10000 + } +} +``` + +Example of test lambda +---------------------- + +```javascript +exports.handler = function(event, context) { + console.log('Hello ' + (event.name || 'World') + '!'); + + context.succeed({ + status: 'OK' + }); +}; +``` \ No newline at end of file diff --git a/docs/tools/server.md b/docs/tools/server.md new file mode 100644 index 00000000..30beaccd --- /dev/null +++ b/docs/tools/server.md @@ -0,0 +1,32 @@ +Deep development server +======================= + +The command start a local server on `http://localhost:{port}/` and serves the files +without building the application (in runtime). + +> Lambda calls are proxied locally and runs lambda in the same manner the AWS does. + +Example usage +------------- + +Run in terminal: + +```bash +~#: deepify server path/to/sample_application --build-path="path/to/sample_application/build" --port="8888" --open-browser --skip-aws-sdk --profiling +``` + +> The option `--open-browser` currently works only on MacOS open the application default browser when the server is ready + +> The option `--build-path` is used to load both frontend and backend configs +> in order to get backend working with AWS on the local server (this is simulated by default) + +> The option `--profiling` enables Lambdas profiling (with integrated UI) + +> The option `--db-server` specifies the local DynamoDB server implementation (LocalDynamo, Dynalite) + +Available hooks +--------------- + +The list of available hooks: + + - [On Start](server/hooks/on-start-hook.md) \ No newline at end of file diff --git a/docs/tools/server/hooks/on-start-hook.md b/docs/tools/server/hooks/on-start-hook.md new file mode 100644 index 00000000..3a1e9f5a --- /dev/null +++ b/docs/tools/server/hooks/on-start-hook.md @@ -0,0 +1,34 @@ +Server on-start hook +==================== + +On server start hook is triggered before the development server starts. + +> The `Server` object is injected in the hook context + +Usage +----- + +In order to get the hook triggered you have to add an `hook.server.js` file into the application root + +Example of `hook.server.js` hook file +------------------------------------------ + +```javascript +'use strict'; + +var exports = module.exports = function(callback) { + var microservices = this.property.microservices; + + console.log('------------- DISPATCHED MICROSERVICES -------------'); + + for (var i = 0; i < microservices.length; i++) { + var microservice = microservices[i]; + + console.log('[' + (i + 1) + '] ' + microservice.identifier); + } + + console.log('------------- END -------------'); + + callback(); +}; +``` \ No newline at end of file diff --git a/docs/tools/undeploy.md b/docs/tools/undeploy.md new file mode 100644 index 00000000..857788ba --- /dev/null +++ b/docs/tools/undeploy.md @@ -0,0 +1,9 @@ +Deep Unprovision +================ + +```bash +~#: deepify undeploy path/to/sample_application [--dirty] +``` + +> `--dirty` have to added to remove ALL the things from the account if no `.cfg.deeploy.json` found. +> This is an unrecoverable process! \ No newline at end of file diff --git a/esdoc.json b/esdoc.json new file mode 100644 index 00000000..aff8eabd --- /dev/null +++ b/esdoc.json @@ -0,0 +1,6 @@ +{ + "source": "./src/deep-*/lib/", + "destination": "./api-docs", + "includes": ["\\.(js|es6)$"], + "title": "DEEP Framework" +} diff --git a/src/deep-asset/.gitignore b/src/deep-asset/.gitignore new file mode 100644 index 00000000..2d0c94a8 --- /dev/null +++ b/src/deep-asset/.gitignore @@ -0,0 +1,105 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + +# Log +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log diff --git a/src/deep-asset/.npmignore b/src/deep-asset/.npmignore new file mode 100644 index 00000000..8219039a --- /dev/null +++ b/src/deep-asset/.npmignore @@ -0,0 +1,4 @@ +test +tests +/lib +.gitignore \ No newline at end of file diff --git a/src/deep-asset/README.md b/src/deep-asset/README.md new file mode 100644 index 00000000..e1c4156b --- /dev/null +++ b/src/deep-asset/README.md @@ -0,0 +1,83 @@ +deep-asset +========== + +[![NPM Version](https://img.shields.io/npm/v/deep-asset.svg)](https://npmjs.org/package/deep-asset) +[![Build Status](https://travis-ci.org/MitocGroup/deep-framework.svg)](https://travis-ci.org/MitocGroup/deep-framework) +[![Coverage Status](https://coveralls.io/repos/MitocGroup/deep-framework/badge.svg?service=github&t=3QEkFa)](https://coveralls.io/github/MitocGroup/deep-framework) +[![Codacy Badge](https://api.codacy.com/project/badge/630b5f0024334dc09fd0299b1a8a0ed5)](https://www.codacy.com/app/MitocGroup/deep-framework) +[![API Docs](http://docs.deep.mg/deep-asset/badge.svg)](http://docs.deep.mg/deep-asset/) + +[deep-asset](https://www.npmjs.com/package/deep-asset) is a node.js library, part of [DEEP Framework](https://github.com/MitocGroup/deep-framework). + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-ecosystem.png) + +Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less. + +## DEEP for Businesses [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### User Guide Documentation (to be updated later) + +DEEP is enabling small and medium businesses, as well as enterprises to: +- Rent applications on a monthly basis by needed functionality from [DEEP Marketplace](https://www.deep.mg) +- Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS +- Pay only for subscribed applications and stop paying when unsubscribing and not using anymore +- Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences +- Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP for Developers [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### [API Guide Documentation](http://docs.deep.mg) +#### [Developer Guide Documentation](https://github.com/MitocGroup/deep-framework/blob/master/docs/index.md) + +DEEP is enabling developers and architects to: +- Design microservices architecture on top of serverless environments from cloud providers like AWS +- Build distributed software that combines and manages hardware and software in the same microservice +- Use the framework's abstracted approach to build applications that could be cloud agnostic +- Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) +- Run in the cloud the software that was built by distributed teams and served self-service in large organizations +- Monetize their work of art by uploading microservices to [DEEP Marketplace](https://www.deep.mg) + +> [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with [DEEP Microservices HelloWorld](https://github.com/MitocGroup/deep-microservices-helloworld) or [DEEP Microservices ToDo App](https://github.com/MitocGroup/deep-microservices-todo-app), as well as [DEEP CLI](https://www.npmjs.com/package/deepify) (aka `deepify`). + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP Architecture on AWS [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-architecture.png) + +DEEP is using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries: + +DEEP Abstracted Library | Description | AWS Abstracted Service(s) +-------------|---------------------|-------------------------- +[deep-asset](http://docs.deep.mg/deep-asset) | Assets Management Library | Amazon S3 +[deep-cache](http://docs.deep.mg/deep-cache) | Cache Management Library | Amazon ElastiCache +[deep-core](http://docs.deep.mg/deep-core) | Core Management Library | - +[deep-db](http://docs.deep.mg/deep-db) | Database Management Library | Amazon DynamoDB, Amazon SQS +[deep-di](http://docs.deep.mg/deep-di) | Dependency Injection Management Library | - +[deep-event](http://docs.deep.mg/deep-event) | Events Management Library | Amazon Kinesis +[deep-fs](http://docs.deep.mg/deep-fs) | File System Management Library | Amazon S3 +[deep-kernel](http://docs.deep.mg/deep-kernel) | Kernel Management Library | - +[deep-log](http://docs.deep.mg/deep-log) | Logs Management Library | Amazon CloudWatch Logs +[deep-notification](http://docs.deep.mg/deep-notification) | Notifications Management Library | Amazon SNS +[deep-resource](http://docs.deep.mg/deep-resource) | Resouces Management Library | AWS Lambda, Amazon API Gateway +[deep-security](http://docs.deep.mg/deep-security) | Security Management Library | AWS IAM, Amazon Cognito +[deep-validation](http://docs.deep.mg/deep-validation) | Validation Management Library | - + +## Feedback + +We are eager to get your feedback, so please use whatever communication channel you prefer: +- [github issues](https://github.com/MitocGroup/deep-framework/issues) +- [gitter chat room](https://gitter.im/MitocGroup/deep-framework) +- [deep email address](mailto:feedback@deep.mg) + +## License + +This repository can be used under the MIT license. +> See [LICENSE](https://github.com/MitocGroup/deep-framework/blob/master/LICENSE) for more details. + +## Sponsors + +This repository is being sponsored by: +> [Mitoc Group](http://www.mitocgroup.com) diff --git a/src/deep-asset/lib/Asset.js b/src/deep-asset/lib/Asset.js new file mode 100644 index 00000000..cc30ba4a --- /dev/null +++ b/src/deep-asset/lib/Asset.js @@ -0,0 +1,67 @@ +/** + * Created by mgoria on 5/28/15. + */ + +'use strict'; + +import Kernel from 'deep-kernel'; +import Path from 'path'; + +/** + * @temp Asset class definition + */ +export class Asset extends Kernel.ContainerAware { + constructor() { + super(); + } + + /** + * Booting a certain service + * + * @param {Kernel} kernel + * @param {Function} callback + */ + boot(kernel, callback) { + if (kernel.isFrontend) { + let loadVector = []; + let microservices = kernel.microservices; + + for (let microserviceKey in microservices) { + if (!microservices.hasOwnProperty(microserviceKey)) { + continue; + } + + let microservice = microservices[microserviceKey]; + + if (microservice.isRoot) { + continue; + } + + loadVector.push(this.bind(microservice).locate('bootstrap.js')); + } + + kernel.container.addParameter( + Kernel.FRONTEND_BOOTSTRAP_VECTOR, + loadVector + ); + } + + callback(); + } + + /** + * @param {String} object + * @param {String} suffix + * @returns {String} + */ + locate(object, suffix = '') { + // binds working microservice if specified in object parameter + let path = this._resolvePath(object); + + if (this.microservice.isRoot) { + return Path.join(path) + suffix; + } else { + return Path.join(this.microservice.toString(), path) + suffix; + } + } +} diff --git a/src/deep-asset/lib/Exception/Exception.js b/src/deep-asset/lib/Exception/Exception.js new file mode 100644 index 00000000..90ade1cd --- /dev/null +++ b/src/deep-asset/lib/Exception/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Core from 'deep-core'; + +/** + * Thrown when any exception occurs + */ +export class Exception extends Core.Exception.Exception { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-asset/lib/bootstrap.js b/src/deep-asset/lib/bootstrap.js new file mode 100644 index 00000000..b3d1d244 --- /dev/null +++ b/src/deep-asset/lib/bootstrap.js @@ -0,0 +1,9 @@ +/** + * Created by mgoria on 5/27/2015 + */ + +'use strict'; + +import {Asset} from './Asset'; + +let exports = module.exports = Asset; diff --git a/src/deep-asset/package.json b/src/deep-asset/package.json new file mode 100644 index 00000000..4114af7d --- /dev/null +++ b/src/deep-asset/package.json @@ -0,0 +1,68 @@ +{ + "name": "deep-asset", + "version": "1.0.1", + "description": "DEEP Asset Library", + "keywords": [ + "Digital Enterprise End-To-End Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Asset" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Veaceslav Cotruta", + "email": "vcotruta@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "1.0.*", + "deep-core": "1.0.*" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/src/deep-asset/test/.gitkeep b/src/deep-asset/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-asset/test/Asset.js b/src/deep-asset/test/Asset.js new file mode 100644 index 00000000..f8b3c05d --- /dev/null +++ b/src/deep-asset/test/Asset.js @@ -0,0 +1,54 @@ +'use strict'; + +import chai from 'chai'; +import sinon from 'sinon'; +import sinonChai from 'sinon-chai'; +import {Asset} from '../lib.compiled/Asset'; +import Kernel from 'deep-kernel'; +import Instance from '../node_modules/deep-kernel/lib.compiled/Microservice/Instance'; +chai.use(sinonChai); + + +suite('Asset', function() { + let asset = new Asset(); + + test('Class Asset exists in Asset', function() { + chai.expect(typeof Asset).to.equal('function'); + }); + + test('Check boot() method for !kernel.isFrontend', function() { + let kernel = {isFrontend: false}; + let spyCallback = sinon.spy(); + asset.boot(kernel, spyCallback); + chai.expect(spyCallback).to.have.been.called; + }); + + test('Check boot() method for kernel.isFrontend', function() { + let deepServices = { serviceName: 'serviceName' }; + let spyCallback = sinon.spy(); + let error = null; + let kernel = null; + try { + kernel = new Kernel(deepServices, Kernel.FRONTEND_CONTEXT); + asset.boot(kernel, spyCallback); + } catch (e) { + error = e; + } + + }); + + test('Check locate() method returns valid string', function() { + let deepServices = new Kernel.MicroserviceInjectable(); + chai.assert.instanceOf(deepServices, Kernel.MicroserviceInjectable, 'deepServices is an instance of MicroserviceInjectable'); + let error = null; + let kernel = null; + let actualResult = null; + try { + kernel = new Kernel(deepServices, Kernel.FRONTEND_CONTEXT); + actualResult = asset.locate({}); + } catch (e) { + error = e; + } + + }); +}); diff --git a/src/deep-cache/.gitignore b/src/deep-cache/.gitignore new file mode 100644 index 00000000..59a1c5d0 --- /dev/null +++ b/src/deep-cache/.gitignore @@ -0,0 +1,106 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log + diff --git a/src/deep-cache/.npmignore b/src/deep-cache/.npmignore new file mode 100644 index 00000000..8219039a --- /dev/null +++ b/src/deep-cache/.npmignore @@ -0,0 +1,4 @@ +test +tests +/lib +.gitignore \ No newline at end of file diff --git a/src/deep-cache/README.md b/src/deep-cache/README.md new file mode 100644 index 00000000..9e3b3f35 --- /dev/null +++ b/src/deep-cache/README.md @@ -0,0 +1,83 @@ +deep-cache +========== + +[![NPM Version](https://img.shields.io/npm/v/deep-cache.svg)](https://npmjs.org/package/deep-cache) +[![Build Status](https://travis-ci.org/MitocGroup/deep-framework.svg)](https://travis-ci.org/MitocGroup/deep-framework) +[![Coverage Status](https://coveralls.io/repos/MitocGroup/deep-framework/badge.svg?service=github&t=3QEkFa)](https://coveralls.io/github/MitocGroup/deep-framework) +[![Codacy Badge](https://api.codacy.com/project/badge/630b5f0024334dc09fd0299b1a8a0ed5)](https://www.codacy.com/app/MitocGroup/deep-framework) +[![API Docs](http://docs.deep.mg/deep-cache/badge.svg)](http://docs.deep.mg/deep-cache/) + +[deep-cache](https://www.npmjs.com/package/deep-cache) is a node.js library, part of [DEEP Framework](https://github.com/MitocGroup/deep-framework). + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-ecosystem.png) + +Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less. + +## DEEP for Businesses [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### User Guide Documentation (to be updated later) + +DEEP is enabling small and medium businesses, as well as enterprises to: +- Rent applications on a monthly basis by needed functionality from [DEEP Marketplace](https://www.deep.mg) +- Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS +- Pay only for subscribed applications and stop paying when unsubscribing and not using anymore +- Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences +- Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP for Developers [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### [API Guide Documentation](http://docs.deep.mg) +#### [Developer Guide Documentation](https://github.com/MitocGroup/deep-framework/blob/master/docs/index.md) + +DEEP is enabling developers and architects to: +- Design microservices architecture on top of serverless environments from cloud providers like AWS +- Build distributed software that combines and manages hardware and software in the same microservice +- Use the framework's abstracted approach to build applications that could be cloud agnostic +- Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) +- Run in the cloud the software that was built by distributed teams and served self-service in large organizations +- Monetize their work of art by uploading microservices to [DEEP Marketplace](https://www.deep.mg) + +> [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with [DEEP Microservices HelloWorld](https://github.com/MitocGroup/deep-microservices-helloworld) or [DEEP Microservices ToDo App](https://github.com/MitocGroup/deep-microservices-todo-app), as well as [DEEP CLI](https://www.npmjs.com/package/deepify) (aka `deepify`). + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP Architecture on AWS [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-architecture.png) + +DEEP is using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries: + +DEEP Abstracted Library | Description | AWS Abstracted Service(s) +-------------|---------------------|-------------------------- +[deep-asset](http://docs.deep.mg/deep-asset) | Assets Management Library | Amazon S3 +[deep-cache](http://docs.deep.mg/deep-cache) | Cache Management Library | Amazon ElastiCache +[deep-core](http://docs.deep.mg/deep-core) | Core Management Library | - +[deep-db](http://docs.deep.mg/deep-db) | Database Management Library | Amazon DynamoDB, Amazon SQS +[deep-di](http://docs.deep.mg/deep-di) | Dependency Injection Management Library | - +[deep-event](http://docs.deep.mg/deep-event) | Events Management Library | Amazon Kinesis +[deep-fs](http://docs.deep.mg/deep-fs) | File System Management Library | Amazon S3 +[deep-kernel](http://docs.deep.mg/deep-kernel) | Kernel Management Library | - +[deep-log](http://docs.deep.mg/deep-log) | Logs Management Library | Amazon CloudWatch Logs +[deep-notification](http://docs.deep.mg/deep-notification) | Notifications Management Library | Amazon SNS +[deep-resource](http://docs.deep.mg/deep-resource) | Resouces Management Library | AWS Lambda, Amazon API Gateway +[deep-security](http://docs.deep.mg/deep-security) | Security Management Library | AWS IAM, Amazon Cognito +[deep-validation](http://docs.deep.mg/deep-validation) | Validation Management Library | - + +## Feedback + +We are eager to get your feedback, so please use whatever communication channel you prefer: +- [github issues](https://github.com/MitocGroup/deep-framework/issues) +- [gitter chat room](https://gitter.im/MitocGroup/deep-framework) +- [deep email address](mailto:feedback@deep.mg) + +## License + +This repository can be used under the MIT license. +> See [LICENSE](https://github.com/MitocGroup/deep-framework/blob/master/LICENSE) for more details. + +## Sponsors + +This repository is being sponsored by: +> [Mitoc Group](http://www.mitocgroup.com) diff --git a/src/deep-cache/lib/Cache.js b/src/deep-cache/lib/Cache.js new file mode 100644 index 00000000..50d74762 --- /dev/null +++ b/src/deep-cache/lib/Cache.js @@ -0,0 +1,96 @@ +/** + * Created by AlexanderC on 6/16/15. + */ + +'use strict'; + +import Kernel from 'deep-kernel'; +import {InMemoryDriver} from './Driver/InMemoryDriver'; +import {RedisDriver} from './Driver/RedisDriver'; +import {Exception} from './Exception/Exception'; + +/** + * Cache manager + */ +export class Cache extends Kernel.ContainerAware { + /** + * @param {AbstractDriver} driver + */ + constructor(driver = null) { + super(); + + this._driver = driver; + } + + /** + * @param {String} name + * @param {Array} args + * @returns {AbstractDriver} + */ + static createDriver(name, ...args) { + var DriverPrototype; + + switch (name) { + case 'memory': + DriverPrototype = InMemoryDriver; + break; + case 'redis': + DriverPrototype = RedisDriver; + break; + case 'local-storage': + + // @todo: figure out a smarter way to avoid conflicts in nodejs env + DriverPrototype = require('./Driver/LocalStorageDriver').LocalStorageDriver; + break; + default: + throw new Exception(`Missing driver ${name}`); + } + + return new DriverPrototype(...args); + } + + /** + * Booting a certain service + * + * @param {Kernel} kernel + * @param {Function} callback + */ + boot(kernel, callback) { + // @todo: switch to redis when issue with Elasticache is fixed + let driverName = kernel.isFrontend ? 'local-storage' : 'memory'/*'redis'*/; + + this._driver = Cache.createDriver(driverName/*, kernel.config.cacheDsn*/); + this._driver.buildId = kernel.buildId; + + kernel.container.addService( + `${this.name}.prototype`, + this + ); + + callback(); + } + + /** + * DO NOT REMOVE THIS! + * It's used while kernel boot + * + * @returns {Object} + */ + get service() { + return this._driver; + } + + /** + * @param {AbstractDriver} driver + */ + set driver(driver) { + this._driver = driver; + } + + /** + * @returns {AbstractDriver} + */ + get driver() { + return this._driver; + } +} diff --git a/src/deep-cache/lib/Driver/AbstractDriver.js b/src/deep-cache/lib/Driver/AbstractDriver.js new file mode 100644 index 00000000..9de1d8bb --- /dev/null +++ b/src/deep-cache/lib/Driver/AbstractDriver.js @@ -0,0 +1,200 @@ +/** + * Created by AlexanderC on 6/16/15. + */ + +'use strict'; + +import Core from 'deep-core'; +import {MissingCacheException} from './Exception/MissingCacheException'; +import {NoFlushException} from './Exception/NoFlushException'; +import {DriverException} from './Exception/DriverException'; + +/** + * Abstract driver implementation + */ +export class AbstractDriver extends Core.OOP.Interface { + constructor() { + super([ + '_get', '_has', + '_set', '_invalidate', + ]); + + this._buildId = ''; + this._namespace = ''; + this._silent = false; + } + + /** + * @returns {String} + */ + get buildId() { + return this._buildId; + } + + /** + * @param {String} id + */ + set buildId(id) { + this._buildId = id; + } + + /** + * @param {String} key + * @param {Function|null} callback + * @returns {AbstractDriver} + */ + has(key, callback = null) { + callback = callback || function() { + }; + + try { + this._has(this._buildKey(key), function(result) { + callback(undefined, result); + }.bind(this)); + } catch (e) { + callback(new DriverException(e), undefined); + } + + return this; + } + + /** + * @param {String} key + * @param {Function|null} callback + * @returns {AbstractDriver} + */ + get(key, callback = null) { + callback = callback || function() { + }; + + try { + this.has(key, function(exception, result) { + if (exception) { + throw exception; + } + + if (!result && !this._silent) { + throw new MissingCacheException(key); + } + + this._get(this._buildKey(key), function(result) { + callback(undefined, result); + }.bind(this)); + }.bind(this)); + } catch (e) { + callback(new DriverException(e), undefined); + } + + return this; + } + + /** + * @param {String} key + * @param {*} value + * @param {Number} ttl + * @param {Function} callback + */ + set(key, value, ttl = 0, callback = null) { + callback = callback || function() { + }; + + try { + this._set(this._buildKey(key), value, ttl, function(result) { + callback(undefined, result); + }.bind(this)); + } catch (e) { + callback(new DriverException(e), undefined); + } + } + + /** + * @param {String} key + * @param {Number} timeout + * @param {Function|null} callback + * @returns {AbstractDriver} + */ + invalidate(key, timeout = 0, callback = null) { + callback = callback || function() { + }; + + try { + this.has(key, function(exception, result) { + if (exception) { + throw exception; + } + + if (!result) { + throw new MissingCacheException(key); + } + + this._invalidate(this._buildKey(key), timeout, function(result) { + callback(undefined, result); + }.bind(this)); + }.bind(this)); + } catch (e) { + callback(new DriverException(e), undefined); + } + + return this; + } + + /** + * @param {Function|null} callback + * @returns {AbstractDriver} + */ + flush(callback = null) { + callback = callback || function() { + }; + + try { + if (typeof this._flush === 'undefined') { + throw new NoFlushException(); + } + + this._flush(function(result) { + callback(undefined, result); + }.bind(this)); + } catch (e) { + callback(new DriverException(e), undefined); + } + + return this; + } + + /** + * @returns {String} + */ + get namespace() { + return this._namespace; + } + + /** + * @param {String} ns + */ + set namespace(ns) { + this._namespace = ns; + } + + /** + * @param {Boolean} value + */ + set silent(value) { + this._silent = value; + } + + /** + * @returns {Boolean} + */ + get silent() { + return this._silent; + } + + /** + * @param {String} key + * @returns {String} + * @private + */ + _buildKey(key) { + return `${this._buildId}:${this._namespace}#${key}`; + } +} diff --git a/src/deep-cache/lib/Driver/Exception/DriverException.js b/src/deep-cache/lib/Driver/Exception/DriverException.js new file mode 100644 index 00000000..57823808 --- /dev/null +++ b/src/deep-cache/lib/Driver/Exception/DriverException.js @@ -0,0 +1,28 @@ +/** + * Created by AlexanderC on 6/16/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Base exception + */ +export class DriverException extends Exception { + /** + * @param {Error} originalException + */ + constructor(originalException) { + super(originalException); + + this._originalException = originalException instanceof Error ? originalException : new Error(originalException); + } + + /** + * @returns {Error} + */ + get originalException() { + return this._originalException; + } +} diff --git a/src/deep-cache/lib/Driver/Exception/Exception.js b/src/deep-cache/lib/Driver/Exception/Exception.js new file mode 100644 index 00000000..6ec27750 --- /dev/null +++ b/src/deep-cache/lib/Driver/Exception/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/16/15. + */ + +'use strict'; + +import {Exception as BaseException} from '../../Exception/Exception'; + +/** + * Base exception + */ +export class Exception extends BaseException { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-cache/lib/Driver/Exception/MissingCacheException.js b/src/deep-cache/lib/Driver/Exception/MissingCacheException.js new file mode 100644 index 00000000..7fef35da --- /dev/null +++ b/src/deep-cache/lib/Driver/Exception/MissingCacheException.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/16/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when missing an item from cache + */ +export class MissingCacheException extends Exception { + /** + * @param {String} cacheKey + */ + constructor(cacheKey) { + super(`Missing key ${cacheKey} from cache`); + } +} diff --git a/src/deep-cache/lib/Driver/Exception/NoFlushException.js b/src/deep-cache/lib/Driver/Exception/NoFlushException.js new file mode 100644 index 00000000..323470b7 --- /dev/null +++ b/src/deep-cache/lib/Driver/Exception/NoFlushException.js @@ -0,0 +1,16 @@ +/** + * Created by AlexanderC on 6/16/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown if flush() is not implemented + */ +export class NoFlushException extends Exception { + constructor() { + super('Flush is not implemented for this driver'); + } +} diff --git a/src/deep-cache/lib/Driver/Exception/RedisClusterException.js b/src/deep-cache/lib/Driver/Exception/RedisClusterException.js new file mode 100644 index 00000000..bc75b43d --- /dev/null +++ b/src/deep-cache/lib/Driver/Exception/RedisClusterException.js @@ -0,0 +1,31 @@ +/** + * Created by AlexanderC on 6/16/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when redis cluster returned an error + */ +export class RedisClusterException extends Exception { + /** + * @param {String} error + */ + constructor(error) { + let originalException = error instanceof Error ? error : null; + let errorPlain = originalException !== null ? originalException.message : error.toString(); + + super(`Redis cluster operation failed: ${errorPlain}`); + + this._originalException = originalException; + } + + /** + * @returns {Error} + */ + get originalException() { + return this._originalException; + } +} diff --git a/src/deep-cache/lib/Driver/InMemoryDriver.js b/src/deep-cache/lib/Driver/InMemoryDriver.js new file mode 100644 index 00000000..df71702a --- /dev/null +++ b/src/deep-cache/lib/Driver/InMemoryDriver.js @@ -0,0 +1,101 @@ +/** + * Created by AlexanderC on 6/16/15. + */ + +'use strict'; + +import {AbstractDriver} from './AbstractDriver'; + +/** + * In memory driver implementation + */ +export class InMemoryDriver extends AbstractDriver { + constructor() { + super(); + + this._storage = {}; + } + + /** + * @returns {Object} + */ + get storage() { + return this._storage; + } + + /** + * @param {String} key + * @param {Function} callback + */ + _has(key, callback = () => '') { + if (typeof this._storage[key] === 'undefined' || this._storage[key][1] === false) { + callback(false); + return; + } + + let result = this._storage[key][1] < InMemoryDriver._now; + + if (!result) { + this._invalidate(key); + } + + callback(result); + } + + /** + * @param {String} key + * @param {Function} callback + */ + _get(key, callback = () => undefined) { + callback(this._storage[key]); + } + + /** + * @param {String} key + * @param {*} value + * @param {Number} ttl + * @param {Function} callback + * @returns {Boolean} + */ + _set(key, value, ttl = 0, callback = () => undefined) { + this._storage[key] = [value, ttl <= 0 ? false : (InMemoryDriver._now + ttl)]; + + callback(true); + } + + /** + * @param {String} key + * @param {Number} timeout + * @param {Function} callback + */ + _invalidate(key, timeout = 0, callback = () => undefined) { + if (timeout <= 0) { + delete this._storage[key]; + + callback(true); + return; + } + + this._storage[key][1] = InMemoryDriver._now + timeout; + + callback(true); + } + + /** + * @param {Function} callback + * @returns {AbstractDriver} + */ + _flush(callback = () => undefined) { + this._storage = {}; + + callback(true); + } + + /** + * @returns {Number} + * @private + */ + static get _now() { + return new Date().getTime(); + } +} diff --git a/src/deep-cache/lib/Driver/LocalStorageDriver.js b/src/deep-cache/lib/Driver/LocalStorageDriver.js new file mode 100644 index 00000000..e692f8f6 --- /dev/null +++ b/src/deep-cache/lib/Driver/LocalStorageDriver.js @@ -0,0 +1,131 @@ +/** + * Created by AlexanderC on 6/16/15. + */ + +'use strict'; + +import {AbstractDriver} from './AbstractDriver'; +import LocalStorage from 'store'; + +/** + * In memory driver implementation + */ +export class LocalStorageDriver extends AbstractDriver { + constructor() { + super(); + } + + /** + * @param {String} key + * @param {Function} callback + */ + _has(key, callback = null) { + callback = callback || function() { + }; + + callback(LocalStorageDriver._isAlive(LocalStorage.get(key), key)); + } + + /** + * @param {String} key + * @param {Function} callback + */ + _get(key, callback = null) { + callback = callback || function() { + }; + + let record = LocalStorage.get(key); + + callback(LocalStorageDriver._isAlive(record, key) ? record.value : null); + } + + /** + * @param {String} key + * @param {*} value + * @param {Number} ttl + * @param {Function} callback + * @returns {Boolean} + */ + _set(key, value, ttl = 0, callback = null) { + callback = callback || function() { + }; + + if (ttl <= 0) { + LocalStorage.set(key, {value: value, exd: null}); + } else { + LocalStorage.set(key, {value: value, exd: (LocalStorageDriver._now + ttl)}); + } + + callback(true); + } + + /** + * @param {String} key + * @param {Number} timeout + * @param {Function} callback + */ + _invalidate(key, timeout = 0, callback = null) { + callback = callback || function() { + }; + + if (timeout <= 0) { + LocalStorage.remove(key); + + callback(true); + return; + } + + try { + let record = LocalStorage.get(key); + + record.exd = LocalStorageDriver._now + timeout; + + LocalStorage.set(key, record); + } catch (e) { + // do nothing... + } + + callback(true); + } + + /** + * @param {Function} callback + * @returns {AbstractDriver} + */ + _flush(callback = null) { + callback = callback || function() { + }; + + LocalStorage.clear(); + + callback(true); + } + + /** + * @returns {Number} + * @private + */ + static get _now() { + return new Date().getTime(); + } + + /** + * + * @param {Object} response + * @param {String} key + * @returns {*} + * @private + */ + static _isAlive(response, key) { + if (!response) { + return false; + } + + if (response.exd && response.exd !== null && response.exd <= LocalStorageDriver._now) { + LocalStorage.remove(key); + return false; + } + + return true; + } +} diff --git a/src/deep-cache/lib/Driver/RedisDriver.js b/src/deep-cache/lib/Driver/RedisDriver.js new file mode 100644 index 00000000..ada3b719 --- /dev/null +++ b/src/deep-cache/lib/Driver/RedisDriver.js @@ -0,0 +1,104 @@ +/** + * Created by AlexanderC on 6/16/15. + */ + +'use strict'; + +import {AbstractDriver} from './AbstractDriver'; +import Redis from 'ioredis'; +import {RedisClusterException} from './Exception/RedisClusterException'; + +/** + * Redis/Elasticache driver implementation + */ +export class RedisDriver extends AbstractDriver { + /** + * @param {String} dsn + */ + constructor(dsn) { + super(); + + this._client = dsn ? new Redis(dsn) : new Redis(); + } + + /** + * @returns {Redis} + */ + get client() { + return this._client; + } + + /** + * @param {String} key + * @param {Function} callback + */ + _has(key, callback = () => '') { + this._client.exists(key, function(error, results) { + if (error && error !== null) { + throw new RedisClusterException(error); + } + + callback(results); + }.bind(this)); + } + + /** + * @param {String} key + * @param {Function} callback + */ + _get(key, callback = () => '') { + this._client.get(key, function(error, results) { + if (error && error !== null) { + throw new RedisClusterException(error); + } + + callback(results); + }.bind(this)); + } + + /** + * @param {String} key + * @param {*} value + * @param {Number} ttl + * @param {Function} callback + * @returns {Boolean} + */ + _set(key, value, ttl = 0,callback = () => '') { + this._client.set(key, value, ttl, function(error) { + if (error && error !== null) { + throw new RedisClusterException(error); + } + + callback(true); + }.bind(this)); + } + + /** + * @param {String} key + * @param {Number} timeout + * @param {Function} callback + */ + _invalidate(key, timeout = 0, callback = () => '') { + this._client.del(key, timeout, function(error) { + if (error && error !== null) { + throw new RedisClusterException(error); + } + + callback(true); + }.bind(this)); + } + + /** + * @param {Function} callback + * @returns {AbstractDriver} + */ + _flush(callback = () => '') { + this._client.flushall(function(error) { + if (error && error !== null) { + throw new RedisClusterException(error); + } + + callback(true); + }.bind(this)); + } +} diff --git a/src/deep-cache/lib/Exception/Exception.js b/src/deep-cache/lib/Exception/Exception.js new file mode 100644 index 00000000..90ade1cd --- /dev/null +++ b/src/deep-cache/lib/Exception/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Core from 'deep-core'; + +/** + * Thrown when any exception occurs + */ +export class Exception extends Core.Exception.Exception { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-cache/lib/bootstrap.js b/src/deep-cache/lib/bootstrap.js new file mode 100644 index 00000000..fc13f59a --- /dev/null +++ b/src/deep-cache/lib/bootstrap.js @@ -0,0 +1,11 @@ +/** + * Created by AlexanderC on 5/22/15. + * + * Bootstrap file loaded by npm as main + */ + +'use strict'; + +import {Cache} from './Cache'; + +let exports = module.exports = Cache; diff --git a/src/deep-cache/package.json b/src/deep-cache/package.json new file mode 100644 index 00000000..5d6d0767 --- /dev/null +++ b/src/deep-cache/package.json @@ -0,0 +1,77 @@ +{ + "name": "deep-cache", + "version": "1.0.1", + "description": "DEEP Cache Library", + "keywords": [ + "Digital Enterprise End-To-End Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Cache" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Max Ponomariov", + "email": "mponomariov@mitocgroup.com" + }, + { + "name": "Alexandru Scripnic", + "email": "ascripnic@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "1.0.*", + "deep-core": "1.0.*", + "ioredis": "1.5.*", + "store": "1.3.*" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true, + "browser": { + "ioredis": false + } +} diff --git a/src/deep-cache/test/.gitkeep b/src/deep-cache/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-cache/test/Cache.js b/src/deep-cache/test/Cache.js new file mode 100644 index 00000000..b9e38ad4 --- /dev/null +++ b/src/deep-cache/test/Cache.js @@ -0,0 +1,81 @@ +'use strict'; + +import chai from 'chai'; +import {Cache} from '../lib.compiled/Cache'; +import {InMemoryDriver} from '../lib.compiled/Driver/InMemoryDriver'; +import {RedisDriver} from '../lib.compiled/Driver/RedisDriver' +import {Exception} from '../lib.compiled/Exception/Exception'; +import Kernel from 'deep-kernel'; + +suite('Cache', function() { + let cache = new Cache(); + let driverName = 'driver'; + let memoryDriverName = 'memory'; + let redisDriverName = 'redis'; + let localStorageDriverName = 'local-storage'; + let negativeDriverName = 'test'; + + test('Class Cache exists in Cache', function() { + chai.expect(typeof Cache).to.equal('function'); + }); + + test('Check constructor sets _driver = null', function() { + chai.expect(cache.driver).to.be.an.equal(null); + }); + + test(`Check driver setter sets value ${driverName}`, function() { + cache.driver = driverName; + chai.expect(cache.driver).to.be.an.equal(driverName); + }); + + test(`Check service getter returns ${driverName}`, function() { + chai.expect(cache.service).to.be.an.equal(driverName); + }); + + + test(`Check createDriver() static method for ${memoryDriverName}`, function() { + chai.assert.instanceOf(Cache.createDriver(memoryDriverName), InMemoryDriver, 'createDriver() returns an instance of InMemoryDriver'); + }); + + test(`Check createDriver() static method for ${redisDriverName}`, function() { + chai.assert.instanceOf(Cache.createDriver(redisDriverName), RedisDriver, 'createDriver() returns an instance of RedisDriver'); + }); + + test(`Check createDriver() static method for ${localStorageDriverName}`, function() { + //todo - TBD - window is not defined + //chai.expect(typeof Cache.createDriver(localStorageDriverName)).to.be.an.equal('object'); + }); + + test('Check createDriver() throws exception', function() { + let error = null; + + try { + Cache.createDriver(negativeDriverName); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.an.instanceof(Exception); + }); + + test('Check boot() method for !kernel.isFrontend', function() { + let deepServices = { serviceName: 'serviceName' }; + let kernel = null; + let error = null; + try { + kernel = new Kernel(deepServices, Kernel.BACKEND_CONTEXT); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(kernel).to.be.an.instanceof(Kernel); + chai.assert.instanceOf(kernel, Kernel, 'kernel is an instance of Kernel'); + + let callback = ()=> { + return 'callback called'; + }; + + cache.boot(kernel, callback); + }); +}); \ No newline at end of file diff --git a/src/deep-cache/test/Driver/AbstractDriver.js b/src/deep-cache/test/Driver/AbstractDriver.js new file mode 100644 index 00000000..6f30eb2d --- /dev/null +++ b/src/deep-cache/test/Driver/AbstractDriver.js @@ -0,0 +1,275 @@ +'use strict'; + +import chai from 'chai'; +import sinon from 'sinon'; +import sinonChai from 'sinon-chai'; +import {AbstractDriver} from '../../lib.compiled/Driver/AbstractDriver'; +import {NoFlushException} from '../../lib.compiled/Driver/Exception/NoFlushException'; +import {DriverException} from '../../lib.compiled/Driver/Exception/DriverException'; +import {MissingCacheException} from '../../lib.compiled/Driver/Exception/MissingCacheException'; +chai.use(sinonChai); + +class AbstractDriverPositiveTest extends AbstractDriver { + constructor() { + super(); + } + + _get(key, callback = null) { + return callback(null, '_get was called'); + } + + _has(key, callback = null) { + return callback(null, '_has was called'); + } + + _invalidate(key, timeout = 0, callback = null) { + return callback(null, '_invalidate was called'); + } + + _set(key, value, ttl = 0, callback = null) { + return callback(null, '_set was called'); + } +} + +class AbstractDriverTest extends AbstractDriver { + constructor() { + super(); + } + + has(key, callback = null) { + return callback(null, '_has was called'); + } + + _invalidate(key, timeout = 0, callback = null) { + return callback(null, '_invalidate was called'); + } + + _get(key, callback = null) { + return; + } + + _has(key, callback = null) { + return; + } + + _set(key, value, ttl = 0, callback = null) { + return; + } + + set(key, value, ttl = 0, callback = null) { + throw new DriverException('Implicitly test Driver Exception'); + } +} + +class AbstractDriverNegativeTest extends AbstractDriver { + constructor() { + super(); + } + + _get(key, callback = null) { + return callback(null, null); + } + + _has(key, callback = null) { + return callback(null, null); + } + + _invalidate(key, timeout = 0, callback = null) { + return callback(null, null); + } + + _set(key, value, ttl = 0, callback = null) { + throw 'Test exception'; + } + + _flush(callback) { + return callback('exception', null); + } +} + +suite('Driver/AbstractDriver', function() { + let abstractDriver = new AbstractDriverPositiveTest(); + let buildId = 'testId1'; + let namespace = 'abstractDriverNamespace'; + let silent = true; + let key = 'key_test'; + + test('Class AbstractDriver exists in Driver/AbstractDriver', function() { + chai.expect(typeof AbstractDriver).to.equal('function'); + }); + + test('Check constructor sets by default _buildId=\'\'', function() { + chai.expect(abstractDriver.buildId).to.be.equal(''); + }); + + test('Check constructor sets by default _namespace=\'\'', function() { + chai.expect(abstractDriver.namespace).to.be.equal(''); + }); + + test('Check constructor sets by default _silent=\'\'', function() { + chai.expect(abstractDriver.silent).to.be.equal(false); + }); + + test(`Check buildId setter sets value: ${buildId}`, function() { + abstractDriver.buildId = ''; + chai.expect(abstractDriver.buildId).to.be.equal(''); + abstractDriver.buildId = buildId; + chai.expect(abstractDriver.buildId).to.be.equal(buildId); + }); + + test(`Check namespace setter sets value: ${namespace}`, function() { + abstractDriver.namespace = ''; + chai.expect(abstractDriver.namespace).to.be.equal(''); + abstractDriver.namespace = namespace; + chai.expect(abstractDriver.namespace).to.be.equal(namespace); + }); + + test(`Check silent setter sets value: ${silent}`, function() { + abstractDriver.silent = ''; + chai.expect(abstractDriver.silent).to.be.equal(''); + abstractDriver.silent = silent; + chai.expect(abstractDriver.silent).to.be.equal(silent); + }); + + test(`Check _buildKey() method returns: ${abstractDriver.buildId}:${abstractDriver.namespace}#${key}`, function() { + chai.expect(abstractDriver._buildKey(key)).to.be.equal(`${abstractDriver.buildId}:${abstractDriver.namespace}#${key}`); + }); + + test('Check has() method returns valid AbstractDriver object', function() { + let error = null; + let actualResult = null; + let spyCallback = sinon.spy(); + try { + actualResult = abstractDriver.has(key, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.assert.instanceOf(actualResult, AbstractDriver, 'result of has() is an instance of AbstractDriver'); + chai.expect(actualResult.buildId).to.be.equal(buildId); + chai.expect(actualResult.silent).to.be.equal(silent); + chai.expect(actualResult.namespace).to.be.equal(namespace); + chai.expect(spyCallback).to.have.been.called; + }); + + test('Check get() method returns valid AbstractDriver object', function() { + let error = null; + let actualResult = null; + let spyCallback = sinon.spy(); + try { + actualResult = abstractDriver.get(key, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.assert.instanceOf(actualResult, AbstractDriver, 'result of get() is an instance of AbstractDriver'); + chai.expect(actualResult.buildId).to.be.equal(buildId); + chai.expect(actualResult.silent).to.be.equal(silent); + chai.expect(actualResult.namespace).to.be.equal(namespace); + chai.expect(spyCallback).to.have.been.calledWith(undefined, null); + }); + + test('Check get() method throws exception', function() { + let abstractDriverNegativeTest = new AbstractDriverNegativeTest(); + let error = null; + let spyCallback = sinon.spy(); + try { + abstractDriverNegativeTest.get(key, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.threw; + }); + + test('Check set() method returns valid AbstractDriver object: ', function() { + let error = null; + let actualResult = null; + let spyCallback = sinon.spy(); + try { + actualResult = abstractDriver.set(key, 'testValue', 1, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.calledWith(undefined, null); + }); + + test('Check set() method throws exception', function() { + let abstractDriverNegativeTest = new AbstractDriverNegativeTest(); + let error = null; + let spyCallback = sinon.spy(); + try { + abstractDriverNegativeTest.set(key, 'testValue', spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.threw; + }); + + test('Check invalidate() method throws exception', function() { + let error = null; + let actualResult = null; + let spyCallback = sinon.spy(); + try { + actualResult = abstractDriver.invalidate(key, 1, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.assert.instanceOf(actualResult, AbstractDriver, 'result of invalidate() is an instance of AbstractDriver'); + chai.expect(actualResult.buildId).to.be.equal(buildId); + chai.expect(actualResult.silent).to.be.equal(silent); + chai.expect(actualResult.namespace).to.be.equal(namespace); + chai.expect(spyCallback).to.have.been.threw; + }); + + test('Check invalidate() method returns valid AbstractDriver object', function() { + let abstractDriverNegativeTest = new AbstractDriverTest(); + let error = null; + let spyCallback = sinon.spy(); + try { + abstractDriverNegativeTest.invalidate(key, 1, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.called; + }); + + test('Check flush() method with valid _flush value', function() { + let abstractDriverNegativeTest = new AbstractDriverNegativeTest(); + let error = null; + let spyCallback = sinon.spy(); + try { + abstractDriverNegativeTest.flush(spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.calledWith(undefined, 'exception'); + }); + + test('Check flush() method throws \'NoFlushException\' exception for invalid _flush value', function () { + let error = null; + let spyCallback = sinon.spy(); + try { + abstractDriver._flush = undefined; + abstractDriver.flush(spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.threw; + }); +}); \ No newline at end of file diff --git a/src/deep-cache/test/Driver/InMemoryDriver.js b/src/deep-cache/test/Driver/InMemoryDriver.js new file mode 100644 index 00000000..71009172 --- /dev/null +++ b/src/deep-cache/test/Driver/InMemoryDriver.js @@ -0,0 +1,118 @@ +'use strict'; + +import chai from 'chai'; +import sinon from 'sinon'; +import sinonChai from 'sinon-chai'; +import {InMemoryDriver} from '../../lib.compiled/Driver/InMemoryDriver'; +chai.use(sinonChai); + +suite('Driver/InMemoryDriver', function() { + let inMemoryDriver = new InMemoryDriver(); + let key = 'test_key'; + let value = 'test_value'; + + test('Class InMemoryDriver exists in Driver/InMemoryDriver', function() { + chai.expect(typeof InMemoryDriver).to.equal('function'); + }); + + test('Check constructor sets by default _storage={}', function() { + chai.expect(inMemoryDriver.storage).to.be.eql({}); + }); + + test('Check _now static getter returns Date (3 last chars ignored)', function() { + let approxTime = new Date().getTime().toString(); + approxTime = approxTime.substr(0, approxTime.length - 3); + chai.expect(InMemoryDriver._now.toString()).to.be.contains(approxTime); + }); + + test('Check has() method executes without error and calls callback(false)', function() { + let error = null; + let spyCallback = sinon.spy(); + try { + inMemoryDriver._has(key, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.calledWith(false); + }); + + test('Check has() method executes without error and calls callback(true)', function() { + let error = null; + let spyCallback = sinon.spy(); + try { + inMemoryDriver._set(key, value, 3, spyCallback); + inMemoryDriver._has(key, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.calledWith(true); + }); + + test('Check _get() method executes without error and calls callback', function() { + let error = null; + try { + inMemoryDriver._get(key); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + }); + + test('Check _set() method executes without error and calls callback', function() { + let error = null; + let spyCallback = sinon.spy(); + try { + inMemoryDriver._set(key, value, 1, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.calledWith(true); + }); + + test('Check _invalidate(timeout = 0) method executes without error and calls callback', function() { + let error = null; + let spyCallback = sinon.spy(); + try { + inMemoryDriver._invalidate(key, 0, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.calledWith(true); + }); + + test('Check _invalidate(timeout > 0) method executes without error and calls callback', function() { + let error = null; + let spyCallback = sinon.spy(); + try { + inMemoryDriver._set(key, value, 1, spyCallback); + inMemoryDriver._invalidate(key, 1, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.calledWith(true); + }); + + test('Check _flush() method executes without error and calls callback', function() { + let error = null; + let spyCallback = sinon.spy(); + try { + inMemoryDriver._flush(spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.calledWith(true); + }); +}); diff --git a/src/deep-cache/test/Driver/LocalStorageDriver.js b/src/deep-cache/test/Driver/LocalStorageDriver.js new file mode 100644 index 00000000..934c2e06 --- /dev/null +++ b/src/deep-cache/test/Driver/LocalStorageDriver.js @@ -0,0 +1,10 @@ +'use strict'; + +import chai from 'chai'; +//import {LocalStorageDriver} from '../../lib.compiled/Driver/LocalStorageDriver'; + +suite('Driver/LocalStorageDriver', function() { + test('Class LocalStorageDriver exists in Driver/LocalStorageDriver', function() { + //chai.expect(typeof LocalStorageDriver).to.equal('function'); + }); +}); \ No newline at end of file diff --git a/src/deep-cache/test/Driver/RedisDriver.js b/src/deep-cache/test/Driver/RedisDriver.js new file mode 100644 index 00000000..57378fd4 --- /dev/null +++ b/src/deep-cache/test/Driver/RedisDriver.js @@ -0,0 +1,216 @@ +'use strict'; + +import chai from 'chai'; +import sinon from 'sinon'; +import sinonChai from 'sinon-chai'; +import Redis from 'ioredis'; +import {RedisDriver} from '../../lib.compiled/Driver/RedisDriver'; +import {RedisClusterException} from '../../lib.compiled/Driver/Exception/RedisClusterException'; +chai.use(sinonChai); + +class RedisDriverNegativeTest extends RedisDriver { + constructor() { + super(); + this._client = { + exists: function(key, callback) { + return callback({code: 404, message: `Element with ${key} was not found`}); + }, + get: function(key, callback) { + return callback({code: 404, message: `Element with ${key} was not found`}); + }, + set: function(key, value, ttl, callback) { + return callback({code: 400, message: `Key: ${key} or value: ${value} is not valid`}); + }, + del: function(key, timeout, callback) { + return callback({code: 404, message: `Element with ${key} was not found`}); + }, + flushall: function(callback) { + return callback({code: 500, message: `Internal error`}); + }, + }; + } +} + +class RedisDriverPositiveTest extends RedisDriver { + constructor() { + super(); + this._client = { + exists: function(key, callback) { + return callback(null, {key: 'data'}); + }, + get: function(key, callback) { + return callback(null, {key: 'data'}); + }, + set: function(key, value, ttl, callback) { + return callback(null, {key: 'data'}); + }, + del: function(key, timeout, callback) { + return callback(null, {key: 'data'}); + }, + flushall: function(callback) { + return callback(null, {key: 'data'}); + }, + }; + } +} + +suite('Driver/RedisDriver', function() { + let redisDriver = new RedisDriver(); + let key = 'test_key'; + let value = 'test_value'; + let ttl = 1; + let timeout = 1; + + test('Class RedisDriver exists in Driver/RedisDriver', function() { + chai.expect(typeof RedisDriver).to.equal('function'); + }); + + test('Check constructor sets by default _client', function() { + chai.assert.instanceOf(redisDriver.client, Redis, 'redisDriver.client is an instance of Redis'); + }); + + test('Check _has() method throws \'RedisClusterException\' exception and doesn\'t call callback', function() { + let redisDriverWrapper = new RedisDriverNegativeTest(); + let error = null; + let spyCallback = sinon.spy(); + try { + redisDriverWrapper._has(key, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.assert.instanceOf(error, RedisClusterException, '_has() throws an instance of RedisClusterException'); + chai.expect(spyCallback).to.not.have.been.called; + }); + + test('Check _get() method throws \'RedisClusterException\' exception and doesn\'t call callback', function() { + let redisDriverWrapper = new RedisDriverNegativeTest(); + let error = null; + let spyCallback = sinon.spy(); + try { + redisDriverWrapper._get(key, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.assert.instanceOf(error, RedisClusterException, '_get() throws an instance of RedisClusterException'); + chai.expect(spyCallback).to.not.have.been.called; + }); + + test('Check _set() method throws \'RedisClusterException\' exception and doesn\'t call callback', function() { + let redisDriverWrapper = new RedisDriverNegativeTest(); + let error = null; + let spyCallback = sinon.spy(); + try { + redisDriverWrapper._set(key, value, ttl, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.assert.instanceOf(error, RedisClusterException, '_set() throws an instance of RedisClusterException'); + chai.expect(spyCallback).to.not.have.been.called; + }); + + test('Check _invalidate() method throws \'RedisClusterException\' exception and doesn\'t call callback', function() { + let redisDriverWrapper = new RedisDriverNegativeTest(); + let error = null; + let spyCallback = sinon.spy(); + try { + redisDriverWrapper._invalidate(key, timeout, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.assert.instanceOf(error, RedisClusterException, '_invalidate() throws an instance of RedisClusterException'); + chai.expect(spyCallback).to.not.have.been.called; + }); + + test('Check _flush() method throws \'RedisClusterException\' exception and doesn\'t call callback', function() { + let redisDriverWrapper = new RedisDriverNegativeTest(); + let error = null; + let spyCallback = sinon.spy(); + try { + redisDriverWrapper._flush(spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.assert.instanceOf(error, RedisClusterException, '_flush() throws an instance of RedisClusterException'); + chai.expect(spyCallback).to.not.have.been.called; + }); + + test('Check _has() method executes without error and calls callback', function() { + let redisDriverWrapper = new RedisDriverPositiveTest(); + let error = null; + let spyCallback = sinon.spy(); + try { + redisDriverWrapper._has(key, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.called; + }); + + test('Check _get() method executes without error and calls callback', function() { + let redisDriverWrapper = new RedisDriverPositiveTest(); + let error = null; + let spyCallback = sinon.spy(); + try { + redisDriverWrapper._get(key, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.called; + }); + + test('Check _set() method executes without error and calls callback', function() { + let redisDriverWrapper = new RedisDriverPositiveTest(); + let error = null; + let spyCallback = sinon.spy(); + try { + redisDriverWrapper._set(key, value, ttl, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.called; + }); + + test('Check _invalidate() method executes without error and calls callback', function() { + let redisDriverWrapper = new RedisDriverPositiveTest(); + let error = null; + let spyCallback = sinon.spy(); + try { + redisDriverWrapper._invalidate(key, timeout, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.called; + }); + + test('Check _flush() method executes without error and calls callback', function() { + let redisDriverWrapper = new RedisDriverPositiveTest(); + let error = null; + let spyCallback = sinon.spy(); + try { + redisDriverWrapper._flush(spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.called; + }); +}); \ No newline at end of file diff --git a/src/deep-core/.gitignore b/src/deep-core/.gitignore new file mode 100644 index 00000000..278bf823 --- /dev/null +++ b/src/deep-core/.gitignore @@ -0,0 +1,105 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log diff --git a/src/deep-core/.npmignore b/src/deep-core/.npmignore new file mode 100644 index 00000000..8219039a --- /dev/null +++ b/src/deep-core/.npmignore @@ -0,0 +1,4 @@ +test +tests +/lib +.gitignore \ No newline at end of file diff --git a/src/deep-core/README.md b/src/deep-core/README.md new file mode 100644 index 00000000..e1a0854d --- /dev/null +++ b/src/deep-core/README.md @@ -0,0 +1,83 @@ +deep-core +========= + +[![NPM Version](https://img.shields.io/npm/v/deep-core.svg)](https://npmjs.org/package/deep-core) +[![Build Status](https://travis-ci.org/MitocGroup/deep-framework.svg)](https://travis-ci.org/MitocGroup/deep-framework) +[![Coverage Status](https://coveralls.io/repos/MitocGroup/deep-framework/badge.svg?service=github&t=3QEkFa)](https://coveralls.io/github/MitocGroup/deep-framework) +[![Codacy Badge](https://api.codacy.com/project/badge/630b5f0024334dc09fd0299b1a8a0ed5)](https://www.codacy.com/app/MitocGroup/deep-framework) +[![API Docs](http://docs.deep.mg/deep-core/badge.svg)](http://docs.deep.mg/deep-core/) + +[deep-core](https://www.npmjs.com/package/deep-core) is a node.js library, part of [DEEP Framework](https://github.com/MitocGroup/deep-framework). + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-ecosystem.png) + +Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less. + +## DEEP for Businesses [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### User Guide Documentation (to be updated later) + +DEEP is enabling small and medium businesses, as well as enterprises to: +- Rent applications on a monthly basis by needed functionality from [DEEP Marketplace](https://www.deep.mg) +- Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS +- Pay only for subscribed applications and stop paying when unsubscribing and not using anymore +- Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences +- Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP for Developers [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### [API Guide Documentation](http://docs.deep.mg) +#### [Developer Guide Documentation](https://github.com/MitocGroup/deep-framework/blob/master/docs/index.md) + +DEEP is enabling developers and architects to: +- Design microservices architecture on top of serverless environments from cloud providers like AWS +- Build distributed software that combines and manages hardware and software in the same microservice +- Use the framework's abstracted approach to build applications that could be cloud agnostic +- Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) +- Run in the cloud the software that was built by distributed teams and served self-service in large organizations +- Monetize their work of art by uploading microservices to [DEEP Marketplace](https://www.deep.mg) + +> [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with [DEEP Microservices HelloWorld](https://github.com/MitocGroup/deep-microservices-helloworld) or [DEEP Microservices ToDo App](https://github.com/MitocGroup/deep-microservices-todo-app), as well as [DEEP CLI](https://www.npmjs.com/package/deepify) (aka `deepify`). + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP Architecture on AWS [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-architecture.png) + +DEEP is using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries: + +DEEP Abstracted Library | Description | AWS Abstracted Service(s) +-------------|---------------------|-------------------------- +[deep-asset](http://docs.deep.mg/deep-asset) | Assets Management Library | Amazon S3 +[deep-cache](http://docs.deep.mg/deep-cache) | Cache Management Library | Amazon ElastiCache +[deep-core](http://docs.deep.mg/deep-core) | Core Management Library | - +[deep-db](http://docs.deep.mg/deep-db) | Database Management Library | Amazon DynamoDB, Amazon SQS +[deep-di](http://docs.deep.mg/deep-di) | Dependency Injection Management Library | - +[deep-event](http://docs.deep.mg/deep-event) | Events Management Library | Amazon Kinesis +[deep-fs](http://docs.deep.mg/deep-fs) | File System Management Library | Amazon S3 +[deep-kernel](http://docs.deep.mg/deep-kernel) | Kernel Management Library | - +[deep-log](http://docs.deep.mg/deep-log) | Logs Management Library | Amazon CloudWatch Logs +[deep-notification](http://docs.deep.mg/deep-notification) | Notifications Management Library | Amazon SNS +[deep-resource](http://docs.deep.mg/deep-resource) | Resouces Management Library | AWS Lambda, Amazon API Gateway +[deep-security](http://docs.deep.mg/deep-security) | Security Management Library | AWS IAM, Amazon Cognito +[deep-validation](http://docs.deep.mg/deep-validation) | Validation Management Library | - + +## Feedback + +We are eager to get your feedback, so please use whatever communication channel you prefer: +- [github issues](https://github.com/MitocGroup/deep-framework/issues) +- [gitter chat room](https://gitter.im/MitocGroup/deep-framework) +- [deep email address](mailto:feedback@deep.mg) + +## License + +This repository can be used under the MIT license. +> See [LICENSE](https://github.com/MitocGroup/deep-framework/blob/master/LICENSE) for more details. + +## Sponsors + +This repository is being sponsored by: +> [Mitoc Group](http://www.mitocgroup.com) diff --git a/src/deep-core/lib/AWS/IAM/Action.js b/src/deep-core/lib/AWS/IAM/Action.js new file mode 100644 index 00000000..2e82cfbf --- /dev/null +++ b/src/deep-core/lib/AWS/IAM/Action.js @@ -0,0 +1,64 @@ +/** + * Created by AlexanderC on 5/27/15. + */ + +'use strict'; + +import {Extractable} from './Extractable'; +import {Service} from '../Service'; +import {InvalidArgumentException} from '../../Exception/InvalidArgumentException'; +import {Policy} from './Policy'; + +/** + * Iam statement action + */ +export class Action extends Extractable { + constructor() { + super(); + + this._service = Policy.ANY; + this._action = Policy.ANY; + } + + /** + * @param {String} action + */ + set action(action) { + this._action = action; + } + + /** + * @returns {String} + */ + get action() { + return this._action; + } + + /** + * @param {String} name + */ + set service(name) { + if (!Service.exists(name)) { + throw new InvalidArgumentException(name, Service); + } + + this._service = name; + } + + /** + * @returns {String} + */ + get service() { + return this._service; + } + + /** + * @returns {String} + */ + extract() { + let service = this._service; + let action = this._action; + + return `${service}:${action}`; + } +} diff --git a/src/deep-core/lib/AWS/IAM/Collection.js b/src/deep-core/lib/AWS/IAM/Collection.js new file mode 100644 index 00000000..9b56591a --- /dev/null +++ b/src/deep-core/lib/AWS/IAM/Collection.js @@ -0,0 +1,89 @@ +/** + * Created by AlexanderC on 5/27/15. + */ + +'use strict'; + +import {Extractable} from './Extractable'; +import {InvalidArgumentException} from '../../Exception/InvalidArgumentException'; + +/** + * Collection of something + */ +export class Collection extends Extractable { + /** + * @param {Object} prototype + */ + constructor(prototype) { + super(); + + if (prototype.__proto__ !== Extractable) { + throw new InvalidArgumentException(prototype, Extractable); + } + + this._prototype = prototype; + this._vector = []; + } + + /** + * @returns {Object} + */ + get prototype() { + return this._prototype; + } + + /** + * @param {Array} args + * @returns {Object} + */ + create(...args) { + return new this._prototype(...args); + } + + /** + * @param {Array} args + * @returns {Object} + */ + add(...args) { + let instance = args.length === 1 && args[0] instanceof this._prototype + ? args[0] + : this.create(...args); + + this._vector.push(instance); + + return instance; + } + + /** + * @returns {Number} + */ + count() { + return this._vector.length; + } + + /** + * @returns {Array} + */ + list() { + return this._vector; + } + + /** + * @returns {Array} + */ + extract() { + let vector = []; + + for (let itemKey in this._vector) { + if (!this._vector.hasOwnProperty(itemKey)) { + continue; + } + + let item = this._vector[itemKey]; + + vector.push(item.extract()); + } + + return vector; + } +} diff --git a/src/deep-core/lib/AWS/IAM/Exception/InvalidArnException.js b/src/deep-core/lib/AWS/IAM/Exception/InvalidArnException.js new file mode 100644 index 00000000..543932a4 --- /dev/null +++ b/src/deep-core/lib/AWS/IAM/Exception/InvalidArnException.js @@ -0,0 +1,20 @@ +/** + * Created by AlexanderC on 6/12/15. + */ + +'use strict'; + +import {Exception} from '../../../Exception/Exception'; + +/** + * Thrown when ARN is invalid + */ +export class InvalidArnException extends Exception { + /** + * @param {String} arn + */ + constructor(arn) { + super(`Invalid arn string "${arn}".`); + } +} + diff --git a/src/deep-core/lib/AWS/IAM/Extractable.js b/src/deep-core/lib/AWS/IAM/Extractable.js new file mode 100644 index 00000000..bd113ebb --- /dev/null +++ b/src/deep-core/lib/AWS/IAM/Extractable.js @@ -0,0 +1,16 @@ +/** + * Created by AlexanderC on 5/27/15. + */ + +'use strict'; + +import {Interface} from '../../OOP/Interface'; + +/** + * Extractable helper + */ +export class Extractable extends Interface { + constructor() { + super(['extract']); + } +} diff --git a/src/deep-core/lib/AWS/IAM/Factory.js b/src/deep-core/lib/AWS/IAM/Factory.js new file mode 100644 index 00000000..6ba9f166 --- /dev/null +++ b/src/deep-core/lib/AWS/IAM/Factory.js @@ -0,0 +1,82 @@ +/** + * Created by AlexanderC on 6/2/15. + */ + +'use strict'; + +import {Resource} from './Resource'; +import {Collection} from './Collection'; +import {Action} from './Action'; +import {Policy} from './Policy'; +import {Statement} from './Statement'; + +/** + * AWS IAM factory + */ +export class Factory { + /** + * @param {Function|*} Prototype + * @param {Array} args + * @returns {Object} + */ + static create(Prototype, ...args) { + Prototype = Factory._assurePrototype(Prototype); + + return new Prototype(...args); + } + + /** + * @param {Function|*} Prototype + * @returns {Collection} + */ + static createCollection(Prototype) { + Prototype = Factory._assurePrototype(Prototype); + + return new Collection(Prototype); + } + + /** + * @param {Function|*} Prototype + * @returns {Function} + * @private + */ + static _assurePrototype(Prototype) { + if (typeof Prototype === 'string') { + Prototype = Factory[Prototype.toUpperCase()]; + } + + return Prototype; + } + + /** + * @returns {Policy} + * @constructor + */ + static get POLICY() { + return Policy; + } + + /** + * @returns {Action} + * @constructor + */ + static get RESOURCE() { + return Resource; + } + + /** + * @returns {Resource} + * @constructor + */ + static get ACTION() { + return Action; + } + + /** + * @returns {Statement} + * @constructor + */ + static get STATEMENT() { + return Statement; + } +} diff --git a/src/deep-core/lib/AWS/IAM/Policy.js b/src/deep-core/lib/AWS/IAM/Policy.js new file mode 100644 index 00000000..0e4a824c --- /dev/null +++ b/src/deep-core/lib/AWS/IAM/Policy.js @@ -0,0 +1,73 @@ +/** + * Created by AlexanderC on 5/27/15. + */ + +'use strict'; + +import {Extractable} from './Extractable'; +import {Collection} from './Collection'; +import {Statement} from './Statement'; + +/** + * IAM policy + */ +export class Policy extends Extractable { + constructor() { + super(); + + this._version = Policy.DEFAULT_VERSION; + this._statement = new Collection(Statement); + } + + /** + * @returns {String} + */ + static get ANY() { + return '*'; + } + + /** + * @returns {String} + */ + static get DEFAULT_VERSION() { + return '2012-10-17'; + } + + /** + * @param {String} version + */ + set version(version) { + this._version = version; + } + + /** + * @returns {String} + */ + get version() { + return this._version; + } + + /** + * @returns {Collection} + */ + get statement() { + return this._statement; + } + + /** + * @return {Object} + */ + extract() { + return { + Version: this._version, + Statement: this._statement.extract(), + }; + } + + /** + * @return {String} + */ + toString() { + return JSON.stringify(this.extract()); + } +} diff --git a/src/deep-core/lib/AWS/IAM/Resource.js b/src/deep-core/lib/AWS/IAM/Resource.js new file mode 100644 index 00000000..3f161c32 --- /dev/null +++ b/src/deep-core/lib/AWS/IAM/Resource.js @@ -0,0 +1,122 @@ +/** + * Created by AlexanderC on 5/27/15. + */ + +'use strict'; + +import {Extractable} from './Extractable'; +import {Region} from '../Region'; +import {Service} from '../Service'; +import {InvalidArgumentException} from '../../Exception/InvalidArgumentException'; +import {InvalidArnException} from './Exception/InvalidArnException'; + +/** + * IAM statement resource + */ +export class Resource extends Extractable { + constructor() { + super(); + + this._service = ''; + this._region = ''; + this._accountId = ''; + this._descriptor = ''; + } + + /** + * @param {String} identifier + */ + set accountId(identifier) { + this._accountId = identifier; + } + + /** + * @returns {String} + */ + get accountId() { + return this._accountId; + } + + /** + * @param {String} descriptor + */ + set descriptor(descriptor) { + this._descriptor = descriptor; + } + + /** + * @returns {String} + */ + get descriptor() { + return this._descriptor; + } + + /** + * @param {String} name + */ + set region(name) { + if (!Region.exists(name)) { + throw new InvalidArgumentException(name, Region); + } + + this._region = name; + } + + /** + * @returns {String} + */ + get region() { + return this._region; + } + + /** + * @param {String} name + */ + set service(name) { + if (!Service.exists(name)) { + throw new InvalidArgumentException(name, Service); + } + + this._service = name; + } + + /** + * @returns {String} + */ + get service() { + return this._service; + } + + /** + * @see - http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html + * + * @param {string} arn + * @returns {Resource} + */ + updateFromArn(arn) { + let arnParts = arn.split(':'); + + if (arnParts.length < 6) { + throw new InvalidArnException(arn); + } + + this.service = arnParts[2]; + this.region = arnParts[3]; + this.accountId = arnParts[4]; + this.descriptor = arnParts.slice(5).join(':'); + + return this; + } + + /** + * @returns {String} + */ + extract() { + let service = this._service; + let region = this._region; + let accountId = this._accountId; + let descriptor = this._descriptor; + + return `arn:aws:${service}:${region}:${accountId}:${descriptor}`; + } +} diff --git a/src/deep-core/lib/AWS/IAM/Statement.js b/src/deep-core/lib/AWS/IAM/Statement.js new file mode 100644 index 00000000..7818d142 --- /dev/null +++ b/src/deep-core/lib/AWS/IAM/Statement.js @@ -0,0 +1,153 @@ +/** + * Created by AlexanderC on 5/27/15. + */ + +'use strict'; + +import {Resource} from './Resource'; +import {Collection} from './Collection'; +import {Action} from './Action'; +import {Policy} from './Policy'; +import {Extractable} from './Extractable'; +import {InvalidArgumentException} from '../../Exception/InvalidArgumentException'; + +/** + * IAM policy statement + */ +export class Statement extends Extractable { + constructor() { + super(); + + this._effect = Statement.ALLOW; + this._action = new Collection(Action); + this._notAction = new Collection(Action); + this._resource = new Collection(Resource); + this._notResource = new Collection(Resource); + this._condition = null; + this._principal = null; + } + + /** + * @param {String} effect + */ + set effect(effect) { + if ([Statement.ALLOW, Statement.DENY].indexOf(effect) === -1) { + throw new InvalidArgumentException(effect, '[Statement.ALLOW, Statement.DENY]'); + } + + this._effect = effect; + } + + /** + * @returns {String} + */ + get effect() { + return this._effect; + } + + /** + * @param {Object} condition + */ + set condition(condition) { + this._condition = condition; + } + + /** + * @returns {Object} + */ + get condition() { + return this._condition; + } + + /** + * @param {*} principal + */ + set principal(principal) { + this._principal = principal; + } + + /** + * @returns {*} + */ + get principal() { + return this._principal; + } + + /** + * @returns {Collection} + */ + get notResource() { + return this._notResource; + } + + /** + * @returns {Collection} + */ + get resource() { + return this._resource; + } + + /** + * @returns {Collection} + */ + get notAction() { + return this._notAction; + } + + /** + * @returns {Collection} + */ + get action() { + return this._action; + } + + /** + * @returns {String} + */ + static get ALLOW() { + return 'Allow'; + } + + /** + * @returns {String} + */ + static get DENY() { + return 'Deny'; + } + + /** + * @returns {Object} + */ + extract() { + let actions = this._action.count() > 0 ? this._action.extract() : Policy.ANY; + let resources = this._resource.count() > 0 ? this._resource.extract() : null; + + let statement = { + Effect: this._effect, + Action: actions, + }; + + if (resources !== null) { + statement.Resource = resources; + } + + if (this._condition !== null && this._condition instanceof Object) { + statement.Condition = this._condition; + } + + // @todo - create separate class for Principal + if (this._principal != null) { + statement.Principal = this._principal; + } + + if (this._notAction.count() > 0) { + statement.NotAction = this._notAction.extract(); + } + + if (this._notResource.count() > 0) { + statement.NotResource = this._notResource.extract(); + } + + return statement; + } +} diff --git a/src/deep-core/lib/AWS/Lambda/ErrorResponse.js b/src/deep-core/lib/AWS/Lambda/ErrorResponse.js new file mode 100644 index 00000000..322a469d --- /dev/null +++ b/src/deep-core/lib/AWS/Lambda/ErrorResponse.js @@ -0,0 +1,26 @@ +/** + * Created by AlexanderC on 5/25/15. + */ + +'use strict'; + +import {Response} from './Response'; + +/** + * Error response sent to the lambda context + */ +export class ErrorResponse extends Response { + /** + * @param {*} args + */ + constructor(...args) { + super(...args); + } + + /** + * @returns {String} + */ + get contextMethod() { + return 'fail'; + } +} diff --git a/src/deep-core/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js b/src/deep-core/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js new file mode 100644 index 00000000..e37c40b4 --- /dev/null +++ b/src/deep-core/lib/AWS/Lambda/Exception/MissingRuntimeContextException.js @@ -0,0 +1,16 @@ +/** + * Created by AlexanderC on 6/12/15. + */ + +'use strict'; + +import {Exception} from '../../../Exception/Exception'; + +/** + * Thrown when missing runtime lambda context + */ +export class MissingRuntimeContextException extends Exception { + constructor() { + super('Missing Lambda runtime context'); + } +} diff --git a/src/deep-core/lib/AWS/Lambda/Request.js b/src/deep-core/lib/AWS/Lambda/Request.js new file mode 100644 index 00000000..dfea7ecb --- /dev/null +++ b/src/deep-core/lib/AWS/Lambda/Request.js @@ -0,0 +1,34 @@ +/** + * Created by AlexanderC on 5/25/15. + */ + +'use strict'; + +/** + * Request received by the lambda context + */ +export class Request { + /** + * @param {*} data + */ + constructor(data) { + this._data = data || {}; + } + + /** + * @returns {*} + */ + get data() { + return this._data; + } + + /** + * @param {String} name + * @param {String|Object|null} defaultValue + * + * @returns {String|Object|null} + */ + getParam(name, defaultValue = null) { + return this.data.hasOwnProperty(name) ? this.data[name] : defaultValue; + } +} diff --git a/src/deep-core/lib/AWS/Lambda/Response.js b/src/deep-core/lib/AWS/Lambda/Response.js new file mode 100644 index 00000000..fd7f21a2 --- /dev/null +++ b/src/deep-core/lib/AWS/Lambda/Response.js @@ -0,0 +1,61 @@ +/** + * Created by AlexanderC on 5/25/15. + */ + +'use strict'; + +import {MissingRuntimeContextException} from './Exception/MissingRuntimeContextException'; + +/** + * Response sent to the lambda context + */ +export class Response { + /** + * @param {*} data + */ + constructor(data) { + this._data = data; + this._runtimeContext = null; + } + + /** + * @param {Object} context + */ + set runtimeContext(context) { + this._runtimeContext = context; + } + + /** + * @returns {Object} + */ + get runtimeContext() { + return this._runtimeContext; + } + + /** + * @returns {Response} + */ + send() { + if (!this._runtimeContext) { + throw new MissingRuntimeContextException(); + } + + this._runtimeContext[this.contextMethod](this._data); + + return this; + } + + /** + * @returns {*} + */ + get data() { + return this._data; + } + + /** + * @returns {String} + */ + get contextMethod() { + return 'succeed'; + } +} diff --git a/src/deep-core/lib/AWS/Lambda/Runtime.js b/src/deep-core/lib/AWS/Lambda/Runtime.js new file mode 100644 index 00000000..5b2d4bf5 --- /dev/null +++ b/src/deep-core/lib/AWS/Lambda/Runtime.js @@ -0,0 +1,110 @@ +/** + * Created by AlexanderC on 5/25/15. + */ +'use strict'; + +import {Interface} from '../../OOP/Interface'; +import {Response} from './Response'; +import {Request} from './Request'; + +/** + * Lambda runtime context + */ +export class Runtime extends Interface { + /** + * @param {Object} kernel + */ + constructor(kernel) { + super(['handle']); + + this._kernel = kernel; + this._request = null; + this._context = null; + } + + /** + * @returns {Object} + */ + get kernel() { + return this._kernel; + } + + /** + * @returns {Function} + */ + get lambda() { + let _this = this; + + return function(event, context) { + _this.run(event, context); + }; + } + + /** + * @param {*} event + * @param {*} context + * @returns {Runtime} + */ + run(event, context) { + this._addExceptionListener(); + + this._context = context; + this._request = new Request(event); + this.handle(this._request); + + return this; + } + + /** + * @private + */ + _addExceptionListener() { + process.removeAllListeners('uncaughtException'); + process.on('uncaughtException', function(error) { + return this.createError(error).send(); + }.bind(this)); + } + + /** + * @param {String} iError + */ + createError(iError) { + let oError = {}; + + if (typeof iError === 'string') { + oError = { + errorType: 'Error', + errorMessage: iError, + errorStack: (new Error(iError)).stack, + }; + } else { + oError = { + errorType: iError.name, + errorMessage: iError.message, + errorStack: iError.stack, + }; + } + + let response = new Response(oError); + response.runtimeContext = this._context; + + return response; + } + + /** + * @param {Object} data + */ + createResponse(data) { + let response = new Response(data); + response.runtimeContext = this._context; + + return response; + } + + /** + * @returns {Request} + */ + get request() { + return this._request; + } +} diff --git a/src/deep-core/lib/AWS/Region.js b/src/deep-core/lib/AWS/Region.js new file mode 100644 index 00000000..c447e0d8 --- /dev/null +++ b/src/deep-core/lib/AWS/Region.js @@ -0,0 +1,146 @@ +/** + * Created by AlexanderC on 5/27/15. + */ + +'use strict'; + +/** + * Available AWS regions + */ +export class Region { + /** + * @returns {String} + */ + static get ANY() { + return '*'; + } + + /** + * @returns {String} + */ + static get ASIA_PACIFIC_TOKYO() { + return 'ap-northeast-1'; + } + + /** + * @returns {String} + */ + static get ASIA_PACIFIC_SINGAPORE() { + return 'ap-southeast-1'; + } + + /** + * @returns {String} + */ + static get ASIA_PACIFIC_SYDNEY() { + return 'ap-southeast-2'; + } + + /** + * @returns {String} + */ + static get EU_FRANKFURT() { + return 'eu-central-1'; + } + + /** + * @returns {String} + */ + static get EU_IRELAND() { + return 'eu-west-1'; + } + + /** + * @returns {String} + */ + static get SOUTH_AMERICA_SAO_PAULO() { + return 'sa-east-1'; + } + + /** + * @returns {String} + */ + static get US_EAST_N_VIRGINIA() { + return 'us-east-1'; + } + + /** + * @returns {String} + */ + static get US_WEST_N_CALIFORNIA() { + return 'us-west-1'; + } + + /** + * @returns {String} + */ + static get US_WEST_OREGON() { + return 'us-west-2'; + } + + /** + * @param {String} name + * @returns {Boolean} + */ + static exists(name) { + return -1 !== Region.list().indexOf(name); + } + + /** + * @returns {String[]} + */ + static list() { + return [ + Region.ANY, + Region.ASIA_PACIFIC_TOKYO, + Region.ASIA_PACIFIC_SYDNEY, + Region.ASIA_PACIFIC_SINGAPORE, + Region.EU_FRANKFURT, + Region.EU_IRELAND, + Region.SOUTH_AMERICA_SAO_PAULO, + Region.US_EAST_N_VIRGINIA, + Region.US_WEST_N_CALIFORNIA, + Region.US_WEST_OREGON, + ]; + } + + /** + * List method alias + * + * @returns {String[]} + */ + static all() { + return Region.list(); + } + + /** + * @param {string} defaultRegion + * @param {array} availableRegions + * @returns {string} + */ + static getAppropriateAwsRegion(defaultRegion, availableRegions) { + if (availableRegions.indexOf(defaultRegion) !== -1) { + return defaultRegion; + } + + let regionContinent = defaultRegion.split('-')[0]; + + for (let regionKey in availableRegions) { + if (!availableRegions.hasOwnProperty(regionKey)) { + continue; + } + + let region = availableRegions[regionKey]; + + if (region === Region.ANY) { + return defaultRegion; + } + + if (region.split('-')[0] === regionContinent) { + return region; + } + } + + return availableRegions[0]; // fallback to first available region + } +} diff --git a/src/deep-core/lib/AWS/Service.js b/src/deep-core/lib/AWS/Service.js new file mode 100644 index 00000000..001e03e8 --- /dev/null +++ b/src/deep-core/lib/AWS/Service.js @@ -0,0 +1,138 @@ +/** + * Created by AlexanderC on 5/27/15. + */ + +'use strict'; + +/** + * Available AWS services + */ +export class Service { + /** + * @returns {String} + */ + static get LAMBDA() { + return 'lambda'; + } + + /** + * @returns {String} + */ + static get SIMPLE_STORAGE_SERVICE() { + return 's3'; + } + + /** + * @returns {String} + */ + static get DYNAMO_DB() { + return 'dynamodb'; + } + + /** + * @returns {String} + */ + static get SIMPLE_NOTIFICATION_SERVICE() { + return 'sns'; + } + + /** + * @returns {String} + */ + static get COGNITO_IDENTITY() { + return 'cognito-identity'; + } + + /** + * @returns {String} + */ + static get COGNITO_SYNC() { + return 'cognito-sync'; + } + + /** + * @returns {String} + */ + static get ELASTIC_CACHE() { + return 'elasticache'; + } + + /** + * @returns {String} + */ + static get IDENTITY_AND_ACCESS_MANAGEMENT() { + return 'iam'; + } + + /** + * @returns {String} + */ + static get KINESIS() { + return 'kinesis'; + } + + /** + * @returns {String} + */ + static get CLOUD_FRONT() { + return 'cloudfront'; + } + + /** + * @returns {String} + */ + static get SECURITY_TOKEN_SERVICE() { + return 'sts'; + } + + /** + * @returns {String} + */ + static get CLOUD_WATCH_LOGS() { + return 'logs'; + } + + /** + * @returns {String} + */ + static get API_GATEWAY() { + return 'apigateway'; + } + + /** + * @param {String} service + * @returns {String} + */ + static identifier(service) { + return `${service}.amazonaws.com`; + } + + /** + * @param {String} name + * @returns {Boolean} + */ + static exists(name) { + return -1 !== Service.list().indexOf(name); + } + + /** + * @returns {String[]} + */ + static list() { + return [ + Service.LAMBDA, + Service.SIMPLE_STORAGE_SERVICE, + Service.DYNAMO_DB, + Service.SIMPLE_NOTIFICATION_SERVICE, + Service.COGNITO_IDENTITY, + Service.COGNITO_SYNC, + Service.ELASTIC_CACHE, + Service.IDENTITY_AND_ACCESS_MANAGEMENT, + Service.KINESIS, + Service.CLOUD_FRONT, + Service.SECURITY_TOKEN_SERVICE, + Service.CLOUD_WATCH_LOGS, + Service.API_GATEWAY, + ]; + } +} diff --git a/src/deep-core/lib/Exception/DatabaseOperationException.js b/src/deep-core/lib/Exception/DatabaseOperationException.js new file mode 100644 index 00000000..ae6e2d1b --- /dev/null +++ b/src/deep-core/lib/Exception/DatabaseOperationException.js @@ -0,0 +1,16 @@ +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when operation on the database failed + */ +export class DatabaseOperationException extends Exception { + + /** + * @param {String} error + */ + constructor(error) { + super(`Database operation failed. ${error}`); + } +} diff --git a/src/deep-core/lib/Exception/Exception.js b/src/deep-core/lib/Exception/Exception.js new file mode 100644 index 00000000..140aef9b --- /dev/null +++ b/src/deep-core/lib/Exception/Exception.js @@ -0,0 +1,36 @@ +/** + * Created by AlexanderC on 5/25/15. + */ + +'use strict'; + +/** + * Base exception + */ +export class Exception extends Error { + /** + * @param {String} message + */ + constructor(message) { + super(); + + if (Error.hasOwnProperty('captureStackTrace')) { + Error.captureStackTrace(this, this.constructor); + } else { + Object.defineProperty(this, 'stack', { + value: (new Error()).stack, + }); + } + + Object.defineProperty(this, 'message', { + value: message, + }); + } + + /** + * @returns {String} + */ + get name() { + return this.constructor.name; + } +} diff --git a/src/deep-core/lib/Exception/InvalidArgumentException.js b/src/deep-core/lib/Exception/InvalidArgumentException.js new file mode 100644 index 00000000..9d739782 --- /dev/null +++ b/src/deep-core/lib/Exception/InvalidArgumentException.js @@ -0,0 +1,22 @@ +/** + * Created by AlexanderC on 5/25/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when invalid argument provided + */ +export class InvalidArgumentException extends Exception { + /** + * @param {*} argument + * @param {String} meantType + */ + constructor(argument, meantType) { + let argumentType = typeof argument; + + super(`Invalid argument ${argument} of type ${argumentType} provided (meant ${meantType}).`); + } +} diff --git a/src/deep-core/lib/Exception/MethodsNotImplementedException.js b/src/deep-core/lib/Exception/MethodsNotImplementedException.js new file mode 100644 index 00000000..f36b44c2 --- /dev/null +++ b/src/deep-core/lib/Exception/MethodsNotImplementedException.js @@ -0,0 +1,26 @@ +/** + * Created by AlexanderC on 5/25/15. + */ + +'use strict'; + +import {Exception} from './Exception'; +import {InvalidArgumentException} from './InvalidArgumentException'; + +/** + * Thrown when methods from interface or abstract class are not implemented + */ +export class MethodsNotImplementedException extends Exception { + /** + * @param {Array} methods + */ + constructor(methods) { + if (!Array.isArray(methods)) { + throw new InvalidArgumentException(methods, 'Array'); + } + + let methodPlain = methods.join(', '); + + super(`One or more method are not implemented (${methodPlain}).`); + } +} diff --git a/src/deep-core/lib/Generic/ObjectStorage.js b/src/deep-core/lib/Generic/ObjectStorage.js new file mode 100644 index 00000000..9c49befa --- /dev/null +++ b/src/deep-core/lib/Generic/ObjectStorage.js @@ -0,0 +1,57 @@ +/** + * Created by AlexanderC on 5/27/15. + */ + +'use strict'; + +/** + * Simple object storage implementation + */ +export class ObjectStorage { + /** + * @param {Array} objects + */ + constructor(...objects) { + if (objects.length === 1 && objects[0] instanceof Array) { + objects = objects[0]; + } + + this._vector = objects; + } + + /** + * @param {*} object + * @returns {ObjectStorage} + */ + add(object) { + this._vector.push(object); + + return this; + } + + /** + * @param {*} thing + * @param {Boolean} strict + * @returns {*} + */ + find(thing, strict = false) { + for (let objectKey in this._vector) { + if (!this._vector.hasOwnProperty(objectKey)) { + continue; + } + + let object = this._vector[objectKey]; + + if ((strict && object === thing) || (!strict && object instanceof thing)) { + return object; + } + } + } + + /** + * @returns {Array} + */ + get iterator() { + return this._vector; + } +} diff --git a/src/deep-core/lib/Generic/ObjectVector.js b/src/deep-core/lib/Generic/ObjectVector.js new file mode 100644 index 00000000..34b2da7d --- /dev/null +++ b/src/deep-core/lib/Generic/ObjectVector.js @@ -0,0 +1,41 @@ +'use strict'; + +export class ObjectVector { + + /** + * @param {Function} proto + * @param {Object[]|*} instances + */ + constructor(proto, ...instances) { + this._proto = proto; + this._vector = []; + + this.add(...instances); + } + + /** + * Add new instances to collection + * @param {Object[]|*} instances + */ + add(...instances) { + for (let instance of instances) { + if (!(instance instanceof this._proto)) { + throw new Error( + `The object ${instance.constructor.name} is not an instance of ${this._proto.name}` + ); + } + + this._vector.push(instance); + } + + return this; + } + + /** + * Get collection of instances + * @returns {Object[]} + */ + get collection() { + return this._vector; + } +} diff --git a/src/deep-core/lib/OOP/Interface.js b/src/deep-core/lib/OOP/Interface.js new file mode 100644 index 00000000..c0665be1 --- /dev/null +++ b/src/deep-core/lib/OOP/Interface.js @@ -0,0 +1,39 @@ +/** + * Created by AlexanderC on 5/25/15. + */ + +'use strict'; + +import {MethodsNotImplementedException} from '../Exception/MethodsNotImplementedException'; +import {InvalidArgumentException} from '../Exception/InvalidArgumentException'; + +/** + * Interface implementation + */ +export class Interface { + /** + * @param {String[]|String} abstractMethods + */ + constructor(...abstractMethods) { + let methods = abstractMethods.length === 1 && abstractMethods[0] instanceof Array + ? abstractMethods[0] + : abstractMethods; + + let notImplementedMethods = []; + + for (let abstractMethodKey in methods) { + if (!methods.hasOwnProperty(abstractMethodKey)) { + continue; + } + + let abstractMethod = methods[abstractMethodKey]; + if (!(this[abstractMethod] instanceof Function)) { + notImplementedMethods.push(abstractMethod); + } + } + + if (notImplementedMethods.length > 0) { + throw new MethodsNotImplementedException(notImplementedMethods); + } + } +} diff --git a/src/deep-core/lib/bootstrap.js b/src/deep-core/lib/bootstrap.js new file mode 100644 index 00000000..baae762c --- /dev/null +++ b/src/deep-core/lib/bootstrap.js @@ -0,0 +1,48 @@ +/** + * Created by AlexanderC on 5/22/15. + * + * Bootstrap file loaded by npm as main + */ + +'use strict'; + +import {Interface as OOPInterface} from './OOP/Interface'; +import {Runtime as AWSLambdaRuntime} from './AWS/Lambda/Runtime'; +import {Region as AWSRegion} from './AWS/Region'; +import {Service as AWSService} from './AWS/Service'; +import {Policy as AWSIAMPolicy} from './AWS/IAM/Policy'; +import {Factory as AWSIAMFactory} from './AWS/IAM/Factory'; +import {ObjectStorage as GenericObjectStorage} from './Generic/ObjectStorage'; +import {ObjectVector as GenericObjectVector} from './Generic/ObjectVector'; +import {Exception as ExceptionException} from './Exception/Exception'; +import {MethodsNotImplementedException as ExceptionMethodsNotImplementedException} from './Exception/MethodsNotImplementedException'; +import {InvalidArgumentException as ExceptionInvalidArgumentException} from './Exception/InvalidArgumentException'; +import {DatabaseOperationException as ExceptionDatabaseOperationException} from './Exception/DatabaseOperationException'; + +let exports = module.exports = { + IS_DEV_SERVER: global.__DEEP_DEV_SERVER || false, + Exception: { + Exception: ExceptionException, + InvalidArgumentException: ExceptionInvalidArgumentException, + MethodsNotImplementedException: ExceptionMethodsNotImplementedException, + DatabaseOperationException: ExceptionDatabaseOperationException, + }, + OOP: { + Interface: OOPInterface, + }, + Generic: { + ObjectStorage: GenericObjectStorage, + ObjectVector: GenericObjectVector, + }, + AWS: { + Region: AWSRegion, + Service: AWSService, + IAM: { + Factory: AWSIAMFactory, + Policy: AWSIAMPolicy, + }, + Lambda: { + Runtime: AWSLambdaRuntime, + }, + }, +}; diff --git a/src/deep-core/package.json b/src/deep-core/package.json new file mode 100644 index 00000000..7e8d452f --- /dev/null +++ b/src/deep-core/package.json @@ -0,0 +1,68 @@ +{ + "name": "deep-core", + "version": "1.0.1", + "description": "DEEP Core Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Veaceslav Cotruta", + "email": "vcotruta@mitocgroup.com" + }, + { + "name": "Alexandru Scripnic", + "email": "ascripnic@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": {}, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/src/deep-core/test/.gitkeep b/src/deep-core/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-core/test/AWS/IAM/Action.js b/src/deep-core/test/AWS/IAM/Action.js new file mode 100644 index 00000000..7b81fd9d --- /dev/null +++ b/src/deep-core/test/AWS/IAM/Action.js @@ -0,0 +1,50 @@ +'use strict'; + +import chai from 'chai'; +import {Action} from '../../../lib.compiled/AWS/IAM/Action'; +import {Policy} from '../../../lib.compiled/AWS/IAM/Policy'; +import {InvalidArgumentException} from '../../../lib.compiled/Exception/InvalidArgumentException'; + +suite('AWS/IAM/Action', function() { + let action = new Action(); + let actionName = 'GET'; + let validServiceName = 'sns'; + let invalidServiceName = 'invalidServiceTest' + + test('Class Action exists in AWS/IAM/Action', function() { + chai.expect(typeof Action).to.equal('function'); + }); + + test(`Check constructor sets _service=${Policy.ANY}`, function() { + chai.expect(action.service).to.be.equal(Policy.ANY); + }); + + test(`Check constructor sets _action=${Policy.ANY}`, function() { + chai.expect(action.action).to.be.equal(Policy.ANY); + }); + + test(`Check action setter sets value ${actionName}`, function() { + action.action = actionName; + chai.expect(action.action).to.be.equal(actionName); + }); + + test(`Check service setter sets value ${validServiceName}`, function() { + action.service = validServiceName; + chai.expect(action.service).to.be.equal(validServiceName); + }); + + test(`Check service setter throws exception for invalid value: ${invalidServiceName}`, function() { + let error = null; + try { + action.service = invalidServiceName; + } catch (e) { + error = e; + } + + chai.expect(error).to.be.an.instanceof(InvalidArgumentException); + }); + + test(`Check exract() method returns: ${validServiceName}:${actionName}`, function() { + chai.expect(action.extract()).to.be.equal(`${validServiceName}:${actionName}`); + }); +}); diff --git a/src/deep-core/test/AWS/IAM/Collection.js b/src/deep-core/test/AWS/IAM/Collection.js new file mode 100644 index 00000000..c02626bc --- /dev/null +++ b/src/deep-core/test/AWS/IAM/Collection.js @@ -0,0 +1,22 @@ +'use strict'; + +import chai from 'chai'; +import {Collection} from '../../../lib.compiled/AWS/IAM/Collection'; +import {Extractable} from '../../../lib.compiled/AWS/IAM/Extractable'; + +class Extractor extends Extractable { + constructor() { + super(); + } + + extract() { + return 'extracted'; + } +} + +suite('AWS/IAM/Collection', function() { + + test('Class Collection exists in AWS/IAM/Collection', function() { + chai.expect(typeof Collection).to.equal('function'); + }); +}); diff --git a/src/deep-core/test/AWS/IAM/Extractable.js b/src/deep-core/test/AWS/IAM/Extractable.js new file mode 100644 index 00000000..98f97ac6 --- /dev/null +++ b/src/deep-core/test/AWS/IAM/Extractable.js @@ -0,0 +1,10 @@ +'use strict'; + +import chai from 'chai'; +import {Extractable} from '../../../lib.compiled/AWS/IAM/Extractable'; + +suite("AWS/IAM/Extractable", function () { + test('Class Extractable exists in AWS/IAM/Extractable', function () { + chai.expect(typeof Extractable).to.equal('function'); + }); +}); diff --git a/src/deep-core/test/AWS/IAM/Factory.js b/src/deep-core/test/AWS/IAM/Factory.js new file mode 100644 index 00000000..30074057 --- /dev/null +++ b/src/deep-core/test/AWS/IAM/Factory.js @@ -0,0 +1,49 @@ +'use strict'; + +import chai from 'chai'; +import {Factory} from '../../../lib.compiled/AWS/IAM/Factory'; +import {Statement} from '../../../lib.compiled/AWS/IAM/Statement'; + +suite('AWS/IAM/Factory', function() { + let factory = new Factory(); + let objectPrototype = {key1: 'value'}; + let stringPrototype = 'proto'; + + test('Class Factory exists in AWS/IAM/Factory', function() { + chai.expect(typeof Factory).to.equal('function'); + }); + + test('Object of class Factory created successfully', function() { + chai.expect(typeof factory).to.equal('object'); + }); + + test('Check _assurePrototype static method returns valid prototype', function() { + chai.expect(Factory._assurePrototype(objectPrototype)).to.be.equal(objectPrototype); + }); + + test('Check _assurePrototype static method returns valid prototype', function() { + //todo - TBD + //chai.expect(Factory._assurePrototype(stringPrototype)).to.be.eql({}); + }); + + test('Check create() static method returns new prototype', function() { + //todo - TBD + //chai.expect(Factory.create(objectPrototype)).to.be.eql(objectPrototype); + }); + + test('Check POLICY static getter returns Policy class', function() { + chai.expect(typeof Factory.POLICY).to.be.equal('function'); + }); + + test('Check RESOURCE static getter returns Resources class', function() { + chai.expect(typeof Factory.RESOURCE).to.be.equal('function'); + }); + + test('Check ACTION static getter returns Action class', function() { + chai.expect(typeof Factory.ACTION).to.be.equal('function'); + }); + + test('Check STATEMENT static getter returns Statement class', function() { + chai.expect(typeof Factory.STATEMENT).to.be.equal('function'); + }); +}); diff --git a/src/deep-core/test/AWS/IAM/Policy.js b/src/deep-core/test/AWS/IAM/Policy.js new file mode 100644 index 00000000..18a7e568 --- /dev/null +++ b/src/deep-core/test/AWS/IAM/Policy.js @@ -0,0 +1,47 @@ +'use strict'; + +import chai from 'chai'; +import {Policy} from '../../../lib.compiled/AWS/IAM/Policy'; +import {Collection} from '../../../lib.compiled/AWS/IAM/Collection'; +import {Statement} from '../../../lib.compiled/AWS/IAM/Statement'; + +suite('AWS/IAM/Policy', function() { + let policy = new Policy(); + let newVersion = '2015-09-23'; + let expectedResult = '{"Version":"2015-09-23","Statement":[]}'; + + test('Class Policy exists in AWS/IAM/Policy', function() { + chai.expect(typeof Policy).to.equal('function'); + }); + + test(`Check constructor sets _version=\'2012-10-17\'`, function() { + chai.expect(policy.version).to.be.equal('2012-10-17'); + }); + + test('Check constructor sets _statement', function() { + chai.assert.typeOf(policy.statement, 'object', 'created Statement object'); + }); + + test('Check ANY static getter return \'*\'', function() { + chai.expect(Policy.ANY).to.be.equal('*'); + }); + + test('Check DEFAULT_VERSION static getter return \'2012-10-17\'', function() { + chai.expect(Policy.DEFAULT_VERSION).to.be.equal('2012-10-17'); + }); + + test(`Check version setter sets _version=${newVersion}`, function() { + policy.version = newVersion; + chai.expect(policy.version).to.be.equal(newVersion); + }); + + test('Check exract() method returns valid object', function() { + policy.version = newVersion; + chai.expect(policy.extract().Version).to.be.equal(newVersion); + chai.expect(policy.extract().Statement).to.be.eql([]); + }); + + test('Check toString() method returns valid string', function() { + chai.expect(policy.toString()).to.be.eql(expectedResult); + }); +}); diff --git a/src/deep-core/test/AWS/IAM/Resource.js b/src/deep-core/test/AWS/IAM/Resource.js new file mode 100644 index 00000000..c3de5af9 --- /dev/null +++ b/src/deep-core/test/AWS/IAM/Resource.js @@ -0,0 +1,113 @@ +'use strict'; + +import chai from 'chai'; +import {Resource} from '../../../lib.compiled/AWS/IAM/Resource'; +import {InvalidArgumentException} from '../../../lib.compiled/Exception/InvalidArgumentException'; +import {InvalidArnException} from '../../../lib.compiled/AWS/IAM/Exception/InvalidArnException'; + +suite('AWS/IAM/Resource', function() { + let resource = new Resource(); + let validServiceName = 'lambda'; + let validRegion = 'us-west-2'; + let accountId = 'accountIdTest'; + let descriptor = 'descriptorTest'; + let validArn = 'arn:aws:sns:us-west-1:accountIdFromArn:descriptorFromArn'; + + let invalidServiceName = 'invalidServiceTest'; + let invalidRegion = 'invalidRegionTest'; + let invalidArn = 'invalidArnTest'; + + test('Class Resource exists in AWS/IAM/Resource', function() { + chai.expect(typeof Resource).to.equal('function'); + }); + + test('Check constructor sets _descriptor=\'\'', function() { + chai.expect(resource.descriptor).to.be.equal(''); + }); + + test('Check constructor sets _accountId=\'\'', function() { + chai.expect(resource.accountId).to.be.equal(''); + }); + + test('Check constructor sets _region=\'\'', function() { + chai.expect(resource.region).to.be.equal(''); + }); + + test('Check constructor sets _service=\'\'', function() { + chai.expect(resource.service).to.be.equal(''); + }); + + test(`Check accountId setter sets value ${accountId}`, function() { + resource.accountId = accountId; + chai.expect(resource.accountId).to.be.equal(accountId); + }); + + test(`Check service setter sets value ${validServiceName}`, function() { + resource.service = validServiceName; + chai.expect(resource.service).to.be.equal(validServiceName); + }); + + test(`Check region setter sets value ${validRegion}`, function() { + resource.region = validRegion; + chai.expect(resource.region).to.be.equal(validRegion); + }); + + test(`Check descriptor setter sets value ${descriptor}`, function() { + resource.descriptor = descriptor; + chai.expect(resource.descriptor).to.be.equal(descriptor); + }); + + test(`Check region setter throws exception for invalid value: ${invalidRegion}`, function() { + let error = null; + try { + resource.region = invalidRegion; + } catch (e) { + error = e; + } + + chai.expect(error).to.be.an.instanceof(InvalidArgumentException); + }); + + test(`Check service setter throws exception for invalid value: ${invalidServiceName}`, function() { + let error = null; + try { + resource.service = invalidServiceName; + } catch (e) { + error = e; + } + + chai.expect(error).to.be.an.instanceof(InvalidArgumentException); + }); + + test(`Check updateFromArn method throws exception for invalid value: ${invalidArn}`, function() { + let error = null; + try { + resource.updateFromArn(invalidArn); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.an.instanceof(InvalidArnException); + }); + + test(`Check extract() method returns: arn:aws:${validServiceName}:${validRegion}:${accountId}:${descriptor}`, function() { + chai.expect(resource.extract()).to.be.equal(`arn:aws:${validServiceName}:${validRegion}:${accountId}:${descriptor}`); + }); + + test(`Check updateFromArn() method sets values correctly`, function() { + let error = null; + let arnParts = validArn.split(':'); + chai.expect(arnParts.length).to.be.equal(6); + try { + resource.updateFromArn(validArn); + } catch (e) { + error = e; + chai.expect(error).to.be.eql(null); + } + + chai.expect(resource.service).to.be.equal(arnParts[2]); + chai.expect(resource.region).to.be.equal(arnParts[3]); + chai.expect(resource.accountId).to.be.equal(arnParts[4]); + chai.expect(resource.descriptor).to.be.equal(arnParts.slice(5).join(':')); + }); +}); \ No newline at end of file diff --git a/src/deep-core/test/AWS/IAM/Statement.js b/src/deep-core/test/AWS/IAM/Statement.js new file mode 100644 index 00000000..22a88431 --- /dev/null +++ b/src/deep-core/test/AWS/IAM/Statement.js @@ -0,0 +1,107 @@ +'use strict'; + +import chai from 'chai'; +import {Statement} from '../../../lib.compiled/AWS/IAM/Statement'; +import {InvalidArgumentException} from '../../../lib.compiled/Exception/InvalidArgumentException'; + +suite('AWS/IAM/Statement', function() { + let statement = new Statement(); + let invalidEffect = 'invalidEffect'; + let condition = 'conditionTest'; + let principal = 'principalTest'; + + test('Class Statement exists in AWS/IAM/Statement', function() { + chai.expect(typeof Statement).to.equal('function'); + }); + + test('Check constructor sets _effect', function() { + chai.expect(statement.effect).to.be.equal('Allow'); + }); + + test('Check constructor sets _action', function() { + chai.assert.typeOf(statement.action, 'object', 'created Action object'); + }); + + test('Check constructor sets _notAction', function() { + chai.assert.typeOf(statement.notAction, 'object', 'created Action object'); + }); + + test('Check constructor sets _resource', function() { + chai.assert.typeOf(statement.resource, 'object', 'created Resource object'); + }); + + test('Check constructor sets _notResource', function() { + chai.assert.typeOf(statement.notResource, 'object', 'created Resource object'); + }); + + test('Check constructor sets _condition=null', function() { + chai.expect(statement.condition).to.be.equal(null); + }); + + test('Check constructor sets _principal=null', function() { + chai.expect(statement.principal).to.be.equal(null); + }); + + test('Check DENY static getter returns value \'Deny\'', function() { + chai.expect(Statement.DENY).to.be.equal('Deny'); + }); + + test('Check ALLOW static getter returns value \'Allow\'', function() { + chai.expect(Statement.ALLOW).to.be.equal('Allow'); + }); + + test(`Check effect setter throws exception for invalid value: ${invalidEffect}`, function() { + let error = null; + try { + statement.effect = invalidEffect; + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(InvalidArgumentException); + }); + + test(`Check effect setter sets value: ${Statement.DENY}`, function() { + let error = null; + try { + statement.effect = Statement.DENY; + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(statement.effect).to.be.equal(Statement.DENY); + }); + + test(`Check effect setter sets value: ${Statement.ALLOW}`, function() { + let error = null; + try { + statement.effect = Statement.ALLOW; + } catch (e) { + error = e; + chai.expect(error).to.be.equal(null); + } + + chai.expect(statement.effect).to.be.equal(Statement.ALLOW); + }); + + test(`Check condition setter sets _condition=${condition}`, function() { + statement.condition = condition; + chai.expect(statement.condition).to.be.equal(condition); + }); + + test(`Check principal setter sets _principal=${principal}`, function() { + statement.principal = principal; + chai.expect(statement.principal).to.be.equal(principal); + }); + + test('Check extract() method returns valid statement', function() { + let expectedResult = { + Action: '*', + Effect: 'Allow', + Principal: 'principalTest', + }; + chai.expect(statement.extract()).to.be.eql(expectedResult); + }); +}); diff --git a/src/deep-core/test/AWS/Lambda/ErrorResponse.js b/src/deep-core/test/AWS/Lambda/ErrorResponse.js new file mode 100644 index 00000000..5638a863 --- /dev/null +++ b/src/deep-core/test/AWS/Lambda/ErrorResponse.js @@ -0,0 +1,69 @@ +'use strict'; + +import chai from 'chai'; +import {ErrorResponse} from '../../../lib.compiled/AWS/Lambda/ErrorResponse'; +import {MissingRuntimeContextException} from '../../../lib.compiled/AWS/Lambda/Exception/MissingRuntimeContextException'; + + +suite('AWS/Lambda/ErrorResponse', function() { + let data = {firstKey: 'firstValue'}; + let runtimeContext = { contextProperty: 'runtimeContext'}; + runtimeContext.fail = () => { + runtimeContext.contextProperty = 'sendFailContext'; + }; + + let errorResponse = new ErrorResponse(data); + + test('Class ErrorResponse exists in AWS/Lambda/ErrorResponse', function() { + chai.expect(typeof ErrorResponse).to.equal('function'); + }); + + test('Check constructor sets _runtimeContext=null', function() { + chai.expect(errorResponse.runtimeContext).to.be.equal(null); + }); + + test('Check constructor sets _data', function() { + chai.expect(errorResponse.data).to.be.equal(data); + }); + + test('Check contextMethod getter returns \'fail\'', function() { + chai.expect(errorResponse.contextMethod).to.be.equal('fail'); + }); + + test(`Check send() method throws MissingRuntimeContextException exception for empty _runtimeContext`, function() { + let error = null; + try { + errorResponse.send(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.an.instanceof(MissingRuntimeContextException); + }); + + test(`Check send() method returns valid object`, function() { + let error = null; + let actualResult = null; + let expectedResult = { + _data: { + firstKey: 'firstValue', + }, + _runtimeContext: { + contextProperty: 'sendFailContext', + }, + }; + + //set new valid context + errorResponse.runtimeContext = runtimeContext; + expectedResult._runtimeContext.fail = errorResponse.runtimeContext.fail; + chai.expect(errorResponse.runtimeContext).to.be.eql(runtimeContext); + try { + actualResult = errorResponse.send(); + } catch (e) { + error = e; + chai.expect(error).to.be.equal(null); + } + + chai.expect(actualResult).to.be.eql(expectedResult); + }); +}); \ No newline at end of file diff --git a/src/deep-core/test/AWS/Lambda/Request.js b/src/deep-core/test/AWS/Lambda/Request.js new file mode 100644 index 00000000..edaabc70 --- /dev/null +++ b/src/deep-core/test/AWS/Lambda/Request.js @@ -0,0 +1,30 @@ +'use strict'; + +import chai from 'chai'; +import {Request} from '../../../lib.compiled/AWS/Lambda/Request'; + +suite('AWS/Lambda/Request', function() { + let data = {firstKey: 'firstValue'}; + let request = new Request(); + + test('Class Request exists in AWS/Lambda/Request', function() { + chai.expect(typeof Request).to.equal('function'); + }); + + test('Check constructor sets _data={}', function() { + chai.expect(request.data).to.be.eql({}); + }); + + test('Check constructor sets _data', function() { + request = new Request(data); + chai.expect(request.data).to.be.eql(data); + }); + + test('Check getParam() method returns null', function() { + chai.expect(request.getParam('name')).to.be.equal(null); + }); + + test('Check getParam() method returns param', function() { + chai.expect(request.getParam('firstKey')).to.be.equal(data.firstKey); + }); +}); diff --git a/src/deep-core/test/AWS/Lambda/Response.js b/src/deep-core/test/AWS/Lambda/Response.js new file mode 100644 index 00000000..11539e38 --- /dev/null +++ b/src/deep-core/test/AWS/Lambda/Response.js @@ -0,0 +1,69 @@ +'use strict'; + +import chai from 'chai'; +import {Response} from '../../../lib.compiled/AWS/Lambda/Response'; +import {MissingRuntimeContextException} from '../../../lib.compiled/AWS/Lambda/Exception/MissingRuntimeContextException'; + + +suite('AWS/Lambda/Response', function() { + let data = {firstKey: 'firstValue'}; + let runtimeContext = { contextProperty: 'runtimeContext'}; + runtimeContext.succeed = () => { + runtimeContext.contextProperty = 'sendSuccessContext'; + }; + + let response = new Response(data); + + test('Class Response exists in AWS/Lambda/Response', function() { + chai.expect(typeof Response).to.equal('function'); + }); + + test('Check constructor sets _runtimeContext=null', function() { + chai.expect(response.runtimeContext).to.be.equal(null); + }); + + test('Check constructor sets _data', function() { + chai.expect(response.data).to.be.equal(data); + }); + + test('Check contextMethod getter returns \'succeed\'', function() { + chai.expect(response.contextMethod).to.be.equal('succeed'); + }); + + test(`Check send() method throws MissingRuntimeContextException exception for empty _runtimeContext`, function() { + let error = null; + try { + response.send(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.an.instanceof(MissingRuntimeContextException); + }); + + test(`Check send() method returns valid object`, function() { + let error = null; + let actualResult = null; + let expectedResult = { + _data: { + firstKey: 'firstValue', + }, + _runtimeContext: { + contextProperty: 'sendSuccessContext', + }, + }; + + //set new valid context + response.runtimeContext = runtimeContext; + expectedResult._runtimeContext.succeed = response.runtimeContext.succeed; + chai.expect(response.runtimeContext).to.be.eql(runtimeContext); + try { + actualResult = response.send(); + } catch (e) { + error = e; + chai.expect(error).to.be.equal(null); + } + + chai.expect(actualResult).to.be.eql(expectedResult); + }); +}); diff --git a/src/deep-core/test/AWS/Lambda/Runtime.js b/src/deep-core/test/AWS/Lambda/Runtime.js new file mode 100644 index 00000000..4dc05376 --- /dev/null +++ b/src/deep-core/test/AWS/Lambda/Runtime.js @@ -0,0 +1,88 @@ +'use strict'; + +import chai from 'chai'; +import {Runtime} from '../../../lib.compiled/AWS/Lambda/Runtime'; +import {Request} from '../../../lib.compiled/AWS/Lambda/Request'; +import {Response} from '../../../lib.compiled/AWS/Lambda/Response'; + + +class RuntimeTest extends Runtime { + constructor(kernel) { + super(kernel); + } + + handle() { + this._kernel = 'handled'; + return this; + } +} + +suite('AWS/Lambda/Runtime', function() { + let kernel = { + kernelKey: 'kernelValue', + }; + let event = {event: 'runLambda'}; + let context = {context: 'simpleContext'}; + let data = {data: 'responseData'}; + + let runtimeTest = new RuntimeTest(kernel); + + test('Class Runtime exists in AWS/Lambda/Runtime', function() { + chai.expect(typeof Runtime).to.equal('function'); + }); + + test('Check constructor sets _kernel', function() { + chai.expect(runtimeTest.kernel).to.be.eql(kernel); + }); + + test('Check constructor sets _request=null', function() { + chai.expect(runtimeTest.request).to.be.equal(null); + }); + + test('Check constructor sets _context=null', function() { + chai.expect(runtimeTest._context).to.be.equal(null); + }); + + test('Check run() method returns valid object', function() { + let actualResult = runtimeTest.run(event, context); + chai.expect(actualResult._context).to.be.eql(context); + chai.expect(actualResult.kernel).to.be.eql('handled'); + chai.expect(actualResult.request).to.be.an.instanceof(Request); + }); + + test('Check createResponse() method returns valid object', function() { + let actualResult = runtimeTest.createResponse(data); + chai.expect(actualResult).to.be.an.instanceof(Response); + chai.expect(actualResult.data).to.be.eql(data); + chai.expect(actualResult.runtimeContext).to.be.eql(context); + }); + + test('Check createError() method returns valid object for string error', function() { + let errorString = 'Error was throw: stacktrace stacktrace'; + let actualResult = runtimeTest.createError(errorString); + chai.expect(actualResult).to.be.an.instanceof(Response); + chai.expect(actualResult.data.errorType).to.be.equal('Error'); + chai.expect(actualResult.data.errorMessage).to.be.equal(errorString); + chai.expect(actualResult.runtimeContext).to.be.eql(context); + }); + + test('Check createError() method returns valid object for string error', function() { + let error = { + message: 'Error was throw: stacktrace stacktrace', + name: 'RuntimeException', + }; + let actualResult = runtimeTest.createError(error); + chai.expect(actualResult).to.be.an.instanceof(Response); + chai.expect(actualResult.data.errorType).to.be.equal(error.name); + chai.expect(actualResult.data.errorMessage).to.be.equal(error.message); + chai.expect(actualResult.runtimeContext).to.be.eql(context); + }); + + test('Check lambda() method returns valid object ', function() { + let functionResult = runtimeTest.lambda; + chai.expect(typeof functionResult).to.be.equal('function'); + let actualResult = functionResult(event, context); + }); + + //todo - Need to add test for _addExceptionListener +}); diff --git a/src/deep-core/test/AWS/Region.js b/src/deep-core/test/AWS/Region.js new file mode 100644 index 00000000..4c787c73 --- /dev/null +++ b/src/deep-core/test/AWS/Region.js @@ -0,0 +1,107 @@ +'use strict'; + +import chai from 'chai'; +import {Region} from '../../lib.compiled/AWS/Region'; + +suite('AWS/Region', function() { + let region = new Region(); + + test('Class Region exists in AWS/Region', function() { + chai.expect(typeof Region).to.equal('function'); + }); + + test('Check ANY static getter returns \'*\'', function() { + chai.expect(Region.ANY).to.be.equal('*'); + }); + + test('Check ASIA_PACIFIC_TOKYO static getter returns \'ap-northeast-1\'', function() { + chai.expect(Region.ASIA_PACIFIC_TOKYO).to.be.equal('ap-northeast-1'); + }); + + test('Check ASIA_PACIFIC_SINGAPORE static getter returns \'ap-southeast-1\'', function() { + chai.expect(Region.ASIA_PACIFIC_SINGAPORE).to.be.equal('ap-southeast-1'); + }); + + test('Check ASIA_PACIFIC_SYDNEY static getter returns \'ap-southeast-2\'', function() { + chai.expect(Region.ASIA_PACIFIC_SYDNEY).to.be.equal('ap-southeast-2'); + }); + + test('Check EU_FRANKFURT static getter returns \'eu-central-1\'', function() { + chai.expect(Region.EU_FRANKFURT).to.be.equal('eu-central-1'); + }); + + test('Check EU_IRELAND static getter returns \'eu-west-1\'', function() { + chai.expect(Region.EU_IRELAND).to.be.equal('eu-west-1'); + }); + + test('Check SOUTH_AMERICA_SAO_PAULO static getter returns \'sa-east-1\'', function() { + chai.expect(Region.SOUTH_AMERICA_SAO_PAULO).to.be.equal('sa-east-1'); + }); + + test('Check US_EAST_N_VIRGINIA static getter returns \'us-east-1\'', function() { + chai.expect(Region.US_EAST_N_VIRGINIA).to.be.equal('us-east-1'); + }); + + test('Check US_WEST_N_CALIFORNIA static getter returns \'us-west-1\'', function() { + chai.expect(Region.US_WEST_N_CALIFORNIA).to.be.equal('us-west-1'); + }); + + test('Check US_WEST_OREGON static getter returns \'us-west-2\'', function() { + chai.expect(Region.US_WEST_OREGON).to.be.equal('us-west-2'); + }); + + test('Check list() static method returns array of regions', function() { + chai.expect(Region.list().length).to.be.equal(10); + chai.expect(Region.list()).to.be.include(Region.ANY); + chai.expect(Region.list()).to.be.include(Region.ASIA_PACIFIC_TOKYO); + chai.expect(Region.list()).to.be.include(Region.ASIA_PACIFIC_SYDNEY); + chai.expect(Region.list()).to.be.include(Region.ASIA_PACIFIC_SINGAPORE); + chai.expect(Region.list()).to.be.include(Region.EU_FRANKFURT); + chai.expect(Region.list()).to.be.include(Region.EU_IRELAND); + chai.expect(Region.list()).to.be.include(Region.SOUTH_AMERICA_SAO_PAULO); + chai.expect(Region.list()).to.be.include(Region.US_EAST_N_VIRGINIA); + chai.expect(Region.list()).to.be.include(Region.US_WEST_N_CALIFORNIA); + chai.expect(Region.list()).to.be.include(Region.US_WEST_OREGON); + }); + + test('Check all() static method returns array of region alias', function() { + chai.expect(Region.all().length).to.be.equal(10); + chai.expect(Region.all()).to.be.include(Region.ANY); + chai.expect(Region.all()).to.be.include(Region.ASIA_PACIFIC_TOKYO); + chai.expect(Region.all()).to.be.include(Region.ASIA_PACIFIC_SYDNEY); + chai.expect(Region.all()).to.be.include(Region.ASIA_PACIFIC_SINGAPORE); + chai.expect(Region.all()).to.be.include(Region.EU_FRANKFURT); + chai.expect(Region.all()).to.be.include(Region.EU_IRELAND); + chai.expect(Region.all()).to.be.include(Region.SOUTH_AMERICA_SAO_PAULO); + chai.expect(Region.all()).to.be.include(Region.US_EAST_N_VIRGINIA); + chai.expect(Region.all()).to.be.include(Region.US_WEST_N_CALIFORNIA); + chai.expect(Region.all()).to.be.include(Region.US_WEST_OREGON); + }); + + test('Check exists() static method returns true if region exists', function() { + chai.expect(Region.exists('*')).to.be.equal(true); + chai.expect(Region.exists(Region.US_EAST_N_VIRGINIA)).to.be.equal(true); + }); + + test('Check exists() static method returns false if region doesn\'t exist', function() { + chai.expect(Region.exists('')).to.be.equal(false); + chai.expect(Region.exists()).to.be.equal(false); + chai.expect(Region.exists('eu-region-1')).to.be.equal(false); + }); + + test('Check getAppropriateAwsRegion() static method returns default AWS region as the already existed in availableRegions array', function() { + chai.expect(Region.getAppropriateAwsRegion(Region.US_EAST_N_VIRGINIA, [Region.US_EAST_N_VIRGINIA])).to.be.equal(Region.US_EAST_N_VIRGINIA); + }); + + test('Check getAppropriateAwsRegion() static method returns approriate AWS region', function() { + chai.expect(Region.getAppropriateAwsRegion('eu-region-1', [Region.US_WEST_N_CALIFORNIA, Region.US_EAST_N_VIRGINIA, Region.EU_FRANKFURT])).to.be.equal(Region.EU_FRANKFURT); + }); + + test('Check getAppropriateAwsRegion() static method returns approriate AWS region as ANY for default', function() { + chai.expect(Region.getAppropriateAwsRegion(Region.US_EAST_N_VIRGINIA, [Region.US_WEST_N_CALIFORNIA, Region.US_EAST_N_VIRGINIA, Region.EU_FRANKFURT, Region.ANY])).to.be.equal(Region.US_EAST_N_VIRGINIA); + }); + + test('Check getAppropriateAwsRegion() static method returns approriate AWS region as ANY for default', function() { + chai.expect(Region.getAppropriateAwsRegion('eu-region-1', [Region.US_WEST_N_CALIFORNIA, Region.US_EAST_N_VIRGINIA])).to.be.equal(Region.US_WEST_N_CALIFORNIA); + }); +}); \ No newline at end of file diff --git a/src/deep-core/test/AWS/Service.js b/src/deep-core/test/AWS/Service.js new file mode 100644 index 00000000..4a877736 --- /dev/null +++ b/src/deep-core/test/AWS/Service.js @@ -0,0 +1,104 @@ + +'use strict'; + +import chai from 'chai'; +import {Service} from '../../lib.compiled/AWS/Service'; + +suite('AWS/Service', function() { + let service = new Service(); + let serviceName = 'lambda'; + + test('Class Service exists in AWS/Service', function() { + chai.expect(typeof Service).to.equal('function'); + }); + + test('Object of class Service created successfully', function() { + chai.expect(typeof service).to.equal('object'); + }); + + test('Check LAMBDA static getter returns \'lambda\'', function() { + chai.expect(Service.LAMBDA).to.be.equal('lambda'); + }); + + test('Check SIMPLE_STORAGE_SERVICE static getter returns \'s3\'', function() { + chai.expect(Service.SIMPLE_STORAGE_SERVICE).to.be.equal('s3'); + }); + + test('Check DYNAMO_DB static getter returns \'dynamodb\'', function() { + chai.expect(Service.DYNAMO_DB).to.be.equal('dynamodb'); + }); + + test('Check SIMPLE_NOTIFICATION_SERVICE static getter returns \'sns\'', function() { + chai.expect(Service.SIMPLE_NOTIFICATION_SERVICE).to.be.equal('sns'); + }); + + test('Check COGNITO_IDENTITY static getter returns \'cognito-identity\'', function() { + chai.expect(Service.COGNITO_IDENTITY).to.be.equal('cognito-identity'); + }); + + test('Check COGNITO_SYNC static getter returns \'cognito-sync\'', function() { + chai.expect(Service.COGNITO_SYNC).to.be.equal('cognito-sync'); + }); + + test('Check ELASTIC_CACHE static getter returns \'elasticache\'', function() { + chai.expect(Service.ELASTIC_CACHE).to.be.equal('elasticache'); + }); + + test('Check IDENTITY_AND_ACCESS_MANAGEMENT static getter returns \'iam\'', function() { + chai.expect(Service.IDENTITY_AND_ACCESS_MANAGEMENT).to.be.equal('iam'); + }); + + test('Check KINESIS static getter returns \'kinesis\'', function() { + chai.expect(Service.KINESIS).to.be.equal('kinesis'); + }); + + test('Check CLOUD_FRONT static getter returns \'cloudfront\'', function() { + chai.expect(Service.CLOUD_FRONT).to.be.equal('cloudfront'); + }); + + test('Check SECURITY_TOKEN_SERVICE static getter returns \'sts\'', function() { + chai.expect(Service.SECURITY_TOKEN_SERVICE).to.be.equal('sts'); + }); + + test('Check CLOUD_WATCH_LOGS static getter returns \'logs\'', function() { + chai.expect(Service.CLOUD_WATCH_LOGS).to.be.equal('logs'); + }); + + test('Check API_GATEWAY static getter returns \'apigateway\'', function() { + chai.expect(Service.API_GATEWAY).to.be.equal('apigateway'); + }); + + test(`Check identifier() static method returns ${serviceName}.amazonaws.com`, function() { + chai.expect(Service.identifier(serviceName)).to.be.equal(`${serviceName}.amazonaws.com`); + }); + + test('Check all() static method returns array of Service alias', function() { + chai.expect(Service.list().length).to.be.equal(13); + chai.expect(Service.list()).to.be.include(Service.LAMBDA); + chai.expect(Service.list()).to.be.include(Service.SIMPLE_STORAGE_SERVICE); + chai.expect(Service.list()).to.be.include(Service.DYNAMO_DB); + chai.expect(Service.list()).to.be.include(Service.SIMPLE_NOTIFICATION_SERVICE); + chai.expect(Service.list()).to.be.include(Service.COGNITO_IDENTITY); + chai.expect(Service.list()).to.be.include(Service.COGNITO_SYNC); + chai.expect(Service.list()).to.be.include(Service.ELASTIC_CACHE); + chai.expect(Service.list()).to.be.include(Service.IDENTITY_AND_ACCESS_MANAGEMENT); + chai.expect(Service.list()).to.be.include(Service.KINESIS); + chai.expect(Service.list()).to.be.include(Service.CLOUD_FRONT); + chai.expect(Service.list()).to.be.include(Service.SECURITY_TOKEN_SERVICE); + chai.expect(Service.list()).to.be.include(Service.CLOUD_WATCH_LOGS); + chai.expect(Service.list()).to.be.include(Service.API_GATEWAY); + }); + + test('Check exists() static method returns true if Service exists', function() { + chai.expect(Service.exists('lambda')).to.be.equal(true); + chai.expect(Service.exists('dynamodb')).to.be.equal(true); + chai.expect(Service.exists('sns')).to.be.equal(true); + }); + + test('Check exists() static method returns false if service doesn\'t exist', function() { + chai.expect(Service.exists('')).to.be.equal(false); + chai.expect(Service.exists()).to.be.equal(false); + chai.expect(Service.exists('lambdas')).to.be.equal(false); + chai.expect(Service.exists('test')).to.be.equal(false); + }); +}); diff --git a/src/deep-core/test/Generic/ObjectStorage.js b/src/deep-core/test/Generic/ObjectStorage.js new file mode 100644 index 00000000..e26fcf28 --- /dev/null +++ b/src/deep-core/test/Generic/ObjectStorage.js @@ -0,0 +1,42 @@ +'use strict'; + +import chai from 'chai'; +import {ObjectStorage} from '../../lib.compiled/Generic/ObjectStorage'; + +suite('Generic/ObjectStorage', function() { + let inputArray = [{firstItem: 'value0'}, {secondItem: 'value1'}]; + let objectStorage = new ObjectStorage(inputArray); + let itemToAdd = {thirdItem: 'value2'}; + let item = {fourth: 'value3'}; + + test('Class ObjectStorage exists in Generic/ObjectStorage', function() { + chai.expect(typeof ObjectStorage).to.equal('function'); + }); + + test('Check constructor sets _vector', function() { + chai.expect(objectStorage.iterator).to.be.eql(inputArray); + }); + + test('Check add() method adds new item to _vector', function() { + chai.expect(objectStorage.iterator.length).to.be.equal(2); + objectStorage.add(itemToAdd); + chai.expect(objectStorage.iterator.length).to.be.equal(3); + chai.expect(objectStorage._vector[2]).to.be.eql(itemToAdd); + }); + + test('Check find() method in strict mode returns valid object', function() { + let actualResult = objectStorage.find(itemToAdd, true); + chai.expect(actualResult).to.be.eql(itemToAdd); + }); + + test('Check find() method in non-strict mode returns valid object', function() { + let actualResult = objectStorage.find(Object); + chai.expect(actualResult).to.be.eql(objectStorage._vector[0]); + }); + + test('Check find() method in non-strict mode returns valid string', function() { + objectStorage.add(3); + let actualResult = objectStorage.find(Number); + chai.expect(actualResult).to.be.eql(undefined); + }); +}); \ No newline at end of file diff --git a/src/deep-core/test/OOP/Interface.js b/src/deep-core/test/OOP/Interface.js new file mode 100644 index 00000000..ec86f24b --- /dev/null +++ b/src/deep-core/test/OOP/Interface.js @@ -0,0 +1,45 @@ +/** + * Created by AlexanderC on 6/22/15. + */ + +'use strict'; + +import chai from 'chai'; +import {Interface} from '../../lib.compiled/OOP/Interface'; +import {MethodsNotImplementedException} from '../../lib.compiled/Exception/MethodsNotImplementedException'; + +class FailTest extends Interface { + constructor() { + super(['method_tbd']); + } +} + +class NestedInterface extends FailTest { + constructor() { + super(); + } + + method_tbd() { + return 'yay!'; + } +} + +suite('OOP/Interface', function() { + test('Missing "method_tbd" method', function() { + var error = null; + + try { + new FailTest(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.an.instanceOf(MethodsNotImplementedException); + }); + + test('Implement "method_tbd" in a nested object', function() { + let obj = new NestedInterface(); + + chai.expect(obj.method_tbd()).to.equal('yay!'); + }); +}); \ No newline at end of file diff --git a/src/deep-db/.gitignore b/src/deep-db/.gitignore new file mode 100644 index 00000000..59a1c5d0 --- /dev/null +++ b/src/deep-db/.gitignore @@ -0,0 +1,106 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log + diff --git a/src/deep-db/.npmignore b/src/deep-db/.npmignore new file mode 100644 index 00000000..8219039a --- /dev/null +++ b/src/deep-db/.npmignore @@ -0,0 +1,4 @@ +test +tests +/lib +.gitignore \ No newline at end of file diff --git a/src/deep-db/README.md b/src/deep-db/README.md new file mode 100644 index 00000000..ba7d3377 --- /dev/null +++ b/src/deep-db/README.md @@ -0,0 +1,83 @@ +deep-db +======= + +[![NPM Version](https://img.shields.io/npm/v/deep-db.svg)](https://npmjs.org/package/deep-db) +[![Build Status](https://travis-ci.org/MitocGroup/deep-framework.svg)](https://travis-ci.org/MitocGroup/deep-framework) +[![Coverage Status](https://coveralls.io/repos/MitocGroup/deep-framework/badge.svg?service=github&t=3QEkFa)](https://coveralls.io/github/MitocGroup/deep-framework) +[![Codacy Badge](https://api.codacy.com/project/badge/630b5f0024334dc09fd0299b1a8a0ed5)](https://www.codacy.com/app/MitocGroup/deep-framework) +[![API Docs](http://docs.deep.mg/deep-db/badge.svg)](http://docs.deep.mg/deep-db/) + +[deep-db](https://www.npmjs.com/package/deep-db) is a node.js library, part of [DEEP Framework](https://github.com/MitocGroup/deep-framework). + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-ecosystem.png) + +Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less. + +## DEEP for Businesses [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### User Guide Documentation (to be updated later) + +DEEP is enabling small and medium businesses, as well as enterprises to: +- Rent applications on a monthly basis by needed functionality from [DEEP Marketplace](https://www.deep.mg) +- Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS +- Pay only for subscribed applications and stop paying when unsubscribing and not using anymore +- Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences +- Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP for Developers [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### [API Guide Documentation](http://docs.deep.mg) +#### [Developer Guide Documentation](https://github.com/MitocGroup/deep-framework/blob/master/docs/index.md) + +DEEP is enabling developers and architects to: +- Design microservices architecture on top of serverless environments from cloud providers like AWS +- Build distributed software that combines and manages hardware and software in the same microservice +- Use the framework's abstracted approach to build applications that could be cloud agnostic +- Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) +- Run in the cloud the software that was built by distributed teams and served self-service in large organizations +- Monetize their work of art by uploading microservices to [DEEP Marketplace](https://www.deep.mg) + +> [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with [DEEP Microservices HelloWorld](https://github.com/MitocGroup/deep-microservices-helloworld) or [DEEP Microservices ToDo App](https://github.com/MitocGroup/deep-microservices-todo-app), as well as [DEEP CLI](https://www.npmjs.com/package/deepify) (aka `deepify`). + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP Architecture on AWS [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-architecture.png) + +DEEP is using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries: + +DEEP Abstracted Library | Description | AWS Abstracted Service(s) +-------------|---------------------|-------------------------- +[deep-asset](http://docs.deep.mg/deep-asset) | Assets Management Library | Amazon S3 +[deep-cache](http://docs.deep.mg/deep-cache) | Cache Management Library | Amazon ElastiCache +[deep-core](http://docs.deep.mg/deep-core) | Core Management Library | - +[deep-db](http://docs.deep.mg/deep-db) | Database Management Library | Amazon DynamoDB, Amazon SQS +[deep-di](http://docs.deep.mg/deep-di) | Dependency Injection Management Library | - +[deep-event](http://docs.deep.mg/deep-event) | Events Management Library | Amazon Kinesis +[deep-fs](http://docs.deep.mg/deep-fs) | File System Management Library | Amazon S3 +[deep-kernel](http://docs.deep.mg/deep-kernel) | Kernel Management Library | - +[deep-log](http://docs.deep.mg/deep-log) | Logs Management Library | Amazon CloudWatch Logs +[deep-notification](http://docs.deep.mg/deep-notification) | Notifications Management Library | Amazon SNS +[deep-resource](http://docs.deep.mg/deep-resource) | Resouces Management Library | AWS Lambda, Amazon API Gateway +[deep-security](http://docs.deep.mg/deep-security) | Security Management Library | AWS IAM, Amazon Cognito +[deep-validation](http://docs.deep.mg/deep-validation) | Validation Management Library | - + +## Feedback + +We are eager to get your feedback, so please use whatever communication channel you prefer: +- [github issues](https://github.com/MitocGroup/deep-framework/issues) +- [gitter chat room](https://gitter.im/MitocGroup/deep-framework) +- [deep email address](mailto:feedback@deep.mg) + +## License + +This repository can be used under the MIT license. +> See [LICENSE](https://github.com/MitocGroup/deep-framework/blob/master/LICENSE) for more details. + +## Sponsors + +This repository is being sponsored by: +> [Mitoc Group](http://www.mitocgroup.com) diff --git a/src/deep-db/lib/DB.js b/src/deep-db/lib/DB.js new file mode 100644 index 00000000..26fb057a --- /dev/null +++ b/src/deep-db/lib/DB.js @@ -0,0 +1,248 @@ +/** + * Created by AlexanderC on 6/15/15. + */ + +'use strict'; + +import Kernel from 'deep-kernel'; +import Vogels from 'vogels'; +import {ExtendModel} from './Vogels/ExtendModel'; +import {ModelNotFoundException} from './Exception/ModelNotFoundException'; +import Validation from 'deep-validation'; +import Utils from 'util'; +import {FailedToCreateTableException} from './Exception/FailedToCreateTableException'; +import {FailedToCreateTablesException} from './Exception/FailedToCreateTablesException'; +import {AbstractDriver} from './Local/Driver/AbstractDriver'; + +/** + * Vogels wrapper + */ +export class DB extends Kernel.ContainerAware { + /** + * @param {Array} models + * @param {Object} tablesNames + */ + constructor(models = [], tablesNames = {}) { + super(); + + // @todo: set retries in a smarter way... + Vogels.AWS.config.maxRetries = 3; + + this._tablesNames = tablesNames; + this._validation = new Validation(models); + this._models = this._rawModelsToVogels(models); + + // @todo: remove? + this._localDbProcess = null; + } + + /** + * @returns {Validation} + */ + get validation() { + return this._validation; + } + + /** + * @returns {Vogels[]} + */ + get models() { + return this._models; + } + + /** + * @param {String} modelName + * @returns {Boolean} + */ + has(modelName) { + return typeof this._models[modelName] !== 'undefined'; + } + + /** + * @param {String} modelName + * @returns {Vogels} + */ + get(modelName) { + if (!this.has(modelName)) { + throw new ModelNotFoundException(modelName); + } + + return this._models[modelName]; + } + + /** + * @param {String} modelName + * @param {Function} callback + * @param {Object} options + * @returns {DB} + */ + assureTable(modelName, callback, options = {}) { + if (!this.has(modelName)) { + throw new ModelNotFoundException(modelName); + } + + options = Utils._extend(DB.DEFAULT_TABLE_OPTIONS, options); + options[modelName] = options; + + Vogels.createTables(options, function(error) { + if (error) { + throw new FailedToCreateTableException(modelName); + } + + callback(); + }.bind(this)); + + return this; + } + + /** + * @param {Function} callback + * @param {Object} options + * @returns {DB} + */ + assureTables(callback, options = {}) { + let allModelsOptions = {}; + let allModelNames = []; + + for (let modelName in this._models) { + if (!this._models.hasOwnProperty(modelName)) { + continue; + } + + allModelsOptions[modelName] = Utils._extend(DB.DEFAULT_TABLE_OPTIONS, options); + allModelNames.push(modelName); + } + + Vogels.createTables(allModelsOptions, function(error) { + if (error) { + throw new FailedToCreateTablesException(allModelNames, error); + } + + callback(); + }.bind(this)); + + return this; + } + + /** + * Booting a certain service + * + * @param {Kernel} kernel + * @param {Function} callback + */ + boot(kernel, callback) { + this._validation.boot(kernel, function() { + this._validation.immutable = true; + + this._tablesNames = kernel.config.tablesNames; + this._models = this._rawModelsToVogels(kernel.config.models); + + if (this._localBackend) { + this._enableLocalDB(callback); + } else { + callback(); + } + }.bind(this)); + } + + /** + * @param {Object} driver + * @returns {DB} + * @private + */ + _setVogelsDriver(driver) { + Vogels.dynamoDriver(driver); + + return this; + } + + /** + * @param {Function} callback + * @param {String} driver + * @param {Number} tts + */ + static startLocalDynamoDBServer(callback, driver = 'LocalDynamo', tts = AbstractDriver.DEFAULT_TTS) { + let LocalDBServer = require('./Local/DBServer').DBServer; + + let server = LocalDBServer.create(driver); + + server.start(callback, tts); + } + + /** + * @param {Function} callback + * @private + */ + _enableLocalDB(callback) { + this._setVogelsDriver( + new Vogels.AWS.DynamoDB({ + endpoint: new Vogels.AWS.Endpoint(`http://localhost:${DB.LOCAL_DB_PORT}`), + accessKeyId: 'fake', + secretAccessKey: 'fake', + region: 'us-east-1', + }) + ); + + this.assureTables(callback); + } + + /** + * @returns {Object} + */ + static get DEFAULT_TABLE_OPTIONS() { + return { + readCapacity: 5, + writeCapacity: 5, + }; + } + + /** + * @param {Array} rawModels + * @returns {Object} + */ + _rawModelsToVogels(rawModels) { + let models = {}; + + for (let modelKey in rawModels) { + if (!rawModels.hasOwnProperty(modelKey)) { + continue; + } + + let backendModels = rawModels[modelKey]; + + for (let modelName in backendModels) { + if (!backendModels.hasOwnProperty(modelName)) { + continue; + } + + models[modelName] = new ExtendModel(Vogels.define( + modelName, + this._wrapModelSchema(modelName) + )).inject(); + } + } + + return models; + } + + /** + * @param {String} name + * @returns {Object} + * @private + */ + _wrapModelSchema(name) { + return { + hashKey: 'Id', + timestamps: true, + tableName: this._tablesNames[name], + schema: this._validation.get(name), + }; + } + + /** + * @returns {Number} + */ + static get LOCAL_DB_PORT() { + return AbstractDriver.DEFAULT_PORT; + } +} diff --git a/src/deep-db/lib/Exception/Exception.js b/src/deep-db/lib/Exception/Exception.js new file mode 100644 index 00000000..90ade1cd --- /dev/null +++ b/src/deep-db/lib/Exception/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Core from 'deep-core'; + +/** + * Thrown when any exception occurs + */ +export class Exception extends Core.Exception.Exception { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-db/lib/Exception/FailedToCreateTableException.js b/src/deep-db/lib/Exception/FailedToCreateTableException.js new file mode 100644 index 00000000..0ee4a57a --- /dev/null +++ b/src/deep-db/lib/Exception/FailedToCreateTableException.js @@ -0,0 +1,16 @@ +/** + * Created by AlexanderC on 6/25/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +export class FailedToCreateTableException extends Exception { + /** + * @param {String} tableName + */ + constructor(tableName) { + super(`Failed to create table for model ${tableName}`); + } +} diff --git a/src/deep-db/lib/Exception/FailedToCreateTablesException.js b/src/deep-db/lib/Exception/FailedToCreateTablesException.js new file mode 100644 index 00000000..ff08c9b0 --- /dev/null +++ b/src/deep-db/lib/Exception/FailedToCreateTablesException.js @@ -0,0 +1,17 @@ +/** + * Created by mgoria on 6/25/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +export class FailedToCreateTablesException extends Exception { + /** + * @param {Array} tablesNames + * @param {String} error + */ + constructor(tablesNames, error) { + super(`Failed to create ${tablesNames} tables. ${error}`); + } +} diff --git a/src/deep-db/lib/Exception/ModelNotFoundException.js b/src/deep-db/lib/Exception/ModelNotFoundException.js new file mode 100644 index 00000000..5d05b8be --- /dev/null +++ b/src/deep-db/lib/Exception/ModelNotFoundException.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/15/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when missing requested model + */ +export class ModelNotFoundException extends Exception { + /** + * @param {String} modelName + */ + constructor(modelName) { + super(`Model ${modelName} was not found`); + } +} diff --git a/src/deep-db/lib/Local/DBServer.js b/src/deep-db/lib/Local/DBServer.js new file mode 100644 index 00000000..236a5168 --- /dev/null +++ b/src/deep-db/lib/Local/DBServer.js @@ -0,0 +1,65 @@ +/** + * Created by AlexanderC on 9/23/15. + */ + +'use strict'; + +import {LocalDynamo} from './Driver/LocalDynamo'; +import {Dynalite} from './Driver/Dynalite'; + +export class DBServer { + /** + * @param {Function|String} driver + * @param {*} args + * @returns {Function} + */ + static create(driver = DBServer.DEFAULT_DRIVER, ...args) { + let DriverProto = typeof driver === 'string' + ? DBServer._findDriverPrototype(driver) + : driver; + + if (!DriverProto) { + throw new Error(`Missing DB server driver ${driver}`); + } + + return new DriverProto(...args); + } + + /** + * @param {String} name + * @returns {Function} + * @private + */ + static _findDriverPrototype(name) { + for (let driverProtoKey in DBServer.DRIVERS) { + if (!DBServer.DRIVERS.hasOwnProperty(driverProtoKey)) { + continue; + } + + let driverProto = DBServer.DRIVERS[driverProtoKey]; + + if (driverProto.name === name) { + return driverProto; + } + } + + return null; + } + + /** + * @returns {Function[]} + */ + static get DRIVERS() { + return [ + LocalDynamo, + Dynalite, + ]; + } + + /** + * @returns {Function} + */ + static get DEFAULT_DRIVER() { + return DBServer.DRIVERS[0]; + } +} diff --git a/src/deep-db/lib/Local/Driver/AbstractDriver.js b/src/deep-db/lib/Local/Driver/AbstractDriver.js new file mode 100644 index 00000000..1b27be3a --- /dev/null +++ b/src/deep-db/lib/Local/Driver/AbstractDriver.js @@ -0,0 +1,172 @@ +/** + * Created by AlexanderC on 9/23/15. + */ + +'use strict'; + +import Core from 'deep-core'; +import {ServerAlreadyRunningException} from './Exception/ServerAlreadyRunningException'; +import {ServerTtsExceededException} from './Exception/ServerTtsExceededException'; + +export class AbstractDriver extends Core.OOP.Interface { + /** + * @param {Number} port + */ + constructor(port = AbstractDriver.DEFAULT_PORT) { + super('_start', '_stop'); + + this._running = false; + this._port = port; + this._teardownHook = false; + } + + /** + * @returns {Number} + */ + get port() { + return this._port; + } + + /** + * @param {Number} port + */ + set port(port) { + this._port = port; + } + + /** + * @returns {Boolean} + */ + get running() { + return this._running; + } + + /** + * @returns {AbstractDriver} + * @private + */ + _registerTeardownHook() { + if (this._teardownHook) { + return this; + } + + this._teardownHook = true; + + process.once('uncaughtException', (error) => { + this.stop(() => ''); + + throw error; + }); + + process.once('exit', () => { + this.stop(() => ''); + }); + + return this; + } + + /** + * @todo: better way to control the timeout of server startup... + * + * @param {Number} tts + * @param {Function} cb + * @private + */ + _triggerOnTtsExpired(tts, cb) { + setTimeout(() => { + if (!this._running) { + cb(); + } + }, tts * 1000); + } + + /** + * @param {Function} cb + * @param {Number} tts + * @returns {AbstractDriver} + */ + start(cb, tts = AbstractDriver.DEFAULT_TTS) { + if (this._running) { + cb(new ServerAlreadyRunningException(this)); + + return this; + } + + let _cbTriggered = false; + + this._start((error, ...args) => { + _cbTriggered = true; + + if (!error) { + this._running = true; + this._registerTeardownHook(); + } + + cb(error, ...args); + }); + + this._triggerOnTtsExpired(tts, () => { + if (!_cbTriggered) { + _cbTriggered = true; + + cb(new ServerTtsExceededException(this, tts)); + } + }); + + return this; + } + + /** + * @param {Function} cb + * @returns {AbstractDriver} + */ + stop(cb) { + if (!this._running) { + cb(null); + + return this; + } + + this._stop((error, ...args) => { + if (!error) { + this._running = false; + } + + cb(error, ...args); + }); + + return this; + } + + /** + * @param {Function} cb + * @returns {AbstractDriver} + */ + restart(cb) { + this.stop((error) => { + if (error) { + cb(error); + + return; + } + + this.start(cb); + }); + + return this; + } + + /** + * @returns {Number} + */ + static get DEFAULT_TTS() { + return 10; + } + + /** + * @returns {Number} + */ + static get DEFAULT_PORT() { + return 8877; + } +} diff --git a/src/deep-db/lib/Local/Driver/Dynalite.js b/src/deep-db/lib/Local/Driver/Dynalite.js new file mode 100644 index 00000000..36c8656b --- /dev/null +++ b/src/deep-db/lib/Local/Driver/Dynalite.js @@ -0,0 +1,75 @@ +/** + * Created by AlexanderC on 9/23/15. + */ + +'use strict'; + +import {PathAwareDriver} from './PathAwareDriver'; +import DynaliteServer from 'dynalite'; +import {FailedToStartServerException} from './Exception/FailedToStartServerException'; + +export class Dynalite extends PathAwareDriver { + /** + * @param {Object} options + * @param {String} path + * @param {Number} port + */ + constructor(options = Dynalite.DEFAULT_OPTIONS, path = Dynalite.DBPath, port = Dynalite.DEFAULT_PORT) { + super(path, port); + + this._options = options; + this._server = null; + } + + /** + * @returns {Object} + */ + get options() { + return this._options; + } + + /** + * @param {Function} cb + * @private + */ + _start(cb) { + this._options.path = this.path; + + this._server = DynaliteServer(this._options); + + this._server.listen(this.port, (error) => { + if (error) { + cb(new FailedToStartServerException(this, error)); + return; + } + + cb(null); + }); + } + + /** + * @param {Function} cb + * @private + */ + _stop(cb) { + if (this._server) { + this._server.close(cb); + this._server = null; + + return; + } + + cb(null); + } + + /** + * @returns {Object} + */ + static get DEFAULT_OPTIONS() { + return { + createTableMs: 0, + deleteTableMs: 0, + updateTableMs: 0, + }; + } +} diff --git a/src/deep-db/lib/Local/Driver/Exception/Exception.js b/src/deep-db/lib/Local/Driver/Exception/Exception.js new file mode 100644 index 00000000..90ade1cd --- /dev/null +++ b/src/deep-db/lib/Local/Driver/Exception/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Core from 'deep-core'; + +/** + * Thrown when any exception occurs + */ +export class Exception extends Core.Exception.Exception { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-db/lib/Local/Driver/Exception/FailedToStartServerException.js b/src/deep-db/lib/Local/Driver/Exception/FailedToStartServerException.js new file mode 100644 index 00000000..8d73c2da --- /dev/null +++ b/src/deep-db/lib/Local/Driver/Exception/FailedToStartServerException.js @@ -0,0 +1,17 @@ +/** + * Created by AlexanderC on 9/23/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +export class FailedToStartServerException extends Exception { + /** + * @param {Object} driver + * @param {String} error + */ + constructor(driver, error) { + super(`Failed to start DB server ${driver.constructor.name} on port ${driver.port}: ${error}`); + } +} diff --git a/src/deep-db/lib/Local/Driver/Exception/ServerAlreadyRunningException.js b/src/deep-db/lib/Local/Driver/Exception/ServerAlreadyRunningException.js new file mode 100644 index 00000000..ff5fc861 --- /dev/null +++ b/src/deep-db/lib/Local/Driver/Exception/ServerAlreadyRunningException.js @@ -0,0 +1,16 @@ +/** + * Created by AlexanderC on 9/23/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +export class ServerAlreadyRunningException extends Exception { + /** + * @param {Object} driver + */ + constructor(driver) { + super(`The DB server ${driver.constructor.name} on port ${driver.port} is already running`); + } +} diff --git a/src/deep-db/lib/Local/Driver/Exception/ServerTtsExceededException.js b/src/deep-db/lib/Local/Driver/Exception/ServerTtsExceededException.js new file mode 100644 index 00000000..334fa4a9 --- /dev/null +++ b/src/deep-db/lib/Local/Driver/Exception/ServerTtsExceededException.js @@ -0,0 +1,17 @@ +/** + * Created by AlexanderC on 9/23/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +export class ServerTtsExceededException extends Exception { + /** + * @param {Object} driver + * @param {Number} tts + */ + constructor(driver, tts) { + super(`The DB server's ${driver.constructor.name} tts of ${tts} seconds exceeded`); + } +} diff --git a/src/deep-db/lib/Local/Driver/LocalDynamo.js b/src/deep-db/lib/Local/Driver/LocalDynamo.js new file mode 100644 index 00000000..586b8094 --- /dev/null +++ b/src/deep-db/lib/Local/Driver/LocalDynamo.js @@ -0,0 +1,88 @@ +/** + * Created by AlexanderC on 9/23/15. + */ + +'use strict'; + +import {PathAwareDriver} from './PathAwareDriver'; +import LocalDynamoServer from 'local-dynamo'; +import {FailedToStartServerException} from './Exception/FailedToStartServerException'; + +export class LocalDynamo extends PathAwareDriver { + /** + * @param {Object} options + * @param {String} path + * @param {Number} port + */ + constructor(options = LocalDynamo.DEFAULT_OPTIONS, path = LocalDynamo.DBPath, port = LocalDynamo.DEFAULT_PORT) { + super(path, port); + + this._options = options; + this._process = null; + } + + /** + * @returns {Object} + */ + get options() { + return this._options; + } + + /** + * @param {Function} cb + * @private + */ + _start(cb) { + let cbTriggered = false; + + this._options.dir = this.path; + + this._process = LocalDynamoServer.launch(this._options, this.port); + + // This hook fixes DynamoDB startup delay by waiting an empty stdout dataset + // @todo: remove this hook after fixing issue! + this._process.stdout.on('data', (data) => { + if (!data.toString().replace(/\s+/, '') && !cbTriggered) { + cbTriggered = true; + cb(null); + } + }); + + let onError = (error) => { + this._stop(() => ''); + + if (!cbTriggered) { + cbTriggered = true; + cb(new FailedToStartServerException(this, error)); + } + }; + + this._process.on('uncaughtException', onError); + this._process.on('error', onError); + this._process.on('exit', () => { + this.stop(() => ''); + }); + } + + /** + * @param {Function} cb + * @private + */ + _stop(cb) { + if (this._process) { + this._process.kill(); + this._process = null; + } + + cb(null); + } + + /** + * @returns {Object} + */ + static get DEFAULT_OPTIONS() { + return { + stdio: 'pipe', + }; + } +} diff --git a/src/deep-db/lib/Local/Driver/PathAwareDriver.js b/src/deep-db/lib/Local/Driver/PathAwareDriver.js new file mode 100644 index 00000000..7f40eb12 --- /dev/null +++ b/src/deep-db/lib/Local/Driver/PathAwareDriver.js @@ -0,0 +1,50 @@ +/** + * Created by AlexanderC on 9/23/15. + */ + +'use strict'; + +import OS from 'os'; +import FileSystem from 'fs'; +import Path from 'path'; +import {AbstractDriver} from './AbstractDriver'; + +export class PathAwareDriver extends AbstractDriver { + /** + * @param {String} path + * @param {Number} port + */ + constructor(path = PathAwareDriver.DBPath, port = PathAwareDriver.DEFAULT_PORT) { + super(port); + + this._path = path; + } + + /** + * @returns {String} + */ + get path() { + return this._path; + } + + /** + * @param {String} path + */ + set path(path) { + this._path = path; + } + + /** + * @returns {String} + */ + static get DBPath() { + let dir = Path.join(OS.tmpdir(), this.name); + + // @todo: do it async! + if (!FileSystem.existsSync(dir)) { + FileSystem.mkdirSync(dir); + } + + return dir; + } +} diff --git a/src/deep-db/lib/Vogels/Exceptions/Exception.js b/src/deep-db/lib/Vogels/Exceptions/Exception.js new file mode 100644 index 00000000..2f2b9021 --- /dev/null +++ b/src/deep-db/lib/Vogels/Exceptions/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by Stefan Hariton on 6/25/15. + */ + +'use strict'; + +import {Exception as BaseException} from '../../Exception/Exception'; + +/** + * Base exception + */ +export class Exception extends BaseException { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-db/lib/Vogels/Exceptions/InvalidArgumentException.js b/src/deep-db/lib/Vogels/Exceptions/InvalidArgumentException.js new file mode 100644 index 00000000..fe6bdbf0 --- /dev/null +++ b/src/deep-db/lib/Vogels/Exceptions/InvalidArgumentException.js @@ -0,0 +1,22 @@ +/** + * Created by Stefan Hariton on 6/26/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when invalid argument provided + */ +export class InvalidArgumentException extends Exception { + /** + * @param {*} argument + * @param {String} meantType + */ + constructor(argument, meantType) { + let argumentType = typeof argument; + + super(`Invalid argument ${argument} of type ${argumentType} provided (meant ${meantType}).`); + } +} diff --git a/src/deep-db/lib/Vogels/Exceptions/UndefinedMethodException.js b/src/deep-db/lib/Vogels/Exceptions/UndefinedMethodException.js new file mode 100644 index 00000000..bc626902 --- /dev/null +++ b/src/deep-db/lib/Vogels/Exceptions/UndefinedMethodException.js @@ -0,0 +1,20 @@ +/** + * Created by Stefan Hariton on 6/26/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when undefined method is requested + */ +export class UndefinedMethodException extends Exception { + /** + * @param name + * @param availableMethods + */ + constructor(name, availableMethods) { + super(`Method: ${name} does not exist. Available methods:${availableMethods}).`); + } +} diff --git a/src/deep-db/lib/Vogels/ExtendModel.js b/src/deep-db/lib/Vogels/ExtendModel.js new file mode 100644 index 00000000..0f82fefb --- /dev/null +++ b/src/deep-db/lib/Vogels/ExtendModel.js @@ -0,0 +1,274 @@ +/** + * Created by Stefan Hariton on 6/26/15. + */ + +'use strict'; + +import UndefinedMethodException from './Exceptions/UndefinedMethodException'; + +/** + * Extends standard Vogels models + */ +export class ExtendModel { + /** + * @param {Object} model + */ + constructor(model) { + this._model = model; + } + + /** + * @returns {Object} + */ + get model() { + return this._model; + } + + /** + * @returns {Number} + */ + static get DEFAULT_LIMIT() { + return 10; + } + + /** + * @returns {number} + */ + static get DEFAULT_SEGMENTS_NUMBER() { + return 4; + } + + /** + * Makes filterExpression, filtersExpressionValues and filterExpressionNames from an object, that are used to make + * a DynamoDb scan + * + * @param {Object} params + * @returns {Object} + */ + static buildScanParameters(params) { + let filterExpression = ''; + let filterExpressionValues = {}; + let filterExpressionNames = {}; + let first = true; + + for (let key in params) { + if (!params.hasOwnProperty(key)) { + continue; + } + + let fieldValue = params[key]; + + let fieldName = `#${key}`; + let fieldValueName = `:${key}`; + + if (!first) { + filterExpression += ' AND '; + } + + filterExpression += `${fieldName} = ${fieldValueName}`; + filterExpressionValues[fieldValueName] = fieldValue; + filterExpressionNames[fieldName] = key; + first = false; + } + + return { + filterExpression: filterExpression, + filterExpressionValues: filterExpressionValues, + filterExpressionNames: filterExpressionNames, + }; + } + + /** + * @returns {Object} + */ + get methods() { + let _this = this; + + return { + findAll: function(cb) { + return _this.model.scan().loadAll().exec(cb); + }, + + findAllPaginated: function(startKey, limit, cb) { + return _this.model + .scan() + .startKey(startKey) + .limit(limit) + .exec(cb); + }, + + findOneById: function(id, cb) { + return _this.model.get(id, cb); + }, + + findOneBy: function(fieldName, value, cb) { + return _this.model + .scan() + .where(fieldName).equals(value) + .limit(1) + .exec(cb); + }, + + findBy: function(fieldName, value, cb, limit = ExtendModel.DEFAULT_LIMIT) { + return _this.model + .scan() + .where(fieldName).equals(value) + .limit(limit) + .exec(cb); + }, + + findAllBy: function(fieldName, value, cb) { + return _this.model + .scan() + .where(fieldName).equals(value) + .loadAll() + .exec(cb); + }, + + findAllByPaginated: function(fieldName, value, startKey, limit, cb) { + return _this.model + .scan() + .where(fieldName).equals(value) + .startKey(startKey) + .limit(limit) + .exec(cb); + }, + + findMatching: function(params, cb, limit = ExtendModel.DEFAULT_LIMIT) { + let scanParams = ExtendModel.buildScanParameters(params); + + return _this.model + .scan() + .filterExpression(scanParams.filterExpression) + .expressionAttributeValues(scanParams.filterExpressionValues) + .expressionAttributeNames(scanParams.filterExpressionNames) + .limit(limit) + .exec(cb); + }, + + findOneMatching: function(params, cb) { + let scanParams = ExtendModel.buildScanParameters(params); + + return _this.model + .scan() + .filterExpression(scanParams.filterExpression) + .expressionAttributeValues(scanParams.filterExpressionValues) + .expressionAttributeNames(scanParams.filterExpressionNames) + .limit(1) + .exec(cb); + }, + + findAllMatching: function(params, cb) { + let scanParams = ExtendModel.buildScanParameters(params); + + return _this.model + .scan() + .filterExpression(scanParams.filterExpression) + .expressionAttributeValues(scanParams.filterExpressionValues) + .expressionAttributeNames(scanParams.filterExpressionNames) + .loadAll() + .exec(cb); + }, + + findAllMatchingPaginated: function(params, startKey, limit, cb) { + let scanParams = ExtendModel.buildScanParameters(params); + + return _this.model + .scan() + .filterExpression(scanParams.filterExpression) + .expressionAttributeValues(scanParams.filterExpressionValues) + .expressionAttributeNames(scanParams.filterExpressionNames) + .startKey(startKey) + .limit(limit) + .exec(cb); + }, + + deleteById: function(id, cb) { + return _this.model.destroy(id, cb); + }, + + deleteByIdConditional: function(id, condition, cb) { + return _this.model.destroy(id, condition, cb); + }, + + createItem: function(data, cb) { + return _this.model.create(data, cb); + }, + + createUniqueOnFields: function(fields, data, cb) { + let scanCb = function(err, data) { + if (err) { + return cb(err, data); + } + + if (data.Count) { + return cb(`Item like ${data} already exists`); + } + + return _this.model.create(data, cb); + }; + + let scanParams = {}; + for (let fieldKey in fields) { + if (!fields.hasOwnProperty(fieldKey)) { + continue; + } + + let field = fields[fieldKey]; + + scanParams[field] = data[field]; + } + + scanParams = ExtendModel.buildScanParameters(scanParams); + + return _this.model + .scan() + .filterExpression(scanParams.filterExpression) + .expressionAttributeValues(scanParams.filterExpressionValues) + .expressionAttributeNames(scanParams.filterExpressionNames) + .limit(1) + .exec(scanCb); + }, + + updateItem: function(id, data, cb) { + data.Id = id; + + return _this.model.update(data, cb); + }, + + updateItemConditional: function(id, data, condition, cb) { + data.Id = id; + + return _this.model.update(data, condition, cb); + }, + }; + } + + /** + * Injects the specified methods or all + * + * @param {Array} methods + */ + inject(methods = null) { + let predefinedMethods = this.methods; + let predefinedMethodsNames = Object.keys(predefinedMethods); + + methods = methods || predefinedMethodsNames; + + for (let methodKey in methods) { + if (!methods.hasOwnProperty(methodKey)) { + continue; + } + + let methodName = methods[methodKey]; + + if (!predefinedMethods.hasOwnProperty(methodName)) { + throw new UndefinedMethodException(methodName, predefinedMethodsNames); + } + + this._model[methodName] = predefinedMethods[methodName]; + } + + return this._model; + } +} diff --git a/src/deep-db/lib/bootstrap.js b/src/deep-db/lib/bootstrap.js new file mode 100644 index 00000000..16b26e38 --- /dev/null +++ b/src/deep-db/lib/bootstrap.js @@ -0,0 +1,11 @@ +/** + * Created by AlexanderC on 5/22/15. + * + * Bootstrap file loaded by npm as main + */ + +'use strict'; + +import {DB} from './DB'; + +let exports = module.exports = DB; diff --git a/src/deep-db/package.json b/src/deep-db/package.json new file mode 100644 index 00000000..63ccbfdb --- /dev/null +++ b/src/deep-db/package.json @@ -0,0 +1,76 @@ +{ + "name": "deep-db", + "version": "1.0.1", + "description": "DEEP Database Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "DB", + "NoSQL", + "Database" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Stefan Hariton", + "email": "shariton@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "1.0.*", + "deep-core": "1.0.*", + "deep-validation": "1.0.*", + "vogels": "2.0.0-rc10", + "joi": "6.6.*" + }, + "devDependencies": { + "aws-sdk": "2.1.*", + "local-dynamo": "MitocGroup/local-dynamo", + "dynalite": "0.16.*", + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/src/deep-db/test/.gitkeep b/src/deep-db/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-db/test/DB.js b/src/deep-db/test/DB.js new file mode 100644 index 00000000..95c52c75 --- /dev/null +++ b/src/deep-db/test/DB.js @@ -0,0 +1,253 @@ +'use strict'; + +import chai from 'chai'; +import sinon from 'sinon'; +import sinonChai from 'sinon-chai'; +import {DB} from '../lib.compiled/DB'; +import Validation from 'deep-validation'; +import {ModelNotFoundException} from '../lib.compiled/Exception/ModelNotFoundException'; +import Joi from 'joi'; +import AWS from 'aws-sdk'; +import Vogels from 'vogels'; + +chai.use(sinonChai); + +//class VogelsNegativeTest extends Vogels { +// constructor() { +// super(); +// } +// +// static createTables(options, cb) { +// return cb('error', null); +// } +//} +// +//class VogelsPositiveTest extends Vogels { +// constructor() { +// super(); +// } +// +// static createTables(options, cb) { +// return cb(null, 'data'); +// } +//} + +suite('DB', function() { + let models = { + Backend: { + IAM: { + Configuration: 'string', + Status: 'string', + }, + Lambda: { + Configuration: 'string', + Status: 'string', + }, + }, + }; + let tablenames = { + Configuration: 'ConfigurationTable', + Status: 'StatusTable', + }; + let dynamodb = new AWS.DynamoDB(); + + let db = new DB(models, tablenames); + + test('Class DB exists in DB', function() { + chai.expect(typeof DB).to.equal('function'); + }); + + test('Check validation getter returns valid value', function() { + chai.expect(db.validation).be.an.instanceOf(Validation); + }); + + test('Check models getter returns valid value', function() { + chai.expect(db.models).to.not.equal(null); + }); + + test('Check has() method returns false', function() { + chai.expect(db.has()).to.be.equal(false); + }); + + test('Check get() method returns exception for non existed model', function() { + let error = null; + + try { + db.get('ModelName'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.an.instanceOf(ModelNotFoundException); + }); + + test('Check get() method returns valid object', function() { + let error = null; + + try { + db.get('IAM'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + }); + + test('Check LOCAL_DB_PORT static method returns integer and more than 0 value', function() { + chai.expect(DB.LOCAL_DB_PORT).to.be.above(0); + }); + + test('Check DEFAULT_TABLE_OPTIONS static method returns { readCapacity: 1, writeCapacity: 1 }', function() { + chai.expect(DB.DEFAULT_TABLE_OPTIONS.readCapacity).to.be.above(0); + chai.expect(DB.DEFAULT_TABLE_OPTIONS.writeCapacity).to.be.above(0); + }); + + test('Check _getTmpDir() returns valid value', function() { + chai.expect(db._getTmpDir).to.not.equal(null); + }); + + test('Check _rawModelsToVogels() returns {}', function() { + chai.expect(db._rawModelsToVogels).to.not.equal(null); + }); + + test('Check _rawModelsToVogels() returns valid object', function() { + let error = null; + let rawModels = { + Backend: { + IAM: { + Configuration: 'string', + Status: 'string', + }, + Lambda: { + Configuration: 'string', + Status: 'string', + }, + }, + }; + let actualResult = null; + + try { + actualResult = db._rawModelsToVogels(rawModels); + } catch (e) { + error = e; + } + + chai.expect(error).to.equal(null); + chai.expect(db.models).to.not.equal({}); + + }); + + test('Check assureTable() return valid object', function() { + let error = null; + let actualResult = null; + let spyCallback = sinon.spy(); + + try { + actualResult = db.assureTable('Lambda', spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + }); + + test('Check _wrapModelSchema method returns valid object', function() { + let error = null; + let actualResult = null; + + try { + actualResult = db._wrapModelSchema('IAM'); + } catch (e) { + error = e; + } + + chai.expect(error).to.equal(null); + chai.expect(actualResult.hashKey).to.equal('Id'); + chai.expect(actualResult.timestamps).to.equal(true); + chai.expect(actualResult.schema.Configuration.isJoi).to.equal(true); + }); + + test('Check _setVogelsDriver method returns valid object', function() { + let error = null; + let actualResult = null; + + + try { + actualResult = db._setVogelsDriver({LocalDynamo: dynamodb}); + } catch (e) { + error = e; + } + + chai.expect(error).to.equal(null); + }); + + test('Check boot() returns valid object !_localBackend', function() { + let error = null; + let actualResult = null; + let kernel = { + config: { + models: {}, + }, + }; + let spyCallback = sinon.spy(); + try { + actualResult = db.boot(kernel, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.calledWith(); + }); + + test('Check assureTable() throws ModelNotFoundException', function() { + let error = null; + let actualResult = null; + let spyCallback = sinon.spy(); + try { + actualResult = db.assureTable('IAM', spyCallback); + } catch (e) { + error = e; + } + + chai.assert.instanceOf(error, ModelNotFoundException, 'error is an instance of ModelNotFoundException'); + }); + + test('Check assureTables() returns valid object', function() { + let error = null; + let actualResult = null; + let spyCallback = sinon.spy(); + try { + actualResult = db.assureTables(spyCallback); + } catch (e) { + error = e; + } + + }); + + test('Check startLocalDynamoDBServer() starts db server', function() { + let error = null; + let actualResult = null; + let spyCallback = sinon.spy(); + try { + actualResult = DB.startLocalDynamoDBServer(spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + }); + + test('Check _enableLocalDB() returns valid object', function() { + let error = null; + let actualResult = null; + let spyCallback = sinon.spy(); + try { + actualResult = db._enableLocalDB(spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + }); +}); diff --git a/src/deep-db/test/Local/DBServer.js b/src/deep-db/test/Local/DBServer.js new file mode 100644 index 00000000..0272ea55 --- /dev/null +++ b/src/deep-db/test/Local/DBServer.js @@ -0,0 +1,63 @@ +'use strict'; + +import chai from 'chai'; +import {DBServer} from '../../lib.compiled/Local/DBServer'; +import {LocalDynamo} from '../../lib.compiled/Local/Driver/LocalDynamo'; +import {Dynalite} from '../../lib.compiled/Local/Driver/Dynalite'; + +suite('Local/DBServer', function() { + let dbServer = new DBServer(); + + test('Class DBServer exists in Local/DBServer', function() { + chai.expect(typeof DBServer).to.equal('function'); + }); + + test('DBServer object was created successfully', function() { + chai.expect(dbServer).to.be.an.instanceof(DBServer); + }); + + test('Check DEFAULT_DRIVER static getter returns LocalDynamo', function() { + chai.expect(typeof DBServer.DEFAULT_DRIVER).to.be.equal('function'); + chai.expect(DBServer.DEFAULT_DRIVER).to.be.equal(LocalDynamo); + }); + + test('Check DRIVERS static getter returns [LocalDynamo,Dynalite]', function() { + chai.expect(DBServer.DRIVERS.length).to.be.equal(2); + chai.expect(DBServer.DRIVERS).to.be.contains(LocalDynamo); + chai.expect(DBServer.DRIVERS).to.be.contains(Dynalite); + }); + + test('Check _findDriverPrototype() static method returns valid driver prototype', function() { + let actualResult = DBServer._findDriverPrototype('Dynalite'); + chai.expect(actualResult).to.be.not.equal(null); + chai.expect(typeof actualResult).to.be.equal('function'); + }); + + test('Check _findDriverPrototype() static method returns null', function() { + let actualResult = DBServer._findDriverPrototype('dynalite'); + chai.expect(actualResult).to.be.equal(null); + }); + + test('Check create() static method for default DriveProto', function() { + let error = null; + try { + DBServer.create(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + }); + + test('Check create() static method throws Error', function() { + let error = null; + let driver = 'test'; + try { + DBServer.create(driver); + } catch (e) { + error = e; + } + + chai.expect(error.message).to.be.equal(`Missing DB server driver ${driver}`); + }); +}); diff --git a/src/deep-db/test/Local/Driver/AbstractDriver.js b/src/deep-db/test/Local/Driver/AbstractDriver.js new file mode 100644 index 00000000..acb8c583 --- /dev/null +++ b/src/deep-db/test/Local/Driver/AbstractDriver.js @@ -0,0 +1,243 @@ +'use strict'; + +import chai from 'chai'; +import sinon from 'sinon'; +import sinonChai from 'sinon-chai'; +import {AbstractDriver} from '../../../lib.compiled/Local/Driver/AbstractDriver'; +import {ServerAlreadyRunningException} from '../../../lib.compiled/Local/Driver/Exception/ServerAlreadyRunningException'; +import {ServerTtsExceededException} from '../../../lib.compiled/Local/Driver/Exception/ServerTtsExceededException'; + +chai.use(sinonChai); + +class AbstractDriverTest extends AbstractDriver { + constructor() { + super(); + } + + _stop(cb) { + return cb(null, 'stopped'); + } + + _start(cb, tts) { + return cb(null, 'started'); + } +} + +class AbstractDriverWithStopError extends AbstractDriver { + constructor() { + super(); + } + + _stop(cb) { + return cb('error', null); + } + + _start(cb, tts) { + return cb(null, 'started'); + } + + throwServerTtsExceededException(driver, tts) { + throw new ServerTtsExceededException(driver, tts); + } +} + +suite('Local/Driver/AbstractDriver', function() { + let abstractDriver = new AbstractDriverTest(); + let port = 8878; + + test('Class AbstractDriver exists in Local/Driver/AbstractDriver', function() { + chai.expect(typeof AbstractDriver).to.equal('function'); + }); + + test('Check constructor sets by default _running=false', function() { + chai.expect(abstractDriver.running).to.be.equal(false); + }); + + test('Check constructor sets by default _teardownHook=false', function() { + chai.expect(abstractDriver._teardownHook).to.be.equal(false); + }); + + test(`Check constructor sets by default _port=${AbstractDriverTest.DEFAULT_PORT}`, function() { + chai.expect(abstractDriver.port).to.be.equal(AbstractDriverTest.DEFAULT_PORT); + }); + + test(`Check port setter sets _port=${port}`, function() { + abstractDriver.port = port; + chai.expect(abstractDriver.port).to.be.equal(port); + }); + + test('Check DEFAULT_TTS static getter returns value more than 0', function() { + chai.expect(AbstractDriverTest.DEFAULT_TTS).to.be.above(0); + }); + + test('Check DEFAULT_PORT static getter returns value more than 0', function() { + chai.expect(AbstractDriverTest.DEFAULT_PORT).to.be.above(0); + }); + + test('Check start() method starts driver', function() { + let error = null; + let actualResult = null; + let expectedResult = { + _port: port, + _running: true, + _teardownHook: true, + }; + let spyCallback = sinon.spy(); + + try { + actualResult = abstractDriver.start(spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(actualResult.port).to.be.equal(expectedResult._port); + chai.expect(actualResult.running).to.be.equal(expectedResult._running); + chai.expect(actualResult._teardownHook).to.be.equal(expectedResult._teardownHook); + chai.expect(spyCallback).to.have.been.called; + }); + + test('Check _triggerOnTtsExpired() method', function() { + let error = null; + let spyCallback = sinon.spy(); + + try { + abstractDriver._triggerOnTtsExpired(1, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.not.have.been.called; + }); + + test(`Check start() method creates ServerAlreadyRunningException in callback when _running=true`, function() { + let error = null; + let spyCallback = sinon.spy(); + try { + abstractDriver.start(spyCallback); + } catch (e) { + error = e; + } + + chai.expect(spyCallback).to.have.been.threw; + }); + + test('Check restart() method restarts driver', function() { + let error = null; + let actualResult = null; + let spyCallback = sinon.spy(); + let expectedResult = { + _port: port, + _running: true, + _teardownHook: true, + }; + + try { + actualResult = abstractDriver.restart(spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(actualResult).to.be.eql(expectedResult); + chai.expect(spyCallback).to.have.been.called; + }); + + test('Check stop() method stops driver', function() { + let error = null; + let actualResult = null; + let expectedResult = { + _port: port, + _running: false, + _teardownHook: true, + }; + let spyCallback = sinon.spy(); + + try { + actualResult = abstractDriver.stop(spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(actualResult).to.be.eql(expectedResult); + chai.expect(spyCallback).to.have.been.called; + }); + + test('Check _triggerOnTtsExpired() method for running=false', function() { + let error = null; + let spyCallback = sinon.spy(); + chai.expect(abstractDriver.running).to.be.equal(false); + + try { + abstractDriver._triggerOnTtsExpired(1, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + }); + + test('Check restart() method call', function() { + let abstractDriverWithStopError = new AbstractDriverWithStopError(); + let error = null; + let spyCallback = sinon.spy(); + + try { + abstractDriverWithStopError.restart(spyCallback); + abstractDriverWithStopError.restart(spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.calledWith('error'); + }); + + test('Check _triggerOnTtsExpired() method for running=true', function() { + let error = null; + let spyCallback = sinon.spy(); + + try { + abstractDriver._triggerOnTtsExpired(1, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.not.have.been.called; + }); + + test('Check _registerTeardownHook() method returns valid object with _teardownHook=true', function() { + let error = null; + let actualResult = null; + let expectedResult = { + _port: port, + _running: false, + _teardownHook: true, + }; + + try { + actualResult = abstractDriver._registerTeardownHook(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(actualResult).to.be.eql(expectedResult); + }); + + test('Check ServerTtsExceededException can be thrown', function() { + let error = null; + let abstractDriverWithStopError = new AbstractDriverWithStopError(); + try { + abstractDriverWithStopError.throwServerTtsExceededException('driver', 1); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.assert.instanceOf(error, ServerTtsExceededException, 'error is an instance of ServerTtsExceededException'); + }); +}); diff --git a/src/deep-db/test/Local/Driver/Dynalite.js b/src/deep-db/test/Local/Driver/Dynalite.js new file mode 100644 index 00000000..4e391b2a --- /dev/null +++ b/src/deep-db/test/Local/Driver/Dynalite.js @@ -0,0 +1,90 @@ +'use strict'; + +import chai from 'chai'; +import sinon from 'sinon'; +import sinonChai from 'sinon-chai'; +import {Dynalite} from '../../../lib.compiled/Local/Driver/Dynalite'; +import DynaliteServer from 'dynalite'; +import {AbstractDriver} from '../../../lib.compiled/Local/Driver/AbstractDriver'; +import {FailedToStartServerException} from '../../../lib.compiled/Local/Driver/Exception/FailedToStartServerException'; +chai.use(sinonChai); + +class DynaliteServerTest extends DynaliteServer { + constructor(options) { + super(options); + } + + listen(port, cb) { + return cb('error', null); + } + + throwFailedToStartServerException(){ + throw new FailedToStartServerException(); + } +} + +suite('Local/Driver/Dynalite', function() { + let dynalite = new Dynalite(); + + test('Class Dynalite exists in Local/Driver/Dynalite', function() { + chai.expect(typeof Dynalite).to.equal('function'); + }); + + test('Check DEFAULT_OPTIONS static getter returns valid object', function() { + chai.expect(Dynalite.DEFAULT_OPTIONS.createTableMs).to.be.equal(0); + chai.expect(Dynalite.DEFAULT_OPTIONS.deleteTableMs).to.be.equal(0); + chai.expect(Dynalite.DEFAULT_OPTIONS.updateTableMs).to.be.equal(0); + }); + + test('Check constructor sets _options', function() { + chai.expect(dynalite.options).to.be.eql(Dynalite.DEFAULT_OPTIONS); + }); + + test('Check constructor sets _port', function() { + chai.expect(dynalite.port).to.be.equal(AbstractDriver.DEFAULT_PORT); + }); + + // todo - unstable tests, takes time to start server + //test('Check start() method starts DynaliteServer', function() { + // let error = null; + // let spyCallback = sinon.spy(); + // + // try { + // dynalite._start(spyCallback); + // } catch (e) { + // error = e; + // } + // + // chai.expect(error).to.be.equal(null); + // chai.expect(typeof dynalite._server).to.be.equal('object'); + //}); + + //test('Check stop() method stops server', function() { + // let spyCallback = sinon.spy(); + // + // dynalite._stop(spyCallback); + // chai.expect(dynalite._server).to.be.equal(null); + // chai.expect(spyCallback).to.not.have.been.called; + //}); + + test('Check stop() method stops !server', function() { + let spyCallback = sinon.spy(); + + dynalite._stop(spyCallback); + chai.expect(dynalite._server).to.be.equal(null); + chai.expect(spyCallback).to.have.been.calledWith(null); + }); + + test('Check FailedToStartServerException can be thrown', function() { + let error = null; + let dynaliteException = null; + try { + dynaliteException = new DynaliteServerTest(); + dynaliteException.throwFailedToStartServerException(dynaliteException, 'error'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); +}); diff --git a/src/deep-db/test/Local/Driver/LocalDynamo.js b/src/deep-db/test/Local/Driver/LocalDynamo.js new file mode 100644 index 00000000..d21c1502 --- /dev/null +++ b/src/deep-db/test/Local/Driver/LocalDynamo.js @@ -0,0 +1,58 @@ +'use strict'; + +import chai from 'chai'; +import {LocalDynamo} from '../../../lib.compiled/Local/Driver/LocalDynamo'; +import {AbstractDriver} from '../../../lib.compiled/Local/Driver/AbstractDriver'; +suite('Local/Driver/LocalDynamo', function() { + let localDynamo = new LocalDynamo(); + let callback = () => { + return 'callback called'; + }; + + test('Class LocalDynamo exists in Local/Driver/LocalDynamo', function() { + chai.expect(typeof LocalDynamo).to.equal('function'); + }); + + test('Check DEFAULT_OPTIONS static getter returns valid object', function() { + chai.expect(LocalDynamo.DEFAULT_OPTIONS.stdio).to.be.equal('pipe'); + }); + + test('Check constructor sets _options', function() { + chai.expect(localDynamo.options).to.be.eql(LocalDynamo.DEFAULT_OPTIONS); + }); + + test('Check constructor sets _process=null', function() { + chai.expect(localDynamo._process).to.be.equal(null); + }); + + + test('Check constructor sets _port', function() { + chai.expect(localDynamo.port).to.be.equal(AbstractDriver.DEFAULT_PORT); + }); + + test('Check start() method starts LocalDynamo', function() { + let error = null; + + try { + localDynamo._start(callback); + } catch (e) { + error = e; + chai.expect(error).to.be.equal(null); + } + + chai.expect(localDynamo._proccess).to.be.not.equal(null); + }); + + test('Check stop() method starts LocalDynamo', function() { + let error = null; + + try { + localDynamo._stop(callback); + } catch (e) { + error = e; + chai.expect(error).to.be.equal(null); + } + + chai.expect(localDynamo._proccess).to.be.equal(undefined); + }); +}); diff --git a/src/deep-db/test/Local/Driver/PathAwareDriver.js b/src/deep-db/test/Local/Driver/PathAwareDriver.js new file mode 100644 index 00000000..dc0634ea --- /dev/null +++ b/src/deep-db/test/Local/Driver/PathAwareDriver.js @@ -0,0 +1,40 @@ +'use strict'; + +import chai from 'chai'; +import {PathAwareDriver} from '../../../lib.compiled/Local/Driver/PathAwareDriver'; + +class PathAwareDriverTest extends PathAwareDriver { + constructor(path = PathAwareDriver.DBPath, port = PathAwareDriver.DEFAULT_PORT) { + super(path, port); + } + + _stop(cb) { + this._running = false; + return 'stopped'; + } + + _start(cb, tts) { + this._running = true; + return 'started'; + } +} + +suite('Local/Driver/PathAwareDriver', function() { + let pathAwareDriver = new PathAwareDriverTest(); + + test('Class PathAwareDriver exists in Local/Driver/PathAwareDriver', function() { + chai.expect(typeof PathAwareDriver).to.equal('function'); + }); + + test('Check DBPath static getter returns valid value', function() { + chai.expect(PathAwareDriver.DBPath).to.be.contains('/PathAwareDriver'); + }); + + test('Check path getter/setter returns/sets _path value', function() { + pathAwareDriver.path = PathAwareDriver.DBPath; + chai.expect(pathAwareDriver.path).to.be.equal(PathAwareDriver.DBPath); + let newPath = 'newPath'; + pathAwareDriver.path = newPath; + chai.expect(pathAwareDriver.path).to.be.equal(newPath); + }); +}); diff --git a/src/deep-db/test/Vogels/ExtendModel.js b/src/deep-db/test/Vogels/ExtendModel.js new file mode 100644 index 00000000..8bd9d950 --- /dev/null +++ b/src/deep-db/test/Vogels/ExtendModel.js @@ -0,0 +1,378 @@ +'use strict'; + +import chai from 'chai'; +import {ExtendModel} from '../../lib.compiled/Vogels/ExtendModel'; +import {Exception} from '../../lib.compiled/Vogels/Exceptions/Exception'; +import {UndefinedMethodException} from '../../lib.compiled/Vogels/Exceptions/UndefinedMethodException'; + + +class ExtendModelMock extends ExtendModel { + constructor(model) { + super(model); + } + + scan() { + return 'scanned'; + } + + loadAll() { + return 'loaded'; + } + + exec(cb) { + return cb(null, 'result'); + } + + startKey() { + return 'startKey'; + } + + limit() { + return 'limit'; + } + + where() { + return 'where'; + } + + update(id, data) { + return 'update'; + } + + create() { + return 'create'; + } + + filterExpression() { + return 'filterExpression'; + } + + expressionAttributeValues() { + return 'expressionAttributeValues'; + } + + expressionAttributeNames() { + return 'expressionAttributeNames'; + } +} + +class ExtendModelMockException extends ExtendModelMock { + constructor(model) { + super(model); + } + + exec(cb) { + cb(null, 'result'); + return cb(null, 'result'); + } + + throwException(message) { + throw new Exception(message); + } + + throwUndefinedMethodException(name, methods) { + throw new UndefinedMethodException(name, methods); + } +} + +suite('Vogels/ExtendModel', function() { + let model = {name: 'userName'}; + let extendModel = new ExtendModel(model); + + test('Class ExtendModel exists in Vogels/ExtendModel', function() { + chai.expect(typeof ExtendModel).to.equal('function'); + }); + + test('Check constructor sets _model', function() { + chai.expect(extendModel.model).to.be.equal(model); + }); + + test('Check DEFAULT_LIMIT static getter returns value more than 0', function() { + chai.expect(ExtendModel.DEFAULT_LIMIT).to.be.above(0); + }); + + test('Check DEFAULT_SEGMENTS_NUMBER static getter returns value more than 0', function() { + chai.expect(ExtendModel.DEFAULT_SEGMENTS_NUMBER).to.be.above(0); + }); + + test('Check buildScanParameters static getter returns value more than 0', function() { + let expectedResult = { + filterExpression: '#firstKey = :firstKey AND #secondKey = :secondKey', + filterExpressionNames: { + '#firstKey': 'firstKey', + '#secondKey': 'secondKey', + }, + filterExpressionValues: { + ':firstKey': 'Value0', + ':secondKey': 'Value0', + }, + }; + let acttualResult = ExtendModel.buildScanParameters({firstKey: 'Value0', secondKey: 'Value0',}) + chai.expect(acttualResult).to.be.eql(expectedResult); + }); + + test('Check inject() method with methods=null', function() { + chai.expect(extendModel.inject()).to.be.eql(model); + }); + + test('Check inject() method with one method ', function() { + let error = null; + + try { + extendModel.inject('findAlll'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check methods() getter', function() { + let actualResult = extendModel.methods; + let methods = Object.keys(actualResult); + + let expectedMethodNames = ['findAll', 'findAllPaginated', 'findOneById', 'findOneBy', + 'findBy', 'findAllBy', 'findAllByPaginated', 'findMatching', 'findOneMatching', + 'findAllMatching', 'findAllMatchingPaginated', 'deleteById', + 'deleteByIdConditional', 'createItem', 'createUniqueOnFields', + 'updateItem', 'updateItemConditional',]; + chai.expect(methods.length).to.be.eql(expectedMethodNames.length); + + //check all items is fucntions + for (let methodName of expectedMethodNames) { + chai.expect(methods).to.be.contains(methodName); + chai.expect(typeof actualResult[methodName]).to.be.equal('function'); + } + }); + + test('Check method.findAll() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.findAll(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.findAllPaginated() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.findAllPaginated(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.findOneById() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.findOneById(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.findOneBy() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.findOneBy(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.findBy() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.findBy(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.findAllBy() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.findAllBy(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.findAllByPaginated() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.findAllByPaginated(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.findMatching() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.findMatching(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.findOneMatching() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.findOneMatching(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.findAllMatching() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.findAllMatching(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.findAllMatchingPaginated() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.findAllMatchingPaginated(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.deleteById() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.deleteById(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.deleteByIdConditional() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.deleteByIdConditional(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.createItem() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.createItem(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.updateItem() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.updateItem('id', {}); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.updateItemConditional() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMock({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.updateItemConditional('id', {}, 'condition'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check method.createUniqueOnFields() exist and can be called', function() { + let mockedExtendModel = new ExtendModelMockException({name: 'userName'}); + let error = null; + try { + mockedExtendModel.methods.createUniqueOnFields(['id', 'name'], {id: 'testId', name: 'testName'}); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check \'Exception\' exception can be called', function() { + let mockedExtendModel = new ExtendModelMockException(); + let error = null; + let msg = 'Test message'; + try { + mockedExtendModel.throwException(msg); + } catch (e) { + error = e; + } + + chai.assert.instanceOf(error, Exception, 'error is an instance of Exception'); + }); + + test('Check \'UndefinedMethodException\' exception can be called', function() { + let mockedExtendModel = new ExtendModelMockException(); + let error = null; + let method = 'test'; + let predefinedMethods = ['firstMethod', 'secondMethod']; + try { + mockedExtendModel.throwUndefinedMethodException(method, predefinedMethods); + } catch (e) { + error = e; + } + + chai.assert.instanceOf(error, UndefinedMethodException, 'error is an instance of UndefinedMethodException'); + }); +}); diff --git a/src/deep-di/.gitignore b/src/deep-di/.gitignore new file mode 100644 index 00000000..59a1c5d0 --- /dev/null +++ b/src/deep-di/.gitignore @@ -0,0 +1,106 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log + diff --git a/src/deep-di/.npmignore b/src/deep-di/.npmignore new file mode 100644 index 00000000..8219039a --- /dev/null +++ b/src/deep-di/.npmignore @@ -0,0 +1,4 @@ +test +tests +/lib +.gitignore \ No newline at end of file diff --git a/src/deep-di/README.md b/src/deep-di/README.md new file mode 100644 index 00000000..126bb448 --- /dev/null +++ b/src/deep-di/README.md @@ -0,0 +1,83 @@ +deep-di +======= + +[![NPM Version](https://img.shields.io/npm/v/deep-di.svg)](https://npmjs.org/package/deep-di) +[![Build Status](https://travis-ci.org/MitocGroup/deep-framework.svg)](https://travis-ci.org/MitocGroup/deep-framework) +[![Coverage Status](https://coveralls.io/repos/MitocGroup/deep-framework/badge.svg?service=github&t=3QEkFa)](https://coveralls.io/github/MitocGroup/deep-framework) +[![Codacy Badge](https://api.codacy.com/project/badge/630b5f0024334dc09fd0299b1a8a0ed5)](https://www.codacy.com/app/MitocGroup/deep-framework) +[![API Docs](http://docs.deep.mg/deep-di/badge.svg)](http://docs.deep.mg/deep-di/) + +[deep-di](https://www.npmjs.com/package/deep-di) is a node.js library, part of [DEEP Framework](https://github.com/MitocGroup/deep-framework). + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-ecosystem.png) + +Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less. + +## DEEP for Businesses [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### User Guide Documentation (to be updated later) + +DEEP is enabling small and medium businesses, as well as enterprises to: +- Rent applications on a monthly basis by needed functionality from [DEEP Marketplace](https://www.deep.mg) +- Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS +- Pay only for subscribed applications and stop paying when unsubscribing and not using anymore +- Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences +- Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP for Developers [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### [API Guide Documentation](http://docs.deep.mg) +#### [Developer Guide Documentation](https://github.com/MitocGroup/deep-framework/blob/master/docs/index.md) + +DEEP is enabling developers and architects to: +- Design microservices architecture on top of serverless environments from cloud providers like AWS +- Build distributed software that combines and manages hardware and software in the same microservice +- Use the framework's abstracted approach to build applications that could be cloud agnostic +- Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) +- Run in the cloud the software that was built by distributed teams and served self-service in large organizations +- Monetize their work of art by uploading microservices to [DEEP Marketplace](https://www.deep.mg) + +> [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with [DEEP Microservices HelloWorld](https://github.com/MitocGroup/deep-microservices-helloworld) or [DEEP Microservices ToDo App](https://github.com/MitocGroup/deep-microservices-todo-app), as well as [DEEP CLI](https://www.npmjs.com/package/deepify) (aka `deepify`). + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP Architecture on AWS [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-architecture.png) + +DEEP is using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries: + +DEEP Abstracted Library | Description | AWS Abstracted Service(s) +-------------|---------------------|-------------------------- +[deep-asset](http://docs.deep.mg/deep-asset) | Assets Management Library | Amazon S3 +[deep-cache](http://docs.deep.mg/deep-cache) | Cache Management Library | Amazon ElastiCache +[deep-core](http://docs.deep.mg/deep-core) | Core Management Library | - +[deep-db](http://docs.deep.mg/deep-db) | Database Management Library | Amazon DynamoDB, Amazon SQS +[deep-di](http://docs.deep.mg/deep-di) | Dependency Injection Management Library | - +[deep-event](http://docs.deep.mg/deep-event) | Events Management Library | Amazon Kinesis +[deep-fs](http://docs.deep.mg/deep-fs) | File System Management Library | Amazon S3 +[deep-kernel](http://docs.deep.mg/deep-kernel) | Kernel Management Library | - +[deep-log](http://docs.deep.mg/deep-log) | Logs Management Library | Amazon CloudWatch Logs +[deep-notification](http://docs.deep.mg/deep-notification) | Notifications Management Library | Amazon SNS +[deep-resource](http://docs.deep.mg/deep-resource) | Resouces Management Library | AWS Lambda, Amazon API Gateway +[deep-security](http://docs.deep.mg/deep-security) | Security Management Library | AWS IAM, Amazon Cognito +[deep-validation](http://docs.deep.mg/deep-validation) | Validation Management Library | - + +## Feedback + +We are eager to get your feedback, so please use whatever communication channel you prefer: +- [github issues](https://github.com/MitocGroup/deep-framework/issues) +- [gitter chat room](https://gitter.im/MitocGroup/deep-framework) +- [deep email address](mailto:feedback@deep.mg) + +## License + +This repository can be used under the MIT license. +> See [LICENSE](https://github.com/MitocGroup/deep-framework/blob/master/LICENSE) for more details. + +## Sponsors + +This repository is being sponsored by: +> [Mitoc Group](http://www.mitocgroup.com) diff --git a/src/deep-di/lib/DI.js b/src/deep-di/lib/DI.js new file mode 100644 index 00000000..73f9fba8 --- /dev/null +++ b/src/deep-di/lib/DI.js @@ -0,0 +1,82 @@ +/** + * Created by mgoria on 5/26/2015 + */ + +'use strict'; + +import Bottle from 'bottlejs'; +import {MissingServiceException} from './Exception/MissingServiceException'; +import Core from 'deep-core'; + +/** + * Deep dependency injection module + */ +export class DI { + constructor() { + this._bottle = new Bottle(); + } + + /** + * Registers a service to container + * + * @param {String} serviceName + * @param {Object} serviceClass + * @param {String[]} dependencies + */ + register(serviceName, serviceClass, dependencies) { + var args = [serviceName, serviceClass]; + + if (dependencies) { + args = args.concat(dependencies); + } + + this._bottle.service.apply(this._bottle, args); + } + + /** + * Defines a factory method to create a service + * + * @param {String} serviceName + * @param {Object} factoryClass + */ + factory(serviceName, factoryClass) { + this._bottle.factory(serviceName, factoryClass); + } + + /** + * Adds a parameter into container + * + * @param {String} name + * @param {*} value + */ + addParameter(name, value) { + this._bottle.value(name, value); + } + + /** + * Adds an instantiated service into container + * + * @param {String} name + * @param {Object} value + */ + addService(name, value) { + if (!(value instanceof Object)) { + throw new Core.Exception.InvalidArgumentException(value, 'Object'); + } + + this._bottle.value(name, value); + } + + /** + * Returns a service / parameter from container + * + * @returns {Object} + */ + get(key) { + if (typeof this._bottle.container[key] === 'undefined') { + throw new MissingServiceException(`Unregistered service or parameter "${key}"`); + } + + return this._bottle.container[key]; + } +} diff --git a/src/deep-di/lib/Exception/Exception.js b/src/deep-di/lib/Exception/Exception.js new file mode 100644 index 00000000..90ade1cd --- /dev/null +++ b/src/deep-di/lib/Exception/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Core from 'deep-core'; + +/** + * Thrown when any exception occurs + */ +export class Exception extends Core.Exception.Exception { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-di/lib/Exception/MissingServiceException.js b/src/deep-di/lib/Exception/MissingServiceException.js new file mode 100644 index 00000000..fc3a2fa4 --- /dev/null +++ b/src/deep-di/lib/Exception/MissingServiceException.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when requested service is missing + */ +export class MissingServiceException extends Exception { + /** + * @param {String} serviceName + */ + constructor(serviceName) { + super(`Missing service ${serviceName} in deep-kernel`); + } +} diff --git a/src/deep-di/lib/bootstrap.js b/src/deep-di/lib/bootstrap.js new file mode 100644 index 00000000..88846ea8 --- /dev/null +++ b/src/deep-di/lib/bootstrap.js @@ -0,0 +1,11 @@ +/** + * Created by AlexanderC on 5/22/15. + * + * Bootstrap file loaded by npm as main + */ + +'use strict'; + +import {DI} from './DI'; + +let exports = module.exports = DI; diff --git a/src/deep-di/package.json b/src/deep-di/package.json new file mode 100644 index 00000000..7974c1a3 --- /dev/null +++ b/src/deep-di/package.json @@ -0,0 +1,68 @@ +{ + "name": "deep-di", + "version": "1.0.1", + "description": "DEEP Dependency Injection Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "DI", + "Dependency Injection", + "IOC", + "Inversion of Control", + "Container" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "bottlejs": "1.0.*", + "deep-core": "1.0.*" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/src/deep-di/test/.gitkeep b/src/deep-di/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-di/test/DI.js b/src/deep-di/test/DI.js new file mode 100644 index 00000000..db001a96 --- /dev/null +++ b/src/deep-di/test/DI.js @@ -0,0 +1,114 @@ +'use strict'; + +import chai from 'chai'; +import {DI} from '../lib.compiled/DI'; +import Bottle from 'bottlejs'; +import {MissingServiceException} from '../lib.compiled/Exception/MissingServiceException'; +import Core from 'deep-core'; + +class FactoryClass { + constructor() { + this.name = 'FactoryClass'; + } +} + +class ServiceClass { + constructor() { + this.name = 'ServiceClass'; + } +} + +suite('DI', function() { + let di = new DI(); + + test('Class DI exists in DI', function() { + chai.expect(typeof DI).to.equal('function'); + }); + + test('Check constructor sets _bottle', function() { + chai.assert.instanceOf(di._bottle, Bottle, 'this._bottle is an instance of Bottle'); + }); + + test('Check get method throws \'MissingServiceException\' exception for invalid service or parameter', function() { + let error = null; + try { + di.get('invalidValue'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(MissingServiceException); + }); + + test('Check addService method throws \'Core.Exception.InvalidArgumentException\' exception for invalid service', function() { + let error = null; + try { + di.addService('serviceName', 'invalidService'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(Core.Exception.InvalidArgumentException); + }); + + test('Check addService method adds an instantiated service into container', function() { + let error = null; + let service = { + name: 'serviceName', + value: { + data: 'testServiceObject', + }, + }; + try { + di.addService(service.name, service.value); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(di.get(service.name)).to.be.eql(service.value); + }); + + test('Check addParameter method adds a parameter into container', function() { + let error = null; + let parameter = { + name: 'parameterName', + value: 'parameterValue', + }; + try { + di.addParameter(parameter.name, parameter.value); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(di.get(parameter.name)).to.be.eql(parameter.value); + }); + + test('Check factory method creates a service', function() { + let error = null; + let actualResult = null; + try { + actualResult = di.factory('testService', FactoryClass); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + }); + + test('Check register method registers a service to container', function() { + let error = null; + let actualResult = null; + let dependencies = ['dep1','dep2','dep3']; + try { + actualResult = di.register('testService', ServiceClass, dependencies); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + }); +}); \ No newline at end of file diff --git a/src/deep-event/.gitignore b/src/deep-event/.gitignore new file mode 100644 index 00000000..278bf823 --- /dev/null +++ b/src/deep-event/.gitignore @@ -0,0 +1,105 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log diff --git a/src/deep-event/.npmignore b/src/deep-event/.npmignore new file mode 100644 index 00000000..8219039a --- /dev/null +++ b/src/deep-event/.npmignore @@ -0,0 +1,4 @@ +test +tests +/lib +.gitignore \ No newline at end of file diff --git a/src/deep-event/README.md b/src/deep-event/README.md new file mode 100644 index 00000000..8eceb055 --- /dev/null +++ b/src/deep-event/README.md @@ -0,0 +1,83 @@ +deep-event +========== + +[![NPM Version](https://img.shields.io/npm/v/deep-event.svg)](https://npmjs.org/package/deep-event) +[![Build Status](https://travis-ci.org/MitocGroup/deep-framework.svg)](https://travis-ci.org/MitocGroup/deep-framework) +[![Coverage Status](https://coveralls.io/repos/MitocGroup/deep-framework/badge.svg?service=github&t=3QEkFa)](https://coveralls.io/github/MitocGroup/deep-framework) +[![Codacy Badge](https://api.codacy.com/project/badge/630b5f0024334dc09fd0299b1a8a0ed5)](https://www.codacy.com/app/MitocGroup/deep-framework) +[![API Docs](http://docs.deep.mg/deep-event/badge.svg)](http://docs.deep.mg/deep-event/) + +[deep-event](https://www.npmjs.com/package/deep-event) is a node.js library, part of [DEEP Framework](https://github.com/MitocGroup/deep-framework). + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-ecosystem.png) + +Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less. + +## DEEP for Businesses [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### User Guide Documentation (to be updated later) + +DEEP is enabling small and medium businesses, as well as enterprises to: +- Rent applications on a monthly basis by needed functionality from [DEEP Marketplace](https://www.deep.mg) +- Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS +- Pay only for subscribed applications and stop paying when unsubscribing and not using anymore +- Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences +- Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP for Developers [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### [API Guide Documentation](http://docs.deep.mg) +#### [Developer Guide Documentation](https://github.com/MitocGroup/deep-framework/blob/master/docs/index.md) + +DEEP is enabling developers and architects to: +- Design microservices architecture on top of serverless environments from cloud providers like AWS +- Build distributed software that combines and manages hardware and software in the same microservice +- Use the framework's abstracted approach to build applications that could be cloud agnostic +- Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) +- Run in the cloud the software that was built by distributed teams and served self-service in large organizations +- Monetize their work of art by uploading microservices to [DEEP Marketplace](https://www.deep.mg) + +> [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with [DEEP Microservices HelloWorld](https://github.com/MitocGroup/deep-microservices-helloworld) or [DEEP Microservices ToDo App](https://github.com/MitocGroup/deep-microservices-todo-app), as well as [DEEP CLI](https://www.npmjs.com/package/deepify) (aka `deepify`). + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP Architecture on AWS [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-architecture.png) + +DEEP is using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries: + +DEEP Abstracted Library | Description | AWS Abstracted Service(s) +-------------|---------------------|-------------------------- +[deep-asset](http://docs.deep.mg/deep-asset) | Assets Management Library | Amazon S3 +[deep-cache](http://docs.deep.mg/deep-cache) | Cache Management Library | Amazon ElastiCache +[deep-core](http://docs.deep.mg/deep-core) | Core Management Library | - +[deep-db](http://docs.deep.mg/deep-db) | Database Management Library | Amazon DynamoDB, Amazon SQS +[deep-di](http://docs.deep.mg/deep-di) | Dependency Injection Management Library | - +[deep-event](http://docs.deep.mg/deep-event) | Events Management Library | Amazon Kinesis +[deep-fs](http://docs.deep.mg/deep-fs) | File System Management Library | Amazon S3 +[deep-kernel](http://docs.deep.mg/deep-kernel) | Kernel Management Library | - +[deep-log](http://docs.deep.mg/deep-log) | Logs Management Library | Amazon CloudWatch Logs +[deep-notification](http://docs.deep.mg/deep-notification) | Notifications Management Library | Amazon SNS +[deep-resource](http://docs.deep.mg/deep-resource) | Resouces Management Library | AWS Lambda, Amazon API Gateway +[deep-security](http://docs.deep.mg/deep-security) | Security Management Library | AWS IAM, Amazon Cognito +[deep-validation](http://docs.deep.mg/deep-validation) | Validation Management Library | - + +## Feedback + +We are eager to get your feedback, so please use whatever communication channel you prefer: +- [github issues](https://github.com/MitocGroup/deep-framework/issues) +- [gitter chat room](https://gitter.im/MitocGroup/deep-framework) +- [deep email address](mailto:feedback@deep.mg) + +## License + +This repository can be used under the MIT license. +> See [LICENSE](https://github.com/MitocGroup/deep-framework/blob/master/LICENSE) for more details. + +## Sponsors + +This repository is being sponsored by: +> [Mitoc Group](http://www.mitocgroup.com) diff --git a/src/deep-event/lib/Exception/Exception.js b/src/deep-event/lib/Exception/Exception.js new file mode 100644 index 00000000..90ade1cd --- /dev/null +++ b/src/deep-event/lib/Exception/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Core from 'deep-core'; + +/** + * Thrown when any exception occurs + */ +export class Exception extends Core.Exception.Exception { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-event/lib/bootstrap.js b/src/deep-event/lib/bootstrap.js new file mode 100644 index 00000000..756a637e --- /dev/null +++ b/src/deep-event/lib/bootstrap.js @@ -0,0 +1,9 @@ +/** + * Created by AlexanderC on 5/22/15. + * + * Bootstrap file loaded by npm as main + */ + +'use strict'; + +let exports = module.exports = {}; diff --git a/src/deep-event/package.json b/src/deep-event/package.json new file mode 100644 index 00000000..5122d9c7 --- /dev/null +++ b/src/deep-event/package.json @@ -0,0 +1,64 @@ +{ + "name": "deep-event", + "version": "1.0.1", + "description": "DEEP Event Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Event" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcovonly _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "1.0.*", + "deep-core": "1.0.*" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/src/deep-event/test/.gitkeep b/src/deep-event/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-framework/.gitignore b/src/deep-framework/.gitignore new file mode 100644 index 00000000..439877b8 --- /dev/null +++ b/src/deep-framework/.gitignore @@ -0,0 +1,105 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log \ No newline at end of file diff --git a/src/deep-framework/.npmignore b/src/deep-framework/.npmignore new file mode 100644 index 00000000..a1ae1d31 --- /dev/null +++ b/src/deep-framework/.npmignore @@ -0,0 +1,5 @@ +test +tests +/lib +.gitignore +scripts \ No newline at end of file diff --git a/src/deep-framework/README.md b/src/deep-framework/README.md new file mode 100644 index 00000000..200a6850 --- /dev/null +++ b/src/deep-framework/README.md @@ -0,0 +1,81 @@ +deep-framework +============== + +[![NPM Version](https://img.shields.io/npm/v/deep-framework.svg)](https://npmjs.org/package/deep-framework) +[![Build Status](https://travis-ci.org/MitocGroup/deep-framework.svg)](https://travis-ci.org/MitocGroup/deep-framework) +[![Coverage Status](https://coveralls.io/repos/MitocGroup/deep-framework/badge.svg?service=github&t=3QEkFa)](https://coveralls.io/github/MitocGroup/deep-framework) +[![Codacy Badge](https://api.codacy.com/project/badge/630b5f0024334dc09fd0299b1a8a0ed5)](https://www.codacy.com/app/MitocGroup/deep-framework) +[![API Docs](http://docs.deep.mg/badge.svg)](http://docs.deep.mg) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-ecosystem.png) + +Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less. + +## DEEP for Businesses [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### User Guide Documentation (to be updated later) + +DEEP is enabling small and medium businesses, as well as enterprises to: +- Rent applications on a monthly basis by needed functionality from [DEEP Marketplace](https://www.deep.mg) +- Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS +- Pay only for subscribed applications and stop paying when unsubscribing and not using anymore +- Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences +- Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP for Developers [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### [API Guide Documentation](http://docs.deep.mg) +#### [Developer Guide Documentation](https://github.com/MitocGroup/deep-framework/blob/master/docs/index.md) + +DEEP is enabling developers and architects to: +- Design microservices architecture on top of serverless environments from cloud providers like AWS +- Build distributed software that combines and manages hardware and software in the same microservice +- Use the framework's abstracted approach to build applications that could be cloud agnostic +- Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) +- Run in the cloud the software that was built by distributed teams and served self-service in large organizations +- Monetize their work of art by uploading microservices to [DEEP Marketplace](https://www.deep.mg) + +> [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with [DEEP Microservices HelloWorld](https://github.com/MitocGroup/deep-microservices-helloworld) or [DEEP Microservices ToDo App](https://github.com/MitocGroup/deep-microservices-todo-app), as well as [DEEP CLI](https://www.npmjs.com/package/deepify) (aka `deepify`). + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP Architecture on AWS [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-architecture.png) + +DEEP is using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries: + +DEEP Abstracted Library | Description | AWS Abstracted Service(s) +-------------|---------------------|-------------------------- +[deep-asset](http://docs.deep.mg/deep-asset) | Assets Management Library | Amazon S3 +[deep-cache](http://docs.deep.mg/deep-cache) | Cache Management Library | Amazon ElastiCache +[deep-core](http://docs.deep.mg/deep-core) | Core Management Library | - +[deep-db](http://docs.deep.mg/deep-db) | Database Management Library | Amazon DynamoDB, Amazon SQS +[deep-di](http://docs.deep.mg/deep-di) | Dependency Injection Management Library | - +[deep-event](http://docs.deep.mg/deep-event) | Events Management Library | Amazon Kinesis +[deep-fs](http://docs.deep.mg/deep-fs) | File System Management Library | Amazon S3 +[deep-kernel](http://docs.deep.mg/deep-kernel) | Kernel Management Library | - +[deep-log](http://docs.deep.mg/deep-log) | Logs Management Library | Amazon CloudWatch Logs +[deep-notification](http://docs.deep.mg/deep-notification) | Notifications Management Library | Amazon SNS +[deep-resource](http://docs.deep.mg/deep-resource) | Resouces Management Library | AWS Lambda, Amazon API Gateway +[deep-security](http://docs.deep.mg/deep-security) | Security Management Library | AWS IAM, Amazon Cognito +[deep-validation](http://docs.deep.mg/deep-validation) | Validation Management Library | - + +## Feedback + +We are eager to get your feedback, so please use whatever communication channel you prefer: +- [github issues](https://github.com/MitocGroup/deep-framework/issues) +- [gitter chat room](https://gitter.im/MitocGroup/deep-framework) +- [deep email address](mailto:feedback@deep.mg) + +## License + +This repository can be used under the MIT license. +> See [LICENSE](https://github.com/MitocGroup/deep-framework/blob/master/LICENSE) for more details. + +## Sponsors + +This repository is being sponsored by: +> [Mitoc Group](http://www.mitocgroup.com) diff --git a/src/deep-framework/browser/.gitkeep b/src/deep-framework/browser/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-framework/browser/framework.js b/src/deep-framework/browser/framework.js new file mode 100644 index 00000000..1caf31de --- /dev/null +++ b/src/deep-framework/browser/framework.js @@ -0,0 +1,90 @@ +/** Built on Tue Oct 6 17:22:18 PDT 2015 +deep-framework@1.0.1 +├── deep-asset@1.0.1 +├── deep-cache@1.0.1 +├── deep-core@1.0.1 +├── deep-db@1.0.1 +├── deep-di@1.0.1 +├── deep-event@1.0.1 +├── deep-fs@1.0.1 +├── deep-kernel@1.0.1 +├── deep-log@1.0.1 +├── deep-notification@1.0.1 +├── deep-resource@1.0.1 +├── deep-security@1.0.1 +├── deep-validation@1.0.1 +*/ +require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}return new(_bind.apply(DriverPrototype,[null].concat(args)))}}]);return Cache}(_deepKernel2["default"].ContainerAware);exports.Cache=Cache}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-cache/lib.compiled/Cache.js","/node_modules/deep-cache/lib.compiled")},{"./Driver/InMemoryDriver":11,"./Driver/LocalStorageDriver":12,"./Driver/RedisDriver":13,"./Exception/Exception":14,_process:379,buffer:230,"deep-kernel":"deep-kernel"}],5:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}return new(_bind.apply(Prototype,[null].concat(args)))}},{key:"createCollection",value:function createCollection(Prototype){Prototype=Factory._assurePrototype(Prototype);return new _Collection.Collection(Prototype)}},{key:"_assurePrototype",value:function _assurePrototype(Prototype){if(typeof Prototype==="string"){Prototype=Factory[Prototype.toUpperCase()]}return Prototype}},{key:"POLICY",get:function get(){return _Policy.Policy}},{key:"RESOURCE",get:function get(){return _Resource.Resource}},{key:"ACTION",get:function get(){return _Action.Action}},{key:"STATEMENT",get:function get(){return _Statement.Statement}}]);return Factory}();exports.Factory=Factory}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-core/lib.compiled/AWS/IAM/Factory.js","/node_modules/deep-core/lib.compiled/AWS/IAM")},{"./Action":15,"./Collection":16,"./Policy":20,"./Resource":21,"./Statement":22,_process:379,buffer:230}],20:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i0?this._action.extract():_Policy.Policy.ANY;var resources=this._resource.count()>0?this._resource.extract():null;var statement={Effect:this._effect,Action:actions};if(resources!==null){statement.Resource=resources}if(this._condition!==null&&this._condition instanceof Object){statement.Condition=this._condition}if(this._principal!=null){statement.Principal=this._principal}if(this._notAction.count()>0){statement.NotAction=this._notAction.extract()}if(this._notResource.count()>0){statement.NotResource=this._notResource.extract()}return statement}},{key:"effect",set:function set(effect){if([Statement.ALLOW,Statement.DENY].indexOf(effect)===-1){throw new _ExceptionInvalidArgumentException.InvalidArgumentException(effect,"[Statement.ALLOW, Statement.DENY]")}this._effect=effect},get:function get(){return this._effect}},{key:"condition",set:function set(condition){this._condition=condition},get:function get(){return this._condition}},{key:"principal",set:function set(principal){this._principal=principal},get:function get(){return this._principal}},{key:"notResource",get:function get(){return this._notResource}},{key:"resource",get:function get(){return this._resource}},{key:"notAction",get:function get(){return this._notAction}},{key:"action",get:function get(){return this._action}}],[{key:"ALLOW",get:function get(){return"Allow"}},{key:"DENY",get:function get(){return"Deny"}}]);return Statement}(_Extractable2.Extractable);exports.Statement=Statement}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-core/lib.compiled/AWS/IAM/Statement.js","/node_modules/deep-core/lib.compiled/AWS/IAM")},{"../../Exception/InvalidArgumentException":31,"./Action":15,"./Collection":16,"./Extractable":18,"./Policy":20,"./Resource":21,_process:379,buffer:230}],23:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _get=function get(_x,_x2,_x3){var _again=true;_function:while(_again){var object=_x,property=_x2,receiver=_x3;desc=parent=getter=undefined;_again=false;if(object===null)object=Function.prototype;var desc=Object.getOwnPropertyDescriptor(object,property);if(desc===undefined){var parent=Object.getPrototypeOf(object);if(parent===null){return undefined}else{_x=parent;_x2=property;_x3=receiver;_again=true;continue _function}}else if("value"in desc){return desc.value}else{var getter=desc.get;if(getter===undefined){return undefined}return getter.call(receiver)}}};function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var _ExceptionException=require("../../../Exception/Exception");var MissingRuntimeContextException=function(_Exception){_inherits(MissingRuntimeContextException,_Exception);function MissingRuntimeContextException(){_classCallCheck(this,MissingRuntimeContextException);_get(Object.getPrototypeOf(MissingRuntimeContextException.prototype),"constructor",this).call(this,"Missing Lambda runtime context")}return MissingRuntimeContextException}(_ExceptionException.Exception);exports.MissingRuntimeContextException=MissingRuntimeContextException}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-core/lib.compiled/AWS/Lambda/Exception/MissingRuntimeContextException.js","/node_modules/deep-core/lib.compiled/AWS/Lambda/Exception")},{"../../../Exception/Exception":30,_process:379,buffer:230}],24:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i1?_len-1:0),_key=1;_key<_len;_key++){instances[_key-1]=arguments[_key]}this.add.apply(this,instances)}_createClass(ObjectVector,[{key:"add",value:function add(){var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _len2=arguments.length,instances=Array(_len2),_key2=0;_key2<_len2;_key2++){instances[_key2]=arguments[_key2]}for(var _iterator=instances[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var instance=_step.value;if(!(instance instanceof this._proto)){throw new Error("The object "+instance.constructor.name+" is not an instance of "+this._proto.name)}this._vector.push(instance)}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator["return"]){_iterator["return"]()}}finally{if(_didIteratorError){throw _iteratorError}}}return this}},{key:"collection",get:function get(){return this._vector}}]);return ObjectVector}();exports.ObjectVector=ObjectVector}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-core/lib.compiled/Generic/ObjectVector.js","/node_modules/deep-core/lib.compiled/Generic")},{_process:379,buffer:230}],35:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _ExceptionMethodsNotImplementedException=require("../Exception/MethodsNotImplementedException");var _ExceptionInvalidArgumentException=require("../Exception/InvalidArgumentException");var Interface=function Interface(){_classCallCheck(this,Interface);for(var _len=arguments.length,abstractMethods=Array(_len),_key=0;_key<_len;_key++){abstractMethods[_key]=arguments[_key]}var methods=abstractMethods.length===1&&abstractMethods[0]instanceof Array?abstractMethods[0]:abstractMethods;var notImplementedMethods=[];for(var abstractMethodKey in methods){if(!methods.hasOwnProperty(abstractMethodKey)){continue}var abstractMethod=methods[abstractMethodKey];if(!(this[abstractMethod]instanceof Function)){notImplementedMethods.push(abstractMethod)}}if(notImplementedMethods.length>0){throw new _ExceptionMethodsNotImplementedException.MethodsNotImplementedException(notImplementedMethods)}};exports.Interface=Interface}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-core/lib.compiled/OOP/Interface.js","/node_modules/deep-core/lib.compiled/OOP")},{"../Exception/InvalidArgumentException":31,"../Exception/MethodsNotImplementedException":32,_process:379,buffer:230}],36:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}switch(type.toLowerCase()){case"console":driver=new(_bind.apply(_DriverConsoleDriver.ConsoleDriver,[null].concat(args)));break;case"raven":case"sentry":var DriverPrototype=this.container.get(_deepKernel2["default"].CONTEXT).isFrontend?_DriverRavenBrowserDriver.RavenBrowserDriver:_DriverRavenDriver.RavenDriver;driver=new DriverPrototype(args[0].dsn);break;default:throw new _deepCore2["default"].Exception.InvalidArgumentException(type,"[Console, Raven, Sentry]")}return driver}},{key:"register",value:function register(driver){if(typeof driver==="string"){for(var _len2=arguments.length,args=Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2]}driver=this.create.apply(this,[driver].concat(args))}if(!(driver instanceof _DriverAbstractDriver.AbstractDriver)){throw new _deepCore2["default"].Exception.InvalidArgumentException(driver,"AbstractDriver")}this._drivers.add(driver);return this}},{key:"log",value:function log(msg){var level=arguments.length<=1||arguments[1]===undefined?Log.INFO:arguments[1];var context=arguments.length<=2||arguments[2]===undefined?{}:arguments[2];var driversArr=this.drivers.iterator;for(var driverKey in driversArr){if(!driversArr.hasOwnProperty(driverKey)){continue}var driver=driversArr[driverKey];driver.log(msg,level,context)}return this}},{key:"drivers",get:function get(){return this._drivers}}],[{key:"LEVELS",get:function get(){return[Log.EMERGENCY,Log.ALERT,Log.CRITICAL,Log.ERROR,Log.WARNING,Log.NOTICE,Log.INFO,Log.DEBUG]}},{key:"EMERGENCY",get:function get(){return"emergency"}},{key:"ALERT",get:function get(){return"alert"}},{key:"CRITICAL",get:function get(){return"critical"}},{key:"ERROR",get:function get(){return"error"}},{key:"WARNING",get:function get(){return"warning"}},{key:"NOTICE",get:function get(){return"notice"}},{key:"INFO",get:function get(){return"info"}},{key:"DEBUG",get:function get(){return"debug"}}]);return Log}(_deepKernel2["default"].ContainerAware);exports.Log=Log}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-log/lib.compiled/Log.js","/node_modules/deep-log/lib.compiled")},{"./Driver/AbstractDriver":46,"./Driver/ConsoleDriver":47,"./Driver/RavenBrowserDriver":48,"./Driver/RavenDriver":49,_process:379,buffer:230,"deep-core":"deep-core","deep-kernel":"deep-kernel"}],51:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _get=function get(_x,_x2,_x3){var _again=true;_function:while(_again){var object=_x,property=_x2,receiver=_x3;desc=parent=getter=undefined;_again=false;if(object===null)object=Function.prototype;var desc=Object.getOwnPropertyDescriptor(object,property);if(desc===undefined){var parent=Object.getPrototypeOf(object);if(parent===null){return undefined}else{_x=parent;_x2=property;_x3=receiver;_again=true;continue _function}}else if("value"in desc){return desc.value}else{var getter=desc.get;if(getter===undefined){return undefined}return getter.call(receiver)}}};function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var _deepCore=require("deep-core");var _deepCore2=_interopRequireDefault(_deepCore);var Exception=function(_Core$Exception$Exception){_inherits(Exception,_Core$Exception$Exception);function Exception(){_classCallCheck(this,Exception);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}_get(Object.getPrototypeOf(Exception.prototype),"constructor",this).apply(this,args)}return Exception}(_deepCore2["default"].Exception.Exception);exports.Exception=Exception}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/lib.compiled/Exception/Exception.js","/node_modules/deep-resource/lib.compiled/Exception")},{_process:379,buffer:230,"deep-core":"deep-core"}],52:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _get=function get(_x,_x2,_x3){var _again=true;_function:while(_again){var object=_x,property=_x2,receiver=_x3;desc=parent=getter=undefined;_again=false;if(object===null)object=Function.prototype;var desc=Object.getOwnPropertyDescriptor(object,property);if(desc===undefined){var parent=Object.getPrototypeOf(object);if(parent===null){return undefined}else{_x=parent;_x2=property;_x3=receiver;_again=true;continue _function}}else if("value"in desc){return desc.value}else{var getter=desc.get;if(getter===undefined){return undefined}return getter.call(receiver)}}};function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var _Exception2=require("./Exception");var MissingResourceException=function(_Exception){_inherits(MissingResourceException,_Exception);function MissingResourceException(microserviceIdentifier,resourceIdentifier){_classCallCheck(this,MissingResourceException);_get(Object.getPrototypeOf(MissingResourceException.prototype),"constructor",this).call(this,"Missing resource "+resourceIdentifier+" in "+microserviceIdentifier)}return MissingResourceException}(_Exception2.Exception);exports.MissingResourceException=MissingResourceException}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/lib.compiled/Exception/MissingResourceException.js","/node_modules/deep-resource/lib.compiled/Exception")},{"./Exception":51,_process:379,buffer:230}],53:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i0?this._methods[0]:Instance.HTTP_VERBS[0]);if(this._methods.length>0&&this._methods.indexOf(method)===-1){throw new _ExceptionUnknownMethodException.UnknownMethodException(method,this._methods)}var RequestImplementation=this._resource.localBackend?_LocalRequest.LocalRequest:_Request.Request;var requestObject=new RequestImplementation(this,payload,method);if(this._resource.cache){requestObject.cacheImpl=this._resource.cache}return requestObject}},{key:"resource",get:function get(){return this._resource}},{key:"name",get:function get(){return this._name}},{key:"type",get:function get(){return this._type}},{key:"methods",get:function get(){return this._methods}},{key:"source",get:function get(){return this._source}},{key:"region",get:function get(){return this._region}}],[{key:"HTTP_VERBS",get:function get(){return["GET","POST","DELETE","HEAD","PUT","OPTIONS","PATCH"]}},{key:"LAMBDA",get:function get(){return"lambda"}},{key:"EXTERNAL",get:function get(){return"external"}}]);return Action}();exports.Action=Action}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/lib.compiled/Resource/Action.js","/node_modules/deep-resource/lib.compiled/Resource")},{"./Exception/UnknownMethodException":58,"./LocalRequest":61,"./Request":62,_process:379,buffer:230}],55:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _get=function get(_x,_x2,_x3){var _again=true;_function:while(_again){var object=_x,property=_x2,receiver=_x3;desc=parent=getter=undefined;_again=false;if(object===null)object=Function.prototype;var desc=Object.getOwnPropertyDescriptor(object,property);if(desc===undefined){var parent=Object.getPrototypeOf(object);if(parent===null){return undefined}else{_x=parent;_x2=property;_x3=receiver;_again=true;continue _function}}else if("value"in desc){return desc.value}else{var getter=desc.get;if(getter===undefined){return undefined}return getter.call(receiver)}}};function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var _ExceptionException=require("../../Exception/Exception");var CachedRequestException=function(_Exception){_inherits(CachedRequestException,_Exception);function CachedRequestException(exception){_classCallCheck(this,CachedRequestException);_get(Object.getPrototypeOf(CachedRequestException.prototype),"constructor",this).call(this,"Error while working with cached response: "+exception)}return CachedRequestException}(_ExceptionException.Exception);exports.CachedRequestException=CachedRequestException}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/lib.compiled/Resource/Exception/CachedRequestException.js","/node_modules/deep-resource/lib.compiled/Resource/Exception")},{"../../Exception/Exception":51,_process:379,buffer:230}],56:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _get=function get(_x,_x2,_x3){var _again=true;_function:while(_again){var object=_x,property=_x2,receiver=_x3;desc=parent=getter=undefined;_again=false;if(object===null)object=Function.prototype;var desc=Object.getOwnPropertyDescriptor(object,property);if(desc===undefined){var parent=Object.getPrototypeOf(object);if(parent===null){return undefined}else{_x=parent;_x2=property;_x3=receiver;_again=true;continue _function}}else if("value"in desc){return desc.value}else{var getter=desc.get;if(getter===undefined){return undefined}return getter.call(receiver)}}};function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var _ExceptionException=require("../../Exception/Exception");var MissingActionException=function(_Exception){_inherits(MissingActionException,_Exception);function MissingActionException(resourceName,actionName){_classCallCheck(this,MissingActionException);_get(Object.getPrototypeOf(MissingActionException.prototype),"constructor",this).call(this,"Missing action "+actionName+" in "+resourceName+" resource.")}return MissingActionException}(_ExceptionException.Exception);exports.MissingActionException=MissingActionException}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/lib.compiled/Resource/Exception/MissingActionException.js","/node_modules/deep-resource/lib.compiled/Resource/Exception")},{"../../Exception/Exception":51,_process:379,buffer:230}],57:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _get=function get(_x,_x2,_x3){var _again=true;_function:while(_again){var object=_x,property=_x2,receiver=_x3;desc=parent=getter=undefined;_again=false;if(object===null)object=Function.prototype;var desc=Object.getOwnPropertyDescriptor(object,property);if(desc===undefined){var parent=Object.getPrototypeOf(object);if(parent===null){return undefined}else{_x=parent;_x2=property;_x3=receiver;_again=true;continue _function}}else if("value"in desc){return desc.value}else{var getter=desc.get;if(getter===undefined){return undefined}return getter.call(receiver)}}};function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var _ExceptionException=require("../../Exception/Exception");var MissingCacheImplementationException=function(_Exception){_inherits(MissingCacheImplementationException,_Exception);function MissingCacheImplementationException(){_classCallCheck(this,MissingCacheImplementationException);_get(Object.getPrototypeOf(MissingCacheImplementationException.prototype),"constructor",this).call(this,"Missing cache implementation in Request object")}return MissingCacheImplementationException}(_ExceptionException.Exception);exports.MissingCacheImplementationException=MissingCacheImplementationException}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/lib.compiled/Resource/Exception/MissingCacheImplementationException.js","/node_modules/deep-resource/lib.compiled/Resource/Exception")},{"../../Exception/Exception":51,_process:379,buffer:230}],58:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _get=function get(_x,_x2,_x3){var _again=true;_function:while(_again){var object=_x,property=_x2,receiver=_x3;desc=parent=getter=undefined;_again=false;if(object===null)object=Function.prototype;var desc=Object.getOwnPropertyDescriptor(object,property);if(desc===undefined){var parent=Object.getPrototypeOf(object);if(parent===null){return undefined}else{_x=parent;_x2=property;_x3=receiver;_again=true;continue _function}}else if("value"in desc){return desc.value}else{var getter=desc.get;if(getter===undefined){return undefined}return getter.call(receiver)}}};function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var _ExceptionException=require("../../Exception/Exception");var UnknownMethodException=function(_Exception){_inherits(UnknownMethodException,_Exception);function UnknownMethodException(requestedMethod,availableMethods){_classCallCheck(this,UnknownMethodException);var availableList=availableMethods.join(", ");_get(Object.getPrototypeOf(UnknownMethodException.prototype),"constructor",this).call(this,"Requested method "+requestedMethod+" must be one of "+availableList)}return UnknownMethodException}(_ExceptionException.Exception);exports.UnknownMethodException=UnknownMethodException}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/lib.compiled/Resource/Exception/UnknownMethodException.js","/node_modules/deep-resource/lib.compiled/Resource/Exception")},{"../../Exception/Exception":51,_process:379,buffer:230}],59:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}return(_action=this.action(actionName)).request.apply(_action,args)}},{key:"securityCredentials",get:function get(){return this._securityCredentials},set:function set(credentials){this._securityCredentials=credentials}},{key:"name",get:function get(){return this._name}},{key:"cache",get:function get(){return this._cache},set:function set(cache){this._cache=cache}},{key:"localBackend",get:function get(){return this._localBackend},set:function set(state){this._localBackend=state}},{key:"actions",get:function get(){if(this._actions===null){this._actions={};for(var actionName in this._rawActions){if(!this._rawActions.hasOwnProperty(actionName)){continue}var actionMetadata=this._rawActions[actionName];this._actions[actionName]=new _Action.Action(this,actionName,actionMetadata.type,actionMetadata.methods,actionMetadata.source,actionMetadata.region)}}return this._actions}}]);return Instance}();exports.Instance=Instance}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/lib.compiled/Resource/Instance.js","/node_modules/deep-resource/lib.compiled/Resource")},{"./Action":54,"./Exception/MissingActionException":56,_process:379,buffer:230}],60:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;ithis.expireTime){return true}else{return this.expired||!this.accessKeyId||!this.secretAccessKey}},get:function get(callback){var self=this;if(this.needsRefresh()){this.refresh(function(err){if(!err)self.expired=false;if(callback)callback(err)})}else if(callback){callback()}},refresh:function refresh(callback){this.expired=false;callback()}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/credentials.js","/node_modules/deep-resource/node_modules/aws-sdk/lib")},{"./core":66,_process:379,buffer:230}],68:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");AWS.CognitoIdentityCredentials=AWS.util.inherit(AWS.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function CognitoIdentityCredentials(params){AWS.Credentials.call(this);this.expired=true;this.params=params;this.data=null;this.identityId=null;this.loadCachedId()},refresh:function refresh(callback){var self=this;self.createClients();self.data=null;self.identityId=null;self.getId(function(err){if(!err){if(!self.params.RoleArn){self.getCredentialsForIdentity(callback)}else{self.getCredentialsFromSTS(callback)}}else{self.clearCachedId();callback(err)}})},clearCachedId:function clearCache(){this.identityId=null;delete this.params.IdentityId;var poolId=this.params.IdentityPoolId;delete this.storage[this.localStorageKey.id+poolId];delete this.storage[this.localStorageKey.providers+poolId]},getId:function getId(callback){var self=this;if(typeof self.params.IdentityId==="string"){return callback(null,self.params.IdentityId)}self.cognito.getId(function(err,data){if(!err&&data.IdentityId){self.params.IdentityId=data.IdentityId;callback(null,data.IdentityId)}else{callback(err)}})},loadCredentials:function loadCredentials(data,credentials){if(!data||!credentials)return;credentials.expired=false;credentials.accessKeyId=data.Credentials.AccessKeyId;credentials.secretAccessKey=data.Credentials.SecretKey;credentials.sessionToken=data.Credentials.SessionToken;credentials.expireTime=data.Credentials.Expiration},getCredentialsForIdentity:function getCredentialsForIdentity(callback){var self=this;self.cognito.getCredentialsForIdentity(function(err,data){if(!err){self.cacheId(data);self.data=data;self.loadCredentials(self.data,self)}else{self.clearCachedId()}callback(err)})},getCredentialsFromSTS:function getCredentialsFromSTS(callback){var self=this;self.cognito.getOpenIdToken(function(err,data){if(!err){self.cacheId(data);self.params.WebIdentityToken=data.Token;self.webIdentityCredentials.refresh(function(webErr){if(!webErr){self.data=self.webIdentityCredentials.data;self.sts.credentialsFrom(self.data,self)}else{self.clearCachedId()}callback(webErr)})}else{self.clearCachedId();callback(err)}})},loadCachedId:function loadCachedId(){var self=this;if(AWS.util.isBrowser()&&!self.params.IdentityId){var id=self.getStorage("id");if(id&&self.params.Logins){var actualProviders=Object.keys(self.params.Logins);var cachedProviders=(self.getStorage("providers")||"").split(",");var intersect=cachedProviders.filter(function(n){return actualProviders.indexOf(n)!==-1});if(intersect.length!==0){self.params.IdentityId=id}}else if(id){self.params.IdentityId=id}}},createClients:function(){this.webIdentityCredentials=this.webIdentityCredentials||new AWS.WebIdentityCredentials(this.params);this.cognito=this.cognito||new AWS.CognitoIdentity({params:this.params});this.sts=this.sts||new AWS.STS},cacheId:function cacheId(data){this.identityId=data.IdentityId;this.params.IdentityId=this.identityId;if(AWS.util.isBrowser()){this.setStorage("id",data.IdentityId);if(this.params.Logins){this.setStorage("providers",Object.keys(this.params.Logins).join(","))}}},getStorage:function getStorage(key){return this.storage[this.localStorageKey[key]+this.params.IdentityPoolId]},setStorage:function setStorage(key,val){try{this.storage[this.localStorageKey[key]+this.params.IdentityPoolId]=val}catch(_){}},storage:function(){try{return AWS.util.isBrowser()&&window.localStorage!==null&&typeof window.localStorage==="object"?window.localStorage:{}}catch(_){return{}}}()})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/credentials/cognito_identity_credentials.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/credentials")},{"../core":66,_process:379,buffer:230}],69:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");AWS.CredentialProviderChain=AWS.util.inherit(AWS.Credentials,{constructor:function CredentialProviderChain(providers){if(providers){this.providers=providers}else{this.providers=AWS.CredentialProviderChain.defaultProviders.slice(0)}},resolve:function resolve(callback){if(this.providers.length===0){callback(new Error("No providers"));return this}var index=0;var providers=this.providers.slice(0);function resolveNext(err,creds){if(!err&&creds||index===providers.length){callback(err,creds);return}var provider=providers[index++];if(typeof provider==="function"){creds=provider.call()}else{creds=provider}if(creds.get){creds.get(function(getErr){resolveNext(getErr,getErr?null:creds)})}else{resolveNext(null,creds)}}resolveNext();return this}});AWS.CredentialProviderChain.defaultProviders=[]}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/credentials/credential_provider_chain.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/credentials")},{"../core":66,_process:379,buffer:230}],70:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");AWS.SAMLCredentials=AWS.util.inherit(AWS.Credentials,{constructor:function SAMLCredentials(params){AWS.Credentials.call(this);this.expired=true;this.params=params},refresh:function refresh(callback){var self=this;self.createClients();if(!callback)callback=function(err){if(err)throw err};self.service.assumeRoleWithSAML(function(err,data){if(!err){self.service.credentialsFrom(data,self)}callback(err)})},createClients:function(){this.service=this.service||new AWS.STS({params:this.params})}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/credentials/saml_credentials.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/credentials")},{"../core":66,_process:379,buffer:230}],71:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");AWS.TemporaryCredentials=AWS.util.inherit(AWS.Credentials,{constructor:function TemporaryCredentials(params){AWS.Credentials.call(this);this.loadMasterCredentials();this.expired=true;this.params=params||{};if(this.params.RoleArn){this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials"}},refresh:function refresh(callback){var self=this;self.createClients();if(!callback)callback=function(err){if(err)throw err};self.service.config.credentials=self.masterCredentials;var operation=self.params.RoleArn?self.service.assumeRole:self.service.getSessionToken;operation.call(self.service,function(err,data){if(!err){self.service.credentialsFrom(data,self)}callback(err)})},loadMasterCredentials:function loadMasterCredentials(){this.masterCredentials=AWS.config.credentials;while(this.masterCredentials.masterCredentials){this.masterCredentials=this.masterCredentials.masterCredentials}},createClients:function(){this.service=this.service||new AWS.STS({params:this.params})}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/credentials/temporary_credentials.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/credentials")},{"../core":66,_process:379,buffer:230}],72:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");AWS.WebIdentityCredentials=AWS.util.inherit(AWS.Credentials,{constructor:function WebIdentityCredentials(params){AWS.Credentials.call(this);this.expired=true;this.params=params;this.params.RoleSessionName=this.params.RoleSessionName||"web-identity";this.data=null},refresh:function refresh(callback){var self=this;self.createClients();if(!callback)callback=function(err){if(err)throw err};self.service.assumeRoleWithWebIdentity(function(err,data){self.data=null;if(!err){self.data=data;self.service.credentialsFrom(data,self)}callback(err)})},createClients:function(){this.service=this.service||new AWS.STS({params:this.params})}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/credentials/web_identity_credentials.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/credentials")},{"../core":66,_process:379,buffer:230}],73:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("./core");var SequentialExecutor=require("./sequential_executor");AWS.EventListeners={Core:{}};AWS.EventListeners={Core:(new SequentialExecutor).addNamedListeners(function(add,addAsync){addAsync("VALIDATE_CREDENTIALS","validate",function VALIDATE_CREDENTIALS(req,done){if(!req.service.api.signatureVersion)return done();req.service.config.getCredentials(function(err){if(err){req.response.error=AWS.util.error(err,{code:"CredentialsError",message:"Missing credentials in config"})}done()})});add("VALIDATE_REGION","validate",function VALIDATE_REGION(req){if(!req.service.config.region&&!req.service.isGlobalEndpoint){req.response.error=AWS.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}});add("VALIDATE_PARAMETERS","validate",function VALIDATE_PARAMETERS(req){var rules=req.service.api.operations[req.operation].input;(new AWS.ParamValidator).validate(rules,req.params)});addAsync("COMPUTE_SHA256","afterBuild",function COMPUTE_SHA256(req,done){req.haltHandlersOnError();if(!req.service.api.signatureVersion)return done();if(req.service.getSignerClass(req)===AWS.Signers.V4){var body=req.httpRequest.body||"";AWS.util.computeSha256(body,function(err,sha){if(err){done(err)}else{req.httpRequest.headers["X-Amz-Content-Sha256"]=sha;done()}})}else{done()}});add("SET_CONTENT_LENGTH","afterBuild",function SET_CONTENT_LENGTH(req){if(req.httpRequest.headers["Content-Length"]===undefined){var length=AWS.util.string.byteLength(req.httpRequest.body);req.httpRequest.headers["Content-Length"]=length}});add("SET_HTTP_HOST","afterBuild",function SET_HTTP_HOST(req){req.httpRequest.headers["Host"]=req.httpRequest.endpoint.host});add("RESTART","restart",function RESTART(){var err=this.response.error;if(!err||!err.retryable)return;this.httpRequest=new AWS.HttpRequest(this.service.endpoint,this.service.region);if(this.response.retryCount=60*10){this.emit("sign",[this],function(err){if(err)done(err);else executeSend()})}else{executeSend()}});add("HTTP_HEADERS","httpHeaders",function HTTP_HEADERS(statusCode,headers,resp){resp.httpResponse.statusCode=statusCode;resp.httpResponse.headers=headers;resp.httpResponse.body=new AWS.util.Buffer("");resp.httpResponse.buffers=[];resp.httpResponse.numBytes=0});add("HTTP_DATA","httpData",function HTTP_DATA(chunk,resp){if(chunk){if(AWS.util.isNode()){resp.httpResponse.numBytes+=chunk.length;var total=resp.httpResponse.headers["content-length"];var progress={loaded:resp.httpResponse.numBytes,total:total};resp.request.emit("httpDownloadProgress",[progress,resp])}resp.httpResponse.buffers.push(new AWS.util.Buffer(chunk))}});add("HTTP_DONE","httpDone",function HTTP_DONE(resp){if(resp.httpResponse.buffers&&resp.httpResponse.buffers.length>0){var body=AWS.util.buffer.concat(resp.httpResponse.buffers);resp.httpResponse.body=body}delete resp.httpResponse.numBytes;delete resp.httpResponse.buffers});add("FINALIZE_ERROR","retry",function FINALIZE_ERROR(resp){if(resp.httpResponse.statusCode){resp.error.statusCode=resp.httpResponse.statusCode;if(resp.error.retryable===undefined){resp.error.retryable=this.service.retryableError(resp.error,this)}}});add("INVALIDATE_CREDENTIALS","retry",function INVALIDATE_CREDENTIALS(resp){if(!resp.error)return;switch(resp.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":resp.error.retryable=true;resp.request.service.config.credentials.expired=true}});add("EXPIRED_SIGNATURE","retry",function EXPIRED_SIGNATURE(resp){var err=resp.error;if(!err)return;if(typeof err.code==="string"&&typeof err.message==="string"){if(err.code.match(/Signature/)&&err.message.match(/expired/)){resp.error.retryable=true}}});add("REDIRECT","retry",function REDIRECT(resp){if(resp.error&&resp.error.statusCode>=300&&resp.error.statusCode<400&&resp.httpResponse.headers["location"]){this.httpRequest.endpoint=new AWS.Endpoint(resp.httpResponse.headers["location"]);this.httpRequest.headers["Host"]=this.httpRequest.endpoint.host;resp.error.redirect=true;resp.error.retryable=true}});add("RETRY_CHECK","retry",function RETRY_CHECK(resp){if(resp.error){if(resp.error.redirect&&resp.redirectCount=this.HEADERS_RECEIVED&&!headersEmitted){try{xhr.responseType="arraybuffer"}catch(e){}emitter.statusCode=xhr.status;emitter.headers=self.parseHeaders(xhr.getAllResponseHeaders());emitter.emit("headers",emitter.statusCode,emitter.headers);headersEmitted=true}if(this.readyState===this.DONE){self.finishRequest(xhr,emitter)}},false);xhr.upload.addEventListener("progress",function(evt){emitter.emit("sendProgress",evt)});xhr.addEventListener("progress",function(evt){emitter.emit("receiveProgress",evt)},false);xhr.addEventListener("timeout",function(){errCallback(AWS.util.error(new Error("Timeout"),{code:"TimeoutError"}))},false);xhr.addEventListener("error",function(){errCallback(AWS.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},false);callback(emitter);xhr.open(httpRequest.method,href,httpOptions.xhrAsync!==false);AWS.util.each(httpRequest.headers,function(key,value){if(key!=="Content-Length"&&key!=="User-Agent"&&key!=="Host"){xhr.setRequestHeader(key,value)}});if(httpOptions.timeout&&httpOptions.xhrAsync!==false){xhr.timeout=httpOptions.timeout}if(httpOptions.xhrWithCredentials){xhr.withCredentials=true}try{xhr.send(httpRequest.body)}catch(err){if(httpRequest.body&&typeof httpRequest.body.buffer==="object"){xhr.send(httpRequest.body.buffer)}else{throw err}}return emitter},parseHeaders:function parseHeaders(rawHeaders){var headers={};AWS.util.arrayEach(rawHeaders.split(/\r?\n/),function(line){var key=line.split(":",1)[0];var value=line.substring(key.length+2);if(key.length>0)headers[key.toLowerCase()]=value});return headers},finishRequest:function finishRequest(xhr,emitter){var buffer;if(xhr.responseType==="arraybuffer"&&xhr.response){var ab=xhr.response;buffer=new AWS.util.Buffer(ab.byteLength);var view=new Uint8Array(ab);for(var i=0;i1){var msg=this.errors.join("\n* ");if(this.errors.length>1){msg="There were "+this.errors.length+" validation errors:\n* "+msg;throw AWS.util.error(new Error(msg),{code:"MultipleValidationErrors",errors:this.errors})}}else if(this.errors.length===1){throw this.errors[0]}else{return true}},validateStructure:function validateStructure(shape,params,context){this.validateType(context,params,["object"],"structure");var paramName;for(var i=0;shape.required&&i0){var e=JSON.parse(httpResponse.body.toString());if(e.__type||e.code){error.code=(e.__type||e.code).split("#").pop()}if(error.code==="RequestEntityTooLarge"){error.message="Request body must be less than 1 MB"}else{error.message=e.message||e.Message||null}}else{error.statusCode=httpResponse.statusCode;error.message=httpResponse.statusCode.toString()}resp.error=util.error(new Error,error)}function extractData(resp){var body=resp.httpResponse.body.toString()||"{}";if(resp.request.service.config.convertResponseTypes===false){resp.data=JSON.parse(body)}else{var operation=resp.request.service.api.operations[resp.request.operation];var shape=operation.output||{};var parser=new JsonParser;resp.data=parser.parse(body,shape)}}module.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/protocol/json.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/protocol"); +},{"../json/builder":76,"../json/parser":77,"../util":114,_process:379,buffer:230}],86:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");var util=require("../util");var QueryParamSerializer=require("../query/query_param_serializer");var Shape=require("../model/shape");function buildRequest(req){var operation=req.service.api.operations[req.operation];var httpRequest=req.httpRequest;httpRequest.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8";httpRequest.params={Version:req.service.api.apiVersion,Action:operation.name};var builder=new QueryParamSerializer;builder.serialize(req.params,operation.input,function(name,value){httpRequest.params[name]=value});httpRequest.body=util.queryParamsToString(httpRequest.params)}function extractError(resp){var data,body=resp.httpResponse.body.toString();if(body.match("=0?"&":"?";var parts=[];util.arrayEach(Object.keys(queryString).sort(),function(key){if(!Array.isArray(queryString[key])){queryString[key]=[queryString[key]]}for(var i=0;i0){parser=new AWS.XML.Parser;var data=parser.parse(body.toString(),output);util.update(resp.data,data)}}module.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/protocol/rest_xml.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/protocol")},{"../core":66,"../util":114,"./rest":87,_process:379,buffer:230}],90:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var util=require("../util");function QueryParamSerializer(){}QueryParamSerializer.prototype.serialize=function(params,shape,fn){serializeStructure("",params,shape,fn)};function ucfirst(shape){if(shape.isQueryName||shape.api.protocol!=="ec2"){return shape.name}else{return shape.name[0].toUpperCase()+shape.name.substr(1)}}function serializeStructure(prefix,struct,rules,fn){util.each(rules.members,function(name,member){var value=struct[name];if(value===null||value===undefined)return;var memberName=ucfirst(member);memberName=prefix?prefix+"."+memberName:memberName;serializeMember(memberName,value,member,fn)})}function serializeMap(name,map,rules,fn){var i=1;util.each(map,function(key,value){var prefix=rules.flattened?".":".entry.";var position=prefix+i++ +".";var keyName=position+(rules.key.name||"key");var valueName=position+(rules.value.name||"value");serializeMember(name+keyName,key,rules.key,fn);serializeMember(name+valueName,value,rules.value,fn)})}function serializeList(name,list,rules,fn){var memberRules=rules.member||{};if(list.length===0){fn.call(this,name,null);return}util.arrayEach(list,function(v,n){var suffix="."+(n+1);if(rules.api.protocol==="ec2"){suffix=suffix+""}else if(rules.flattened){if(memberRules.name){var parts=name.split(".");parts.pop();parts.push(ucfirst(memberRules));name=parts.join(".")}}else{suffix=".member"+suffix}serializeMember(name+suffix,v,memberRules,fn)})}function serializeMember(name,value,rules,fn){if(value===null||value===undefined)return;if(rules.type==="structure"){serializeStructure(name,value,rules,fn)}else if(rules.type==="list"){serializeList(name,value,rules,fn)}else if(rules.type==="map"){serializeMap(name,value,rules,fn)}else{fn(name,rules.toWireFormat(value).toString())}}module.exports=QueryParamSerializer}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/query/query_param_serializer.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/query")},{"../util":114,_process:379,buffer:230}],91:[function(require,module,exports){module.exports={rules:{"*/*":{endpoint:"{service}.{region}.amazonaws.com"},"cn-*/*":{endpoint:"{service}.{region}.amazonaws.com.cn"},"*/cloudfront":"globalSSL","*/iam":"globalSSL","*/sts":"globalSSL","*/importexport":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2",globalEndpoint:true},"*/route53":{endpoint:"https://{service}.amazonaws.com",signatureVersion:"v3https",globalEndpoint:true},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{endpoint:"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3dash","us-west-1/s3":"s3dash","us-west-2/s3":"s3dash","eu-west-1/s3":"s3dash","ap-southeast-1/s3":"s3dash","ap-southeast-2/s3":"s3dash","ap-northeast-1/s3":"s3dash","sa-east-1/s3":"s3dash","us-east-1/s3":{endpoint:"{service}.amazonaws.com",signatureVersion:"s3"},"us-east-1/sdb":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2"},"*/sdb":{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"v2"}},patterns:{globalSSL:{endpoint:"https://{service}.amazonaws.com",globalEndpoint:true},globalGovCloud:{endpoint:"{service}.us-gov.amazonaws.com"},s3dash:{endpoint:"{service}-{region}.amazonaws.com",signatureVersion:"s3"}}}},{}],92:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var util=require("./util");var regionConfig=require("./region_config.json");function generateRegionPrefix(region){if(!region)return null;var parts=region.split("-");if(parts.length<3)return null;return parts.slice(0,parts.length-2).join("-")+"-*"}function derivedKeys(service){var region=service.config.region;var regionPrefix=generateRegionPrefix(region);var endpointPrefix=service.api.endpointPrefix;return[[region,endpointPrefix],[regionPrefix,endpointPrefix],[region,"*"],[regionPrefix,"*"],["*",endpointPrefix],["*","*"]].map(function(item){return item[0]&&item[1]?item.join("/"):null})}function applyConfig(service,config){util.each(config,function(key,value){if(key==="globalEndpoint")return;if(service.config[key]===undefined||service.config[key]===null){service.config[key]=value}})}function configureEndpoint(service){var keys=derivedKeys(service);for(var i=0;i=0){return null}if(this.expectedValue){return r===this.expectedValue}else{return r?true:false}},checkError:function checkError(resp){var value=this.config.successValue;if(typeof value==="number"){return resp.httpResponse.statusCode===value}else{return resp.error&&resp.error.code===value}},loadWaiterConfig:function loadWaiterConfig(state,noException){if(!this.service.api.waiters[state]){if(noException)return;throw new AWS.util.error(new Error,{code:"StateNotFoundError",message:"State "+state+" not found."})}this.config=this.service.api.waiters[state];var config=this.config;(function(){config.successType=config.successType||config.acceptorType;config.successPath=config.successPath||config.acceptorPath;config.successValue=config.successValue||config.acceptorValue;config.failureType=config.failureType||config.acceptorType;config.failurePath=config.failurePath||config.acceptorPath;config.failureValue=config.failureValue||config.acceptorValue})()}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/resource_waiter.js","/node_modules/deep-resource/node_modules/aws-sdk/lib")},{"./core":66,_process:379,buffer:230}],95:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("./core");var inherit=AWS.util.inherit;AWS.Response=inherit({constructor:function Response(request){this.request=request;this.data=null;this.error=null;this.retryCount=0;this.redirectCount=0;this.httpResponse=new AWS.HttpResponse;if(request){this.maxRetries=request.service.numRetries();this.maxRedirects=request.service.config.maxRedirects}},nextPage:function nextPage(callback){var config;var service=this.request.service;var operation=this.request.operation;try{config=service.paginationConfig(operation,true)}catch(e){this.error=e}if(!this.hasNextPage()){if(callback)callback(this.error,null);else if(this.error)throw this.error;return null}var params=AWS.util.copy(this.request.params);if(!this.nextPageTokens){return callback?callback(null,null):null}else{var inputTokens=config.inputToken;if(typeof inputTokens==="string")inputTokens=[inputTokens];for(var i=0;iself.partSize)self.partSize=newPartSize; +}else{self.totalBytes=undefined}},isDoneChunking:false,partPos:0,totalChunkedBytes:0,totalUploadedBytes:0,totalBytes:undefined,numParts:0,totalPartNumbers:0,activeParts:0,doneParts:0,parts:null,completeInfo:null,failed:false,multipartReq:null,partBuffers:null,partBufferLength:0,fillBuffer:function fillBuffer(){var self=this;var bodyLen=byteLength(self.body);if(bodyLen===0){self.isDoneChunking=true;self.numParts=1;self.nextChunk(self.body);return}while(self.activeParts=self.queueSize)return;var buf=self.body.read(self.partSize-self.partBufferLength)||self.body.read();if(buf){self.partBuffers.push(buf);self.partBufferLength+=buf.length;self.totalChunkedBytes+=buf.length}if(self.partBufferLength>=self.partSize){var pbuf=Buffer.concat(self.partBuffers);self.partBuffers=[];self.partBufferLength=0;if(pbuf.length>self.partSize){var rest=pbuf.slice(self.partSize);self.partBuffers.push(rest);self.partBufferLength+=rest.length;pbuf=pbuf.slice(0,self.partSize)}self.nextChunk(pbuf)}if(self.isDoneChunking&&!self.isDoneSending){pbuf=Buffer.concat(self.partBuffers);self.partBuffers=[];self.partBufferLength=0;self.totalBytes=self.totalChunkedBytes;self.isDoneSending=true;if(self.numParts===0||pbuf.length>0){self.numParts++;self.nextChunk(pbuf)}}self.body.read(0)},nextChunk:function nextChunk(chunk){var self=this;if(self.failed)return null;var partNumber=++self.totalPartNumbers;if(self.isDoneChunking&&partNumber===1){var req=self.service.putObject({Body:chunk});req._managedUpload=self;req.on("httpUploadProgress",self.progress).send(self.finishSinglePart);return null}self.activeParts++;if(!self.service.config.params.UploadId){if(!self.multipartReq){self.multipartReq=self.service.createMultipartUpload();self.multipartReq.on("success",function(resp){self.service.config.params.UploadId=resp.data.UploadId;self.multipartReq=null});self.queueChunks(chunk,partNumber);self.multipartReq.on("error",function(err){self.cleanup(err)});self.multipartReq.send()}else{self.queueChunks(chunk,partNumber)}}else{self.uploadPart(chunk,partNumber)}},uploadPart:function uploadPart(chunk,partNumber){var self=this;var partParams={Body:chunk,ContentLength:AWS.util.string.byteLength(chunk),PartNumber:partNumber};var partInfo={ETag:null,PartNumber:partNumber};self.completeInfo.push(partInfo);var req=self.service.uploadPart(partParams);self.parts[partNumber]=req;req._lastUploadedBytes=0;req._managedUpload=self;req.on("httpUploadProgress",self.progress);req.send(function(err,data){delete self.parts[partParams.PartNumber];self.activeParts--;if(!err&&(!data||!data.ETag)){var message="No access to ETag property on response.";if(AWS.util.isBrowser()){message+=" Check CORS configuration to expose ETag header."}err=AWS.util.error(new Error(message),{code:"ETagMissing",retryable:false})}if(err)return self.cleanup(err);partInfo.ETag=data.ETag;self.doneParts++;if(self.isDoneChunking&&self.doneParts===self.numParts){self.finishMultiPart()}else{self.fillQueue.call(self)}})},queueChunks:function queueChunks(chunk,partNumber){var self=this;self.multipartReq.on("success",function(){self.uploadPart(chunk,partNumber)})},cleanup:function cleanup(err){var self=this;if(self.failed)return;if(typeof self.body.removeAllListeners==="function"&&typeof self.body.resume==="function"){self.body.removeAllListeners("readable");self.body.removeAllListeners("end");self.body.resume()}if(self.service.config.params.UploadId&&!self.leavePartsOnError){self.service.abortMultipartUpload().send()}AWS.util.each(self.parts,function(partNumber,part){part.removeAllListeners("complete");part.abort()});self.parts={};self.callback(err);self.failed=true},finishMultiPart:function finishMultiPart(){var self=this;var completeParams={MultipartUpload:{Parts:self.completeInfo}};self.service.completeMultipartUpload(completeParams,function(err,data){if(err)return self.cleanup(err);else self.callback(err,data)})},finishSinglePart:function finishSinglePart(err,data){var upload=this.request._managedUpload;var httpReq=this.request.httpRequest;var url=AWS.util.urlFormat(httpReq.endpoint);if(err)return upload.callback(err);data.Location=url.substr(0,url.length-1)+httpReq.path;upload.callback(err,data)},progress:function progress(info){var upload=this._managedUpload;if(this.operation==="putObject"){info.part=1}else{upload.totalUploadedBytes+=info.loaded-this._lastUploadedBytes;this._lastUploadedBytes=info.loaded;info={loaded:upload.totalUploadedBytes,total:upload.totalBytes,part:this.params.PartNumber}}upload.emit("httpUploadProgress",[info])}});AWS.util.mixin(AWS.S3.ManagedUpload,AWS.SequentialExecutor);module.exports=AWS.S3.ManagedUpload}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/s3/managed_upload.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/s3")},{"../core":66,_process:379,buffer:230}],97:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("./core");AWS.SequentialExecutor=AWS.util.inherit({constructor:function SequentialExecutor(){this._events={}},listeners:function listeners(eventName){return this._events[eventName]?this._events[eventName].slice(0):[]},on:function on(eventName,listener){if(this._events[eventName]){this._events[eventName].push(listener)}else{this._events[eventName]=[listener]}return this},onAsync:function onAsync(eventName,listener){listener._isAsync=true;return this.on(eventName,listener)},removeListener:function removeListener(eventName,listener){var listeners=this._events[eventName];if(listeners){var length=listeners.length;var position=-1;for(var i=0;i-1){listeners.splice(position,1)}}return this},removeAllListeners:function removeAllListeners(eventName){if(eventName){delete this._events[eventName]}else{this._events={}}return this},emit:function emit(eventName,eventArgs,doneCallback){if(!doneCallback)doneCallback=function(){};var listeners=this.listeners(eventName);var count=listeners.length;this.callListeners(listeners,eventArgs,doneCallback);return count>0},callListeners:function callListeners(listeners,args,doneCallback,prevError){var self=this;var error=prevError||null;function callNextListener(err){if(err){error=AWS.util.error(error||new Error,err);if(self._haltHandlersOnError){return doneCallback.call(self,error)}}self.callListeners(listeners,args,doneCallback,error)}while(listeners.length>0){var listener=listeners.shift();if(listener._isAsync){listener.apply(self,args.concat([callNextListener]));return}else{try{listener.apply(self,args)}catch(err){error=AWS.util.error(error||new Error,err)}if(error&&self._haltHandlersOnError){doneCallback.call(self,error);return}}}doneCallback.call(self,error)},addListeners:function addListeners(listeners){var self=this;if(listeners._events)listeners=listeners._events;AWS.util.each(listeners,function(event,callbacks){if(typeof callbacks==="function")callbacks=[callbacks];AWS.util.arrayEach(callbacks,function(callback){self.on(event,callback)})});return self},addNamedListener:function addNamedListener(name,eventName,callback){this[name]=callback;this.addListener(eventName,callback);return this},addNamedAsyncListener:function addNamedAsyncListener(name,eventName,callback){callback._isAsync=true;return this.addNamedListener(name,eventName,callback)},addNamedListeners:function addNamedListeners(callback){var self=this;callback(function(){self.addNamedListener.apply(self,arguments)},function(){self.addNamedAsyncListener.apply(self,arguments)});return this}});AWS.SequentialExecutor.prototype.addListener=AWS.SequentialExecutor.prototype.on;module.exports=AWS.SequentialExecutor}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/sequential_executor.js","/node_modules/deep-resource/node_modules/aws-sdk/lib")},{"./core":66,_process:379,buffer:230}],98:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("./core");var Api=require("./model/api");var regionConfig=require("./region_config");var inherit=AWS.util.inherit;AWS.Service=inherit({constructor:function Service(config){if(!this.loadServiceClass){throw AWS.util.error(new Error,"Service must be constructed with `new' operator")}var ServiceClass=this.loadServiceClass(config||{});if(ServiceClass)return new ServiceClass(config);this.initialize(config)},initialize:function initialize(config){var svcConfig=AWS.config[this.serviceIdentifier];this.config=new AWS.Config(AWS.config);if(svcConfig)this.config.update(svcConfig,true);if(config)this.config.update(config,true);this.validateService();if(!this.config.endpoint)regionConfig(this);this.config.endpoint=this.endpointFromTemplate(this.config.endpoint);this.setEndpoint(this.config.endpoint)},validateService:function validateService(){},loadServiceClass:function loadServiceClass(serviceConfig){var config=serviceConfig;if(!AWS.util.isEmpty(this.api)){return null}else if(config.apiConfig){return AWS.Service.defineServiceApi(this.constructor,config.apiConfig)}else if(!this.constructor.services){return null}else{config=new AWS.Config(AWS.config);config.update(serviceConfig,true);var version=config.apiVersions[this.constructor.serviceIdentifier];version=version||config.apiVersion;return this.getLatestServiceClass(version)}},getLatestServiceClass:function getLatestServiceClass(version){version=this.getLatestServiceVersion(version);if(this.constructor.services[version]===null){AWS.Service.defineServiceApi(this.constructor,version)}return this.constructor.services[version]},getLatestServiceVersion:function getLatestServiceVersion(version){if(!this.constructor.services||this.constructor.services.length===0){throw new Error("No services defined on "+this.constructor.serviceIdentifier)}if(!version){version="latest"}else if(AWS.util.isType(version,Date)){version=AWS.util.date.iso8601(version).split("T")[0]}if(Object.hasOwnProperty(this.constructor.services,version)){return version}var keys=Object.keys(this.constructor.services).sort();var selectedVersion=null;for(var i=keys.length-1;i>=0;i--){if(keys[i][keys[i].length-1]!=="*"){selectedVersion=keys[i]}if(keys[i].substr(0,10)<=version){return selectedVersion}}throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+version+"'")},api:{},defaultRetryCount:3,makeRequest:function makeRequest(operation,params,callback){if(typeof params==="function"){callback=params;params=null}params=params||{};if(this.config.params){var rules=this.api.operations[operation];if(rules){params=AWS.util.copy(params);AWS.util.each(this.config.params,function(key,value){if(rules.input.members[key]){if(params[key]===undefined||params[key]===null){params[key]=value}}})}}var request=new AWS.Request(this,operation,params);this.addAllRequestListeners(request);if(callback)request.send(callback);return request},makeUnauthenticatedRequest:function makeUnauthenticatedRequest(operation,params,callback){if(typeof params==="function"){callback=params;params={}}var request=this.makeRequest(operation,params).toUnauthenticated();return callback?request.send(callback):request},waitFor:function waitFor(state,params,callback){var waiter=new AWS.ResourceWaiter(this,state);return waiter.wait(params,callback)},addAllRequestListeners:function addAllRequestListeners(request){var list=[AWS.events,AWS.EventListeners.Core,this.serviceInterface(),AWS.EventListeners.CorePost];for(var i=0;i=500)return true;return false},networkingError:function networkingError(error){return error.code==="NetworkingError"},expiredCredentialsError:function expiredCredentialsError(error){return error.code==="ExpiredTokenException"},throttledError:function throttledError(error){switch(error.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":return true;default:return false}},endpointFromTemplate:function endpointFromTemplate(endpoint){if(typeof endpoint!=="string")return endpoint;var e=endpoint;e=e.replace(/\{service\}/g,this.api.endpointPrefix);e=e.replace(/\{region\}/g,this.config.region);e=e.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http");return e},setEndpoint:function setEndpoint(endpoint){this.endpoint=new AWS.Endpoint(endpoint,this.config)},paginationConfig:function paginationConfig(operation,throwException){var paginator=this.api.operations[operation].paginator;if(!paginator){if(throwException){var e=new Error;throw AWS.util.error(e,"No pagination configuration for "+operation)}return null}return paginator}});AWS.util.update(AWS.Service,{defineMethods:function defineMethods(svc){AWS.util.each(svc.prototype.api.operations,function iterator(method){if(svc.prototype[method])return;svc.prototype[method]=function(params,callback){return this.makeRequest(method,params,callback)}})},defineService:function defineService(serviceIdentifier,versions,features){AWS.Service._serviceMap[serviceIdentifier]=true;if(!Array.isArray(versions)){features=versions;versions=[]}var svc=inherit(AWS.Service,features||{});if(typeof serviceIdentifier==="string"){AWS.Service.addVersions(svc,versions);var identifier=svc.serviceIdentifier||serviceIdentifier;svc.serviceIdentifier=identifier}else{svc.prototype.api=serviceIdentifier;AWS.Service.defineMethods(svc)}return svc},addVersions:function addVersions(svc,versions){if(!Array.isArray(versions))versions=[versions];svc.services=svc.services||{};for(var i=0;i=1024*1024){req.httpRequest.headers["Expect"]="100-continue"}},addContentType:function addContentType(req){var httpRequest=req.httpRequest;if(httpRequest.method==="GET"||httpRequest.method==="HEAD"){delete httpRequest.headers["Content-Type"];return}if(!httpRequest.headers["Content-Type"]){httpRequest.headers["Content-Type"]="application/octet-stream"}var contentType=httpRequest.headers["Content-Type"];if(AWS.util.isBrowser()){if(typeof httpRequest.body==="string"&&!contentType.match(/;\s*charset=/)){var charset="; charset=UTF-8";httpRequest.headers["Content-Type"]+=charset}else{var replaceFn=function(_,prefix,charsetName){return prefix+charsetName.toUpperCase()};httpRequest.headers["Content-Type"]=contentType.replace(/(;\s*charset=)(.+)$/,replaceFn)}}},computableChecksumOperations:{putBucketCors:true,putBucketLifecycle:true,putBucketTagging:true,deleteObjects:true},willComputeChecksums:function willComputeChecksums(req){if(this.computableChecksumOperations[req.operation])return true;if(!this.config.computeChecksums)return false;if(!AWS.util.Buffer.isBuffer(req.httpRequest.body)&&typeof req.httpRequest.body!=="string"){return false}var rules=req.service.api.operations[req.operation].input.members;if(req.service.getSignerClass(req)===AWS.Signers.V4){if(rules.ContentMD5&&!rules.ContentMD5.required)return false}if(rules.ContentMD5&&!req.params.ContentMD5)return true},computeContentMd5:function computeContentMd5(req){if(req.service.willComputeChecksums(req)){var md5=AWS.util.crypto.md5(req.httpRequest.body,"base64");req.httpRequest.headers["Content-MD5"]=md5}},computeSseCustomerKeyMd5:function computeSseCustomerKeyMd5(req){var keys={SSECustomerKey:"x-amz-server-side-encryption-customer-key-MD5",CopySourceSSECustomerKey:"x-amz-copy-source-server-side-encryption-customer-key-MD5"};AWS.util.each(keys,function(key,header){if(req.params[key]){var value=AWS.util.crypto.md5(req.params[key],"base64");req.httpRequest.headers[header]=value}})},pathStyleBucketName:function pathStyleBucketName(bucketName){if(this.config.s3ForcePathStyle)return true;if(this.config.s3BucketEndpoint)return false;if(this.dnsCompatibleBucketName(bucketName)){return this.config.sslEnabled&&bucketName.match(/\./)?true:false}else{return true}},dnsCompatibleBucketName:function dnsCompatibleBucketName(bucketName){var b=bucketName;var domain=new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/);var ipAddress=new RegExp(/(\d+\.){3}\d+/);var dots=new RegExp(/\.\./);return b.match(domain)&&!b.match(ipAddress)&&!b.match(dots)?true:false},successfulResponse:function successfulResponse(resp){var req=resp.request;var httpResponse=resp.httpResponse;if(req.operation==="completeMultipartUpload"&&httpResponse.body.toString().match("")){return false}else{return httpResponse.statusCode<300}},retryableError:function retryableError(error,request){if(request.operation==="completeMultipartUpload"&&error.statusCode===200){return true}else if(error&&error.code==="RequestTimeout"){return true}else{var _super=AWS.Service.prototype.retryableError;return _super.call(this,error,request)}},extractData:function extractData(resp){var req=resp.request;if(req.operation==="getBucketLocation"){var match=resp.httpResponse.body.toString().match(/>(.+)<\/Location/);delete resp.data["_"];if(match){resp.data.LocationConstraint=match[1]}else{resp.data.LocationConstraint=""}}},extractError:function extractError(resp){var codes={304:"NotModified",403:"Forbidden",400:"BadRequest",404:"NotFound"};var code=resp.httpResponse.statusCode;var body=resp.httpResponse.body||"";if(codes[code]&&body.length===0){resp.error=AWS.util.error(new Error,{code:codes[resp.httpResponse.statusCode],message:null})}else{var data=(new AWS.XML.Parser).parse(body.toString());resp.error=AWS.util.error(new Error,{code:data.Code||code,message:data.Message||null})}},getSignedUrl:function getSignedUrl(operation,params,callback){params=AWS.util.copy(params||{});var expires=params.Expires||900;delete params.Expires;var request=this.makeRequest(operation,params);return request.presign(expires,callback)},prepareSignedUrl:function prepareSignedUrl(request){request.addListener("validate",request.service.noPresignedContentLength);request.removeListener("build",request.service.addContentType);if(!request.params.Body){request.removeListener("build",request.service.computeContentMd5)}else{request.addListener("afterBuild",AWS.EventListeners.Core.COMPUTE_SHA256)}},noPresignedContentLength:function noPresignedContentLength(request){if(request.params.ContentLength!==undefined){throw AWS.util.error(new Error,{code:"UnexpectedParameter",message:"ContentLength is not supported in pre-signed URLs."})}},createBucket:function createBucket(params,callback){if(!params)params={};var hostname=this.endpoint.hostname;if(hostname!==this.api.globalEndpoint&&!params.CreateBucketConfiguration){params.CreateBucketConfiguration={LocationConstraint:this.config.region}}return this.makeRequest("createBucket",params,callback)},upload:function upload(params,options,callback){if(typeof options==="function"&&callback===undefined){callback=options;options=null}options=options||{};options=AWS.util.merge(options||{},{service:this,params:params});var uploader=new AWS.S3.ManagedUpload(options);if(typeof callback==="function")uploader.send(callback);return uploader}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/services/s3.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/services")},{"../core":66,"../s3/managed_upload":96,_process:379,buffer:230}],104:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");AWS.util.update(AWS.SQS.prototype,{setupRequestListeners:function setupRequestListeners(request){request.addListener("build",this.buildEndpoint);if(request.service.config.computeChecksums){if(request.operation==="sendMessage"){request.addListener("extractData",this.verifySendMessageChecksum)}else if(request.operation==="sendMessageBatch"){request.addListener("extractData",this.verifySendMessageBatchChecksum)}else if(request.operation==="receiveMessage"){request.addListener("extractData",this.verifyReceiveMessageChecksum)}}},verifySendMessageChecksum:function verifySendMessageChecksum(response){if(!response.data)return;var md5=response.data.MD5OfMessageBody;var body=this.params.MessageBody;var calculatedMd5=this.service.calculateChecksum(body);if(calculatedMd5!==md5){var msg='Got "'+response.data.MD5OfMessageBody+'", expecting "'+calculatedMd5+'".';this.service.throwInvalidChecksumError(response,[response.data.MessageId],msg)}},verifySendMessageBatchChecksum:function verifySendMessageBatchChecksum(response){if(!response.data)return;var service=this.service;var entries={};var errors=[];var messageIds=[];AWS.util.arrayEach(response.data.Successful,function(entry){ +entries[entry.Id]=entry});AWS.util.arrayEach(this.params.Entries,function(entry){if(entries[entry.Id]){var md5=entries[entry.Id].MD5OfMessageBody;var body=entry.MessageBody;if(!service.isChecksumValid(md5,body)){errors.push(entry.Id);messageIds.push(entries[entry.Id].MessageId)}}});if(errors.length>0){service.throwInvalidChecksumError(response,messageIds,"Invalid messages: "+errors.join(", "))}},verifyReceiveMessageChecksum:function verifyReceiveMessageChecksum(response){if(!response.data)return;var service=this.service;var messageIds=[];AWS.util.arrayEach(response.data.Messages,function(message){var md5=message.MD5OfBody;var body=message.Body;if(!service.isChecksumValid(md5,body)){messageIds.push(message.MessageId)}});if(messageIds.length>0){service.throwInvalidChecksumError(response,messageIds,"Invalid messages: "+messageIds.join(", "))}},throwInvalidChecksumError:function throwInvalidChecksumError(response,ids,message){response.error=AWS.util.error(new Error,{retryable:true,code:"InvalidChecksum",messageIds:ids,message:response.request.operation+" returned an invalid MD5 response. "+message})},isChecksumValid:function isChecksumValid(checksum,data){return this.calculateChecksum(data)===checksum},calculateChecksum:function calculateChecksum(data){return AWS.util.crypto.md5(data,"hex")},buildEndpoint:function buildEndpoint(request){var url=request.httpRequest.params.QueueUrl;if(url){request.httpRequest.endpoint=new AWS.Endpoint(url);var matches=request.httpRequest.endpoint.host.match(/^sqs\.(.+?)\./);if(matches)request.httpRequest.region=matches[1]}}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/services/sqs.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/services")},{"../core":66,_process:379,buffer:230}],105:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");AWS.util.update(AWS.STS.prototype,{credentialsFrom:function credentialsFrom(data,credentials){if(!data)return null;if(!credentials)credentials=new AWS.TemporaryCredentials;credentials.expired=false;credentials.accessKeyId=data.Credentials.AccessKeyId;credentials.secretAccessKey=data.Credentials.SecretAccessKey;credentials.sessionToken=data.Credentials.SessionToken;credentials.expireTime=data.Credentials.Expiration;return credentials},assumeRoleWithWebIdentity:function assumeRoleWithWebIdentity(params,callback){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",params,callback)},assumeRoleWithSAML:function assumeRoleWithSAML(params,callback){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",params,callback)}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/services/sts.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/services")},{"../core":66,_process:379,buffer:230}],106:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");var inherit=AWS.util.inherit;var expiresHeader="presigned-expires";function signedUrlBuilder(request){var expires=request.httpRequest.headers[expiresHeader];delete request.httpRequest.headers["User-Agent"];delete request.httpRequest.headers["X-Amz-User-Agent"];if(request.service.getSignerClass()===AWS.Signers.V4){if(expires>604800){var message="Presigning does not support expiry time greater "+"than a week with SigV4 signing.";throw AWS.util.error(new Error,{code:"InvalidExpiryTime",message:message,retryable:false})}request.httpRequest.headers[expiresHeader]=expires}else if(request.service.getSignerClass()===AWS.Signers.S3){request.httpRequest.headers[expiresHeader]=parseInt(AWS.util.date.unixTimestamp()+expires,10).toString()}else{throw AWS.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:false})}}function signedUrlSigner(request){var endpoint=request.httpRequest.endpoint;var parsedUrl=AWS.util.urlParse(request.httpRequest.path);var queryParams={};if(parsedUrl.search){queryParams=AWS.util.queryStringParse(parsedUrl.search.substr(1))}AWS.util.each(request.httpRequest.headers,function(key,value){if(key===expiresHeader)key="Expires";queryParams[key]=value});delete request.httpRequest.headers[expiresHeader];var auth=queryParams["Authorization"].split(" ");if(auth[0]==="AWS"){auth=auth[1].split(":");queryParams["AWSAccessKeyId"]=auth[0];queryParams["Signature"]=auth[1]}else if(auth[0]==="AWS4-HMAC-SHA256"){auth.shift();var rest=auth.join(" ");var signature=rest.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];queryParams["X-Amz-Signature"]=signature;delete queryParams["Expires"]}delete queryParams["Authorization"];delete queryParams["Host"];endpoint.pathname=parsedUrl.pathname;endpoint.search=AWS.util.queryParamsToString(queryParams)}AWS.Signers.Presign=inherit({sign:function sign(request,expireTime,callback){request.httpRequest.headers[expiresHeader]=expireTime||3600;request.on("build",signedUrlBuilder);request.on("sign",signedUrlSigner);request.removeListener("afterBuild",AWS.EventListeners.Core.SET_CONTENT_LENGTH);request.removeListener("afterBuild",AWS.EventListeners.Core.COMPUTE_SHA256);request.emit("beforePresign",[request]);if(callback){request.build(function(){if(this.response.error)callback(this.response.error);else{callback(null,AWS.util.urlFormat(request.httpRequest.endpoint))}})}else{request.build();if(request.response.error)throw request.response.error;return AWS.util.urlFormat(request.httpRequest.endpoint)}}});module.exports=AWS.Signers.Presign}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/signers/presign.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/signers")},{"../core":66,_process:379,buffer:230}],107:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");var inherit=AWS.util.inherit;AWS.Signers.RequestSigner=inherit({constructor:function RequestSigner(request){this.request=request}});AWS.Signers.RequestSigner.getVersion=function getVersion(version){switch(version){case"v2":return AWS.Signers.V2;case"v3":return AWS.Signers.V3;case"v4":return AWS.Signers.V4;case"s3":return AWS.Signers.S3;case"v3https":return AWS.Signers.V3Https}throw new Error("Unknown signing version "+version)};require("./v2");require("./v3");require("./v3https");require("./v4");require("./s3");require("./presign")}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/signers/request_signer.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/signers")},{"../core":66,"./presign":106,"./s3":108,"./v2":109,"./v3":110,"./v3https":111,"./v4":112,_process:379,buffer:230}],108:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");var inherit=AWS.util.inherit;AWS.Signers.S3=inherit(AWS.Signers.RequestSigner,{subResources:{acl:1,cors:1,lifecycle:1,"delete":1,location:1,logging:1,notification:1,partNumber:1,policy:1,requestPayment:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function addAuthorization(credentials,date){if(!this.request.headers["presigned-expires"]){this.request.headers["X-Amz-Date"]=AWS.util.date.rfc822(date)}if(credentials.sessionToken){this.request.headers["x-amz-security-token"]=credentials.sessionToken}var signature=this.sign(credentials.secretAccessKey,this.stringToSign());var auth="AWS "+credentials.accessKeyId+":"+signature;this.request.headers["Authorization"]=auth},stringToSign:function stringToSign(){var r=this.request;var parts=[];parts.push(r.method);parts.push(r.headers["Content-MD5"]||"");parts.push(r.headers["Content-Type"]||"");parts.push(r.headers["presigned-expires"]||"");var headers=this.canonicalizedAmzHeaders();if(headers)parts.push(headers);parts.push(this.canonicalizedResource());return parts.join("\n")},canonicalizedAmzHeaders:function canonicalizedAmzHeaders(){var amzHeaders=[];AWS.util.each(this.request.headers,function(name){if(name.match(/^x-amz-/i))amzHeaders.push(name)});amzHeaders.sort(function(a,b){return a.toLowerCase()=0?"&":"?";this.request.path+=sep+AWS.util.queryParamsToString(qs)},authorization:function authorization(credentials,datetime){var parts=[];var credString=this.credentialString(datetime);parts.push(this.algorithm+" Credential="+credentials.accessKeyId+"/"+credString);parts.push("SignedHeaders="+this.signedHeaders());parts.push("Signature="+this.signature(credentials,datetime));return parts.join(", ")},signature:function signature(credentials,datetime){var cache=cachedSecret[this.serviceName];var date=datetime.substr(0,8);if(!cache||cache.akid!==credentials.accessKeyId||cache.region!==this.request.region||cache.date!==date){var kSecret=credentials.secretAccessKey;var kDate=AWS.util.crypto.hmac("AWS4"+kSecret,date,"buffer");var kRegion=AWS.util.crypto.hmac(kDate,this.request.region,"buffer");var kService=AWS.util.crypto.hmac(kRegion,this.serviceName,"buffer");var kCredentials=AWS.util.crypto.hmac(kService,"aws4_request","buffer");cachedSecret[this.serviceName]={region:this.request.region,date:date,key:kCredentials,akid:credentials.accessKeyId}}var key=cachedSecret[this.serviceName].key;return AWS.util.crypto.hmac(key,this.stringToSign(datetime),"hex")},stringToSign:function stringToSign(datetime){var parts=[];parts.push("AWS4-HMAC-SHA256");parts.push(datetime);parts.push(this.credentialString(datetime));parts.push(this.hexEncodedHash(this.canonicalString()));return parts.join("\n")},canonicalString:function canonicalString(){var parts=[],pathname=this.request.pathname();if(this.serviceName!=="s3")pathname=AWS.util.uriEscapePath(pathname);parts.push(this.request.method);parts.push(pathname);parts.push(this.request.search());parts.push(this.canonicalHeaders()+"\n");parts.push(this.signedHeaders());parts.push(this.hexEncodedBodyHash());return parts.join("\n")},canonicalHeaders:function canonicalHeaders(){var headers=[];AWS.util.each.call(this,this.request.headers,function(key,item){headers.push([key,item])});headers.sort(function(a,b){return a[0].toLowerCase()=buffer.length)return readable.push(null);var end=pos+size;if(end>buffer.length)end=buffer.length;readable.push(buffer.slice(pos,end));pos=end};return readable},concat:function(buffers){var length=0,offset=0,buffer=null,i;for(i=0;i0){results=objects;return util.abort}});return results},find:function find(expression,data){return util.jamespath.query(expression,data)[0]}},date:{getDate:function getDate(){if(!AWS)AWS=require("./core");if(AWS.config.systemClockOffset){return new Date((new Date).getTime()+AWS.config.systemClockOffset)}else{return new Date}},iso8601:function iso8601(date){if(date===undefined){date=util.date.getDate()}return date.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function rfc822(date){if(date===undefined){date=util.date.getDate()}return date.toUTCString()},unixTimestamp:function unixTimestamp(date){if(date===undefined){date=util.date.getDate()}return date.getTime()/1e3},from:function format(date){if(typeof date==="number"){return new Date(date*1e3)}else{return new Date(date)}},format:function format(date,formatter){if(!formatter)formatter="iso8601";return util.date[formatter](util.date.from(date))},parseTimestamp:function parseTimestamp(value){if(typeof value==="number"){return new Date(value*1e3)}else if(value.match(/^\d+$/)){return new Date(value*1e3)}else if(value.match(/^\d{4}/)){return new Date(value)}else if(value.match(/^\w{3},/)){return new Date(value)}else{throw util.error(new Error("unhandled timestamp format: "+value),{code:"TimestampParserError"})}}},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117], +crc32:function crc32(data){var tbl=util.crypto.crc32Table;var crc=0^-1;if(typeof data==="string"){data=new Buffer(data)}for(var i=0;i>>8^tbl[(crc^code)&255]}return(crc^-1)>>>0},hmac:function hmac(key,string,digest,fn){if(!digest)digest="binary";if(digest==="buffer"){digest=undefined}if(!fn)fn="sha256";if(typeof string==="string")string=new Buffer(string);return cryptoLib.createHmac(fn,key).update(string).digest(digest)},md5:function md5(data,digest,callback){return util.crypto.hash("md5",data,digest,callback)},sha256:function sha256(data,digest,callback){return util.crypto.hash("sha256",data,digest,callback)},hash:function(algorithm,data,digest,callback){var hash=util.crypto.createHash(algorithm);if(!digest){digest="binary"}if(digest==="buffer"){digest=undefined}if(typeof data==="string")data=new Buffer(data);var sliceFn=util.arraySliceFn(data);var isBuffer=Buffer.isBuffer(data);if(callback&&typeof data==="object"&&typeof data.on==="function"&&!isBuffer){data.on("data",function(chunk){hash.update(chunk)});data.on("error",function(err){callback(err)});data.on("end",function(){callback(null,hash.digest(digest))})}else if(callback&&sliceFn&&!isBuffer&&typeof FileReader!=="undefined"){var index=0,size=1024*512;var reader=new FileReader;reader.onerror=function(){callback(new Error("Failed to read data."))};reader.onload=function(){var buf=new Buffer(new Uint8Array(reader.result));hash.update(buf);index+=buf.length;reader._continueReading()};reader._continueReading=function(){if(index>=data.size){callback(null,hash.digest(digest));return}var back=index+size;if(back>data.size)back=data.size;reader.readAsArrayBuffer(sliceFn.call(data,index,back))};reader._continueReading()}else{if(util.isBrowser()&&typeof data==="object"&&!isBuffer){data=new Buffer(new Uint8Array(data))}var out=hash.update(data).digest(digest);if(callback)callback(null,out);return out}},toHex:function toHex(data){var out=[];for(var i=0;i0||noEmpty?xml.root().toString():""};function serialize(xml,value,shape){switch(shape.type){case"structure":return serializeStructure(xml,value,shape);case"map":return serializeMap(xml,value,shape);case"list":return serializeList(xml,value,shape);default:return serializeScalar(xml,value,shape)}}function serializeStructure(xml,params,shape){util.arrayEach(shape.memberNames,function(memberName){var memberShape=shape.members[memberName];if(memberShape.location!=="body")return;var value=params[memberName];var name=memberShape.name;if(value!==undefined&&value!==null){if(memberShape.isXmlAttribute){xml.att(name,value)}else if(memberShape.flattened){serialize(xml,value,memberShape)}else{var element=xml.ele(name);applyNamespaces(element,memberShape);serialize(element,value,memberShape)}}})}function serializeMap(xml,map,shape){var xmlKey=shape.key.name||"key";var xmlValue=shape.value.name||"value";util.each(map,function(key,value){var entry=xml.ele(shape.flattened?shape.name:"entry");serialize(entry.ele(xmlKey),key,shape.key);serialize(entry.ele(xmlValue),value,shape.value)})}function serializeList(xml,list,shape){if(shape.flattened){util.arrayEach(list,function(value){var name=shape.member.name||shape.name;var element=xml.ele(name);serialize(element,value,shape.member)})}else{util.arrayEach(list,function(value){var name=shape.member.name||"member";var element=xml.ele(name);serialize(element,value,shape.member)})}}function serializeScalar(xml,value,shape){xml.txt(shape.toWireFormat(value))}function applyNamespaces(xml,shape){var uri,prefix="xmlns";if(shape.xmlNamespaceUri){uri=shape.xmlNamespaceUri;if(shape.xmlNamespacePrefix)prefix+=":"+shape.xmlNamespacePrefix}else if(xml.isRoot&&shape.api.xmlNamespaceUri){uri=shape.api.xmlNamespaceUri}if(uri)xml.att(prefix,uri)}module.exports=XmlBuilder}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/xml/builder.js","/node_modules/deep-resource/node_modules/aws-sdk/lib/xml")},{"../util":114,_process:379,buffer:230,xmlbuilder:119}],117:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){(function(){var XMLBuilder,XMLFragment;XMLFragment=require("./XMLFragment");XMLBuilder=function(){function XMLBuilder(name,xmldec,doctype){var att,child,_ref;this.children=[];this.rootObject=null;if(this.is(name,"Object")){_ref=[name,xmldec],xmldec=_ref[0],doctype=_ref[1];name=null}if(name!=null){name=""+name||"";if(xmldec==null){xmldec={version:"1.0"}}}if(xmldec!=null&&!(xmldec.version!=null)){throw new Error("Version number is required")}if(xmldec!=null){xmldec.version=""+xmldec.version||"";if(!xmldec.version.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+xmldec.version)}att={version:xmldec.version};if(xmldec.encoding!=null){xmldec.encoding=""+xmldec.encoding||"";if(!xmldec.encoding.match(/[A-Za-z](?:[A-Za-z0-9._-]|-)*/)){throw new Error("Invalid encoding: "+xmldec.encoding)}att.encoding=xmldec.encoding}if(xmldec.standalone!=null){att.standalone=xmldec.standalone?"yes":"no"}child=new XMLFragment(this,"?xml",att);this.children.push(child)}if(doctype!=null){att={};if(name!=null){att.name=name}if(doctype.ext!=null){doctype.ext=""+doctype.ext||"";att.ext=doctype.ext}child=new XMLFragment(this,"!DOCTYPE",att);this.children.push(child)}if(name!=null){this.begin(name)}}XMLBuilder.prototype.begin=function(name,xmldec,doctype){var doc,root;if(!(name!=null)){throw new Error("Root element needs a name")}if(this.rootObject){this.children=[];this.rootObject=null}if(xmldec!=null){doc=new XMLBuilder(name,xmldec,doctype);return doc.root()}name=""+name||"";root=new XMLFragment(this,name,{});root.isRoot=true;root.documentObject=this;this.children.push(root);this.rootObject=root;return root};XMLBuilder.prototype.root=function(){return this.rootObject};XMLBuilder.prototype.end=function(options){return toString(options)};XMLBuilder.prototype.toString=function(options){var child,r,_i,_len,_ref;r="";_ref=this.children;for(_i=0,_len=_ref.length;_i<_len;_i++){child=_ref[_i];r+=child.toString(options)}return r};XMLBuilder.prototype.is=function(obj,type){var clas;clas=Object.prototype.toString.call(obj).slice(8,-1);return obj!=null&&clas===type};return XMLBuilder}();module.exports=XMLBuilder}).call(this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/node_modules/xmlbuilder/lib/XMLBuilder.js","/node_modules/deep-resource/node_modules/aws-sdk/node_modules/xmlbuilder/lib")},{"./XMLFragment":118,_process:379,buffer:230}],118:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){(function(){var XMLFragment,__hasProp={}.hasOwnProperty;XMLFragment=function(){function XMLFragment(parent,name,attributes,text){this.isRoot=false;this.documentObject=null;this.parent=parent;this.name=name;this.attributes=attributes;this.value=text;this.children=[]}XMLFragment.prototype.element=function(name,attributes,text){var child,key,val,_ref,_ref1;if(!(name!=null)){throw new Error("Missing element name")}name=""+name||"";this.assertLegalChar(name);if(attributes==null){attributes={}}if(this.is(attributes,"String")&&this.is(text,"Object")){_ref=[text,attributes],attributes=_ref[0],text=_ref[1]}else if(this.is(attributes,"String")){_ref1=[{},attributes],attributes=_ref1[0],text=_ref1[1]}for(key in attributes){if(!__hasProp.call(attributes,key))continue;val=attributes[key];val=""+val||"";attributes[key]=this.escape(val)}child=new XMLFragment(this,name,attributes);if(text!=null){text=""+text||"";text=this.escape(text);this.assertLegalChar(text);child.raw(text)}this.children.push(child);return child};XMLFragment.prototype.insertBefore=function(name,attributes,text){var child,i,key,val,_ref,_ref1;if(this.isRoot){throw new Error("Cannot insert elements at root level")}if(!(name!=null)){throw new Error("Missing element name")}name=""+name||"";this.assertLegalChar(name);if(attributes==null){attributes={}}if(this.is(attributes,"String")&&this.is(text,"Object")){_ref=[text,attributes],attributes=_ref[0],text=_ref[1]}else if(this.is(attributes,"String")){_ref1=[{},attributes],attributes=_ref1[0],text=_ref1[1]}for(key in attributes){if(!__hasProp.call(attributes,key))continue;val=attributes[key];val=""+val||"";attributes[key]=this.escape(val)}child=new XMLFragment(this.parent,name,attributes);if(text!=null){text=""+text||"";text=this.escape(text);this.assertLegalChar(text);child.raw(text)}i=this.parent.children.indexOf(this);this.parent.children.splice(i,0,child);return child};XMLFragment.prototype.insertAfter=function(name,attributes,text){var child,i,key,val,_ref,_ref1;if(this.isRoot){throw new Error("Cannot insert elements at root level")}if(!(name!=null)){throw new Error("Missing element name")}name=""+name||"";this.assertLegalChar(name);if(attributes==null){attributes={}}if(this.is(attributes,"String")&&this.is(text,"Object")){_ref=[text,attributes],attributes=_ref[0],text=_ref[1]}else if(this.is(attributes,"String")){_ref1=[{},attributes],attributes=_ref1[0],text=_ref1[1]}for(key in attributes){if(!__hasProp.call(attributes,key))continue;val=attributes[key];val=""+val||"";attributes[key]=this.escape(val)}child=new XMLFragment(this.parent,name,attributes);if(text!=null){text=""+text||"";text=this.escape(text);this.assertLegalChar(text);child.raw(text)}i=this.parent.children.indexOf(this);this.parent.children.splice(i+1,0,child);return child};XMLFragment.prototype.remove=function(){var i,_ref;if(this.isRoot){throw new Error("Cannot remove the root element")}i=this.parent.children.indexOf(this);[].splice.apply(this.parent.children,[i,i-i+1].concat(_ref=[])),_ref;return this.parent};XMLFragment.prototype.text=function(value){var child;if(!(value!=null)){throw new Error("Missing element text")}value=""+value||"";value=this.escape(value);this.assertLegalChar(value);child=new XMLFragment(this,"",{},value);this.children.push(child);return this};XMLFragment.prototype.cdata=function(value){var child;if(!(value!=null)){throw new Error("Missing CDATA text")}value=""+value||"";this.assertLegalChar(value);if(value.match(/]]>/)){throw new Error("Invalid CDATA text: "+value)}child=new XMLFragment(this,"",{},"");this.children.push(child);return this};XMLFragment.prototype.comment=function(value){var child;if(!(value!=null)){throw new Error("Missing comment text")}value=""+value||"";value=this.escape(value);this.assertLegalChar(value);if(value.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+value)}child=new XMLFragment(this,"",{},"");this.children.push(child);return this};XMLFragment.prototype.raw=function(value){var child;if(!(value!=null)){throw new Error("Missing raw text")}value=""+value||"";child=new XMLFragment(this,"",{},value);this.children.push(child);return this};XMLFragment.prototype.up=function(){if(this.isRoot){throw new Error("This node has no parent. Use doc() if you need to get the document object.")}return this.parent};XMLFragment.prototype.root=function(){var child;if(this.isRoot){return this}child=this.parent;while(!child.isRoot){child=child.parent}return child};XMLFragment.prototype.document=function(){return this.root().documentObject};XMLFragment.prototype.end=function(options){return this.document().toString(options)};XMLFragment.prototype.prev=function(){var i;if(this.isRoot){throw new Error("Root node has no siblings")}i=this.parent.children.indexOf(this);if(i<1){throw new Error("Already at the first node")}return this.parent.children[i-1]};XMLFragment.prototype.next=function(){var i;if(this.isRoot){throw new Error("Root node has no siblings")}i=this.parent.children.indexOf(this);if(i===-1||i===this.parent.children.length-1){throw new Error("Already at the last node")}return this.parent.children[i+1]};XMLFragment.prototype.clone=function(deep){var clonedSelf;clonedSelf=new XMLFragment(this.parent,this.name,this.attributes,this.value);if(deep){this.children.forEach(function(child){var clonedChild;clonedChild=child.clone(deep);clonedChild.parent=clonedSelf;return clonedSelf.children.push(clonedChild)})}return clonedSelf};XMLFragment.prototype.importXMLBuilder=function(xmlbuilder){var clonedRoot;clonedRoot=xmlbuilder.root().clone(true);clonedRoot.parent=this;this.children.push(clonedRoot);clonedRoot.isRoot=false;return this};XMLFragment.prototype.attribute=function(name,value){var _ref;if(!(name!=null)){throw new Error("Missing attribute name")}if(!(value!=null)){throw new Error("Missing attribute value")}name=""+name||"";value=""+value||"";if((_ref=this.attributes)==null){this.attributes={}}this.attributes[name]=this.escape(value);return this};XMLFragment.prototype.removeAttribute=function(name){if(!(name!=null)){throw new Error("Missing attribute name")}name=""+name||"";delete this.attributes[name];return this};XMLFragment.prototype.toString=function(options,level){var attName,attValue,child,indent,newline,pretty,r,space,_i,_len,_ref,_ref1;pretty=options!=null&&options.pretty||false;indent=options!=null&&options.indent||" ";newline=options!=null&&options.newline||"\n";level||(level=0);space=new Array(level+1).join(indent);r="";if(pretty){r+=space}if(!(this.value!=null)){r+="<"+this.name}else{r+=""+this.value}_ref=this.attributes;for(attName in _ref){attValue=_ref[attName];if(this.name==="!DOCTYPE"){r+=" "+attValue}else{r+=" "+attName+'="'+attValue+'"'}}if(this.children.length===0){if(!(this.value!=null)){r+=this.name==="?xml"?"?>":this.name==="!DOCTYPE"?">":"/>"}if(pretty){r+=newline}}else if(pretty&&this.children.length===1&&this.children[0].value){r+=">";r+=this.children[0].value;r+="";r+=newline}else{r+=">";if(pretty){r+=newline}_ref1=this.children;for(_i=0,_len=_ref1.length;_i<_len;_i++){child=_ref1[_i];r+=child.toString(options,level+1)}if(pretty){r+=space}r+="";if(pretty){r+=newline}}return r};XMLFragment.prototype.escape=function(str){return str.replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")};XMLFragment.prototype.assertLegalChar=function(str){var chars,chr;chars=/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE-\uFFFF]/;chr=str.match(chars);if(chr){throw new Error("Invalid character ("+chr+") in string: "+str)}};XMLFragment.prototype.is=function(obj,type){var clas;clas=Object.prototype.toString.call(obj).slice(8,-1);return obj!=null&&clas===type};XMLFragment.prototype.ele=function(name,attributes,text){return this.element(name,attributes,text)};XMLFragment.prototype.txt=function(value){return this.text(value)};XMLFragment.prototype.dat=function(value){return this.cdata(value)};XMLFragment.prototype.att=function(name,value){return this.attribute(name,value)};XMLFragment.prototype.com=function(value){return this.comment(value)};XMLFragment.prototype.doc=function(){return this.document()};XMLFragment.prototype.e=function(name,attributes,text){return this.element(name,attributes,text)};XMLFragment.prototype.t=function(value){return this.text(value)};XMLFragment.prototype.d=function(value){return this.cdata(value)};XMLFragment.prototype.a=function(name,value){return this.attribute(name,value)};XMLFragment.prototype.c=function(value){return this.comment(value)};XMLFragment.prototype.r=function(value){return this.raw(value)};XMLFragment.prototype.u=function(){return this.up()};return XMLFragment}();module.exports=XMLFragment}).call(this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/node_modules/xmlbuilder/lib/XMLFragment.js","/node_modules/deep-resource/node_modules/aws-sdk/node_modules/xmlbuilder/lib")},{_process:379,buffer:230}],119:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){(function(){var XMLBuilder;XMLBuilder=require("./XMLBuilder");module.exports.create=function(name,xmldec,doctype){if(name!=null){return new XMLBuilder(name,xmldec,doctype).root()}else{return new XMLBuilder}}}).call(this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/node_modules/xmlbuilder/lib/index.js","/node_modules/deep-resource/node_modules/aws-sdk/node_modules/xmlbuilder/lib")},{"./XMLBuilder":117,_process:379,buffer:230}],120:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){exports=module.exports=debug;exports.coerce=coerce;exports.disable=disable;exports.enable=enable;exports.enabled=enabled;exports.humanize=require("ms");exports.names=[];exports.skips=[];exports.formatters={};var prevColor=0;var prevTime;function selectColor(){return exports.colors[prevColor++%exports.colors.length]}function debug(namespace){function disabled(){}disabled.enabled=false;function enabled(){var self=enabled;var curr=+new Date;var ms=curr-(prevTime||curr);self.diff=ms;self.prev=prevTime;self.curr=curr;prevTime=curr;if(null==self.useColors)self.useColors=exports.useColors();if(null==self.color&&self.useColors)self.color=selectColor();var args=Array.prototype.slice.call(arguments);args[0]=exports.coerce(args[0]);if("string"!==typeof args[0]){args=["%o"].concat(args)}var index=0;args[0]=args[0].replace(/%([a-z%])/g,function(match,format){if(match==="%%")return match;index++;var formatter=exports.formatters[format];if("function"===typeof formatter){var val=args[index];match=formatter.call(self,val);args.splice(index,1);index--}return match});if("function"===typeof exports.formatArgs){args=exports.formatArgs.apply(self,args)}var logFn=enabled.log||exports.log||console.log.bind(console);logFn.apply(self,args)}enabled.enabled=true;var fn=exports.enabled(namespace)?enabled:disabled;fn.namespace=namespace;return fn}function enable(namespaces){exports.save(namespaces);var split=(namespaces||"").split(/[\s,]+/);var len=split.length;for(var i=0;iself.maxFieldsSize){self._error(new Error("maxFieldsSize exceeded, received "+self._fieldsSize+" bytes of field data"));return}value+=decoder.write(buffer)});part.on("end",function(){self.emit("field",part.name,value)});return}this._flushing++;var file=new File({path:this._uploadPath(part.filename),name:part.filename,type:part.mime,hash:self.hash});this.emit("fileBegin",part.name,file);file.open();this.openedFiles.push(file);part.on("data",function(buffer){self.pause();file.write(buffer,function(){self.resume()})});part.on("end",function(){file.end(function(){self._flushing--;self.emit("file",part.name,file);self._maybeEnd()})})};function dummyParser(self){return{end:function(){self.ended=true;self._maybeEnd();return null}}}IncomingForm.prototype._parseContentType=function(){if(this.bytesExpected===0){this._parser=dummyParser(this);return}if(!this.headers["content-type"]){this._error(new Error("bad content-type header, no content-type"));return}if(this.headers["content-type"].match(/octet-stream/i)){this._initOctetStream();return}if(this.headers["content-type"].match(/urlencoded/i)){this._initUrlencoded();return}if(this.headers["content-type"].match(/multipart/i)){var m;if(m=this.headers["content-type"].match(/boundary=(?:"([^"]+)"|([^;]+))/i)){this._initMultipart(m[1]||m[2])}else{this._error(new Error("bad content-type header, no multipart boundary"))}return}if(this.headers["content-type"].match(/json/i)){this._initJSONencoded();return}this._error(new Error("bad content-type header, unknown content-type: "+this.headers["content-type"]))};IncomingForm.prototype._error=function(err){if(this.error||this.ended){return}this.error=err;this.pause();this.emit("error",err);if(Array.isArray(this.openedFiles)){this.openedFiles.forEach(function(file){file._writeStream.destroy();setTimeout(fs.unlink,0,file.path)})}};IncomingForm.prototype._parseContentLength=function(){this.bytesReceived=0;if(this.headers["content-length"]){this.bytesExpected=parseInt(this.headers["content-length"],10)}else if(this.headers["transfer-encoding"]===undefined){this.bytesExpected=0}if(this.bytesExpected!==null){this.emit("progress",this.bytesReceived,this.bytesExpected)}};IncomingForm.prototype._newParser=function(){return new MultipartParser};IncomingForm.prototype._initMultipart=function(boundary){this.type="multipart";var parser=new MultipartParser,self=this,headerField,headerValue,part;parser.initWithBoundary(boundary);parser.onPartBegin=function(){part=new Stream;part.readable=true;part.headers={};part.name=null;part.filename=null;part.mime=null;part.transferEncoding="binary";part.transferBuffer="";headerField="";headerValue=""};parser.onHeaderField=function(b,start,end){headerField+=b.toString(self.encoding,start,end)};parser.onHeaderValue=function(b,start,end){headerValue+=b.toString(self.encoding,start,end)};parser.onHeaderEnd=function(){headerField=headerField.toLowerCase();part.headers[headerField]=headerValue;var m;if(headerField=="content-disposition"){if(m=headerValue.match(/\bname="([^"]+)"/i)){part.name=m[1]}part.filename=self._fileName(headerValue)}else if(headerField=="content-type"){part.mime=headerValue}else if(headerField=="content-transfer-encoding"){part.transferEncoding=headerValue.toLowerCase()}headerField="";headerValue=""};parser.onHeadersEnd=function(){switch(part.transferEncoding){case"binary":case"7bit":case"8bit":parser.onPartData=function(b,start,end){part.emit("data",b.slice(start,end))};parser.onPartEnd=function(){part.emit("end")};break;case"base64":parser.onPartData=function(b,start,end){part.transferBuffer+=b.slice(start,end).toString("ascii");var offset=parseInt(part.transferBuffer.length/4)*4;part.emit("data",new Buffer(part.transferBuffer.substring(0,offset),"base64"));part.transferBuffer=part.transferBuffer.substring(offset)};parser.onPartEnd=function(){part.emit("data",new Buffer(part.transferBuffer,"base64"));part.emit("end")};break;default:return self._error(new Error("unknown transfer-encoding"))}self.onPart(part)};parser.onEnd=function(){self.ended=true;self._maybeEnd()};this._parser=parser};IncomingForm.prototype._fileName=function(headerValue){var m=headerValue.match(/\bfilename="(.*?)"($|; )/i);if(!m)return;var filename=m[1].substr(m[1].lastIndexOf("\\")+1);filename=filename.replace(/%22/g,'"');filename=filename.replace(/&#([\d]{4});/g,function(m,code){return String.fromCharCode(code)});return filename};IncomingForm.prototype._initUrlencoded=function(){this.type="urlencoded";var parser=new QuerystringParser(this.maxFields),self=this;parser.onField=function(key,val){self.emit("field",key,val)};parser.onEnd=function(){self.ended=true;self._maybeEnd()};this._parser=parser};IncomingForm.prototype._initOctetStream=function(){this.type="octet-stream";var filename=this.headers["x-file-name"];var mime=this.headers["content-type"];var file=new File({path:this._uploadPath(filename),name:filename,type:mime});file.open();this.emit("fileBegin",filename,file);this._flushing++;var self=this;self._parser=new OctetParser;var outstandingWrites=0;self._parser.on("data",function(buffer){self.pause();outstandingWrites++;file.write(buffer,function(){outstandingWrites--;self.resume();if(self.ended){self._parser.emit("doneWritingFile")}})});self._parser.on("end",function(){self._flushing--;self.ended=true;var done=function(){self.emit("file","file",file);self._maybeEnd()};if(outstandingWrites===0){done()}else{self._parser.once("doneWritingFile",done)}})};IncomingForm.prototype._initJSONencoded=function(){this.type="json";var parser=new JSONParser,self=this;if(this.bytesExpected){parser.initWithLength(this.bytesExpected)}parser.onField=function(key,val){self.emit("field",key,val)};parser.onEnd=function(){self.ended=true;self._maybeEnd()};this._parser=parser};IncomingForm.prototype._uploadPath=function(filename){var name="";for(var i=0;i<32;i++){name+=Math.floor(Math.random()*16).toString(16)}if(this.keepExtensions){var ext=path.extname(filename);ext=ext.replace(/(\.[a-z0-9]+).*/,"$1");name+=ext}return path.join(this.uploadDir,name)};IncomingForm.prototype._maybeEnd=function(){if(!this.ended||this._flushing||this.error){return}this.emit("end")}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/superagent/node_modules/formidable/lib/incoming_form.js","/node_modules/deep-resource/node_modules/superagent/node_modules/formidable/lib")},{"./file":122,"./json_parser":124,"./multipart_parser":125,"./octet_parser":126,"./querystring_parser":127,_process:379,buffer:230,events:375,fs:228,os:377,path:378,stream:396,string_decoder:"string_decoder",util:409}],124:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){if(global.GENTLY)require=GENTLY.hijack(require);var Buffer=require("buffer").Buffer;function JSONParser(){this.data=new Buffer("");this.bytesWritten=0}exports.JSONParser=JSONParser;JSONParser.prototype.initWithLength=function(length){this.data=new Buffer(length)};JSONParser.prototype.write=function(buffer){if(this.data.length>=this.bytesWritten+buffer.length){buffer.copy(this.data,this.bytesWritten)}else{this.data=Buffer.concat([this.data,buffer])}this.bytesWritten+=buffer.length;return buffer.length};JSONParser.prototype.end=function(){try{var fields=JSON.parse(this.data.toString("utf8"));for(var field in fields){this.onField(field,fields[field])}}catch(e){}this.data=null;this.onEnd()}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/superagent/node_modules/formidable/lib/json_parser.js","/node_modules/deep-resource/node_modules/superagent/node_modules/formidable/lib")},{_process:379,buffer:230}],125:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Buffer=require("buffer").Buffer,s=0,S={PARSER_UNINITIALIZED:s++,START:s++,START_BOUNDARY:s++,HEADER_FIELD_START:s++,HEADER_FIELD:s++,HEADER_VALUE_START:s++,HEADER_VALUE:s++,HEADER_VALUE_ALMOST_DONE:s++,HEADERS_ALMOST_DONE:s++,PART_DATA_START:s++,PART_DATA:s++,PART_END:s++,END:s++},f=1,F={PART_BOUNDARY:f,LAST_BOUNDARY:f*=2},LF=10,CR=13,SPACE=32,HYPHEN=45,COLON=58,A=97,Z=122,lower=function(c){return c|32};for(s in S){exports[s]=S[s]}function MultipartParser(){this.boundary=null;this.boundaryChars=null;this.lookbehind=null;this.state=S.PARSER_UNINITIALIZED;this.index=null;this.flags=0}exports.MultipartParser=MultipartParser;MultipartParser.stateToString=function(stateNumber){for(var state in S){var number=S[state];if(number===stateNumber)return state}};MultipartParser.prototype.initWithBoundary=function(str){this.boundary=new Buffer(str.length+4);this.boundary.write("\r\n--","ascii",0);this.boundary.write(str,"ascii",4);this.lookbehind=new Buffer(this.boundary.length+8);this.state=S.START;this.boundaryChars={};for(var i=0;iZ){return i}break;case S.HEADER_VALUE_START:if(c==SPACE){break}mark("headerValue");state=S.HEADER_VALUE;case S.HEADER_VALUE:if(c==CR){dataCallback("headerValue",true);callback("headerEnd");state=S.HEADER_VALUE_ALMOST_DONE}break;case S.HEADER_VALUE_ALMOST_DONE:if(c!=LF){return i}state=S.HEADER_FIELD_START;break;case S.HEADERS_ALMOST_DONE:if(c!=LF){return i}callback("headersEnd");state=S.PART_DATA_START;break;case S.PART_DATA_START:state=S.PART_DATA;mark("partData");case S.PART_DATA:prevIndex=index;if(index==0){i+=boundaryEnd;while(i0){lookbehind[index-1]=c}else if(prevIndex>0){callback("partData",lookbehind,0,prevIndex);prevIndex=0;mark("partData");i--}break;case S.END:break;default:return i}}dataCallback("headerField");dataCallback("headerValue");dataCallback("partData");this.index=index;this.state=state;this.flags=flags;return len};MultipartParser.prototype.end=function(){var callback=function(self,name){var callbackSymbol="on"+name.substr(0,1).toUpperCase()+name.substr(1);if(callbackSymbol in self){self[callbackSymbol]()}};if(this.state==S.HEADER_FIELD_START&&this.index==0||this.state==S.PART_DATA&&this.index==this.boundary.length){callback(this,"partEnd");callback(this,"end")}else if(this.state!=S.END){return new Error("MultipartParser.end(): stream ended unexpectedly: "+this.explain())}};MultipartParser.prototype.explain=function(){return"state = "+MultipartParser.stateToString(this.state)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/superagent/node_modules/formidable/lib/multipart_parser.js","/node_modules/deep-resource/node_modules/superagent/node_modules/formidable/lib")},{_process:379,buffer:230}],126:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var EventEmitter=require("events").EventEmitter,util=require("util");function OctetParser(options){if(!(this instanceof OctetParser))return new OctetParser(options);EventEmitter.call(this)}util.inherits(OctetParser,EventEmitter);exports.OctetParser=OctetParser;OctetParser.prototype.write=function(buffer){this.emit("data",buffer);return buffer.length};OctetParser.prototype.end=function(){this.emit("end")}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/superagent/node_modules/formidable/lib/octet_parser.js","/node_modules/deep-resource/node_modules/superagent/node_modules/formidable/lib")},{_process:379,buffer:230,events:375,util:409}],127:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){if(global.GENTLY)require=GENTLY.hijack(require);var querystring=require("querystring");function QuerystringParser(maxKeys){this.maxKeys=maxKeys;this.buffer=""}exports.QuerystringParser=QuerystringParser;QuerystringParser.prototype.write=function(buffer){this.buffer+=buffer.toString("ascii");return buffer.length};QuerystringParser.prototype.end=function(){var fields=querystring.parse(this.buffer,"&","=",{maxKeys:this.maxKeys});for(var field in fields){this.onField(field,fields[field])}this.buffer="";this.onEnd()}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/superagent/node_modules/formidable/lib/querystring_parser.js","/node_modules/deep-resource/node_modules/superagent/node_modules/formidable/lib")},{_process:379,buffer:230,querystring:383}],128:[function(require,module,exports){module.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mdp"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/prs.cww":["cww"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"], +"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["dmg"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":["otf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["iso"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdownload":["exe","dll","com","bat","msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","wmz","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-nzb":["nzb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-research-info-systems":["ris"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp4":["mp4a","m4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/webm":["weba"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-wav":["wav"],"audio/xm":["xm"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"font/opentype":["otf"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/prs.btif":["btif"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/webp":["webp"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-mrsid-image":["sid"],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/rfc822":["eml","mime"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/prs.lines.tag":["dsc"],"text/richtext":["rtx"],"text/sgml":["sgml","sgm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/vtt":["vtt"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["markdown","md","mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-pascal":["p","pas"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/webm":["webm"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],129:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Stringify=require("./stringify");var Parse=require("./parse");var internals={};module.exports={stringify:Stringify,parse:Parse}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/superagent/node_modules/qs/lib/index.js","/node_modules/deep-resource/node_modules/superagent/node_modules/qs/lib")},{"./parse":130,"./stringify":131,_process:379,buffer:230}],130:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Utils=require("./utils");var internals={delimiter:"&",depth:5,arrayLimit:20,parameterLimit:1e3};internals.parseValues=function(str,options){var obj={};var parts=str.split(options.delimiter,options.parameterLimit===Infinity?undefined:options.parameterLimit);for(var i=0,il=parts.length;i=0&&index<=options.arrayLimit){obj=[];obj[index]=internals.parseObject(chain,val,options)}else{obj[cleanRoot]=internals.parseObject(chain,val,options)}}return obj};internals.parseKeys=function(key,val,options){if(!key){return}var parent=/^([^\[\]]*)/;var child=/(\[[^\[\]]*\])/g;var segment=parent.exec(key);if(Object.prototype.hasOwnProperty(segment[1])){return}var keys=[];if(segment[1]){keys.push(segment[1])}var i=0;while((segment=child.exec(key))!==null&&i0){if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){var e=new Error("stream.unshift() after end event");stream.emit("error",e)}else{if(state.decoder&&!addToFront&&!encoding)chunk=state.decoder.write(chunk);state.length+=state.objectMode?1:chunk.length;if(addToFront){state.buffer.unshift(chunk)}else{state.reading=false;state.buffer.push(chunk)}if(state.needReadable)emitReadable(stream);maybeReadMore(stream,state)}}else if(!addToFront){state.reading=false}return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=MAX_HWM){n=MAX_HWM}else{n--;for(var p=1;p<32;p<<=1)n|=n>>p;n++}return n}function howMuchToRead(n,state){if(state.length===0&&state.ended)return 0;if(state.objectMode)return n===0?0:1;if(isNaN(n)||n===null){if(state.flowing&&state.buffer.length)return state.buffer[0].length;else return state.length}if(n<=0)return 0;if(n>state.highWaterMark)state.highWaterMark=roundUpToNextPowerOf2(n);if(n>state.length){if(!state.ended){state.needReadable=true;return 0}else return state.length}return n}Readable.prototype.read=function(n){var state=this._readableState;state.calledRead=true;var nOrig=n;if(typeof n!=="number"||n>0)state.emittedReadable=false;if(n===0&&state.needReadable&&(state.length>=state.highWaterMark||state.ended)){emitReadable(this);return null}n=howMuchToRead(n,state);if(n===0&&state.ended){if(state.length===0)endReadable(this);return null}var doRead=state.needReadable;if(state.length-n<=state.highWaterMark)doRead=true;if(state.ended||state.reading)doRead=false;if(doRead){state.reading=true;state.sync=true;if(state.length===0)state.needReadable=true;this._read(state.highWaterMark);state.sync=false}if(doRead&&!state.reading)n=howMuchToRead(nOrig,state);var ret;if(n>0)ret=fromList(n,state);else ret=null;if(ret===null){state.needReadable=true;n=0}state.length-=n;if(state.length===0&&!state.ended)state.needReadable=true;if(state.ended&&!state.endEmitted&&state.length===0)endReadable(this);return ret};function chunkInvalid(state,chunk){var er=null;if(!Buffer.isBuffer(chunk)&&"string"!==typeof chunk&&chunk!==null&&chunk!==undefined&&!state.objectMode&&!er){er=new TypeError("Invalid non-string/buffer chunk")}return er}function onEofChunk(stream,state){if(state.decoder&&!state.ended){var chunk=state.decoder.end();if(chunk&&chunk.length){state.buffer.push(chunk);state.length+=state.objectMode?1:chunk.length}}state.ended=true;if(state.length>0)emitReadable(stream);else endReadable(stream)}function emitReadable(stream){var state=stream._readableState;state.needReadable=false;if(state.emittedReadable)return;state.emittedReadable=true;if(state.sync)process.nextTick(function(){emitReadable_(stream)});else emitReadable_(stream)}function emitReadable_(stream){stream.emit("readable")}function maybeReadMore(stream,state){if(!state.readingMore){state.readingMore=true;process.nextTick(function(){maybeReadMore_(stream,state)})}}function maybeReadMore_(stream,state){var len=state.length;while(!state.reading&&!state.flowing&&!state.ended&&state.length0)return}if(state.pipesCount===0){state.flowing=false;if(EE.listenerCount(src,"data")>0)emitDataEvents(src);return}state.ranOut=true}function pipeOnReadable(){if(this._readableState.ranOut){this._readableState.ranOut=false;flow(this)}}Readable.prototype.unpipe=function(dest){var state=this._readableState;if(state.pipesCount===0)return this;if(state.pipesCount===1){if(dest&&dest!==state.pipes)return this;if(!dest)dest=state.pipes;state.pipes=null;state.pipesCount=0;this.removeListener("readable",pipeOnReadable);state.flowing=false;if(dest)dest.emit("unpipe",this);return this}if(!dest){var dests=state.pipes;var len=state.pipesCount;state.pipes=null;state.pipesCount=0;this.removeListener("readable",pipeOnReadable);state.flowing=false;for(var i=0;i=length){if(stringMode)ret=list.join("");else ret=Buffer.concat(list,length);list.length=0}else{if(n0)throw new Error("endReadable called on non-empty stream");if(!state.endEmitted&&state.calledRead){state.ended=true;process.nextTick(function(){if(!state.endEmitted&&state.length===0){state.endEmitted=true;stream.readable=false;stream.emit("end")}})}}function forEach(xs,f){for(var i=0,l=xs.length;ithis.expireTime){return true}else{return this.expired||!this.accessKeyId||!this.secretAccessKey}},get:function get(callback){var self=this;if(this.needsRefresh()){this.refresh(function(err){if(!err)self.expired=false;if(callback)callback(err)})}else if(callback){callback()}},refresh:function refresh(callback){this.expired=false;callback()}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/credentials.js","/node_modules/deep-security/node_modules/aws-sdk/lib")},{"./core":147,_process:379,buffer:230}],149:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");AWS.CognitoIdentityCredentials=AWS.util.inherit(AWS.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function CognitoIdentityCredentials(params){AWS.Credentials.call(this);this.expired=true;this.params=params;this.data=null;this.identityId=null;this.loadCachedId()},refresh:function refresh(callback){var self=this;self.createClients();self.data=null;self.identityId=null;self.getId(function(err){if(!err){if(!self.params.RoleArn){self.getCredentialsForIdentity(callback)}else{self.getCredentialsFromSTS(callback)}}else{self.clearCachedId();callback(err)}})},clearCachedId:function clearCache(){this.identityId=null;delete this.params.IdentityId;var poolId=this.params.IdentityPoolId;delete this.storage[this.localStorageKey.id+poolId];delete this.storage[this.localStorageKey.providers+poolId]},getId:function getId(callback){var self=this;if(typeof self.params.IdentityId==="string"){return callback(null,self.params.IdentityId)}self.cognito.getId(function(err,data){if(!err&&data.IdentityId){self.params.IdentityId=data.IdentityId;callback(null,data.IdentityId)}else{callback(err)}})},loadCredentials:function loadCredentials(data,credentials){if(!data||!credentials)return;credentials.expired=false;credentials.accessKeyId=data.Credentials.AccessKeyId;credentials.secretAccessKey=data.Credentials.SecretKey;credentials.sessionToken=data.Credentials.SessionToken;credentials.expireTime=data.Credentials.Expiration},getCredentialsForIdentity:function getCredentialsForIdentity(callback){var self=this;self.cognito.getCredentialsForIdentity(function(err,data){if(!err){self.cacheId(data);self.data=data;self.loadCredentials(self.data,self)}else{self.clearCachedId()}callback(err)})},getCredentialsFromSTS:function getCredentialsFromSTS(callback){var self=this;self.cognito.getOpenIdToken(function(err,data){if(!err){self.cacheId(data);self.params.WebIdentityToken=data.Token;self.webIdentityCredentials.refresh(function(webErr){if(!webErr){self.data=self.webIdentityCredentials.data;self.sts.credentialsFrom(self.data,self)}else{self.clearCachedId()}callback(webErr)})}else{self.clearCachedId();callback(err)}})},loadCachedId:function loadCachedId(){var self=this;if(AWS.util.isBrowser()&&!self.params.IdentityId){var id=self.getStorage("id");if(id&&self.params.Logins){var actualProviders=Object.keys(self.params.Logins);var cachedProviders=(self.getStorage("providers")||"").split(",");var intersect=cachedProviders.filter(function(n){return actualProviders.indexOf(n)!==-1});if(intersect.length!==0){self.params.IdentityId=id}}else if(id){self.params.IdentityId=id}}},createClients:function(){this.webIdentityCredentials=this.webIdentityCredentials||new AWS.WebIdentityCredentials(this.params);this.cognito=this.cognito||new AWS.CognitoIdentity({params:this.params});this.sts=this.sts||new AWS.STS},cacheId:function cacheId(data){this.identityId=data.IdentityId;this.params.IdentityId=this.identityId;if(AWS.util.isBrowser()){this.setStorage("id",data.IdentityId);if(this.params.Logins){this.setStorage("providers",Object.keys(this.params.Logins).join(","))}}},getStorage:function getStorage(key){return this.storage[this.localStorageKey[key]+this.params.IdentityPoolId]},setStorage:function setStorage(key,val){try{this.storage[this.localStorageKey[key]+this.params.IdentityPoolId]=val}catch(_){}},storage:function(){try{return AWS.util.isBrowser()&&window.localStorage!==null&&typeof window.localStorage==="object"?window.localStorage:{}}catch(_){return{}}}()})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/credentials/cognito_identity_credentials.js","/node_modules/deep-security/node_modules/aws-sdk/lib/credentials")},{"../core":147,_process:379,buffer:230}],150:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");AWS.CredentialProviderChain=AWS.util.inherit(AWS.Credentials,{constructor:function CredentialProviderChain(providers){if(providers){this.providers=providers}else{this.providers=AWS.CredentialProviderChain.defaultProviders.slice(0)}},resolve:function resolve(callback){if(this.providers.length===0){callback(new Error("No providers"));return this}var index=0;var providers=this.providers.slice(0);function resolveNext(err,creds){if(!err&&creds||index===providers.length){callback(err,creds);return}var provider=providers[index++];if(typeof provider==="function"){creds=provider.call()}else{creds=provider}if(creds.get){creds.get(function(getErr){resolveNext(getErr,getErr?null:creds)})}else{resolveNext(null,creds)}}resolveNext();return this}});AWS.CredentialProviderChain.defaultProviders=[]}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/credentials/credential_provider_chain.js","/node_modules/deep-security/node_modules/aws-sdk/lib/credentials")},{"../core":147,_process:379,buffer:230}],151:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");AWS.SAMLCredentials=AWS.util.inherit(AWS.Credentials,{constructor:function SAMLCredentials(params){AWS.Credentials.call(this);this.expired=true;this.params=params},refresh:function refresh(callback){var self=this;self.createClients();if(!callback)callback=function(err){if(err)throw err};self.service.assumeRoleWithSAML(function(err,data){if(!err){self.service.credentialsFrom(data,self)}callback(err)})},createClients:function(){this.service=this.service||new AWS.STS({params:this.params})}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/credentials/saml_credentials.js","/node_modules/deep-security/node_modules/aws-sdk/lib/credentials")},{"../core":147,_process:379,buffer:230}],152:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");AWS.TemporaryCredentials=AWS.util.inherit(AWS.Credentials,{constructor:function TemporaryCredentials(params){AWS.Credentials.call(this);this.loadMasterCredentials();this.expired=true;this.params=params||{};if(this.params.RoleArn){this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials"}},refresh:function refresh(callback){var self=this;self.createClients();if(!callback)callback=function(err){if(err)throw err};self.service.config.credentials=self.masterCredentials;var operation=self.params.RoleArn?self.service.assumeRole:self.service.getSessionToken;operation.call(self.service,function(err,data){if(!err){self.service.credentialsFrom(data,self)}callback(err)})},loadMasterCredentials:function loadMasterCredentials(){this.masterCredentials=AWS.config.credentials;while(this.masterCredentials.masterCredentials){this.masterCredentials=this.masterCredentials.masterCredentials}},createClients:function(){this.service=this.service||new AWS.STS({params:this.params})}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/credentials/temporary_credentials.js","/node_modules/deep-security/node_modules/aws-sdk/lib/credentials")},{"../core":147,_process:379,buffer:230}],153:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");AWS.WebIdentityCredentials=AWS.util.inherit(AWS.Credentials,{constructor:function WebIdentityCredentials(params){AWS.Credentials.call(this);this.expired=true;this.params=params;this.params.RoleSessionName=this.params.RoleSessionName||"web-identity";this.data=null},refresh:function refresh(callback){var self=this;self.createClients();if(!callback)callback=function(err){if(err)throw err};self.service.assumeRoleWithWebIdentity(function(err,data){self.data=null;if(!err){self.data=data;self.service.credentialsFrom(data,self)}callback(err)})},createClients:function(){this.service=this.service||new AWS.STS({params:this.params})}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/credentials/web_identity_credentials.js","/node_modules/deep-security/node_modules/aws-sdk/lib/credentials")},{"../core":147,_process:379,buffer:230}],154:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("./core");var SequentialExecutor=require("./sequential_executor");AWS.EventListeners={Core:{}};AWS.EventListeners={Core:(new SequentialExecutor).addNamedListeners(function(add,addAsync){ +addAsync("VALIDATE_CREDENTIALS","validate",function VALIDATE_CREDENTIALS(req,done){if(!req.service.api.signatureVersion)return done();req.service.config.getCredentials(function(err){if(err){req.response.error=AWS.util.error(err,{code:"CredentialsError",message:"Missing credentials in config"})}done()})});add("VALIDATE_REGION","validate",function VALIDATE_REGION(req){if(!req.service.config.region&&!req.service.isGlobalEndpoint){req.response.error=AWS.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}});add("VALIDATE_PARAMETERS","validate",function VALIDATE_PARAMETERS(req){var rules=req.service.api.operations[req.operation].input;(new AWS.ParamValidator).validate(rules,req.params)});addAsync("COMPUTE_SHA256","afterBuild",function COMPUTE_SHA256(req,done){req.haltHandlersOnError();if(!req.service.api.signatureVersion)return done();if(req.service.getSignerClass(req)===AWS.Signers.V4){var body=req.httpRequest.body||"";AWS.util.computeSha256(body,function(err,sha){if(err){done(err)}else{req.httpRequest.headers["X-Amz-Content-Sha256"]=sha;done()}})}else{done()}});add("SET_CONTENT_LENGTH","afterBuild",function SET_CONTENT_LENGTH(req){if(req.httpRequest.headers["Content-Length"]===undefined){var length=AWS.util.string.byteLength(req.httpRequest.body);req.httpRequest.headers["Content-Length"]=length}});add("SET_HTTP_HOST","afterBuild",function SET_HTTP_HOST(req){req.httpRequest.headers["Host"]=req.httpRequest.endpoint.host});add("RESTART","restart",function RESTART(){var err=this.response.error;if(!err||!err.retryable)return;this.httpRequest=new AWS.HttpRequest(this.service.endpoint,this.service.region);if(this.response.retryCount=60*10){this.emit("sign",[this],function(err){if(err)done(err);else executeSend()})}else{executeSend()}});add("HTTP_HEADERS","httpHeaders",function HTTP_HEADERS(statusCode,headers,resp){resp.httpResponse.statusCode=statusCode;resp.httpResponse.headers=headers;resp.httpResponse.body=new AWS.util.Buffer("");resp.httpResponse.buffers=[];resp.httpResponse.numBytes=0});add("HTTP_DATA","httpData",function HTTP_DATA(chunk,resp){if(chunk){if(AWS.util.isNode()){resp.httpResponse.numBytes+=chunk.length;var total=resp.httpResponse.headers["content-length"];var progress={loaded:resp.httpResponse.numBytes,total:total};resp.request.emit("httpDownloadProgress",[progress,resp])}resp.httpResponse.buffers.push(new AWS.util.Buffer(chunk))}});add("HTTP_DONE","httpDone",function HTTP_DONE(resp){if(resp.httpResponse.buffers&&resp.httpResponse.buffers.length>0){var body=AWS.util.buffer.concat(resp.httpResponse.buffers);resp.httpResponse.body=body}delete resp.httpResponse.numBytes;delete resp.httpResponse.buffers});add("FINALIZE_ERROR","retry",function FINALIZE_ERROR(resp){if(resp.httpResponse.statusCode){resp.error.statusCode=resp.httpResponse.statusCode;if(resp.error.retryable===undefined){resp.error.retryable=this.service.retryableError(resp.error,this)}}});add("INVALIDATE_CREDENTIALS","retry",function INVALIDATE_CREDENTIALS(resp){if(!resp.error)return;switch(resp.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":resp.error.retryable=true;resp.request.service.config.credentials.expired=true}});add("EXPIRED_SIGNATURE","retry",function EXPIRED_SIGNATURE(resp){var err=resp.error;if(!err)return;if(typeof err.code==="string"&&typeof err.message==="string"){if(err.code.match(/Signature/)&&err.message.match(/expired/)){resp.error.retryable=true}}});add("REDIRECT","retry",function REDIRECT(resp){if(resp.error&&resp.error.statusCode>=300&&resp.error.statusCode<400&&resp.httpResponse.headers["location"]){this.httpRequest.endpoint=new AWS.Endpoint(resp.httpResponse.headers["location"]);this.httpRequest.headers["Host"]=this.httpRequest.endpoint.host;resp.error.redirect=true;resp.error.retryable=true}});add("RETRY_CHECK","retry",function RETRY_CHECK(resp){if(resp.error){if(resp.error.redirect&&resp.redirectCount=this.HEADERS_RECEIVED&&!headersEmitted){try{xhr.responseType="arraybuffer"}catch(e){}emitter.statusCode=xhr.status;emitter.headers=self.parseHeaders(xhr.getAllResponseHeaders());emitter.emit("headers",emitter.statusCode,emitter.headers);headersEmitted=true}if(this.readyState===this.DONE){self.finishRequest(xhr,emitter)}},false);xhr.upload.addEventListener("progress",function(evt){emitter.emit("sendProgress",evt)});xhr.addEventListener("progress",function(evt){emitter.emit("receiveProgress",evt)},false);xhr.addEventListener("timeout",function(){errCallback(AWS.util.error(new Error("Timeout"),{code:"TimeoutError"}))},false);xhr.addEventListener("error",function(){errCallback(AWS.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},false);callback(emitter);xhr.open(httpRequest.method,href,httpOptions.xhrAsync!==false);AWS.util.each(httpRequest.headers,function(key,value){if(key!=="Content-Length"&&key!=="User-Agent"&&key!=="Host"){xhr.setRequestHeader(key,value)}});if(httpOptions.timeout&&httpOptions.xhrAsync!==false){xhr.timeout=httpOptions.timeout}if(httpOptions.xhrWithCredentials){xhr.withCredentials=true}try{xhr.send(httpRequest.body)}catch(err){if(httpRequest.body&&typeof httpRequest.body.buffer==="object"){xhr.send(httpRequest.body.buffer)}else{throw err}}return emitter},parseHeaders:function parseHeaders(rawHeaders){var headers={};AWS.util.arrayEach(rawHeaders.split(/\r?\n/),function(line){var key=line.split(":",1)[0];var value=line.substring(key.length+2);if(key.length>0)headers[key.toLowerCase()]=value});return headers},finishRequest:function finishRequest(xhr,emitter){var buffer;if(xhr.responseType==="arraybuffer"&&xhr.response){var ab=xhr.response;buffer=new AWS.util.Buffer(ab.byteLength);var view=new Uint8Array(ab);for(var i=0;i1){var msg=this.errors.join("\n* ");if(this.errors.length>1){msg="There were "+this.errors.length+" validation errors:\n* "+msg;throw AWS.util.error(new Error(msg),{code:"MultipleValidationErrors",errors:this.errors})}}else if(this.errors.length===1){throw this.errors[0]}else{return true}},validateStructure:function validateStructure(shape,params,context){this.validateType(context,params,["object"],"structure");var paramName;for(var i=0;shape.required&&i0){var e=JSON.parse(httpResponse.body.toString());if(e.__type||e.code){error.code=(e.__type||e.code).split("#").pop()}if(error.code==="RequestEntityTooLarge"){error.message="Request body must be less than 1 MB"}else{error.message=e.message||e.Message||null}}else{error.statusCode=httpResponse.statusCode;error.message=httpResponse.statusCode.toString()}resp.error=util.error(new Error,error)}function extractData(resp){var body=resp.httpResponse.body.toString()||"{}";if(resp.request.service.config.convertResponseTypes===false){resp.data=JSON.parse(body)}else{var operation=resp.request.service.api.operations[resp.request.operation];var shape=operation.output||{};var parser=new JsonParser;resp.data=parser.parse(body,shape)}}module.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/protocol/json.js","/node_modules/deep-security/node_modules/aws-sdk/lib/protocol")},{"../json/builder":157,"../json/parser":158,"../util":195,_process:379,buffer:230}],167:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");var util=require("../util");var QueryParamSerializer=require("../query/query_param_serializer");var Shape=require("../model/shape");function buildRequest(req){var operation=req.service.api.operations[req.operation];var httpRequest=req.httpRequest;httpRequest.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8";httpRequest.params={Version:req.service.api.apiVersion,Action:operation.name};var builder=new QueryParamSerializer;builder.serialize(req.params,operation.input,function(name,value){httpRequest.params[name]=value});httpRequest.body=util.queryParamsToString(httpRequest.params)}function extractError(resp){var data,body=resp.httpResponse.body.toString();if(body.match("=0?"&":"?";var parts=[];util.arrayEach(Object.keys(queryString).sort(),function(key){if(!Array.isArray(queryString[key])){queryString[key]=[queryString[key]]}for(var i=0;i0){parser=new AWS.XML.Parser;var data=parser.parse(body.toString(),output);util.update(resp.data,data)}}module.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/protocol/rest_xml.js","/node_modules/deep-security/node_modules/aws-sdk/lib/protocol")},{"../core":147,"../util":195,"./rest":168,_process:379,buffer:230}],171:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var util=require("../util");function QueryParamSerializer(){}QueryParamSerializer.prototype.serialize=function(params,shape,fn){serializeStructure("",params,shape,fn)};function ucfirst(shape){if(shape.isQueryName||shape.api.protocol!=="ec2"){return shape.name}else{return shape.name[0].toUpperCase()+shape.name.substr(1)}}function serializeStructure(prefix,struct,rules,fn){util.each(rules.members,function(name,member){var value=struct[name];if(value===null||value===undefined)return;var memberName=ucfirst(member);memberName=prefix?prefix+"."+memberName:memberName;serializeMember(memberName,value,member,fn)})}function serializeMap(name,map,rules,fn){var i=1;util.each(map,function(key,value){var prefix=rules.flattened?".":".entry.";var position=prefix+i++ +".";var keyName=position+(rules.key.name||"key");var valueName=position+(rules.value.name||"value");serializeMember(name+keyName,key,rules.key,fn);serializeMember(name+valueName,value,rules.value,fn)})}function serializeList(name,list,rules,fn){var memberRules=rules.member||{};if(list.length===0){fn.call(this,name,null);return}util.arrayEach(list,function(v,n){var suffix="."+(n+1);if(rules.api.protocol==="ec2"){suffix=suffix+""}else if(rules.flattened){if(memberRules.name){var parts=name.split(".");parts.pop();parts.push(ucfirst(memberRules));name=parts.join(".")}}else{suffix=".member"+suffix}serializeMember(name+suffix,v,memberRules,fn)})}function serializeMember(name,value,rules,fn){if(value===null||value===undefined)return;if(rules.type==="structure"){serializeStructure(name,value,rules,fn)}else if(rules.type==="list"){serializeList(name,value,rules,fn)}else if(rules.type==="map"){serializeMap(name,value,rules,fn)}else{fn(name,rules.toWireFormat(value).toString())}}module.exports=QueryParamSerializer}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/query/query_param_serializer.js","/node_modules/deep-security/node_modules/aws-sdk/lib/query")},{"../util":195,_process:379,buffer:230}],172:[function(require,module,exports){arguments[4][91][0].apply(exports,arguments)},{dup:91}],173:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var util=require("./util");var regionConfig=require("./region_config.json");function generateRegionPrefix(region){if(!region)return null;var parts=region.split("-");if(parts.length<3)return null;return parts.slice(0,parts.length-2).join("-")+"-*"}function derivedKeys(service){var region=service.config.region;var regionPrefix=generateRegionPrefix(region);var endpointPrefix=service.api.endpointPrefix;return[[region,endpointPrefix],[regionPrefix,endpointPrefix],[region,"*"],[regionPrefix,"*"],["*",endpointPrefix],["*","*"]].map(function(item){return item[0]&&item[1]?item.join("/"):null})}function applyConfig(service,config){util.each(config,function(key,value){if(key==="globalEndpoint")return;if(service.config[key]===undefined||service.config[key]===null){service.config[key]=value}})}function configureEndpoint(service){var keys=derivedKeys(service);for(var i=0;i=0){return null}if(this.expectedValue){return r===this.expectedValue}else{return r?true:false}},checkError:function checkError(resp){var value=this.config.successValue;if(typeof value==="number"){return resp.httpResponse.statusCode===value}else{return resp.error&&resp.error.code===value}},loadWaiterConfig:function loadWaiterConfig(state,noException){if(!this.service.api.waiters[state]){if(noException)return;throw new AWS.util.error(new Error,{code:"StateNotFoundError",message:"State "+state+" not found."})}this.config=this.service.api.waiters[state];var config=this.config;(function(){config.successType=config.successType||config.acceptorType;config.successPath=config.successPath||config.acceptorPath;config.successValue=config.successValue||config.acceptorValue;config.failureType=config.failureType||config.acceptorType;config.failurePath=config.failurePath||config.acceptorPath;config.failureValue=config.failureValue||config.acceptorValue})()}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/resource_waiter.js","/node_modules/deep-security/node_modules/aws-sdk/lib")},{"./core":147,_process:379,buffer:230}],176:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("./core");var inherit=AWS.util.inherit;AWS.Response=inherit({constructor:function Response(request){this.request=request;this.data=null;this.error=null;this.retryCount=0;this.redirectCount=0;this.httpResponse=new AWS.HttpResponse;if(request){this.maxRetries=request.service.numRetries();this.maxRedirects=request.service.config.maxRedirects}},nextPage:function nextPage(callback){var config;var service=this.request.service;var operation=this.request.operation;try{config=service.paginationConfig(operation,true)}catch(e){this.error=e}if(!this.hasNextPage()){if(callback)callback(this.error,null);else if(this.error)throw this.error;return null}var params=AWS.util.copy(this.request.params);if(!this.nextPageTokens){return callback?callback(null,null):null}else{var inputTokens=config.inputToken;if(typeof inputTokens==="string")inputTokens=[inputTokens];for(var i=0;iself.partSize)self.partSize=newPartSize}else{self.totalBytes=undefined}},isDoneChunking:false,partPos:0,totalChunkedBytes:0,totalUploadedBytes:0,totalBytes:undefined,numParts:0,totalPartNumbers:0,activeParts:0,doneParts:0,parts:null,completeInfo:null,failed:false,multipartReq:null,partBuffers:null,partBufferLength:0,fillBuffer:function fillBuffer(){var self=this;var bodyLen=byteLength(self.body);if(bodyLen===0){self.isDoneChunking=true;self.numParts=1;self.nextChunk(self.body);return}while(self.activeParts=self.queueSize)return;var buf=self.body.read(self.partSize-self.partBufferLength)||self.body.read();if(buf){self.partBuffers.push(buf);self.partBufferLength+=buf.length;self.totalChunkedBytes+=buf.length}if(self.partBufferLength>=self.partSize){var pbuf=Buffer.concat(self.partBuffers);self.partBuffers=[];self.partBufferLength=0;if(pbuf.length>self.partSize){var rest=pbuf.slice(self.partSize);self.partBuffers.push(rest);self.partBufferLength+=rest.length;pbuf=pbuf.slice(0,self.partSize)}self.nextChunk(pbuf)}if(self.isDoneChunking&&!self.isDoneSending){pbuf=Buffer.concat(self.partBuffers);self.partBuffers=[];self.partBufferLength=0;self.totalBytes=self.totalChunkedBytes;self.isDoneSending=true;if(self.numParts===0||pbuf.length>0){self.numParts++;self.nextChunk(pbuf)}}self.body.read(0)},nextChunk:function nextChunk(chunk){var self=this;if(self.failed)return null;var partNumber=++self.totalPartNumbers;if(self.isDoneChunking&&partNumber===1){var req=self.service.putObject({Body:chunk});req._managedUpload=self;req.on("httpUploadProgress",self.progress).send(self.finishSinglePart);return null}self.activeParts++;if(!self.service.config.params.UploadId){if(!self.multipartReq){self.multipartReq=self.service.createMultipartUpload();self.multipartReq.on("success",function(resp){self.service.config.params.UploadId=resp.data.UploadId;self.multipartReq=null});self.queueChunks(chunk,partNumber);self.multipartReq.on("error",function(err){self.cleanup(err)});self.multipartReq.send()}else{self.queueChunks(chunk,partNumber)}}else{self.uploadPart(chunk,partNumber)}},uploadPart:function uploadPart(chunk,partNumber){var self=this;var partParams={Body:chunk,ContentLength:AWS.util.string.byteLength(chunk),PartNumber:partNumber};var partInfo={ETag:null,PartNumber:partNumber};self.completeInfo.push(partInfo);var req=self.service.uploadPart(partParams);self.parts[partNumber]=req;req._lastUploadedBytes=0;req._managedUpload=self;req.on("httpUploadProgress",self.progress);req.send(function(err,data){delete self.parts[partParams.PartNumber];self.activeParts--;if(!err&&(!data||!data.ETag)){var message="No access to ETag property on response.";if(AWS.util.isBrowser()){message+=" Check CORS configuration to expose ETag header."}err=AWS.util.error(new Error(message),{code:"ETagMissing",retryable:false})}if(err)return self.cleanup(err);partInfo.ETag=data.ETag;self.doneParts++;if(self.isDoneChunking&&self.doneParts===self.numParts){self.finishMultiPart()}else{self.fillQueue.call(self)}})},queueChunks:function queueChunks(chunk,partNumber){var self=this;self.multipartReq.on("success",function(){self.uploadPart(chunk,partNumber)})},cleanup:function cleanup(err){var self=this;if(self.failed)return;if(typeof self.body.removeAllListeners==="function"&&typeof self.body.resume==="function"){self.body.removeAllListeners("readable");self.body.removeAllListeners("end");self.body.resume()}if(self.service.config.params.UploadId&&!self.leavePartsOnError){self.service.abortMultipartUpload().send()}AWS.util.each(self.parts,function(partNumber,part){part.removeAllListeners("complete");part.abort()});self.parts={};self.callback(err);self.failed=true},finishMultiPart:function finishMultiPart(){var self=this;var completeParams={MultipartUpload:{Parts:self.completeInfo}};self.service.completeMultipartUpload(completeParams,function(err,data){if(err)return self.cleanup(err);else self.callback(err,data)})},finishSinglePart:function finishSinglePart(err,data){var upload=this.request._managedUpload;var httpReq=this.request.httpRequest;var url=AWS.util.urlFormat(httpReq.endpoint);if(err)return upload.callback(err);data.Location=url.substr(0,url.length-1)+httpReq.path;upload.callback(err,data)},progress:function progress(info){var upload=this._managedUpload;if(this.operation==="putObject"){info.part=1}else{upload.totalUploadedBytes+=info.loaded-this._lastUploadedBytes;this._lastUploadedBytes=info.loaded;info={loaded:upload.totalUploadedBytes,total:upload.totalBytes,part:this.params.PartNumber}}upload.emit("httpUploadProgress",[info])}});AWS.util.mixin(AWS.S3.ManagedUpload,AWS.SequentialExecutor);module.exports=AWS.S3.ManagedUpload}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/s3/managed_upload.js","/node_modules/deep-security/node_modules/aws-sdk/lib/s3")},{"../core":147,_process:379,buffer:230}],178:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("./core");AWS.SequentialExecutor=AWS.util.inherit({constructor:function SequentialExecutor(){this._events={}},listeners:function listeners(eventName){return this._events[eventName]?this._events[eventName].slice(0):[]},on:function on(eventName,listener){if(this._events[eventName]){this._events[eventName].push(listener)}else{this._events[eventName]=[listener]}return this},onAsync:function onAsync(eventName,listener){listener._isAsync=true;return this.on(eventName,listener)},removeListener:function removeListener(eventName,listener){var listeners=this._events[eventName];if(listeners){var length=listeners.length;var position=-1;for(var i=0;i-1){listeners.splice(position,1)}}return this},removeAllListeners:function removeAllListeners(eventName){if(eventName){delete this._events[eventName]}else{this._events={}}return this},emit:function emit(eventName,eventArgs,doneCallback){if(!doneCallback)doneCallback=function(){};var listeners=this.listeners(eventName);var count=listeners.length;this.callListeners(listeners,eventArgs,doneCallback);return count>0},callListeners:function callListeners(listeners,args,doneCallback,prevError){var self=this;var error=prevError||null;function callNextListener(err){if(err){error=AWS.util.error(error||new Error,err);if(self._haltHandlersOnError){return doneCallback.call(self,error)}}self.callListeners(listeners,args,doneCallback,error)}while(listeners.length>0){var listener=listeners.shift();if(listener._isAsync){listener.apply(self,args.concat([callNextListener]));return}else{try{listener.apply(self,args)}catch(err){error=AWS.util.error(error||new Error,err)}if(error&&self._haltHandlersOnError){doneCallback.call(self,error);return}}}doneCallback.call(self,error)},addListeners:function addListeners(listeners){var self=this;if(listeners._events)listeners=listeners._events;AWS.util.each(listeners,function(event,callbacks){if(typeof callbacks==="function")callbacks=[callbacks];AWS.util.arrayEach(callbacks,function(callback){self.on(event,callback)})});return self},addNamedListener:function addNamedListener(name,eventName,callback){this[name]=callback;this.addListener(eventName,callback);return this},addNamedAsyncListener:function addNamedAsyncListener(name,eventName,callback){callback._isAsync=true;return this.addNamedListener(name,eventName,callback)},addNamedListeners:function addNamedListeners(callback){var self=this;callback(function(){self.addNamedListener.apply(self,arguments)},function(){self.addNamedAsyncListener.apply(self,arguments)});return this}});AWS.SequentialExecutor.prototype.addListener=AWS.SequentialExecutor.prototype.on;module.exports=AWS.SequentialExecutor}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/sequential_executor.js","/node_modules/deep-security/node_modules/aws-sdk/lib")},{"./core":147,_process:379,buffer:230}],179:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("./core");var Api=require("./model/api");var regionConfig=require("./region_config");var inherit=AWS.util.inherit;AWS.Service=inherit({constructor:function Service(config){if(!this.loadServiceClass){throw AWS.util.error(new Error,"Service must be constructed with `new' operator")}var ServiceClass=this.loadServiceClass(config||{});if(ServiceClass)return new ServiceClass(config);this.initialize(config)},initialize:function initialize(config){var svcConfig=AWS.config[this.serviceIdentifier];this.config=new AWS.Config(AWS.config);if(svcConfig)this.config.update(svcConfig,true);if(config)this.config.update(config,true);this.validateService();if(!this.config.endpoint)regionConfig(this);this.config.endpoint=this.endpointFromTemplate(this.config.endpoint);this.setEndpoint(this.config.endpoint)},validateService:function validateService(){},loadServiceClass:function loadServiceClass(serviceConfig){var config=serviceConfig;if(!AWS.util.isEmpty(this.api)){return null}else if(config.apiConfig){return AWS.Service.defineServiceApi(this.constructor,config.apiConfig)}else if(!this.constructor.services){return null}else{config=new AWS.Config(AWS.config);config.update(serviceConfig,true);var version=config.apiVersions[this.constructor.serviceIdentifier];version=version||config.apiVersion;return this.getLatestServiceClass(version)}},getLatestServiceClass:function getLatestServiceClass(version){version=this.getLatestServiceVersion(version);if(this.constructor.services[version]===null){AWS.Service.defineServiceApi(this.constructor,version)}return this.constructor.services[version]},getLatestServiceVersion:function getLatestServiceVersion(version){if(!this.constructor.services||this.constructor.services.length===0){throw new Error("No services defined on "+this.constructor.serviceIdentifier)}if(!version){version="latest"}else if(AWS.util.isType(version,Date)){version=AWS.util.date.iso8601(version).split("T")[0]}if(Object.hasOwnProperty(this.constructor.services,version)){return version}var keys=Object.keys(this.constructor.services).sort();var selectedVersion=null;for(var i=keys.length-1;i>=0;i--){if(keys[i][keys[i].length-1]!=="*"){selectedVersion=keys[i]}if(keys[i].substr(0,10)<=version){return selectedVersion}}throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+version+"'")},api:{},defaultRetryCount:3,makeRequest:function makeRequest(operation,params,callback){if(typeof params==="function"){callback=params;params=null}params=params||{};if(this.config.params){var rules=this.api.operations[operation];if(rules){params=AWS.util.copy(params);AWS.util.each(this.config.params,function(key,value){if(rules.input.members[key]){if(params[key]===undefined||params[key]===null){params[key]=value}}})}}var request=new AWS.Request(this,operation,params);this.addAllRequestListeners(request);if(callback)request.send(callback);return request},makeUnauthenticatedRequest:function makeUnauthenticatedRequest(operation,params,callback){if(typeof params==="function"){callback=params;params={}}var request=this.makeRequest(operation,params).toUnauthenticated();return callback?request.send(callback):request},waitFor:function waitFor(state,params,callback){var waiter=new AWS.ResourceWaiter(this,state);return waiter.wait(params,callback)},addAllRequestListeners:function addAllRequestListeners(request){var list=[AWS.events,AWS.EventListeners.Core,this.serviceInterface(),AWS.EventListeners.CorePost];for(var i=0;i=500)return true;return false},networkingError:function networkingError(error){return error.code==="NetworkingError"},expiredCredentialsError:function expiredCredentialsError(error){return error.code==="ExpiredTokenException"},throttledError:function throttledError(error){switch(error.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":return true;default:return false}},endpointFromTemplate:function endpointFromTemplate(endpoint){if(typeof endpoint!=="string")return endpoint;var e=endpoint;e=e.replace(/\{service\}/g,this.api.endpointPrefix);e=e.replace(/\{region\}/g,this.config.region);e=e.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http");return e},setEndpoint:function setEndpoint(endpoint){this.endpoint=new AWS.Endpoint(endpoint,this.config)},paginationConfig:function paginationConfig(operation,throwException){var paginator=this.api.operations[operation].paginator;if(!paginator){if(throwException){var e=new Error;throw AWS.util.error(e,"No pagination configuration for "+operation)}return null}return paginator}});AWS.util.update(AWS.Service,{defineMethods:function defineMethods(svc){AWS.util.each(svc.prototype.api.operations,function iterator(method){if(svc.prototype[method])return;svc.prototype[method]=function(params,callback){return this.makeRequest(method,params,callback)}})},defineService:function defineService(serviceIdentifier,versions,features){AWS.Service._serviceMap[serviceIdentifier]=true;if(!Array.isArray(versions)){features=versions;versions=[]}var svc=inherit(AWS.Service,features||{});if(typeof serviceIdentifier==="string"){AWS.Service.addVersions(svc,versions);var identifier=svc.serviceIdentifier||serviceIdentifier;svc.serviceIdentifier=identifier}else{svc.prototype.api=serviceIdentifier;AWS.Service.defineMethods(svc)}return svc},addVersions:function addVersions(svc,versions){if(!Array.isArray(versions))versions=[versions];svc.services=svc.services||{};for(var i=0;i=1024*1024){req.httpRequest.headers["Expect"]="100-continue"}},addContentType:function addContentType(req){var httpRequest=req.httpRequest;if(httpRequest.method==="GET"||httpRequest.method==="HEAD"){delete httpRequest.headers["Content-Type"];return}if(!httpRequest.headers["Content-Type"]){httpRequest.headers["Content-Type"]="application/octet-stream"}var contentType=httpRequest.headers["Content-Type"];if(AWS.util.isBrowser()){if(typeof httpRequest.body==="string"&&!contentType.match(/;\s*charset=/)){var charset="; charset=UTF-8";httpRequest.headers["Content-Type"]+=charset}else{var replaceFn=function(_,prefix,charsetName){return prefix+charsetName.toUpperCase()};httpRequest.headers["Content-Type"]=contentType.replace(/(;\s*charset=)(.+)$/,replaceFn)}}},computableChecksumOperations:{putBucketCors:true,putBucketLifecycle:true,putBucketTagging:true,deleteObjects:true},willComputeChecksums:function willComputeChecksums(req){if(this.computableChecksumOperations[req.operation])return true;if(!this.config.computeChecksums)return false;if(!AWS.util.Buffer.isBuffer(req.httpRequest.body)&&typeof req.httpRequest.body!=="string"){return false}var rules=req.service.api.operations[req.operation].input.members;if(req.service.getSignerClass(req)===AWS.Signers.V4){if(rules.ContentMD5&&!rules.ContentMD5.required)return false}if(rules.ContentMD5&&!req.params.ContentMD5)return true},computeContentMd5:function computeContentMd5(req){if(req.service.willComputeChecksums(req)){var md5=AWS.util.crypto.md5(req.httpRequest.body,"base64");req.httpRequest.headers["Content-MD5"]=md5}},computeSseCustomerKeyMd5:function computeSseCustomerKeyMd5(req){var keys={SSECustomerKey:"x-amz-server-side-encryption-customer-key-MD5",CopySourceSSECustomerKey:"x-amz-copy-source-server-side-encryption-customer-key-MD5"};AWS.util.each(keys,function(key,header){if(req.params[key]){var value=AWS.util.crypto.md5(req.params[key],"base64");req.httpRequest.headers[header]=value}})},pathStyleBucketName:function pathStyleBucketName(bucketName){if(this.config.s3ForcePathStyle)return true;if(this.config.s3BucketEndpoint)return false;if(this.dnsCompatibleBucketName(bucketName)){return this.config.sslEnabled&&bucketName.match(/\./)?true:false}else{return true}},dnsCompatibleBucketName:function dnsCompatibleBucketName(bucketName){var b=bucketName;var domain=new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/);var ipAddress=new RegExp(/(\d+\.){3}\d+/);var dots=new RegExp(/\.\./);return b.match(domain)&&!b.match(ipAddress)&&!b.match(dots)?true:false},successfulResponse:function successfulResponse(resp){var req=resp.request;var httpResponse=resp.httpResponse;if(req.operation==="completeMultipartUpload"&&httpResponse.body.toString().match("")){return false}else{return httpResponse.statusCode<300}},retryableError:function retryableError(error,request){if(request.operation==="completeMultipartUpload"&&error.statusCode===200){return true}else if(error&&error.code==="RequestTimeout"){return true}else{var _super=AWS.Service.prototype.retryableError;return _super.call(this,error,request)}},extractData:function extractData(resp){var req=resp.request;if(req.operation==="getBucketLocation"){var match=resp.httpResponse.body.toString().match(/>(.+)<\/Location/);delete resp.data["_"];if(match){resp.data.LocationConstraint=match[1]}else{resp.data.LocationConstraint=""}}},extractError:function extractError(resp){var codes={304:"NotModified",403:"Forbidden",400:"BadRequest",404:"NotFound"};var code=resp.httpResponse.statusCode;var body=resp.httpResponse.body||"";if(codes[code]&&body.length===0){resp.error=AWS.util.error(new Error,{code:codes[resp.httpResponse.statusCode],message:null})}else{var data=(new AWS.XML.Parser).parse(body.toString());resp.error=AWS.util.error(new Error,{code:data.Code||code,message:data.Message||null})}},getSignedUrl:function getSignedUrl(operation,params,callback){params=AWS.util.copy(params||{});var expires=params.Expires||900;delete params.Expires;var request=this.makeRequest(operation,params);return request.presign(expires,callback)},prepareSignedUrl:function prepareSignedUrl(request){request.addListener("validate",request.service.noPresignedContentLength);request.removeListener("build",request.service.addContentType);if(!request.params.Body){request.removeListener("build",request.service.computeContentMd5)}else{request.addListener("afterBuild",AWS.EventListeners.Core.COMPUTE_SHA256)}},noPresignedContentLength:function noPresignedContentLength(request){if(request.params.ContentLength!==undefined){throw AWS.util.error(new Error,{code:"UnexpectedParameter",message:"ContentLength is not supported in pre-signed URLs."})}},createBucket:function createBucket(params,callback){if(!params)params={};var hostname=this.endpoint.hostname;if(hostname!==this.api.globalEndpoint&&!params.CreateBucketConfiguration){params.CreateBucketConfiguration={LocationConstraint:this.config.region}}return this.makeRequest("createBucket",params,callback)},upload:function upload(params,options,callback){if(typeof options==="function"&&callback===undefined){callback=options;options=null}options=options||{};options=AWS.util.merge(options||{},{service:this,params:params});var uploader=new AWS.S3.ManagedUpload(options);if(typeof callback==="function")uploader.send(callback);return uploader}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/services/s3.js","/node_modules/deep-security/node_modules/aws-sdk/lib/services")},{"../core":147,"../s3/managed_upload":177,_process:379,buffer:230}],185:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");AWS.util.update(AWS.SQS.prototype,{setupRequestListeners:function setupRequestListeners(request){request.addListener("build",this.buildEndpoint);if(request.service.config.computeChecksums){if(request.operation==="sendMessage"){request.addListener("extractData",this.verifySendMessageChecksum)}else if(request.operation==="sendMessageBatch"){request.addListener("extractData",this.verifySendMessageBatchChecksum)}else if(request.operation==="receiveMessage"){request.addListener("extractData",this.verifyReceiveMessageChecksum)}}},verifySendMessageChecksum:function verifySendMessageChecksum(response){if(!response.data)return;var md5=response.data.MD5OfMessageBody;var body=this.params.MessageBody;var calculatedMd5=this.service.calculateChecksum(body);if(calculatedMd5!==md5){var msg='Got "'+response.data.MD5OfMessageBody+'", expecting "'+calculatedMd5+'".';this.service.throwInvalidChecksumError(response,[response.data.MessageId],msg)}},verifySendMessageBatchChecksum:function verifySendMessageBatchChecksum(response){if(!response.data)return;var service=this.service;var entries={};var errors=[];var messageIds=[];AWS.util.arrayEach(response.data.Successful,function(entry){entries[entry.Id]=entry});AWS.util.arrayEach(this.params.Entries,function(entry){if(entries[entry.Id]){var md5=entries[entry.Id].MD5OfMessageBody;var body=entry.MessageBody;if(!service.isChecksumValid(md5,body)){errors.push(entry.Id);messageIds.push(entries[entry.Id].MessageId)}}});if(errors.length>0){service.throwInvalidChecksumError(response,messageIds,"Invalid messages: "+errors.join(", "))}},verifyReceiveMessageChecksum:function verifyReceiveMessageChecksum(response){if(!response.data)return;var service=this.service;var messageIds=[];AWS.util.arrayEach(response.data.Messages,function(message){var md5=message.MD5OfBody;var body=message.Body;if(!service.isChecksumValid(md5,body)){messageIds.push(message.MessageId)}});if(messageIds.length>0){service.throwInvalidChecksumError(response,messageIds,"Invalid messages: "+messageIds.join(", "))}},throwInvalidChecksumError:function throwInvalidChecksumError(response,ids,message){response.error=AWS.util.error(new Error,{retryable:true,code:"InvalidChecksum",messageIds:ids,message:response.request.operation+" returned an invalid MD5 response. "+message})},isChecksumValid:function isChecksumValid(checksum,data){return this.calculateChecksum(data)===checksum},calculateChecksum:function calculateChecksum(data){return AWS.util.crypto.md5(data,"hex")},buildEndpoint:function buildEndpoint(request){var url=request.httpRequest.params.QueueUrl;if(url){request.httpRequest.endpoint=new AWS.Endpoint(url);var matches=request.httpRequest.endpoint.host.match(/^sqs\.(.+?)\./);if(matches)request.httpRequest.region=matches[1]}}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/services/sqs.js","/node_modules/deep-security/node_modules/aws-sdk/lib/services")},{"../core":147,_process:379,buffer:230}],186:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");AWS.util.update(AWS.STS.prototype,{credentialsFrom:function credentialsFrom(data,credentials){if(!data)return null;if(!credentials)credentials=new AWS.TemporaryCredentials;credentials.expired=false;credentials.accessKeyId=data.Credentials.AccessKeyId;credentials.secretAccessKey=data.Credentials.SecretAccessKey;credentials.sessionToken=data.Credentials.SessionToken;credentials.expireTime=data.Credentials.Expiration;return credentials},assumeRoleWithWebIdentity:function assumeRoleWithWebIdentity(params,callback){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",params,callback)},assumeRoleWithSAML:function assumeRoleWithSAML(params,callback){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",params,callback)}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/services/sts.js","/node_modules/deep-security/node_modules/aws-sdk/lib/services")},{"../core":147,_process:379,buffer:230}],187:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");var inherit=AWS.util.inherit;var expiresHeader="presigned-expires";function signedUrlBuilder(request){var expires=request.httpRequest.headers[expiresHeader];delete request.httpRequest.headers["User-Agent"];delete request.httpRequest.headers["X-Amz-User-Agent"];if(request.service.getSignerClass()===AWS.Signers.V4){if(expires>604800){var message="Presigning does not support expiry time greater "+"than a week with SigV4 signing.";throw AWS.util.error(new Error,{code:"InvalidExpiryTime",message:message,retryable:false})}request.httpRequest.headers[expiresHeader]=expires}else if(request.service.getSignerClass()===AWS.Signers.S3){request.httpRequest.headers[expiresHeader]=parseInt(AWS.util.date.unixTimestamp()+expires,10).toString()}else{throw AWS.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:false})}}function signedUrlSigner(request){var endpoint=request.httpRequest.endpoint;var parsedUrl=AWS.util.urlParse(request.httpRequest.path);var queryParams={};if(parsedUrl.search){queryParams=AWS.util.queryStringParse(parsedUrl.search.substr(1))}AWS.util.each(request.httpRequest.headers,function(key,value){if(key===expiresHeader)key="Expires";queryParams[key]=value});delete request.httpRequest.headers[expiresHeader];var auth=queryParams["Authorization"].split(" ");if(auth[0]==="AWS"){auth=auth[1].split(":");queryParams["AWSAccessKeyId"]=auth[0];queryParams["Signature"]=auth[1]}else if(auth[0]==="AWS4-HMAC-SHA256"){auth.shift();var rest=auth.join(" ");var signature=rest.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];queryParams["X-Amz-Signature"]=signature;delete queryParams["Expires"]}delete queryParams["Authorization"];delete queryParams["Host"];endpoint.pathname=parsedUrl.pathname;endpoint.search=AWS.util.queryParamsToString(queryParams)}AWS.Signers.Presign=inherit({sign:function sign(request,expireTime,callback){request.httpRequest.headers[expiresHeader]=expireTime||3600;request.on("build",signedUrlBuilder);request.on("sign",signedUrlSigner);request.removeListener("afterBuild",AWS.EventListeners.Core.SET_CONTENT_LENGTH);request.removeListener("afterBuild",AWS.EventListeners.Core.COMPUTE_SHA256);request.emit("beforePresign",[request]);if(callback){request.build(function(){if(this.response.error)callback(this.response.error);else{callback(null,AWS.util.urlFormat(request.httpRequest.endpoint))}})}else{request.build();if(request.response.error)throw request.response.error;return AWS.util.urlFormat(request.httpRequest.endpoint)}}});module.exports=AWS.Signers.Presign}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/signers/presign.js","/node_modules/deep-security/node_modules/aws-sdk/lib/signers")},{"../core":147,_process:379,buffer:230}],188:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");var inherit=AWS.util.inherit;AWS.Signers.RequestSigner=inherit({constructor:function RequestSigner(request){this.request=request}});AWS.Signers.RequestSigner.getVersion=function getVersion(version){switch(version){case"v2":return AWS.Signers.V2;case"v3":return AWS.Signers.V3;case"v4":return AWS.Signers.V4;case"s3":return AWS.Signers.S3;case"v3https":return AWS.Signers.V3Https}throw new Error("Unknown signing version "+version)};require("./v2");require("./v3");require("./v3https");require("./v4");require("./s3");require("./presign")}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/signers/request_signer.js","/node_modules/deep-security/node_modules/aws-sdk/lib/signers")},{"../core":147,"./presign":187,"./s3":189,"./v2":190,"./v3":191,"./v3https":192,"./v4":193,_process:379,buffer:230}],189:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("../core");var inherit=AWS.util.inherit;AWS.Signers.S3=inherit(AWS.Signers.RequestSigner,{subResources:{acl:1,cors:1,lifecycle:1,"delete":1,location:1,logging:1,notification:1,partNumber:1,policy:1,requestPayment:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function addAuthorization(credentials,date){if(!this.request.headers["presigned-expires"]){this.request.headers["X-Amz-Date"]=AWS.util.date.rfc822(date)}if(credentials.sessionToken){this.request.headers["x-amz-security-token"]=credentials.sessionToken}var signature=this.sign(credentials.secretAccessKey,this.stringToSign());var auth="AWS "+credentials.accessKeyId+":"+signature;this.request.headers["Authorization"]=auth},stringToSign:function stringToSign(){var r=this.request;var parts=[];parts.push(r.method);parts.push(r.headers["Content-MD5"]||"");parts.push(r.headers["Content-Type"]||"");parts.push(r.headers["presigned-expires"]||"");var headers=this.canonicalizedAmzHeaders();if(headers)parts.push(headers);parts.push(this.canonicalizedResource());return parts.join("\n")},canonicalizedAmzHeaders:function canonicalizedAmzHeaders(){var amzHeaders=[];AWS.util.each(this.request.headers,function(name){if(name.match(/^x-amz-/i))amzHeaders.push(name)});amzHeaders.sort(function(a,b){return a.toLowerCase()=0?"&":"?";this.request.path+=sep+AWS.util.queryParamsToString(qs)},authorization:function authorization(credentials,datetime){var parts=[];var credString=this.credentialString(datetime);parts.push(this.algorithm+" Credential="+credentials.accessKeyId+"/"+credString);parts.push("SignedHeaders="+this.signedHeaders());parts.push("Signature="+this.signature(credentials,datetime));return parts.join(", ")},signature:function signature(credentials,datetime){var cache=cachedSecret[this.serviceName];var date=datetime.substr(0,8);if(!cache||cache.akid!==credentials.accessKeyId||cache.region!==this.request.region||cache.date!==date){var kSecret=credentials.secretAccessKey;var kDate=AWS.util.crypto.hmac("AWS4"+kSecret,date,"buffer");var kRegion=AWS.util.crypto.hmac(kDate,this.request.region,"buffer");var kService=AWS.util.crypto.hmac(kRegion,this.serviceName,"buffer");var kCredentials=AWS.util.crypto.hmac(kService,"aws4_request","buffer");cachedSecret[this.serviceName]={region:this.request.region,date:date,key:kCredentials,akid:credentials.accessKeyId}}var key=cachedSecret[this.serviceName].key;return AWS.util.crypto.hmac(key,this.stringToSign(datetime),"hex")},stringToSign:function stringToSign(datetime){var parts=[];parts.push("AWS4-HMAC-SHA256");parts.push(datetime);parts.push(this.credentialString(datetime));parts.push(this.hexEncodedHash(this.canonicalString()));return parts.join("\n")},canonicalString:function canonicalString(){var parts=[],pathname=this.request.pathname();if(this.serviceName!=="s3")pathname=AWS.util.uriEscapePath(pathname);parts.push(this.request.method);parts.push(pathname);parts.push(this.request.search());parts.push(this.canonicalHeaders()+"\n");parts.push(this.signedHeaders());parts.push(this.hexEncodedBodyHash());return parts.join("\n")},canonicalHeaders:function canonicalHeaders(){var headers=[];AWS.util.each.call(this,this.request.headers,function(key,item){headers.push([key,item])});headers.sort(function(a,b){return a[0].toLowerCase()=buffer.length)return readable.push(null);var end=pos+size;if(end>buffer.length)end=buffer.length;readable.push(buffer.slice(pos,end));pos=end};return readable},concat:function(buffers){var length=0,offset=0,buffer=null,i;for(i=0;i0){results=objects;return util.abort}});return results},find:function find(expression,data){return util.jamespath.query(expression,data)[0]}},date:{getDate:function getDate(){if(!AWS)AWS=require("./core");if(AWS.config.systemClockOffset){return new Date((new Date).getTime()+AWS.config.systemClockOffset)}else{return new Date}},iso8601:function iso8601(date){if(date===undefined){date=util.date.getDate()}return date.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function rfc822(date){if(date===undefined){date=util.date.getDate()}return date.toUTCString()},unixTimestamp:function unixTimestamp(date){if(date===undefined){date=util.date.getDate()}return date.getTime()/1e3},from:function format(date){if(typeof date==="number"){return new Date(date*1e3)}else{return new Date(date)}},format:function format(date,formatter){if(!formatter)formatter="iso8601";return util.date[formatter](util.date.from(date))},parseTimestamp:function parseTimestamp(value){if(typeof value==="number"){return new Date(value*1e3)}else if(value.match(/^\d+$/)){return new Date(value*1e3)}else if(value.match(/^\d{4}/)){return new Date(value)}else if(value.match(/^\w{3},/)){return new Date(value)}else{throw util.error(new Error("unhandled timestamp format: "+value),{code:"TimestampParserError"})}}},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:function crc32(data){var tbl=util.crypto.crc32Table;var crc=0^-1;if(typeof data==="string"){data=new Buffer(data)}for(var i=0;i>>8^tbl[(crc^code)&255]}return(crc^-1)>>>0},hmac:function hmac(key,string,digest,fn){if(!digest)digest="binary";if(digest==="buffer"){digest=undefined}if(!fn)fn="sha256";if(typeof string==="string")string=new Buffer(string);return cryptoLib.createHmac(fn,key).update(string).digest(digest)},md5:function md5(data,digest,callback){return util.crypto.hash("md5",data,digest,callback)},sha256:function sha256(data,digest,callback){return util.crypto.hash("sha256",data,digest,callback)},hash:function(algorithm,data,digest,callback){var hash=util.crypto.createHash(algorithm);if(!digest){digest="binary"}if(digest==="buffer"){digest=undefined}if(typeof data==="string")data=new Buffer(data);var sliceFn=util.arraySliceFn(data);var isBuffer=Buffer.isBuffer(data);if(callback&&typeof data==="object"&&typeof data.on==="function"&&!isBuffer){data.on("data",function(chunk){hash.update(chunk)});data.on("error",function(err){callback(err)});data.on("end",function(){callback(null,hash.digest(digest))})}else if(callback&&sliceFn&&!isBuffer&&typeof FileReader!=="undefined"){var index=0,size=1024*512;var reader=new FileReader;reader.onerror=function(){callback(new Error("Failed to read data."))};reader.onload=function(){var buf=new Buffer(new Uint8Array(reader.result));hash.update(buf);index+=buf.length;reader._continueReading()};reader._continueReading=function(){if(index>=data.size){callback(null,hash.digest(digest));return}var back=index+size;if(back>data.size)back=data.size;reader.readAsArrayBuffer(sliceFn.call(data,index,back))};reader._continueReading()}else{if(util.isBrowser()&&typeof data==="object"&&!isBuffer){data=new Buffer(new Uint8Array(data))}var out=hash.update(data).digest(digest);if(callback)callback(null,out);return out}},toHex:function toHex(data){var out=[];for(var i=0;i0||noEmpty?xml.root().toString():""};function serialize(xml,value,shape){switch(shape.type){case"structure":return serializeStructure(xml,value,shape);case"map":return serializeMap(xml,value,shape);case"list":return serializeList(xml,value,shape);default:return serializeScalar(xml,value,shape)}}function serializeStructure(xml,params,shape){util.arrayEach(shape.memberNames,function(memberName){var memberShape=shape.members[memberName];if(memberShape.location!=="body")return;var value=params[memberName];var name=memberShape.name;if(value!==undefined&&value!==null){if(memberShape.isXmlAttribute){xml.att(name,value)}else if(memberShape.flattened){serialize(xml,value,memberShape)}else{var element=xml.ele(name);applyNamespaces(element,memberShape);serialize(element,value,memberShape)}}})}function serializeMap(xml,map,shape){var xmlKey=shape.key.name||"key";var xmlValue=shape.value.name||"value";util.each(map,function(key,value){var entry=xml.ele(shape.flattened?shape.name:"entry");serialize(entry.ele(xmlKey),key,shape.key);serialize(entry.ele(xmlValue),value,shape.value)})}function serializeList(xml,list,shape){if(shape.flattened){util.arrayEach(list,function(value){var name=shape.member.name||shape.name;var element=xml.ele(name);serialize(element,value,shape.member)})}else{util.arrayEach(list,function(value){var name=shape.member.name||"member";var element=xml.ele(name);serialize(element,value,shape.member)})}}function serializeScalar(xml,value,shape){xml.txt(shape.toWireFormat(value))}function applyNamespaces(xml,shape){var uri,prefix="xmlns";if(shape.xmlNamespaceUri){uri=shape.xmlNamespaceUri;if(shape.xmlNamespacePrefix)prefix+=":"+shape.xmlNamespacePrefix}else if(xml.isRoot&&shape.api.xmlNamespaceUri){uri=shape.api.xmlNamespaceUri}if(uri)xml.att(prefix,uri)}module.exports=XmlBuilder}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/xml/builder.js","/node_modules/deep-security/node_modules/aws-sdk/lib/xml")},{"../util":195,_process:379,buffer:230,xmlbuilder:200}],198:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){(function(){var XMLBuilder,XMLFragment;XMLFragment=require("./XMLFragment");XMLBuilder=function(){function XMLBuilder(name,xmldec,doctype){var att,child,_ref;this.children=[];this.rootObject=null;if(this.is(name,"Object")){_ref=[name,xmldec],xmldec=_ref[0],doctype=_ref[1];name=null}if(name!=null){name=""+name||"";if(xmldec==null){xmldec={version:"1.0"}}}if(xmldec!=null&&!(xmldec.version!=null)){throw new Error("Version number is required")}if(xmldec!=null){xmldec.version=""+xmldec.version||"";if(!xmldec.version.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+xmldec.version)}att={version:xmldec.version};if(xmldec.encoding!=null){xmldec.encoding=""+xmldec.encoding||"";if(!xmldec.encoding.match(/[A-Za-z](?:[A-Za-z0-9._-]|-)*/)){throw new Error("Invalid encoding: "+xmldec.encoding)}att.encoding=xmldec.encoding}if(xmldec.standalone!=null){att.standalone=xmldec.standalone?"yes":"no"}child=new XMLFragment(this,"?xml",att);this.children.push(child)}if(doctype!=null){att={};if(name!=null){att.name=name}if(doctype.ext!=null){doctype.ext=""+doctype.ext||"";att.ext=doctype.ext}child=new XMLFragment(this,"!DOCTYPE",att);this.children.push(child)}if(name!=null){this.begin(name)}}XMLBuilder.prototype.begin=function(name,xmldec,doctype){var doc,root;if(!(name!=null)){throw new Error("Root element needs a name")}if(this.rootObject){this.children=[];this.rootObject=null}if(xmldec!=null){doc=new XMLBuilder(name,xmldec,doctype);return doc.root()}name=""+name||"";root=new XMLFragment(this,name,{});root.isRoot=true;root.documentObject=this;this.children.push(root);this.rootObject=root;return root};XMLBuilder.prototype.root=function(){return this.rootObject};XMLBuilder.prototype.end=function(options){return toString(options)};XMLBuilder.prototype.toString=function(options){var child,r,_i,_len,_ref;r="";_ref=this.children;for(_i=0,_len=_ref.length;_i<_len;_i++){child=_ref[_i];r+=child.toString(options)}return r};XMLBuilder.prototype.is=function(obj,type){var clas;clas=Object.prototype.toString.call(obj).slice(8,-1);return obj!=null&&clas===type};return XMLBuilder}();module.exports=XMLBuilder}).call(this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/node_modules/xmlbuilder/lib/XMLBuilder.js","/node_modules/deep-security/node_modules/aws-sdk/node_modules/xmlbuilder/lib")},{"./XMLFragment":199,_process:379,buffer:230}],199:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){(function(){var XMLFragment,__hasProp={}.hasOwnProperty;XMLFragment=function(){function XMLFragment(parent,name,attributes,text){this.isRoot=false;this.documentObject=null;this.parent=parent;this.name=name;this.attributes=attributes;this.value=text;this.children=[]}XMLFragment.prototype.element=function(name,attributes,text){var child,key,val,_ref,_ref1;if(!(name!=null)){throw new Error("Missing element name")}name=""+name||"";this.assertLegalChar(name);if(attributes==null){attributes={}}if(this.is(attributes,"String")&&this.is(text,"Object")){_ref=[text,attributes],attributes=_ref[0],text=_ref[1]}else if(this.is(attributes,"String")){_ref1=[{},attributes],attributes=_ref1[0],text=_ref1[1]}for(key in attributes){if(!__hasProp.call(attributes,key))continue;val=attributes[key];val=""+val||"";attributes[key]=this.escape(val)}child=new XMLFragment(this,name,attributes);if(text!=null){text=""+text||"";text=this.escape(text);this.assertLegalChar(text);child.raw(text)}this.children.push(child);return child};XMLFragment.prototype.insertBefore=function(name,attributes,text){var child,i,key,val,_ref,_ref1;if(this.isRoot){throw new Error("Cannot insert elements at root level")}if(!(name!=null)){throw new Error("Missing element name")}name=""+name||"";this.assertLegalChar(name);if(attributes==null){attributes={}}if(this.is(attributes,"String")&&this.is(text,"Object")){_ref=[text,attributes],attributes=_ref[0],text=_ref[1]}else if(this.is(attributes,"String")){_ref1=[{},attributes],attributes=_ref1[0],text=_ref1[1]}for(key in attributes){if(!__hasProp.call(attributes,key))continue;val=attributes[key];val=""+val||"";attributes[key]=this.escape(val)}child=new XMLFragment(this.parent,name,attributes);if(text!=null){text=""+text||"";text=this.escape(text);this.assertLegalChar(text);child.raw(text)}i=this.parent.children.indexOf(this);this.parent.children.splice(i,0,child);return child};XMLFragment.prototype.insertAfter=function(name,attributes,text){var child,i,key,val,_ref,_ref1;if(this.isRoot){throw new Error("Cannot insert elements at root level")}if(!(name!=null)){throw new Error("Missing element name")}name=""+name||"";this.assertLegalChar(name);if(attributes==null){attributes={}}if(this.is(attributes,"String")&&this.is(text,"Object")){_ref=[text,attributes],attributes=_ref[0],text=_ref[1]}else if(this.is(attributes,"String")){_ref1=[{},attributes],attributes=_ref1[0],text=_ref1[1]}for(key in attributes){if(!__hasProp.call(attributes,key))continue;val=attributes[key];val=""+val||"";attributes[key]=this.escape(val)}child=new XMLFragment(this.parent,name,attributes);if(text!=null){text=""+text||"";text=this.escape(text);this.assertLegalChar(text);child.raw(text)}i=this.parent.children.indexOf(this);this.parent.children.splice(i+1,0,child);return child};XMLFragment.prototype.remove=function(){var i,_ref;if(this.isRoot){throw new Error("Cannot remove the root element")}i=this.parent.children.indexOf(this);[].splice.apply(this.parent.children,[i,i-i+1].concat(_ref=[])),_ref;return this.parent};XMLFragment.prototype.text=function(value){var child;if(!(value!=null)){throw new Error("Missing element text")}value=""+value||"";value=this.escape(value);this.assertLegalChar(value);child=new XMLFragment(this,"",{},value);this.children.push(child);return this};XMLFragment.prototype.cdata=function(value){var child;if(!(value!=null)){throw new Error("Missing CDATA text")}value=""+value||"";this.assertLegalChar(value);if(value.match(/]]>/)){throw new Error("Invalid CDATA text: "+value)}child=new XMLFragment(this,"",{},"");this.children.push(child);return this};XMLFragment.prototype.comment=function(value){var child;if(!(value!=null)){throw new Error("Missing comment text")}value=""+value||"";value=this.escape(value);this.assertLegalChar(value);if(value.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+value)}child=new XMLFragment(this,"",{},"");this.children.push(child);return this};XMLFragment.prototype.raw=function(value){var child;if(!(value!=null)){throw new Error("Missing raw text")}value=""+value||"";child=new XMLFragment(this,"",{},value);this.children.push(child);return this};XMLFragment.prototype.up=function(){if(this.isRoot){throw new Error("This node has no parent. Use doc() if you need to get the document object.")}return this.parent};XMLFragment.prototype.root=function(){var child;if(this.isRoot){return this}child=this.parent;while(!child.isRoot){child=child.parent}return child};XMLFragment.prototype.document=function(){return this.root().documentObject};XMLFragment.prototype.end=function(options){return this.document().toString(options)};XMLFragment.prototype.prev=function(){var i;if(this.isRoot){throw new Error("Root node has no siblings")}i=this.parent.children.indexOf(this);if(i<1){throw new Error("Already at the first node")}return this.parent.children[i-1]};XMLFragment.prototype.next=function(){var i;if(this.isRoot){throw new Error("Root node has no siblings")}i=this.parent.children.indexOf(this);if(i===-1||i===this.parent.children.length-1){throw new Error("Already at the last node")}return this.parent.children[i+1]};XMLFragment.prototype.clone=function(deep){var clonedSelf;clonedSelf=new XMLFragment(this.parent,this.name,this.attributes,this.value);if(deep){this.children.forEach(function(child){var clonedChild;clonedChild=child.clone(deep);clonedChild.parent=clonedSelf;return clonedSelf.children.push(clonedChild)})}return clonedSelf};XMLFragment.prototype.importXMLBuilder=function(xmlbuilder){var clonedRoot;clonedRoot=xmlbuilder.root().clone(true);clonedRoot.parent=this;this.children.push(clonedRoot);clonedRoot.isRoot=false;return this};XMLFragment.prototype.attribute=function(name,value){var _ref;if(!(name!=null)){throw new Error("Missing attribute name")}if(!(value!=null)){throw new Error("Missing attribute value")}name=""+name||"";value=""+value||"";if((_ref=this.attributes)==null){this.attributes={}}this.attributes[name]=this.escape(value);return this};XMLFragment.prototype.removeAttribute=function(name){if(!(name!=null)){throw new Error("Missing attribute name")}name=""+name||"";delete this.attributes[name];return this};XMLFragment.prototype.toString=function(options,level){var attName,attValue,child,indent,newline,pretty,r,space,_i,_len,_ref,_ref1;pretty=options!=null&&options.pretty||false;indent=options!=null&&options.indent||" ";newline=options!=null&&options.newline||"\n";level||(level=0);space=new Array(level+1).join(indent);r="";if(pretty){r+=space; +}if(!(this.value!=null)){r+="<"+this.name}else{r+=""+this.value}_ref=this.attributes;for(attName in _ref){attValue=_ref[attName];if(this.name==="!DOCTYPE"){r+=" "+attValue}else{r+=" "+attName+'="'+attValue+'"'}}if(this.children.length===0){if(!(this.value!=null)){r+=this.name==="?xml"?"?>":this.name==="!DOCTYPE"?">":"/>"}if(pretty){r+=newline}}else if(pretty&&this.children.length===1&&this.children[0].value){r+=">";r+=this.children[0].value;r+="";r+=newline}else{r+=">";if(pretty){r+=newline}_ref1=this.children;for(_i=0,_len=_ref1.length;_i<_len;_i++){child=_ref1[_i];r+=child.toString(options,level+1)}if(pretty){r+=space}r+="";if(pretty){r+=newline}}return r};XMLFragment.prototype.escape=function(str){return str.replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")};XMLFragment.prototype.assertLegalChar=function(str){var chars,chr;chars=/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE-\uFFFF]/;chr=str.match(chars);if(chr){throw new Error("Invalid character ("+chr+") in string: "+str)}};XMLFragment.prototype.is=function(obj,type){var clas;clas=Object.prototype.toString.call(obj).slice(8,-1);return obj!=null&&clas===type};XMLFragment.prototype.ele=function(name,attributes,text){return this.element(name,attributes,text)};XMLFragment.prototype.txt=function(value){return this.text(value)};XMLFragment.prototype.dat=function(value){return this.cdata(value)};XMLFragment.prototype.att=function(name,value){return this.attribute(name,value)};XMLFragment.prototype.com=function(value){return this.comment(value)};XMLFragment.prototype.doc=function(){return this.document()};XMLFragment.prototype.e=function(name,attributes,text){return this.element(name,attributes,text)};XMLFragment.prototype.t=function(value){return this.text(value)};XMLFragment.prototype.d=function(value){return this.cdata(value)};XMLFragment.prototype.a=function(name,value){return this.attribute(name,value)};XMLFragment.prototype.c=function(value){return this.comment(value)};XMLFragment.prototype.r=function(value){return this.raw(value)};XMLFragment.prototype.u=function(){return this.up()};return XMLFragment}();module.exports=XMLFragment}).call(this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/node_modules/xmlbuilder/lib/XMLFragment.js","/node_modules/deep-security/node_modules/aws-sdk/node_modules/xmlbuilder/lib")},{_process:379,buffer:230}],200:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){(function(){var XMLBuilder;XMLBuilder=require("./XMLBuilder");module.exports.create=function(name,xmldec,doctype){if(name!=null){return new XMLBuilder(name,xmldec,doctype).root()}else{return new XMLBuilder}}}).call(this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/node_modules/xmlbuilder/lib/index.js","/node_modules/deep-security/node_modules/aws-sdk/node_modules/xmlbuilder/lib")},{"./XMLBuilder":198,_process:379,buffer:230}],201:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _get=function get(_x,_x2,_x3){var _again=true;_function:while(_again){var object=_x,property=_x2,receiver=_x3;desc=parent=getter=undefined;_again=false;if(object===null)object=Function.prototype;var desc=Object.getOwnPropertyDescriptor(object,property);if(desc===undefined){var parent=Object.getPrototypeOf(object);if(parent===null){return undefined}else{_x=parent;_x2=property;_x3=receiver;_again=true;continue _function}}else if("value"in desc){return desc.value}else{var getter=desc.get;if(getter===undefined){return undefined}return getter.call(receiver)}}};function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var _deepCore=require("deep-core");var _deepCore2=_interopRequireDefault(_deepCore);var Exception=function(_Core$Exception$Exception){_inherits(Exception,_Core$Exception$Exception);function Exception(){_classCallCheck(this,Exception);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}_get(Object.getPrototypeOf(Exception.prototype),"constructor",this).apply(this,args)}return Exception}(_deepCore2["default"].Exception.Exception);exports.Exception=Exception}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-validation/lib.compiled/Exception/Exception.js","/node_modules/deep-validation/lib.compiled/Exception")},{_process:379,buffer:230,"deep-core":"deep-core"}],202:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _get=function get(_x,_x2,_x3){var _again=true;_function:while(_again){var object=_x,property=_x2,receiver=_x3;desc=parent=getter=undefined;_again=false;if(object===null)object=Function.prototype;var desc=Object.getOwnPropertyDescriptor(object,property);if(desc===undefined){var parent=Object.getPrototypeOf(object);if(parent===null){return undefined}else{_x=parent;_x2=property;_x3=receiver;_again=true;continue _function}}else if("value"in desc){return desc.value}else{var getter=desc.get;if(getter===undefined){return undefined}return getter.call(receiver)}}};function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var _Exception2=require("./Exception");var InvalidSchemaException=function(_Exception){_inherits(InvalidSchemaException,_Exception);function InvalidSchemaException(model,errorString){_classCallCheck(this,InvalidSchemaException);_get(Object.getPrototypeOf(InvalidSchemaException.prototype),"constructor",this).call(this,"deep-db model "+JSON.stringify(model)+" validation schema fails: "+errorString)}return InvalidSchemaException}(_Exception2.Exception);exports.InvalidSchemaException=InvalidSchemaException}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-validation/lib.compiled/Exception/InvalidSchemaException.js","/node_modules/deep-validation/lib.compiled/Exception")},{"./Exception":201,_process:379,buffer:230}],203:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _get=function get(_x,_x2,_x3){var _again=true;_function:while(_again){var object=_x,property=_x2,receiver=_x3;desc=parent=getter=undefined;_again=false;if(object===null)object=Function.prototype;var desc=Object.getOwnPropertyDescriptor(object,property);if(desc===undefined){var parent=Object.getPrototypeOf(object);if(parent===null){return undefined}else{_x=parent;_x2=property;_x3=receiver;_again=true;continue _function}}else if("value"in desc){return desc.value}else{var getter=desc.get;if(getter===undefined){return undefined}return getter.call(receiver)}}};function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var _Exception2=require("./Exception");var ModelNotFoundException=function(_Exception){_inherits(ModelNotFoundException,_Exception);function ModelNotFoundException(modelName){_classCallCheck(this,ModelNotFoundException);_get(Object.getPrototypeOf(ModelNotFoundException.prototype),"constructor",this).call(this,"Model "+modelName+" was not found")}return ModelNotFoundException}(_Exception2.Exception);exports.ModelNotFoundException=ModelNotFoundException}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-validation/lib.compiled/Exception/ModelNotFoundException.js","/node_modules/deep-validation/lib.compiled/Exception")},{"./Exception":201,_process:379,buffer:230}],204:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _get=function get(_x,_x2,_x3){var _again=true;_function:while(_again){var object=_x,property=_x2,receiver=_x3;desc=parent=getter=undefined;_again=false;if(object===null)object=Function.prototype;var desc=Object.getOwnPropertyDescriptor(object,property);if(desc===undefined){var parent=Object.getPrototypeOf(object);if(parent===null){return undefined}else{_x=parent;_x2=property;_x3=receiver;_again=true;continue _function}}else if("value"in desc){return desc.value}else{var getter=desc.get;if(getter===undefined){return undefined}return getter.call(receiver)}}};function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var _Exception2=require("./Exception");var ObjectValidationFailedException=function(_Exception){_inherits(ObjectValidationFailedException,_Exception);function ObjectValidationFailedException(schemaName,error){_classCallCheck(this,ObjectValidationFailedException);_get(Object.getPrototypeOf(ObjectValidationFailedException.prototype),"constructor",this).call(this,"Object validation failed on schema "+schemaName+": "+error)}return ObjectValidationFailedException}(_Exception2.Exception);exports.ObjectValidationFailedException=ObjectValidationFailedException}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-validation/lib.compiled/Exception/ObjectValidationFailedException.js","/node_modules/deep-validation/lib.compiled/Exception")},{"./Exception":201,_process:379,buffer:230}],205:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i=0,key+" should be one of "+values.join(", "))}}};module.exports=internals.Any=function(){Cast=Cast||require("./cast");this.isJoi=true;this._type="any";this._settings=null;this._valids=new internals.Set;this._invalids=new internals.Set;this._tests=[];this._refs=[];this._flags={};this._description=null;this._unit=null;this._notes=[];this._tags=[];this._examples=[];this._meta=[];this._inner={}};internals.Any.prototype.isImmutable=true;internals.Any.prototype.clone=function(){var obj=Object.create(Object.getPrototypeOf(this));obj.isJoi=true;obj._type=this._type;obj._settings=internals.concatSettings(this._settings);obj._valids=Hoek.clone(this._valids);obj._invalids=Hoek.clone(this._invalids);obj._tests=this._tests.slice();obj._refs=this._refs.slice();obj._flags=Hoek.clone(this._flags);obj._description=this._description;obj._unit=this._unit;obj._notes=this._notes.slice();obj._tags=this._tags.slice();obj._examples=this._examples.slice();obj._meta=this._meta.slice();obj._inner={};var inners=Object.keys(this._inner);for(var i=0,il=inners.length;i=0){target[keys[sourceKey]]={key:sourceKey,schema:target[keys[sourceKey]].schema.concat(source[k].schema)}}else{target.push(source[k])}}}else{obj._inner[key]=obj._inner[key].concat(source)}}else{obj._inner[key]=source.slice(); +}}}return obj};internals.Any.prototype._test=function(name,arg,func){Hoek.assert(!this._flags.allowOnly,"Cannot define rules when valid values specified");var obj=this.clone();obj._tests.push({func:func,name:name,arg:arg});return obj};internals.Any.prototype.options=function(options){Hoek.assert(!options.context,"Cannot override context");internals.checkOptions(options);var obj=this.clone();obj._settings=internals.concatSettings(obj._settings,options);return obj};internals.Any.prototype.strict=function(isStrict){var obj=this.clone();obj._settings=obj._settings||{};obj._settings.convert=isStrict===undefined?false:!isStrict;return obj};internals.Any.prototype.raw=function(isRaw){var obj=this.clone();obj._settings=obj._settings||{};obj._settings.raw=isRaw===undefined?true:isRaw;return obj};internals.Any.prototype._allow=function(){var values=Hoek.flatten(Array.prototype.slice.call(arguments));for(var i=0,il=values.length;i0,"description must be provided when default value is a function")}}var obj=this.clone();obj._flags.default=value;Ref.push(obj._refs,value);return obj};internals.Any.prototype.empty=function(schema){var obj;if(schema===undefined){obj=this.clone();obj._flags.empty=undefined}else{schema=Cast.schema(schema);obj=this.clone();obj._flags.empty=schema}return obj};internals.Any.prototype.when=function(ref,options){Hoek.assert(options&&typeof options==="object","Invalid options");Hoek.assert(options.then!==undefined||options.otherwise!==undefined,'options must have at least one of "then" or "otherwise"');var then=options.then?this.concat(Cast.schema(options.then)):this;var otherwise=options.otherwise?this.concat(Cast.schema(options.otherwise)):this;Alternatives=Alternatives||require("./alternatives");var obj=Alternatives.when(ref,{is:options.is,then:then,otherwise:otherwise});obj._flags.presence="ignore";return obj};internals.Any.prototype.description=function(desc){Hoek.assert(desc&&typeof desc==="string","Description must be a non-empty string");var obj=this.clone();obj._description=desc;return obj};internals.Any.prototype.notes=function(notes){Hoek.assert(notes&&(typeof notes==="string"||Array.isArray(notes)),"Notes must be a non-empty string or array");var obj=this.clone();obj._notes=obj._notes.concat(notes);return obj};internals.Any.prototype.tags=function(tags){Hoek.assert(tags&&(typeof tags==="string"||Array.isArray(tags)),"Tags must be a non-empty string or array");var obj=this.clone();obj._tags=obj._tags.concat(tags);return obj};internals.Any.prototype.meta=function(meta){Hoek.assert(meta!==undefined,"Meta cannot be undefined");var obj=this.clone();obj._meta=obj._meta.concat(meta);return obj};internals.Any.prototype.example=function(value){Hoek.assert(arguments.length,"Missing example");var result=this._validate(value,null,internals.defaults);Hoek.assert(!result.errors,"Bad example:",result.errors&&Errors.process(result.errors,value));var obj=this.clone();obj._examples=obj._examples.concat(value);return obj};internals.Any.prototype.unit=function(name){Hoek.assert(name&&typeof name==="string","Unit name must be a non-empty string");var obj=this.clone();obj._unit=name;return obj};internals._try=function(fn,arg){var err;var result;try{result=fn.call(null,arg)}catch(e){err=e}return{value:result,error:err}};internals.Any.prototype._validate=function(value,state,options,reference){var self=this;var originalValue=value;state=state||{key:"",path:"",parent:null,reference:reference};if(this._settings){options=internals.concatSettings(options,this._settings)}var errors=[];var finish=function(){var finalValue;if(!self._flags.strip){if(value!==undefined){finalValue=options.raw?originalValue:value}else if(options.noDefaults){finalValue=originalValue}else if(Ref.isRef(self._flags.default)){finalValue=self._flags.default(state.parent,options)}else if(typeof self._flags.default==="function"&&!(self._type==="func"&&!self._flags.default.description)){var arg;if(state.parent!==null&&self._flags.default.length>0){arg=Hoek.clone(state.parent)}var defaultValue=internals._try(self._flags.default,arg);finalValue=defaultValue.value;if(defaultValue.error){errors.push(Errors.create("any.default",defaultValue.error,state,options))}}else{finalValue=self._flags.default}}return{value:finalValue,errors:errors.length?errors:null}};var presence=this._flags.presence||options.presence;if(presence==="optional"){if(value===undefined){var isDeepDefault=this._flags.hasOwnProperty("default")&&this._flags.default===undefined;if(isDeepDefault&&this._type==="object"){value={}}else{return finish()}}}else if(presence==="required"&&value===undefined){errors.push(Errors.create("any.required",null,state,options));return finish()}else if(presence==="forbidden"){if(value===undefined){return finish()}errors.push(Errors.create("any.unknown",null,state,options));return finish()}if(this._flags.empty&&!this._flags.empty._validate(value,null,internals.defaults).errors){value=undefined;return finish()}if(this._valids.has(value,state,options,this._flags.insensitive)){return finish()}if(this._invalids.has(value,state,options,this._flags.insensitive)){errors.push(Errors.create(value===""?"any.empty":"any.invalid",null,state,options));if(options.abortEarly||value===undefined){return finish()}}if(this._base){var base=this._base.call(this,value,state,options);if(base.errors){value=base.value;errors=errors.concat(base.errors);return finish()}if(base.value!==value){value=base.value;if(this._valids.has(value,state,options,this._flags.insensitive)){return finish()}if(this._invalids.has(value,state,options,this._flags.insensitive)){errors.push(Errors.create("any.invalid",null,state,options));if(options.abortEarly){return finish()}}}}if(this._flags.allowOnly){errors.push(Errors.create("any.allowOnly",{valids:this._valids.values({stripUndefined:true})},state,options));if(options.abortEarly){return finish()}}for(var i=0,il=this._tests.length;i=0,"limit must be a positive integer");return this._test("min",limit,function(value,state,options){if(value.length>=limit){return null}return Errors.create("array.min",{limit:limit,value:value},state,options)})};internals.Array.prototype.max=function(limit){Hoek.assert(Hoek.isInteger(limit)&&limit>=0,"limit must be a positive integer");return this._test("max",limit,function(value,state,options){if(value.length<=limit){return null}return Errors.create("array.max",{limit:limit,value:value},state,options)})};internals.Array.prototype.length=function(limit){Hoek.assert(Hoek.isInteger(limit)&&limit>=0,"limit must be a positive integer");return this._test("length",limit,function(value,state,options){if(value.length===limit){return null}return Errors.create("array.length",{limit:limit,value:value},state,options)})};internals.Array.prototype.unique=function(){return this._test("unique",undefined,function(value,state,options){var found={string:{},number:{},undefined:{},"boolean":{},object:[],"function":[]};for(var i=0,il=value.length;i=0,"limit must be a positive integer");return this._test("min",limit,function(value,state,options){if(value.length>=limit){return null}return Errors.create("binary.min",{limit:limit,value:value},state,options)})};internals.Binary.prototype.max=function(limit){Hoek.assert(Hoek.isInteger(limit)&&limit>=0,"limit must be a positive integer");return this._test("max",limit,function(value,state,options){if(value.length<=limit){return null}return Errors.create("binary.max",{limit:limit,value:value},state,options)})};internals.Binary.prototype.length=function(limit){Hoek.assert(Hoek.isInteger(limit)&&limit>=0,"limit must be a positive integer");return this._test("length",limit,function(value,state,options){if(value.length===limit){return null}return Errors.create("binary.length",{limit:limit,value:value},state,options)})};module.exports=new internals.Binary}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-validation/node_modules/joi/lib/binary.js","/node_modules/deep-validation/node_modules/joi/lib")},{"./any":210,"./errors":216,_process:379,buffer:230,hoek:"hoek"}],213:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Any=require("./any");var Errors=require("./errors");var Hoek=require("hoek");var internals={};internals.Boolean=function(){Any.call(this);this._type="boolean"};Hoek.inherits(internals.Boolean,Any);internals.Boolean.prototype._base=function(value,state,options){var result={value:value};if(typeof value==="string"&&options.convert){var lower=value.toLowerCase();result.value=lower==="true"||lower==="yes"||lower==="on"?true:lower==="false"||lower==="no"||lower==="off"?false:value}result.errors=typeof result.value==="boolean"?null:Errors.create("boolean.base",null,state,options);return result};module.exports=new internals.Boolean}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-validation/node_modules/joi/lib/boolean.js","/node_modules/deep-validation/node_modules/joi/lib")},{"./any":210,"./errors":216,_process:379,buffer:230,hoek:"hoek"}],214:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Hoek=require("hoek");var Ref=require("./ref");var internals={any:null,date:require("./date"),string:require("./string"),number:require("./number"),"boolean":require("./boolean"),alt:null,object:null};exports.schema=function(config){internals.any=internals.any||new(require("./any"));internals.alt=internals.alt||require("./alternatives");internals.object=internals.object||require("./object");if(config&&typeof config==="object"){if(config.isJoi){return config}if(Array.isArray(config)){return internals.alt.try(config)}if(config instanceof RegExp){return internals.string.regex(config)}if(config instanceof Date){return internals.date.valid(config)}return internals.object.keys(config)}if(typeof config==="string"){return internals.string.valid(config)}if(typeof config==="number"){return internals.number.valid(config)}if(typeof config==="boolean"){return internals.boolean.valid(config)}if(Ref.isRef(config)){return internals.any.valid(config)}Hoek.assert(config===null,"Invalid schema content:",config);return internals.any.valid(null)};exports.ref=function(id){return Ref.isRef(id)?id:Ref.create(id)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-validation/node_modules/joi/lib/cast.js","/node_modules/deep-validation/node_modules/joi/lib")},{"./alternatives":209,"./any":210,"./boolean":213,"./date":215,"./number":219,"./object":220,"./ref":221,"./string":222,_process:379,buffer:230,hoek:"hoek"}],215:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Any=require("./any");var Errors=require("./errors");var Ref=require("./ref");var Hoek=require("hoek");var Moment=require("moment");var internals={};internals.isoDate=/^(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/;internals.invalidDate=new Date("");internals.isIsoDate=function(){var isoString=internals.isoDate.toString();return function(date){return date&&date.toString()===isoString}}();internals.Date=function(){Any.call(this);this._type="date"};Hoek.inherits(internals.Date,Any);internals.Date.prototype._base=function(value,state,options){var result={value:options.convert&&internals.toDate(value,this._flags.format)||value};if(result.value instanceof Date&&!isNaN(result.value.getTime())){result.errors=null}else{result.errors=Errors.create(internals.isIsoDate(this._flags.format)?"date.isoDate":"date.base",null,state,options)}return result};internals.toDate=function(value,format){if(value instanceof Date){return value}if(typeof value==="string"||Hoek.isInteger(value)){if(typeof value==="string"&&/^[+-]?\d+$/.test(value)){value=parseInt(value,10)}var date;if(format){if(internals.isIsoDate(format)){date=format.test(value)?new Date(value):internals.invalidDate}else{date=Moment(value,format,true);date=date.isValid()?date.toDate():internals.invalidDate}}else{date=new Date(value)}if(!isNaN(date.getTime())){return date}}return null};internals.compare=function(type,compare){return function(date){var isNow=date==="now";var isRef=Ref.isRef(date);if(!isNow&&!isRef){date=internals.toDate(date)}Hoek.assert(date,"Invalid date format");return this._test(type,date,function(value,state,options){var compareTo;if(isNow){compareTo=Date.now()}else if(isRef){compareTo=internals.toDate(date(state.parent,options));if(!compareTo){return Errors.create("date.ref",{ref:date.key},state,options)}compareTo=compareTo.getTime()}else{compareTo=date.getTime()}if(compare(value.getTime(),compareTo)){return null}return Errors.create("date."+type,{limit:new Date(compareTo)},state,options)})}};internals.Date.prototype.min=internals.compare("min",function(value,date){return value>=date});internals.Date.prototype.max=internals.compare("max",function(value,date){return value<=date});internals.Date.prototype.format=function(format){Hoek.assert(typeof format==="string"||Array.isArray(format)&&format.every(function(f){return typeof f==="string"}),"Invalid format.");var obj=this.clone();obj._flags.format=format;return obj};internals.Date.prototype.iso=function(){var obj=this.clone();obj._flags.format=internals.isoDate;return obj};internals.Date.prototype._isIsoDate=function(value){return internals.isoDate.test(value)};module.exports=new internals.Date}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-validation/node_modules/joi/lib/date.js","/node_modules/deep-validation/node_modules/joi/lib")},{"./any":210,"./errors":216,"./ref":221,_process:379,buffer:230,hoek:"hoek",moment:"moment"}],216:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Hoek=require("hoek");var Language=require("./language");var internals={};internals.stringify=function(value,wrapArrays){var type=typeof value;if(value===null){return"null"}if(type==="string"){return value}if(value instanceof internals.Err||type==="function"){return value.toString()}if(type==="object"){if(Array.isArray(value)){var partial="";for(var i=0,il=value.length;i2&&format[0]==="!"&&format[1]==="!";if(skipKey){format=format.slice(2)}if(!hasKey&&!skipKey){format=(Hoek.reach(localized,"key")||Hoek.reach(Language.errors,"key"))+format}var wrapArrays=Hoek.reach(localized,"messages.wrapArrays");if(typeof wrapArrays!=="boolean"){wrapArrays=Language.errors.messages.wrapArrays}var message=format.replace(/\{\{(\!?)([^}]+)\}\}/g,function($0,isSecure,name){var value=Hoek.reach(self.context,name);var normalized=internals.stringify(value,wrapArrays);return isSecure?Hoek.escapeHtml(normalized):normalized});return message};exports.create=function(type,context,state,options){return new internals.Err(type,context,state,options)};exports.process=function(errors,object){if(!errors||!errors.length){return null}var message="";var details=[];var processErrors=function(localErrors,parent){for(var i=0,il=localErrors.length;i0){var thisPos=stack.indexOf(this);if(~thisPos){stack.length=thisPos+1;keys.length=thisPos+1;keys[thisPos]=key}else{stack.push(this);keys.push(key)}if(~stack.indexOf(value)){value=cycleReplacer.call(this,key,value); +}}else{stack.push(value)}return value}};internals.annotate=function(){var obj=Hoek.clone(this._object||{});var lookup={};var el=this.details.length;for(var e=el-1;e>=0;--e){var pos=el-e;var error=this.details[e];var path=error.path.split(".");var ref=obj;for(var i=0,il=path.length;i=limit});internals.Number.prototype.max=internals.compare("max",function(value,limit){return value<=limit});internals.Number.prototype.greater=internals.compare("greater",function(value,limit){return value>limit});internals.Number.prototype.less=internals.compare("less",function(value,limit){return value0,"multiple must be greater than 0");return this._test("multiple",base,function(value,state,options){if(value%base===0){return null}return Errors.create("number.multiple",{multiple:base,value:value},state,options)})};internals.Number.prototype.integer=function(){return this._test("integer",undefined,function(value,state,options){return Hoek.isInteger(value)?null:Errors.create("number.integer",{value:value},state,options)})};internals.Number.prototype.negative=function(){return this._test("negative",undefined,function(value,state,options){if(value<0){return null}return Errors.create("number.negative",{value:value},state,options)})};internals.Number.prototype.positive=function(){return this._test("positive",undefined,function(value,state,options){if(value>0){return null}return Errors.create("number.positive",{value:value},state,options)})};internals.precisionRx=/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/;internals.Number.prototype.precision=function(limit){Hoek.assert(Hoek.isInteger(limit),"limit must be an integer");Hoek.assert(!("precision"in this._flags),"precision already set");var obj=this._test("precision",limit,function(value,state,options){var places=value.toString().match(internals.precisionRx);var decimals=Math.max((places[1]?places[1].length:0)-(places[2]?parseInt(places[2],10):0),0);if(decimals<=limit){return null}return Errors.create("number.precision",{limit:limit,value:value},state,options)});obj._flags.precision=limit;return obj};module.exports=new internals.Number}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-validation/node_modules/joi/lib/number.js","/node_modules/deep-validation/node_modules/joi/lib")},{"./any":210,"./errors":216,"./ref":221,_process:379,buffer:230,hoek:"hoek"}],220:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Hoek=require("hoek");var Topo=require("topo");var Any=require("./any");var Cast=require("./cast");var Errors=require("./errors");var internals={};internals.Object=function(){Any.call(this);this._type="object";this._inner.children=null;this._inner.renames=[];this._inner.dependencies=[];this._inner.patterns=[]};Hoek.inherits(internals.Object,Any);internals.Object.prototype._base=function(value,state,options){var item,key,localState,result;var target=value;var errors=[];var finish=function(){return{value:target,errors:errors.length?errors:null}};if(typeof value==="string"&&options.convert){try{value=JSON.parse(value)}catch(parseErr){}}if(!value||typeof value!=="object"||Array.isArray(value)){errors.push(Errors.create("object.base",null,state,options));return finish()}if(!this._inner.renames.length&&!this._inner.dependencies.length&&!this._inner.children&&!this._inner.patterns.length){target=value;return finish()}if(target===value){target=Object.create(Object.getPrototypeOf(value));var valueKeys=Object.keys(value);for(var t=0,tl=valueKeys.length;t=0,"limit must be a positive integer");return this._test("length",limit,function(value,state,options){if(Object.keys(value).length===limit){return null}return Errors.create("object.length",{limit:limit},state,options)})};internals.Object.prototype.min=function(limit){Hoek.assert(Hoek.isInteger(limit)&&limit>=0,"limit must be a positive integer");return this._test("min",limit,function(value,state,options){if(Object.keys(value).length>=limit){return null}return Errors.create("object.min",{limit:limit},state,options)})};internals.Object.prototype.max=function(limit){Hoek.assert(Hoek.isInteger(limit)&&limit>=0,"limit must be a positive integer");return this._test("max",limit,function(value,state,options){if(Object.keys(value).length<=limit){return null}return Errors.create("object.max",{limit:limit},state,options)})};internals.Object.prototype.pattern=function(pattern,schema){Hoek.assert(pattern instanceof RegExp,"Invalid regular expression");Hoek.assert(schema!==undefined,"Invalid rule");pattern=new RegExp(pattern.source,pattern.ignoreCase?"i":undefined);var obj=this.clone();obj._inner.patterns.push({regex:pattern,rule:Cast.schema(schema)});return obj};internals.Object.prototype.with=function(key,peers){return this._dependency("with",key,peers)};internals.Object.prototype.without=function(key,peers){return this._dependency("without",key,peers)};internals.Object.prototype.xor=function(){var peers=Hoek.flatten(Array.prototype.slice.call(arguments));return this._dependency("xor",null,peers)};internals.Object.prototype.or=function(){var peers=Hoek.flatten(Array.prototype.slice.call(arguments));return this._dependency("or",null,peers)};internals.Object.prototype.and=function(){var peers=Hoek.flatten(Array.prototype.slice.call(arguments));return this._dependency("and",null,peers)};internals.Object.prototype.nand=function(){var peers=Hoek.flatten(Array.prototype.slice.call(arguments));return this._dependency("nand",null,peers)};internals.Object.prototype.requiredKeys=function(children){children=Hoek.flatten(Array.prototype.slice.call(arguments));return this.applyFunctionToChildren(children,"required")};internals.Object.prototype.optionalKeys=function(children){children=Hoek.flatten(Array.prototype.slice.call(arguments));return this.applyFunctionToChildren(children,"optional")};internals.renameDefaults={alias:false,multiple:false,override:false};internals.Object.prototype.rename=function(from,to,options){Hoek.assert(typeof from==="string","Rename missing the from argument");Hoek.assert(typeof to==="string","Rename missing the to argument");Hoek.assert(to!==from,"Cannot rename key to same name:",from);for(var i=0,il=this._inner.renames.length;i0,"expected at least one children");var groupedChildren=internals.groupChildren(children);var obj;if(""in groupedChildren){obj=this[fn].apply(this,args);delete groupedChildren[""]}else{obj=this.clone()}if(obj._inner.children){root=root?root+".":"";for(var i=0,il=obj._inner.children.length;i1,"Cannot use assertions for root level references - use direct key rules instead");message=message||"pass the assertion test";var cast=Cast.schema(schema);var key=ref.path[ref.path.length-1];var path=ref.path.join(".");return this._test("assert",{cast:cast,ref:ref},function(value,state,options){var result=cast._validate(ref(value),null,options,value);if(!result.errors){return null}var localState=Hoek.merge({},state);localState.key=key;localState.path=path;return Errors.create("object.assert",{ref:localState.path,message:message},localState,options)})};internals.Object.prototype.type=function(constructor,name){Hoek.assert(typeof constructor==="function","type must be a constructor function");name=name||constructor.name;return this._test("type",name,function(value,state,options){if(value instanceof constructor){return null}return Errors.create("object.type",{type:name},state,options)})};module.exports=new internals.Object}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-validation/node_modules/joi/lib/object.js","/node_modules/deep-validation/node_modules/joi/lib")},{"./any":210,"./cast":214,"./errors":216,_process:379,buffer:230,hoek:"hoek",topo:"topo"}],221:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Hoek=require("hoek");var internals={};exports.create=function(key,options){Hoek.assert(typeof key==="string","Invalid reference key:",key);var settings=Hoek.clone(options);var ref=function(value,validationOptions){return Hoek.reach(ref.isContext?validationOptions.context:value,ref.key,settings)};ref.isContext=key[0]===(settings&&settings.contextPrefix||"$");ref.key=ref.isContext?key.slice(1):key;ref.path=ref.key.split(settings&&settings.separator||".");ref.depth=ref.path.length;ref.root=ref.path[0];ref.isJoi=true;ref.toString=function(){return(ref.isContext?"context:":"ref:")+ref.key};return ref};exports.isRef=function(ref){return typeof ref==="function"&&ref.isJoi};exports.push=function(array,ref){if(exports.isRef(ref)&&!ref.isContext){array.push(ref.root)}}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-validation/node_modules/joi/lib/ref.js","/node_modules/deep-validation/node_modules/joi/lib")},{_process:379,buffer:230,hoek:"hoek"}],222:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Net=require("net");var Hoek=require("hoek");var Isemail=require("isemail");var Any=require("./any");var Ref=require("./ref");var JoiDate=require("./date");var Errors=require("./errors");var Uri=require("./string/uri");var Ip=require("./string/ip");var internals={uriRegex:Uri.createUriRegex(),ipRegex:Ip.createIpRegex(["ipv4","ipv6","ipvfuture"],"optional")};internals.String=function(){Any.call(this);this._type="string";this._invalids.add("")};Hoek.inherits(internals.String,Any);internals.compare=function(type,compare){return function(limit,encoding){var isRef=Ref.isRef(limit);Hoek.assert(Hoek.isInteger(limit)&&limit>=0||isRef,"limit must be a positive integer or reference");Hoek.assert(!encoding||Buffer.isEncoding(encoding),"Invalid encoding:",encoding);return this._test(type,limit,function(value,state,options){var compareTo;if(isRef){compareTo=limit(state.parent,options);if(!Hoek.isInteger(compareTo)){return Errors.create("string.ref",{ref:limit.key},state,options)}}else{compareTo=limit}if(compare(value,compareTo,encoding)){return null}return Errors.create("string."+type,{limit:compareTo,value:value,encoding:encoding},state,options)})}};internals.String.prototype._base=function(value,state,options){if(typeof value==="string"&&options.convert){if(this._flags.case){value=this._flags.case==="upper"?value.toLocaleUpperCase():value.toLocaleLowerCase()}if(this._flags.trim){value=value.trim()}if(this._inner.replacements){for(var r=0,rl=this._inner.replacements.length;r=limit});internals.String.prototype.max=internals.compare("max",function(value,limit,encoding){var length=encoding?Buffer.byteLength(value,encoding):value.length;return length<=limit});internals.String.prototype.creditCard=function(){return this._test("creditCard",undefined,function(value,state,options){var i=value.length;var sum=0;var mul=1;var char;while(i--){char=value.charAt(i)*mul;sum+=char-(char>9)*9;mul^=3}var check=sum%10===0&&sum>0;return check?null:Errors.create("string.creditCard",{value:value},state,options)})};internals.String.prototype.length=internals.compare("length",function(value,limit,encoding){var length=encoding?Buffer.byteLength(value,encoding):value.length;return length===limit});internals.String.prototype.regex=function(pattern,name){Hoek.assert(pattern instanceof RegExp,"pattern must be a RegExp");pattern=new RegExp(pattern.source,pattern.ignoreCase?"i":undefined);return this._test("regex",pattern,function(value,state,options){if(pattern.test(value)){return null}return Errors.create(name?"string.regex.name":"string.regex.base",{name:name,pattern:pattern,value:value},state,options)})};internals.String.prototype.alphanum=function(){return this._test("alphanum",undefined,function(value,state,options){if(/^[a-zA-Z0-9]+$/.test(value)){return null}return Errors.create("string.alphanum",{value:value},state,options)})};internals.String.prototype.token=function(){return this._test("token",undefined,function(value,state,options){if(/^\w+$/.test(value)){return null}return Errors.create("string.token",{value:value},state,options)})};internals.String.prototype.email=function(isEmailOptions){if(isEmailOptions){Hoek.assert(typeof isEmailOptions==="object","email options must be an object");Hoek.assert(typeof isEmailOptions.checkDNS==="undefined","checkDNS option is not supported");Hoek.assert(typeof isEmailOptions.tldWhitelist==="undefined"||typeof isEmailOptions.tldWhitelist==="object","tldWhitelist must be an array or object");Hoek.assert(typeof isEmailOptions.minDomainAtoms==="undefined"||Hoek.isInteger(isEmailOptions.minDomainAtoms)&&isEmailOptions.minDomainAtoms>0,"minDomainAtoms must be a positive integer");Hoek.assert(typeof isEmailOptions.errorLevel==="undefined"||typeof isEmailOptions.errorLevel==="boolean"||Hoek.isInteger(isEmailOptions.errorLevel)&&isEmailOptions.errorLevel>=0,"errorLevel must be a non-negative integer or boolean")}return this._test("email",isEmailOptions,function(value,state,options){try{var result=Isemail(value,isEmailOptions);if(result===true||result===0){return null}}catch(e){}return Errors.create("string.email",{value:value},state,options)})};internals.String.prototype.ip=function(ipOptions){var regex=internals.ipRegex;ipOptions=ipOptions||{};Hoek.assert(typeof ipOptions==="object","options must be an object");if(ipOptions.cidr){Hoek.assert(typeof ipOptions.cidr==="string","cidr must be a string"); +ipOptions.cidr=ipOptions.cidr.toLowerCase();Hoek.assert(ipOptions.cidr in Ip.cidrs,"cidr must be one of "+Object.keys(Ip.cidrs).join(", "));if(!ipOptions.version&&ipOptions.cidr!=="optional"){regex=Ip.createIpRegex(["ipv4","ipv6","ipvfuture"],ipOptions.cidr)}}else{ipOptions.cidr="optional"}if(ipOptions.version){if(!Array.isArray(ipOptions.version)){ipOptions.version=[ipOptions.version]}Hoek.assert(ipOptions.version.length>=1,"version must have at least 1 version specified");var versions=[];for(var i=0,il=ipOptions.version.length;i=1,"scheme must have at least 1 scheme specified");for(var i=0,il=uriOptions.scheme.length;i=256){return"\\u"+internals.padLeft(""+charCode,4)}var hexValue=new Buffer(String.fromCharCode(charCode),"ascii").toString("hex");return"\\x"+internals.padLeft(hexValue,2)};internals.escapeHtmlChar=function(charCode){var namedEscape=internals.namedHtml[charCode];if(typeof namedEscape!=="undefined"){return namedEscape}if(charCode>=256){return"&#"+charCode+";"}var hexValue=new Buffer(String.fromCharCode(charCode),"ascii").toString("hex");return"&#x"+internals.padLeft(hexValue,2)+";"};internals.padLeft=function(str,len){while(str.length=97||i>=65&&i<=90||i>=48&&i<=57||i===32||i===46||i===44||i===45||i===58||i===95){safe[i]=null}}return safe}()}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-validation/node_modules/joi/node_modules/hoek/lib/escape.js","/node_modules/deep-validation/node_modules/joi/node_modules/hoek/lib")},{_process:379,buffer:230}],227:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Dns=require("dns");var internals={defaultThreshold:16,maxIPv6Groups:8,categories:{valid:1,dnsWarn:7,rfc5321:15,cfws:31,deprecated:63,rfc5322:127,error:255},diagnoses:{valid:0,dnsWarnNoMXRecord:5,dnsWarnNoRecord:6,rfc5321TLD:9,rfc5321TLDNumeric:10,rfc5321QuotedString:11,rfc5321AddressLiteral:12,cfwsComment:17,cfwsFWS:18,deprecatedLocalPart:33,deprecatedFWS:34,deprecatedQTEXT:35,deprecatedQP:36,deprecatedComment:37,deprecatedCTEXT:38,deprecatedIPv6:39,deprecatedCFWSNearAt:49,rfc5322Domain:65,rfc5322TooLong:66,rfc5322LocalTooLong:67,rfc5322DomainTooLong:68,rfc5322LabelTooLong:69,rfc5322DomainLiteral:70,rfc5322DomainLiteralOBSDText:71,rfc5322IPv6GroupCount:72,rfc5322IPv62x2xColon:73,rfc5322IPv6BadCharacter:74,rfc5322IPv6MaxGroups:75,rfc5322IPv6ColonStart:76,rfc5322IPv6ColonEnd:77,errExpectingDTEXT:129,errNoLocalPart:130,errNoDomain:131,errConsecutiveDots:132,errATEXTAfterCFWS:133,errATEXTAfterQS:134,errATEXTAfterDomainLiteral:135,errExpectingQPair:136,errExpectingATEXT:137,errExpectingQTEXT:138,errExpectingCTEXT:139,errBackslashEnd:140,errDotStart:141,errDotEnd:142,errDomainHyphenStart:143,errDomainHyphenEnd:144,errUnclosedQuotedString:145,errUnclosedComment:146,errUnclosedDomainLiteral:147,errFWSCRLFx2:148,errFWSCRLFEnd:149,errCRNoLF:150,errUnknownTLD:160,errDomainTooShort:161},components:{localpart:0,domain:1,literal:2,contextComment:3,contextFWS:4,contextQuotedString:5,contextQuotedPair:6}};internals.defer=typeof process!=="undefined"&&process&&typeof process.nextTick==="function"?process.nextTick.bind(process):function(callback){return setTimeout(callback,0)};var SPECIALS='()<>[]:;@\\,."';var optimizeLookup=function optimizeLookup(string){var lookup=new Array(256);for(var i=255;i>=0;--i){lookup[i]=false}for(var il=string.length;imaxResult){maxResult=value}};var context={now:internals.components.localpart,prev:internals.components.localpart,stack:[internals.components.localpart]};var token;var prevToken="";var charCode=0;var parseData={local:"",domain:""};var atomData={locals:[""],domains:[""]};var elementCount=0;var elementLength=0;var crlfCount=0;var hyphenFlag=false;var assertEnd=false;var emailLength=email.length;for(var i=0,il=emailLength;i64){updateResult(internals.diagnoses.rfc5322LocalTooLong)}else if(context.prev===internals.components.contextComment||context.prev===internals.components.contextFWS){updateResult(internals.diagnoses.deprecatedCFWSNearAt)}context.now=internals.components.domain;context.stack[0]=internals.components.domain;elementCount=0;elementLength=0;assertEnd=false;break;default:if(assertEnd){switch(context.prev){case internals.components.contextComment:case internals.components.contextFWS:updateResult(internals.diagnoses.errATEXTAfterCFWS);break;case internals.components.contextQuotedString:updateResult(internals.diagnoses.errATEXTAfterQS);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+context.prev)}}else{context.prev=context.now;charCode=token.charCodeAt(0);if(charCode<33||charCode>126||specialsLookup(charCode)){updateResult(internals.diagnoses.errExpectingATEXT)}parseData.local+=token;atomData.locals[elementCount]+=token;++elementLength}}break;case internals.components.domain:switch(token){case"(":if(elementLength===0){updateResult(elementCount===0?internals.diagnoses.deprecatedCFWSNearAt:internals.diagnoses.deprecatedComment)}else{assertEnd=true;updateResult(internals.diagnoses.cfwsComment)}context.stack.push(context.now);context.now=internals.components.contextComment;break;case".":if(elementLength===0){updateResult(elementCount===0?internals.diagnoses.errDotStart:internals.diagnoses.errConsecutiveDots)}else if(hyphenFlag){updateResult(internals.diagnoses.errDomainHyphenEnd)}else if(elementLength>63){updateResult(internals.diagnoses.rfc5322LabelTooLong)}assertEnd=false;elementLength=0;++elementCount;atomData.domains[elementCount]="";parseData.domain+=token;break;case"[":if(parseData.domain.length===0){assertEnd=true;++elementLength;context.stack.push(context.now);context.now=internals.components.literal;parseData.domain+=token;atomData.domains[elementCount]+=token;parseData.literal=""}else{updateResult(internals.diagnoses.errExpectingATEXT)}break;case"\r":if(emailLength===++i||email[i]!=="\n"){updateResult(internals.diagnoses.errCRNoLF);break}case" ":case" ":if(elementLength===0){updateResult(elementCount===0?internals.diagnoses.deprecatedCFWSNearAt:internals.diagnoses.deprecatedFWS)}else{updateResult(internals.diagnoses.cfwsFWS);assertEnd=true}context.stack.push(context.now);context.now=internals.components.contextFWS;prevToken=token;break;default:if(assertEnd){switch(context.prev){case internals.components.contextComment:case internals.components.contextFWS:updateResult(internals.diagnoses.errATEXTAfterCFWS);break;case internals.components.literal:updateResult(internals.diagnoses.errATEXTAfterDomainLiteral);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+context.prev)}}charCode=token.charCodeAt(0);hyphenFlag=false;if(charCode<33||charCode>126||specialsLookup(charCode)){updateResult(internals.diagnoses.errExpectingATEXT)}else if(token==="-"){if(elementLength===0){updateResult(internals.diagnoses.errDomainHyphenStart)}hyphenFlag=true}else if(charCode<48||charCode>122||charCode>57&&charCode<65||charCode>90&&charCode<97){updateResult(internals.diagnoses.rfc5322Domain)}parseData.domain+=token;atomData.domains[elementCount]+=token;++elementLength}break;case internals.components.literal:switch(token){case"]":if(maxResultmaxGroups){updateResult(internals.diagnoses.rfc5322IPv6MaxGroups)}else if(groups.length===maxGroups){updateResult(internals.diagnoses.deprecatedIPv6)}}if(match[0]===":"&&match[1]!==":"){updateResult(internals.diagnoses.rfc5322IPv6ColonStart)}else if(match[match.length-1]===":"&&match[match.length-2]!==":"){updateResult(internals.diagnoses.rfc5322IPv6ColonEnd)}else if(groups.every(IPv6_REGEX_TEST)){updateResult(internals.diagnoses.rfc5321AddressLiteral)}else{updateResult(internals.diagnoses.rfc5322IPv6BadCharacter)}}}else{updateResult(internals.diagnoses.rfc5322DomainLiteral)}parseData.domain+=token;atomData.domains[elementCount]+=token;++elementLength;context.prev=context.now;context.now=context.stack.pop();break;case"\\":updateResult(internals.diagnoses.rfc5322DomainLiteralOBSDText);context.stack.push(context.now);context.now=internals.components.contextQuotedPair;break;case"\r":if(emailLength===++i||email[i]!=="\n"){updateResult(internals.diagnoses.errCRNoLF);break}case" ":case" ":updateResult(internals.diagnoses.cfwsFWS);context.stack.push(context.now);context.now=internals.components.contextFWS;prevToken=token;break;default:charCode=token.charCodeAt(0);if(charCode>127||charCode===0||token==="["){updateResult(internals.diagnoses.errExpectingDTEXT);break}else if(charCode<33||charCode===127){updateResult(internals.diagnoses.rfc5322DomainLiteralOBSDText)}parseData.literal+=token;parseData.domain+=token;atomData.domains[elementCount]+=token;++elementLength}break;case internals.components.contextQuotedString:switch(token){case"\\":context.stack.push(context.now);context.now=internals.components.contextQuotedPair;break;case"\r":if(emailLength===++i||email[i]!=="\n"){updateResult(internals.diagnoses.errCRNoLF);break}case" ":parseData.local+=" ";atomData.locals[elementCount]+=" ";++elementLength;updateResult(internals.diagnoses.cfwsFWS);context.stack.push(context.now);context.now=internals.components.contextFWS;prevToken=token;break;case'"':parseData.local+=token;atomData.locals[elementCount]+=token;++elementLength;context.prev=context.now;context.now=context.stack.pop();break;default:charCode=token.charCodeAt(0);if(charCode>127||charCode===0||charCode===10){updateResult(internals.diagnoses.errExpectingQTEXT)}else if(charCode<32||charCode===127){updateResult(internals.diagnoses.deprecatedQTEXT)}parseData.local+=token;atomData.locals[elementCount]+=token;++elementLength}break;case internals.components.contextQuotedPair:charCode=token.charCodeAt(0);if(charCode>127){updateResult(internals.diagnoses.errExpectingQPair)}else if(charCode<31&&charCode!==9||charCode===127){updateResult(internals.diagnoses.deprecatedQP)}context.prev=context.now;context.now=context.stack.pop();token="\\"+token;switch(context.now){case internals.components.contextComment:break;case internals.components.contextQuotedString:parseData.local+=token;atomData.locals[elementCount]+=token;elementLength+=2;break;case internals.components.literal:parseData.domain+=token;atomData.domains[elementCount]+=token;elementLength+=2;break;default:throw new Error("quoted pair logic invoked in an invalid context: "+context.now)}break;case internals.components.contextComment:switch(token){case"(":context.stack.push(context.now);context.now=internals.components.contextComment;break;case")":context.prev=context.now;context.now=context.stack.pop();break;case"\\":context.stack.push(context.now);context.now=internals.components.contextQuotedPair;break;case"\r":if(emailLength===++i||email[i]!=="\n"){updateResult(internals.diagnoses.errCRNoLF);break}case" ":case" ":updateResult(internals.diagnoses.cfwsFWS);context.stack.push(context.now);context.now=internals.components.contextFWS;prevToken=token;break;default:charCode=token.charCodeAt(0);if(charCode>127||charCode===0||charCode===10){updateResult(internals.diagnoses.errExpectingCTEXT);break}else if(charCode<32||charCode===127){updateResult(internals.diagnoses.deprecatedCTEXT)}}break;case internals.components.contextFWS:if(prevToken==="\r"){if(token==="\r"){updateResult(internals.diagnoses.errFWSCRLFx2);break}if(++crlfCount>1){updateResult(internals.diagnoses.deprecatedFWS)}else{crlfCount=1}}switch(token){case"\r":if(emailLength===++i||email[i]!=="\n"){updateResult(internals.diagnoses.errCRNoLF)}break;case" ":case" ":break;default:if(prevToken==="\r"){updateResult(internals.diagnoses.errFWSCRLFEnd)}crlfCount=0;context.prev=context.now;context.now=context.stack.pop();--i}prevToken=token;break;default:throw new Error("unknown context: "+context.now)}if(maxResult>internals.categories.rfc5322){break}}if(maxResult255){updateResult(internals.diagnoses.rfc5322DomainTooLong)}else if(parseData.local.length+parseData.domain.length+1>254){updateResult(internals.diagnoses.rfc5322TooLong)}else if(elementLength>63){updateResult(internals.diagnoses.rfc5322LabelTooLong)}else if(options.minDomainAtoms&&atomData.domains.length1)return new Buffer(arg,arguments[1]);return new Buffer(arg)}this.length=0;this.parent=undefined;if(typeof arg==="number"){return fromNumber(this,arg)}if(typeof arg==="string"){return fromString(this,arg,arguments.length>1?arguments[1]:"utf8")}return fromObject(this,arg)}function fromNumber(that,length){that=allocate(that,length<0?0:checked(length)|0);if(!Buffer.TYPED_ARRAY_SUPPORT){for(var i=0;i>>1;if(fromPool)that.parent=rootParent;return that}function checked(length){if(length>=kMaxLength()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+kMaxLength().toString(16)+" bytes")}return length|0}function SlowBuffer(subject,encoding){if(!(this instanceof SlowBuffer))return new SlowBuffer(subject,encoding);var buf=new Buffer(subject,encoding);delete buf.parent;return buf}Buffer.isBuffer=function isBuffer(b){return!!(b!=null&&b._isBuffer)};Buffer.compare=function compare(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b)){throw new TypeError("Arguments must be Buffers")}if(a===b)return 0;var x=a.length;var y=b.length;var i=0;var len=Math.min(x,y);while(i>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;encoding=(""+encoding).toLowerCase();loweredCase=true}}}Buffer.byteLength=byteLength;Buffer.prototype.length=undefined;Buffer.prototype.parent=undefined;function slowToString(encoding,start,end){var loweredCase=false;start=start|0;end=end===undefined||end===Infinity?this.length:end|0;if(!encoding)encoding="utf8";if(start<0)start=0;if(end>this.length)end=this.length;if(end<=start)return"";while(true){switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"binary":return binarySlice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase();loweredCase=true}}}Buffer.prototype.toString=function toString(){var length=this.length|0;if(length===0)return"";if(arguments.length===0)return utf8Slice(this,0,length);return slowToString.apply(this,arguments)};Buffer.prototype.equals=function equals(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");if(this===b)return true;return Buffer.compare(this,b)===0};Buffer.prototype.inspect=function inspect(){var str="";var max=exports.INSPECT_MAX_BYTES;if(this.length>0){str=this.toString("hex",0,max).match(/.{2}/g).join(" ");if(this.length>max)str+=" ... "}return""};Buffer.prototype.compare=function compare(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");if(this===b)return 0;return Buffer.compare(this,b)};Buffer.prototype.indexOf=function indexOf(val,byteOffset){if(byteOffset>2147483647)byteOffset=2147483647;else if(byteOffset<-2147483648)byteOffset=-2147483648;byteOffset>>=0;if(this.length===0)return-1;if(byteOffset>=this.length)return-1;if(byteOffset<0)byteOffset=Math.max(this.length+byteOffset,0);if(typeof val==="string"){if(val.length===0)return-1;return String.prototype.indexOf.call(this,val,byteOffset)}if(Buffer.isBuffer(val)){return arrayIndexOf(this,val,byteOffset)}if(typeof val==="number"){if(Buffer.TYPED_ARRAY_SUPPORT&&Uint8Array.prototype.indexOf==="function"){return Uint8Array.prototype.indexOf.call(this,val,byteOffset)}return arrayIndexOf(this,[val],byteOffset)}function arrayIndexOf(arr,val,byteOffset){var foundIndex=-1;for(var i=0;byteOffset+iremaining){length=remaining}}var strLen=string.length;if(strLen%2!==0)throw new Error("Invalid hex string");if(length>strLen/2){length=strLen/2}for(var i=0;iremaining)length=remaining;if(string.length>0&&(length<0||offset<0)||offset>this.length){throw new RangeError("attempt to write outside buffer bounds")}if(!encoding)encoding="utf8";var loweredCase=false;for(;;){switch(encoding){case"hex":return hexWrite(this,string,offset,length);case"utf8":case"utf-8":return utf8Write(this,string,offset,length);case"ascii":return asciiWrite(this,string,offset,length);case"binary":return binaryWrite(this,string,offset,length);case"base64":return base64Write(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase();loweredCase=true}}};Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(buf,start,end){if(start===0&&end===buf.length){return base64.fromByteArray(buf)}else{return base64.fromByteArray(buf.slice(start,end))}}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);var res=[];var i=start;while(i239?4:firstByte>223?3:firstByte>191?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:if(firstByte<128){codePoint=firstByte}break;case 2:secondByte=buf[i+1];if((secondByte&192)===128){tempCodePoint=(firstByte&31)<<6|secondByte&63;if(tempCodePoint>127){codePoint=tempCodePoint}}break;case 3:secondByte=buf[i+1];thirdByte=buf[i+2];if((secondByte&192)===128&&(thirdByte&192)===128){tempCodePoint=(firstByte&15)<<12|(secondByte&63)<<6|thirdByte&63;if(tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)){codePoint=tempCodePoint}}break;case 4:secondByte=buf[i+1];thirdByte=buf[i+2];fourthByte=buf[i+3];if((secondByte&192)===128&&(thirdByte&192)===128&&(fourthByte&192)===128){tempCodePoint=(firstByte&15)<<18|(secondByte&63)<<12|(thirdByte&63)<<6|fourthByte&63;if(tempCodePoint>65535&&tempCodePoint<1114112){codePoint=tempCodePoint}}}}if(codePoint===null){codePoint=65533;bytesPerSequence=1}else if(codePoint>65535){codePoint-=65536;res.push(codePoint>>>10&1023|55296);codePoint=56320|codePoint&1023}res.push(codePoint);i+=bytesPerSequence}return decodeCodePointsArray(res)}var MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH){return String.fromCharCode.apply(String,codePoints)}var res="";var i=0;while(ilen)end=len;var out="";for(var i=start;ilen){start=len}if(end<0){end+=len;if(end<0)end=0}else if(end>len){end=len}if(endlength)throw new RangeError("Trying to access beyond buffer length")}Buffer.prototype.readUIntLE=function readUIntLE(offset,byteLength,noAssert){offset=offset|0;byteLength=byteLength|0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i0&&(mul*=256)){val+=this[offset+--byteLength]*mul}return val};Buffer.prototype.readUInt8=function readUInt8(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);return this[offset]};Buffer.prototype.readUInt16LE=function readUInt16LE(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]|this[offset+1]<<8};Buffer.prototype.readUInt16BE=function readUInt16BE(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]<<8|this[offset+1]};Buffer.prototype.readUInt32LE=function readUInt32LE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*16777216};Buffer.prototype.readUInt32BE=function readUInt32BE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]*16777216+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer.prototype.readIntLE=function readIntLE(offset,byteLength,noAssert){offset=offset|0;byteLength=byteLength|0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readIntBE=function readIntBE(offset,byteLength,noAssert){offset=offset|0;byteLength=byteLength|0;if(!noAssert)checkOffset(offset,byteLength,this.length);var i=byteLength;var mul=1;var val=this[offset+--i];while(i>0&&(mul*=256)){val+=this[offset+--i]*mul}mul*=128;if(val>=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readInt8=function readInt8(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);if(!(this[offset]&128))return this[offset];return(255-this[offset]+1)*-1};Buffer.prototype.readInt16LE=function readInt16LE(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return val&32768?val|4294901760:val};Buffer.prototype.readInt16BE=function readInt16BE(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return val&32768?val|4294901760:val};Buffer.prototype.readInt32LE=function readInt32LE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24};Buffer.prototype.readInt32BE=function readInt32BE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]};Buffer.prototype.readFloatLE=function readFloatLE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,true,23,4)};Buffer.prototype.readFloatBE=function readFloatBE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,false,23,4)};Buffer.prototype.readDoubleLE=function readDoubleLE(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,true,52,8)};Buffer.prototype.readDoubleBE=function readDoubleBE(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,false,52,8)};function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError("buffer must be a Buffer instance");if(value>max||valuebuf.length)throw new RangeError("index out of range")}Buffer.prototype.writeUIntLE=function writeUIntLE(value,offset,byteLength,noAssert){value=+value;offset=offset|0;byteLength=byteLength|0;if(!noAssert)checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength),0);var mul=1;var i=0;this[offset]=value&255;while(++i=0&&(mul*=256)){this[offset+i]=value/mul&255}return offset+byteLength};Buffer.prototype.writeUInt8=function writeUInt8(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,1,255,0);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);this[offset]=value;return offset+1};function objectWriteUInt16(buf,value,offset,littleEndian){if(value<0)value=65535+value+1;for(var i=0,j=Math.min(buf.length-offset,2);i>>(littleEndian?i:1-i)*8}}Buffer.prototype.writeUInt16LE=function writeUInt16LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8}else{objectWriteUInt16(this,value,offset,true)}return offset+2};Buffer.prototype.writeUInt16BE=function writeUInt16BE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value}else{objectWriteUInt16(this,value,offset,false)}return offset+2};function objectWriteUInt32(buf,value,offset,littleEndian){if(value<0)value=4294967295+value+1;for(var i=0,j=Math.min(buf.length-offset,4);i>>(littleEndian?i:3-i)*8&255}}Buffer.prototype.writeUInt32LE=function writeUInt32LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset+3]=value>>>24;this[offset+2]=value>>>16;this[offset+1]=value>>>8;this[offset]=value}else{objectWriteUInt32(this,value,offset,true)}return offset+4};Buffer.prototype.writeUInt32BE=function writeUInt32BE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value}else{objectWriteUInt32(this,value,offset,false)}return offset+4};Buffer.prototype.writeIntLE=function writeIntLE(value,offset,byteLength,noAssert){value=+value;offset=offset|0;if(!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=0;var mul=1;var sub=value<0?1:0;this[offset]=value&255;while(++i>0)-sub&255}return offset+byteLength};Buffer.prototype.writeIntBE=function writeIntBE(value,offset,byteLength,noAssert){value=+value;offset=offset|0;if(!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=byteLength-1;var mul=1;var sub=value<0?1:0;this[offset+i]=value&255;while(--i>=0&&(mul*=256)){this[offset+i]=(value/mul>>0)-sub&255}return offset+byteLength};Buffer.prototype.writeInt8=function writeInt8(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,1,127,-128);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);if(value<0)value=255+value+1;this[offset]=value;return offset+1};Buffer.prototype.writeInt16LE=function writeInt16LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8}else{objectWriteUInt16(this,value,offset,true)}return offset+2};Buffer.prototype.writeInt16BE=function writeInt16BE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value}else{objectWriteUInt16(this,value,offset,false)}return offset+2};Buffer.prototype.writeInt32LE=function writeInt32LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,4,2147483647,-2147483648);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8;this[offset+2]=value>>>16;this[offset+3]=value>>>24}else{objectWriteUInt32(this,value,offset,true)}return offset+4};Buffer.prototype.writeInt32BE=function writeInt32BE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,4,2147483647,-2147483648);if(value<0)value=4294967295+value+1;if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value}else{objectWriteUInt32(this,value,offset,false)}return offset+4};function checkIEEE754(buf,value,offset,ext,max,min){if(value>max||valuebuf.length)throw new RangeError("index out of range");if(offset<0)throw new RangeError("index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){if(!noAssert){checkIEEE754(buf,value,offset,4,3.4028234663852886e38,-3.4028234663852886e38)}ieee754.write(buf,value,offset,littleEndian,23,4);return offset+4}Buffer.prototype.writeFloatLE=function writeFloatLE(value,offset,noAssert){return writeFloat(this,value,offset,true,noAssert)};Buffer.prototype.writeFloatBE=function writeFloatBE(value,offset,noAssert){return writeFloat(this,value,offset,false,noAssert)};function writeDouble(buf,value,offset,littleEndian,noAssert){if(!noAssert){checkIEEE754(buf,value,offset,8,1.7976931348623157e308,-1.7976931348623157e308)}ieee754.write(buf,value,offset,littleEndian,52,8);return offset+8}Buffer.prototype.writeDoubleLE=function writeDoubleLE(value,offset,noAssert){return writeDouble(this,value,offset,true,noAssert)};Buffer.prototype.writeDoubleBE=function writeDoubleBE(value,offset,noAssert){return writeDouble(this,value,offset,false,noAssert)};Buffer.prototype.copy=function copy(target,targetStart,start,end){if(!start)start=0;if(!end&&end!==0)end=this.length;if(targetStart>=target.length)targetStart=target.length;if(!targetStart)targetStart=0;if(end>0&&end=this.length)throw new RangeError("sourceStart out of bounds");if(end<0)throw new RangeError("sourceEnd out of bounds");if(end>this.length)end=this.length;if(target.length-targetStart=0;i--){target[i+targetStart]=this[i+start]}}else if(len<1e3||!Buffer.TYPED_ARRAY_SUPPORT){for(i=0;i=this.length)throw new RangeError("start out of bounds");if(end<0||end>this.length)throw new RangeError("end out of bounds");var i;if(typeof value==="number"){for(i=start;i55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){if((units-=3)>-1)bytes.push(239,191,189);continue}else if(i+1===length){if((units-=3)>-1)bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){if((units-=3)>-1)bytes.push(239,191,189);leadSurrogate=codePoint;continue}codePoint=leadSurrogate-55296<<10|codePoint-56320|65536}else if(leadSurrogate){if((units-=3)>-1)bytes.push(239,191,189)}leadSurrogate=null;if(codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<1114112){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else{throw new Error("Invalid code point")}}return bytes}function asciiToBytes(str){var byteArray=[];for(var i=0;i>8;lo=c%256;byteArray.push(lo);byteArray.push(hi)}return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;i=dst.length||i>=src.length)break;dst[i+offset]=src[i]}return i}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/buffer/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/buffer")},{_process:379,"base64-js":231,buffer:230,ieee754:232,"is-array":233}],231:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var lookup="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(exports){"use strict";var Arr=typeof Uint8Array!=="undefined"?Uint8Array:Array;var PLUS="+".charCodeAt(0);var SLASH="/".charCodeAt(0);var NUMBER="0".charCodeAt(0);var LOWER="a".charCodeAt(0);var UPPER="A".charCodeAt(0);var PLUS_URL_SAFE="-".charCodeAt(0);var SLASH_URL_SAFE="_".charCodeAt(0);function decode(elt){var code=elt.charCodeAt(0);if(code===PLUS||code===PLUS_URL_SAFE)return 62;if(code===SLASH||code===SLASH_URL_SAFE)return 63;if(code0){throw new Error("Invalid string. Length must be a multiple of 4")}var len=b64.length;placeHolders="="===b64.charAt(len-2)?2:"="===b64.charAt(len-1)?1:0;arr=new Arr(b64.length*3/4-placeHolders);l=placeHolders>0?b64.length-4:b64.length;var L=0;function push(v){arr[L++]=v}for(i=0,j=0;i>16);push((tmp&65280)>>8);push(tmp&255)}if(placeHolders===2){tmp=decode(b64.charAt(i))<<2|decode(b64.charAt(i+1))>>4;push(tmp&255)}else if(placeHolders===1){tmp=decode(b64.charAt(i))<<10|decode(b64.charAt(i+1))<<4|decode(b64.charAt(i+2))>>2;push(tmp>>8&255);push(tmp&255)}return arr}function uint8ToBase64(uint8){var i,extraBytes=uint8.length%3,output="",temp,length;function encode(num){return lookup.charAt(num)}function tripletToBase64(num){return encode(num>>18&63)+encode(num>>12&63)+encode(num>>6&63)+encode(num&63)}for(i=0,length=uint8.length-extraBytes;i>2);output+=encode(temp<<4&63);output+="==";break;case 2:temp=(uint8[uint8.length-2]<<8)+uint8[uint8.length-1];output+=encode(temp>>10);output+=encode(temp>>4&63);output+=encode(temp<<2&63);output+="=";break}return output}exports.toByteArray=b64ToByteArray;exports.fromByteArray=uint8ToBase64})(typeof exports==="undefined"?this.base64js={}:exports)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib")},{_process:379,buffer:230}],232:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m;var eLen=nBytes*8-mLen-1;var eMax=(1<>1; +var nBits=-7;var i=isLE?nBytes-1:0;var d=isLE?-1:1;var s=buffer[offset+i];i+=d;e=s&(1<<-nBits)-1;s>>=-nBits;nBits+=eLen;for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8){}m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8){}if(e===0){e=1-eBias}else if(e===eMax){return m?NaN:(s?-1:1)*Infinity}else{m=m+Math.pow(2,mLen);e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c;var eLen=nBytes*8-mLen-1;var eMax=(1<>1;var rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0;var i=isLE?0:nBytes-1;var d=isLE?1:-1;var s=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e=eMax}else{e=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e))<1){e--;c*=2}if(e+eBias>=1){value+=rt/c}else{value+=rt*Math.pow(2,1-eBias)}if(value*c>=2){e++;c/=2}if(e+eBias>=eMax){m=0;e=eMax}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e=e+eBias}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e=0}}for(;mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8){}e=e<0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8){}buffer[offset+i-d]|=s*128}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/buffer/node_modules/ieee754")},{_process:379,buffer:230}],233:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var isArray=Array.isArray;var str=Object.prototype.toString;module.exports=isArray||function(val){return!!val&&"[object Array]"==str.call(val)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/buffer/node_modules/is-array/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/buffer/node_modules/is-array")},{_process:379,buffer:230}],234:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";exports.randomBytes=exports.rng=exports.pseudoRandomBytes=exports.prng=require("randombytes");exports.createHash=exports.Hash=require("create-hash");exports.createHmac=exports.Hmac=require("create-hmac");var hashes=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(require("browserify-sign/algos")));exports.getHashes=function(){return hashes};var p=require("pbkdf2");exports.pbkdf2=p.pbkdf2;exports.pbkdf2Sync=p.pbkdf2Sync;var aes=require("browserify-aes");["Cipher","createCipher","Cipheriv","createCipheriv","Decipher","createDecipher","Decipheriv","createDecipheriv","getCiphers","listCiphers"].forEach(function(key){exports[key]=aes[key]});var dh=require("diffie-hellman");["DiffieHellmanGroup","createDiffieHellmanGroup","getDiffieHellman","createDiffieHellman","DiffieHellman"].forEach(function(key){exports[key]=dh[key]});var sign=require("browserify-sign");["createSign","Sign","createVerify","Verify"].forEach(function(key){exports[key]=sign[key]});exports.createECDH=require("create-ecdh");var publicEncrypt=require("public-encrypt");["publicEncrypt","privateEncrypt","publicDecrypt","privateDecrypt"].forEach(function(key){exports[key]=publicEncrypt[key]});["createCredentials"].forEach(function(name){exports[name]=function(){throw new Error(["sorry, "+name+" is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))}})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify")},{_process:379,"browserify-aes":238,"browserify-sign":254,"browserify-sign/algos":253,buffer:230,"create-ecdh":302,"create-hash":325,"create-hmac":337,"diffie-hellman":338,pbkdf2:345,"public-encrypt":346,randombytes:374}],235:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var md5=require("create-hash/md5");module.exports=EVP_BytesToKey;function EVP_BytesToKey(password,keyLen,ivLen){if(!Buffer.isBuffer(password)){password=new Buffer(password,"binary")}keyLen=keyLen/8;ivLen=ivLen||0;var ki=0;var ii=0;var key=new Buffer(keyLen);var iv=new Buffer(ivLen);var addmd=0;var md_buf;var i;var bufs=[];while(true){if(addmd++>0){bufs.push(md_buf)}bufs.push(password);md_buf=md5(Buffer.concat(bufs));bufs=[];i=0;if(keyLen>0){while(true){if(keyLen===0){break}if(i===md_buf.length){break}key[ki++]=md_buf[i];keyLen--;i++}}if(ivLen>0&&i!==md_buf.length){while(true){if(ivLen===0){break}if(i===md_buf.length){break}iv[ii++]=md_buf[i];ivLen--;i++}}if(keyLen===0&&ivLen===0){break}}for(i=0;iuint_max||x<0?(x_pos=Math.abs(x)%uint_max,x<0?uint_max-x_pos:x_pos):x;return ret}function scrub_vec(v){for(var i=0;i>>8^sx&255^99;this.SBOX[x]=sx;this.INV_SBOX[sx]=x;x2=d[x];x4=d[x2];x8=d[x4];t=d[sx]*257^sx*16843008;this.SUB_MIX[0][x]=t<<24|t>>>8;this.SUB_MIX[1][x]=t<<16|t>>>16;this.SUB_MIX[2][x]=t<<8|t>>>24;this.SUB_MIX[3][x]=t;t=x8*16843009^x4*65537^x2*257^x*16843008;this.INV_SUB_MIX[0][sx]=t<<24|t>>>8;this.INV_SUB_MIX[1][sx]=t<<16|t>>>16;this.INV_SUB_MIX[2][sx]=t<<8|t>>>24;this.INV_SUB_MIX[3][sx]=t;if(x===0){x=xi=1}else{x=x2^d[d[d[x8^x2]]];xi^=d[d[xi]]}}return true};var G=new Global;AES.blockSize=4*4;AES.prototype.blockSize=AES.blockSize;AES.keySize=256/8;AES.prototype.keySize=AES.keySize;function bufferToArray(buf){var len=buf.length/4;var out=new Array(len);var i=-1;while(++i>>24,t=G.SBOX[t>>>24]<<24|G.SBOX[t>>>16&255]<<16|G.SBOX[t>>>8&255]<<8|G.SBOX[t&255],t^=G.RCON[ksRow/keySize|0]<<24):keySize>6&&ksRow%keySize===4?t=G.SBOX[t>>>24]<<24|G.SBOX[t>>>16&255]<<16|G.SBOX[t>>>8&255]<<8|G.SBOX[t&255]:void 0,this._keySchedule[ksRow-keySize]^t)}this._invKeySchedule=[];for(invKsRow=0;invKsRow>>24]]^G.INV_SUB_MIX[1][G.SBOX[t>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[t>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[t&255]]}return true};AES.prototype.encryptBlock=function(M){M=bufferToArray(new Buffer(M));var out=this._doCryptBlock(M,this._keySchedule,G.SUB_MIX,G.SBOX);var buf=new Buffer(16);buf.writeUInt32BE(out[0],0);buf.writeUInt32BE(out[1],4);buf.writeUInt32BE(out[2],8);buf.writeUInt32BE(out[3],12);return buf};AES.prototype.decryptBlock=function(M){M=bufferToArray(new Buffer(M));var temp=[M[3],M[1]];M[1]=temp[0];M[3]=temp[1];var out=this._doCryptBlock(M,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX);var buf=new Buffer(16);buf.writeUInt32BE(out[0],0);buf.writeUInt32BE(out[3],4);buf.writeUInt32BE(out[2],8);buf.writeUInt32BE(out[1],12);return buf};AES.prototype.scrub=function(){scrub_vec(this._keySchedule);scrub_vec(this._invKeySchedule);scrub_vec(this._key)};AES.prototype._doCryptBlock=function(M,keySchedule,SUB_MIX,SBOX){var ksRow,s0,s1,s2,s3,t0,t1,t2,t3;s0=M[0]^keySchedule[0];s1=M[1]^keySchedule[1];s2=M[2]^keySchedule[2];s3=M[3]^keySchedule[3];ksRow=4;for(var round=1;round>>24]^SUB_MIX[1][s1>>>16&255]^SUB_MIX[2][s2>>>8&255]^SUB_MIX[3][s3&255]^keySchedule[ksRow++];t1=SUB_MIX[0][s1>>>24]^SUB_MIX[1][s2>>>16&255]^SUB_MIX[2][s3>>>8&255]^SUB_MIX[3][s0&255]^keySchedule[ksRow++];t2=SUB_MIX[0][s2>>>24]^SUB_MIX[1][s3>>>16&255]^SUB_MIX[2][s0>>>8&255]^SUB_MIX[3][s1&255]^keySchedule[ksRow++];t3=SUB_MIX[0][s3>>>24]^SUB_MIX[1][s0>>>16&255]^SUB_MIX[2][s1>>>8&255]^SUB_MIX[3][s2&255]^keySchedule[ksRow++];s0=t0;s1=t1;s2=t2;s3=t3}t0=(SBOX[s0>>>24]<<24|SBOX[s1>>>16&255]<<16|SBOX[s2>>>8&255]<<8|SBOX[s3&255])^keySchedule[ksRow++];t1=(SBOX[s1>>>24]<<24|SBOX[s2>>>16&255]<<16|SBOX[s3>>>8&255]<<8|SBOX[s0&255])^keySchedule[ksRow++];t2=(SBOX[s2>>>24]<<24|SBOX[s3>>>16&255]<<16|SBOX[s0>>>8&255]<<8|SBOX[s1&255])^keySchedule[ksRow++];t3=(SBOX[s3>>>24]<<24|SBOX[s0>>>16&255]<<16|SBOX[s1>>>8&255]<<8|SBOX[s2&255])^keySchedule[ksRow++];return[fixup_uint32(t0),fixup_uint32(t1),fixup_uint32(t2),fixup_uint32(t3)]};exports.AES=AES}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-aes/aes.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-aes")},{_process:379,buffer:230}],237:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var aes=require("./aes");var Transform=require("./cipherBase");var inherits=require("inherits");var GHASH=require("./ghash");var xor=require("buffer-xor");inherits(StreamCipher,Transform);module.exports=StreamCipher;function StreamCipher(mode,key,iv,decrypt){if(!(this instanceof StreamCipher)){return new StreamCipher(mode,key,iv)}Transform.call(this);this._finID=Buffer.concat([iv,new Buffer([0,0,0,1])]);iv=Buffer.concat([iv,new Buffer([0,0,0,2])]);this._cipher=new aes.AES(key);this._prev=new Buffer(iv.length);this._cache=new Buffer("");this._secCache=new Buffer("");this._decrypt=decrypt;this._alen=0;this._len=0;iv.copy(this._prev);this._mode=mode;var h=new Buffer(4);h.fill(0);this._ghash=new GHASH(this._cipher.encryptBlock(h));this._authTag=null;this._called=false}StreamCipher.prototype._update=function(chunk){if(!this._called&&this._alen){var rump=16-this._alen%16;if(rump<16){rump=new Buffer(rump);rump.fill(0);this._ghash.update(rump)}}this._called=true;var out=this._mode.encrypt(this,chunk);if(this._decrypt){this._ghash.update(chunk)}else{this._ghash.update(out)}this._len+=chunk.length;return out};StreamCipher.prototype._final=function(){if(this._decrypt&&!this._authTag){throw new Error("Unsupported state or unable to authenticate data")}var tag=xor(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt){if(xorTest(tag,this._authTag)){throw new Error("Unsupported state or unable to authenticate data")}}else{this._authTag=tag}this._cipher.scrub()};StreamCipher.prototype.getAuthTag=function getAuthTag(){if(!this._decrypt&&Buffer.isBuffer(this._authTag)){return this._authTag}else{throw new Error("Attempting to get auth tag in unsupported state")}};StreamCipher.prototype.setAuthTag=function setAuthTag(tag){if(this._decrypt){this._authTag=tag}else{throw new Error("Attempting to set auth tag in unsupported state")}};StreamCipher.prototype.setAAD=function setAAD(buf){if(!this._called){this._ghash.update(buf);this._alen+=buf.length}else{throw new Error("Attempting to set AAD in unsupported state")}};function xorTest(a,b){var out=0;if(a.length!==b.length){out++}var len=Math.min(a.length,b.length);var i=-1;while(++i16){out=this.cache.slice(0,16);this.cache=this.cache.slice(16);return out}}else{if(this.cache.length>=16){out=this.cache.slice(0,16);this.cache=this.cache.slice(16);return out}}return null};Splitter.prototype.flush=function(){if(this.cache.length){return this.cache}};function unpad(last){var padded=last[15];var i=-1;while(++i15){var out=this.cache.slice(0,16);this.cache=this.cache.slice(16);return out}return null};Splitter.prototype.flush=function(){var len=16-this.cache.length;var padBuff=new Buffer(len);var i=-1;while(++i0;j--){Vi[j]=Vi[j]>>>1|(Vi[j-1]&1)<<31}Vi[0]=Vi[0]>>>1;if(lsb_Vi){Vi[0]=Vi[0]^225<<24}}this.state=fromArray(Zi)};GHASH.prototype.update=function(buf){this.cache=Buffer.concat([this.cache,buf]);var chunk;while(this.cache.length>=16){chunk=this.cache.slice(0,16);this.cache=this.cache.slice(16);this.ghash(chunk)}};GHASH.prototype.final=function(abl,bl){if(this.cache.length){this.ghash(Buffer.concat([this.cache,zeros],16))}this.ghash(fromArray([0,abl,0,bl]));return this.state};function toArray(buf){return[buf.readUInt32BE(0),buf.readUInt32BE(4),buf.readUInt32BE(8),buf.readUInt32BE(12)]}function fromArray(out){out=out.map(fixup_uint32);var buf=new Buffer(16);buf.writeUInt32BE(out[0],0);buf.writeUInt32BE(out[1],4);buf.writeUInt32BE(out[2],8);buf.writeUInt32BE(out[3],12);return buf}var uint_max=Math.pow(2,32);function fixup_uint32(x){var ret,x_pos;ret=x>uint_max||x<0?(x_pos=Math.abs(x)%uint_max,x<0?uint_max-x_pos:x_pos):x;return ret}function xor(a,b){return[a[0]^b[0],a[1]^b[1],a[2]^b[2],a[3]^b[3]]}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-aes/ghash.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-aes")},{_process:379,buffer:230}],243:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){exports["aes-128-ecb"]={cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"};exports["aes-192-ecb"]={cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"};exports["aes-256-ecb"]={cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"};exports["aes-128-cbc"]={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"};exports["aes-192-cbc"]={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"};exports["aes-256-cbc"]={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"};exports["aes128"]=exports["aes-128-cbc"];exports["aes192"]=exports["aes-192-cbc"];exports["aes256"]=exports["aes-256-cbc"];exports["aes-128-cfb"]={cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"};exports["aes-192-cfb"]={cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"};exports["aes-256-cfb"]={cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"};exports["aes-128-cfb8"]={cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"};exports["aes-192-cfb8"]={cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"};exports["aes-256-cfb8"]={cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"};exports["aes-128-cfb1"]={cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"};exports["aes-192-cfb1"]={cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"};exports["aes-256-cfb1"]={cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"};exports["aes-128-ofb"]={cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"};exports["aes-192-ofb"]={cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"};exports["aes-256-ofb"]={cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"};exports["aes-128-ctr"]={cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"};exports["aes-192-ctr"]={cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"};exports["aes-256-ctr"]={cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"};exports["aes-128-gcm"]={cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"};exports["aes-192-gcm"]={cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"};exports["aes-256-gcm"]={cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-aes/modes.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-aes")},{_process:379,buffer:230}],244:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var xor=require("buffer-xor");exports.encrypt=function(self,block){var data=xor(block,self._prev);self._prev=self._cipher.encryptBlock(data);return self._prev};exports.decrypt=function(self,block){var pad=self._prev;self._prev=block;var out=self._cipher.decryptBlock(block);return xor(out,pad)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-aes/modes")},{_process:379,buffer:230,"buffer-xor":251}],245:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var xor=require("buffer-xor");exports.encrypt=function(self,data,decrypt){var out=new Buffer("");var len;while(data.length){if(self._cache.length===0){self._cache=self._cipher.encryptBlock(self._prev);self._prev=new Buffer("")}if(self._cache.length<=data.length){len=self._cache.length;out=Buffer.concat([out,encryptStart(self,data.slice(0,len),decrypt)]);data=data.slice(len)}else{out=Buffer.concat([out,encryptStart(self,data,decrypt)]);break}}return out};function encryptStart(self,data,decrypt){var len=data.length;var out=xor(data,self._cache);self._cache=self._cache.slice(len);self._prev=Buffer.concat([self._prev,decrypt?data:out]);return out}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cfb.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-aes/modes")},{_process:379,buffer:230,"buffer-xor":251}],246:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){function encryptByte(self,byteParam,decrypt){var pad;var i=-1;var len=8;var out=0;var bit,value;while(++i>i%8;self._prev=shiftIn(self._prev,decrypt?bit:value)}return out}exports.encrypt=function(self,chunk,decrypt){var len=chunk.length;var out=new Buffer(len);var i=-1;while(++i>7}return out}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cfb1.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-aes/modes")},{_process:379,buffer:230}],247:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){function encryptByte(self,byteParam,decrypt){var pad=self._cipher.encryptBlock(self._prev);var out=pad[0]^byteParam;self._prev=Buffer.concat([self._prev.slice(1),new Buffer([decrypt?byteParam:out])]);return out}exports.encrypt=function(self,chunk,decrypt){var len=chunk.length;var out=new Buffer(len);var i=-1;while(++i=2&&base<=36);number=number.toString().replace(/\s+/g,"");var start=0;if(number[0]==="-")start++;if(base===16)this._parseHex(number,start);else this._parseBase(number,base,start);if(number[0]==="-")this.sign=true;this.strip();if(endian!=="le")return;this._initArray(this.toArray(),base,endian)};BN.prototype._initNumber=function _initNumber(number,base,endian){if(number<0){this.sign=true;number=-number}if(number<67108864){this.words=[number&67108863];this.length=1}else if(number<4503599627370496){this.words=[number&67108863,number/67108864&67108863];this.length=2}else{assert(number<9007199254740992);this.words=[number&67108863,number/67108864&67108863,1];this.length=3}if(endian!=="le")return;this._initArray(this.toArray(),base,endian)};BN.prototype._initArray=function _initArray(number,base,endian){assert(typeof number.length==="number");if(number.length<=0){this.words=[0];this.length=1;return this}this.length=Math.ceil(number.length/3);this.words=new Array(this.length);for(var i=0;i=0;i-=3){var w=number[i]|number[i-1]<<8|number[i-2]<<16;this.words[j]|=w<>>26-off&67108863;off+=24;if(off>=26){off-=26;j++}}}else if(endian==="le"){for(var i=0,j=0;i>>26-off&67108863;off+=24;if(off>=26){off-=26;j++}}}return this.strip()};function parseHex(str,start,end){var r=0;var len=Math.min(str.length,end);for(var i=start;i=49&&c<=54)r|=c-49+10;else if(c>=17&&c<=22)r|=c-17+10;else r|=c&15}return r}BN.prototype._parseHex=function _parseHex(number,start){this.length=Math.ceil((number.length-start)/6);this.words=new Array(this.length);for(var i=0;i=start;i-=6){var w=parseHex(number,i,i+6);this.words[j]|=w<>>26-off&4194303;off+=24;if(off>=26){off-=26;j++}}if(i+6!==start){var w=parseHex(number,start,i+6);this.words[j]|=w<>>26-off&4194303}this.strip()};function parseBase(str,start,end,mul){var r=0;var len=Math.min(str.length,end);for(var i=start;i=49)r+=c-49+10;else if(c>=17)r+=c-17+10;else r+=c}return r}BN.prototype._parseBase=function _parseBase(number,base,start){this.words=[0];this.length=1;for(var limbLen=0,limbPow=1;limbPow<=67108863;limbPow*=base)limbLen++;limbLen--;limbPow=limbPow/base|0;var total=number.length-start;var mod=total%limbLen;var end=Math.min(total,total-mod)+start;var word=0;for(var i=start;i1&&this.words[this.length-1]===0)this.length--;return this._normSign()};BN.prototype._normSign=function _normSign(){if(this.length===1&&this.words[0]===0)this.sign=false;return this};BN.prototype.inspect=function inspect(){return(this.red?""};var zeros=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"];var groupSizes=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5];var groupBases=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];BN.prototype.toString=function toString(base,padding){base=base||10;if(base===16||base==="hex"){var out="";var off=0;var padding=padding|0||1;var carry=0;for(var i=0;i>>24-off&16777215;if(carry!==0||i!==this.length-1)out=zeros[6-word.length]+word+out;else out=word+out;off+=2;if(off>=26){off-=26;i--}}if(carry!==0)out=carry.toString(16)+out;while(out.length%padding!==0)out="0"+out;if(this.sign)out="-"+out;return out}else if(base===(base|0)&&base>=2&&base<=36){var groupSize=groupSizes[base];var groupBase=groupBases[base];var out="";var c=this.clone();c.sign=false;while(c.cmpn(0)!==0){var r=c.modn(groupBase).toString(base);c=c.idivn(groupBase);if(c.cmpn(0)!==0)out=zeros[groupSize-r.length]+r+out;else out=r+out}if(this.cmpn(0)===0)out="0"+out;if(this.sign)out="-"+out;return out}else{assert(false,"Base should be between 2 and 36")}};BN.prototype.toJSON=function toJSON(){return this.toString(16)};BN.prototype.toArray=function toArray(endian){this.strip();var res=new Array(this.byteLength());res[0]=0;var q=this.clone();if(endian!=="le"){for(var i=0;q.cmpn(0)!==0;i++){var b=q.andln(255);q.ishrn(8);res[res.length-i-1]=b}}else{for(var i=0;q.cmpn(0)!==0;i++){var b=q.andln(255);q.ishrn(8);res[i]=b}}return res};if(Math.clz32){BN.prototype._countBits=function _countBits(w){return 32-Math.clz32(w)}}else{BN.prototype._countBits=function _countBits(w){var t=w;var r=0;if(t>=4096){r+=13;t>>>=13}if(t>=64){r+=7;t>>>=7}if(t>=8){r+=4;t>>>=4}if(t>=2){r+=2;t>>>=2}return r+t}}BN.prototype._zeroBits=function _zeroBits(w){if(w===0)return 26;var t=w;var r=0;if((t&8191)===0){r+=13;t>>>=13}if((t&127)===0){r+=7;t>>>=7}if((t&15)===0){r+=4;t>>>=4}if((t&3)===0){r+=2;t>>>=2}if((t&1)===0)r++;return r};BN.prototype.bitLength=function bitLength(){var hi=0;var w=this.words[this.length-1];var hi=this._countBits(w);return(this.length-1)*26+hi};BN.prototype.zeroBits=function zeroBits(){if(this.cmpn(0)===0)return 0;var r=0;for(var i=0;inum.length)return this.clone().ior(num);else return num.clone().ior(this)};BN.prototype.iand=function iand(num){this.sign=this.sign&&num.sign;var b;if(this.length>num.length)b=num;else b=this;for(var i=0;inum.length)return this.clone().iand(num);else return num.clone().iand(this)};BN.prototype.ixor=function ixor(num){this.sign=this.sign||num.sign;var a;var b;if(this.length>num.length){a=this;b=num}else{a=num;b=this}for(var i=0;inum.length)return this.clone().ixor(num);else return num.clone().ixor(this)};BN.prototype.setn=function setn(bit,val){assert(typeof bit==="number"&&bit>=0);var off=bit/26|0;var wbit=bit%26;while(this.length<=off)this.words[this.length++]=0;if(val)this.words[off]=this.words[off]|1<num.length){a=this;b=num}else{a=num;b=this}var carry=0;for(var i=0;i>>26}for(;carry!==0&&i>>26}this.length=a.length;if(carry!==0){this.words[this.length]=carry;this.length++}else if(a!==this){for(;inum.length)return this.clone().iadd(num);else return num.clone().iadd(this)};BN.prototype.isub=function isub(num){if(num.sign){num.sign=false;var r=this.iadd(num);num.sign=true;return r._normSign()}else if(this.sign){this.sign=false;this.iadd(num);this.sign=true;return this._normSign()}var cmp=this.cmp(num);if(cmp===0){this.sign=false;this.length=1;this.words[0]=0;return this}var a;var b;if(cmp>0){a=this;b=num}else{a=num;b=this}var carry=0;for(var i=0;i>26;this.words[i]=r&67108863}for(;carry!==0&&i>26;this.words[i]=r&67108863}if(carry===0&&i>>26;var rword=carry&67108863;var maxJ=Math.min(k,num.length-1);for(var j=Math.max(0,k-this.length+1);j<=maxJ;j++){var i=k-j;var a=this.words[i]|0;var b=num.words[j]|0;var r=a*b;var lo=r&67108863;ncarry=ncarry+(r/67108864|0)|0;lo=lo+rword|0;rword=lo&67108863;ncarry=ncarry+(lo>>>26)|0}out.words[k]=rword;carry=ncarry}if(carry!==0){out.words[k]=carry}else{out.length--}return out.strip()};BN.prototype._bigMulTo=function _bigMulTo(num,out){out.sign=num.sign!==this.sign;out.length=this.length+num.length;var carry=0;var hncarry=0;for(var k=0;k>>26)|0;hncarry+=ncarry>>>26;ncarry&=67108863}out.words[k]=rword;carry=ncarry;ncarry=hncarry}if(carry!==0){out.words[k]=carry}else{out.length--}return out.strip()};BN.prototype.mulTo=function mulTo(num,out){var res;if(this.length+num.length<63)res=this._smallMulTo(num,out);else res=this._bigMulTo(num,out);return res};BN.prototype.mul=function mul(num){var out=new BN(null);out.words=new Array(this.length+num.length);return this.mulTo(num,out)};BN.prototype.imul=function imul(num){if(this.cmpn(0)===0||num.cmpn(0)===0){this.words[0]=0;this.length=1;return this}var tlen=this.length;var nlen=num.length;this.sign=num.sign!==this.sign;this.length=this.length+num.length;this.words[this.length-1]=0;for(var k=this.length-2;k>=0;k--){var carry=0;var rword=0;var maxJ=Math.min(k,nlen-1);for(var j=Math.max(0,k-tlen+1);j<=maxJ;j++){var i=k-j;var a=this.words[i];var b=num.words[j];var r=a*b;var lo=r&67108863;carry+=r/67108864|0;lo+=rword;rword=lo&67108863;carry+=lo>>>26}this.words[k]=rword;this.words[k+1]+=carry;carry=0}var carry=0;for(var i=1;i>>26}return this.strip()};BN.prototype.imuln=function imuln(num){assert(typeof num==="number");var carry=0;for(var i=0;i>=26;carry+=w/67108864|0;carry+=lo>>>26;this.words[i]=lo&67108863}if(carry!==0){this.words[i]=carry;this.length++}return this};BN.prototype.muln=function muln(num){return this.clone().imuln(num)};BN.prototype.sqr=function sqr(){return this.mul(this)};BN.prototype.isqr=function isqr(){return this.mul(this)};BN.prototype.ishln=function ishln(bits){assert(typeof bits==="number"&&bits>=0);var r=bits%26;var s=(bits-r)/26;var carryMask=67108863>>>26-r<<26-r;if(r!==0){var carry=0;for(var i=0;i>>26-r}if(carry){this.words[i]=carry;this.length++}}if(s!==0){for(var i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(var i=0;i=0);var h;if(hint)h=(hint-hint%26)/26;else h=0;var r=bits%26;var s=Math.min((bits-r)/26,this.length);var mask=67108863^67108863>>>r<s){this.length-=s;for(var i=0;i=0&&(carry!==0||i>=h);i--){var word=this.words[i];this.words[i]=carry<<26-r|word>>>r;carry=word&mask}if(maskedWords&&carry!==0)maskedWords.words[maskedWords.length++]=carry;if(this.length===0){this.words[0]=0;this.length=1}this.strip();return this};BN.prototype.shln=function shln(bits){return this.clone().ishln(bits)};BN.prototype.shrn=function shrn(bits){return this.clone().ishrn(bits)};BN.prototype.testn=function testn(bit){assert(typeof bit==="number"&&bit>=0);var r=bit%26;var s=(bit-r)/26;var q=1<=0);var r=bits%26;var s=(bits-r)/26;assert(!this.sign,"imaskn works only with positive numbers");if(r!==0)s++;this.length=Math.min(s,this.length);if(r!==0){var mask=67108863^67108863>>>r<=67108864;i++){this.words[i]-=67108864;if(i===this.length-1)this.words[i+1]=1;else this.words[i+1]++}this.length=Math.max(this.length,i+1);return this};BN.prototype.isubn=function isubn(num){assert(typeof num==="number");if(num<0)return this.iaddn(-num);if(this.sign){this.sign=false;this.iaddn(num);this.sign=true;return this}this.words[0]-=num;for(var i=0;i>26)-(right/67108864|0);this.words[i+shift]=w&67108863}for(;i>26;this.words[i+shift]=w&67108863}if(carry===0)return this.strip();assert(carry===-1);carry=0;for(var i=0;i>26;this.words[i]=w&67108863}this.sign=true;return this.strip()};BN.prototype._wordDiv=function _wordDiv(num,mode){var shift=this.length-num.length;var a=this.clone();var b=num;var bhi=b.words[b.length-1];var bhiBits=this._countBits(bhi);shift=26-bhiBits;if(shift!==0){b=b.shln(shift);a.ishln(shift);bhi=b.words[b.length-1]}var m=a.length-b.length;var q;if(mode!=="mod"){q=new BN(null);q.length=m+1;q.words=new Array(q.length);for(var i=0;i=0;j--){var qj=a.words[b.length+j]*67108864+a.words[b.length+j-1];qj=Math.min(qj/bhi|0,67108863);a._ishlnsubmul(b,qj,j);while(a.sign){qj--;a.sign=false;a._ishlnsubmul(b,1,j);if(a.cmpn(0)!==0)a.sign=!a.sign}if(q)q.words[j]=qj}if(q)q.strip();a.strip();if(mode!=="div"&&shift!==0)a.ishrn(shift);return{div:q?q:null,mod:a}};BN.prototype.divmod=function divmod(num,mode){assert(num.cmpn(0)!==0);if(this.sign&&!num.sign){var res=this.neg().divmod(num,mode);var div;var mod;if(mode!=="mod")div=res.div.neg();if(mode!=="div")mod=res.mod.cmpn(0)===0?res.mod:num.sub(res.mod);return{div:div,mod:mod}}else if(!this.sign&&num.sign){var res=this.divmod(num.neg(),mode);var div;if(mode!=="mod")div=res.div.neg();return{div:div,mod:res.mod}}else if(this.sign&&num.sign){return this.neg().divmod(num.neg(),mode)}if(num.length>this.length||this.cmp(num)<0)return{div:new BN(0),mod:this};if(num.length===1){if(mode==="div")return{div:this.divn(num.words[0]),mod:null};else if(mode==="mod")return{div:null,mod:new BN(this.modn(num.words[0])) +};return{div:this.divn(num.words[0]),mod:new BN(this.modn(num.words[0]))}}return this._wordDiv(num,mode)};BN.prototype.div=function div(num){return this.divmod(num,"div").div};BN.prototype.mod=function mod(num){return this.divmod(num,"mod").mod};BN.prototype.divRound=function divRound(num){var dm=this.divmod(num);if(dm.mod.cmpn(0)===0)return dm.div;var mod=dm.div.sign?dm.mod.isub(num):dm.mod;var half=num.shrn(1);var r2=num.andln(1);var cmp=mod.cmp(half);if(cmp<0||r2===1&&cmp===0)return dm.div;return dm.div.sign?dm.div.isubn(1):dm.div.iaddn(1)};BN.prototype.modn=function modn(num){assert(num<=67108863);var p=(1<<26)%num;var acc=0;for(var i=this.length-1;i>=0;i--)acc=(p*acc+this.words[i])%num;return acc};BN.prototype.idivn=function idivn(num){assert(num<=67108863);var carry=0;for(var i=this.length-1;i>=0;i--){var w=this.words[i]+carry*67108864;this.words[i]=w/num|0;carry=w%num}return this.strip()};BN.prototype.divn=function divn(num){return this.clone().idivn(num)};BN.prototype.egcd=function egcd(p){assert(!p.sign);assert(p.cmpn(0)!==0);var x=this;var y=p.clone();if(x.sign)x=x.mod(p);else x=x.clone();var A=new BN(1);var B=new BN(0);var C=new BN(0);var D=new BN(1);var g=0;while(x.isEven()&&y.isEven()){x.ishrn(1);y.ishrn(1);++g}var yp=y.clone();var xp=x.clone();while(x.cmpn(0)!==0){while(x.isEven()){x.ishrn(1);if(A.isEven()&&B.isEven()){A.ishrn(1);B.ishrn(1)}else{A.iadd(yp).ishrn(1);B.isub(xp).ishrn(1)}}while(y.isEven()){y.ishrn(1);if(C.isEven()&&D.isEven()){C.ishrn(1);D.ishrn(1)}else{C.iadd(yp).ishrn(1);D.isub(xp).ishrn(1)}}if(x.cmp(y)>=0){x.isub(y);A.isub(C);B.isub(D)}else{y.isub(x);C.isub(A);D.isub(B)}}return{a:C,b:D,gcd:y.ishln(g)}};BN.prototype._invmp=function _invmp(p){assert(!p.sign);assert(p.cmpn(0)!==0);var a=this;var b=p.clone();if(a.sign)a=a.mod(p);else a=a.clone();var x1=new BN(1);var x2=new BN(0);var delta=b.clone();while(a.cmpn(1)>0&&b.cmpn(1)>0){while(a.isEven()){a.ishrn(1);if(x1.isEven())x1.ishrn(1);else x1.iadd(delta).ishrn(1)}while(b.isEven()){b.ishrn(1);if(x2.isEven())x2.ishrn(1);else x2.iadd(delta).ishrn(1)}if(a.cmp(b)>=0){a.isub(b);x1.isub(x2)}else{b.isub(a);x2.isub(x1)}}if(a.cmpn(1)===0)return x1;else return x2};BN.prototype.gcd=function gcd(num){if(this.cmpn(0)===0)return num.clone();if(num.cmpn(0)===0)return this.clone();var a=this.clone();var b=num.clone();a.sign=false;b.sign=false;for(var shift=0;a.isEven()&&b.isEven();shift++){a.ishrn(1);b.ishrn(1)}do{while(a.isEven())a.ishrn(1);while(b.isEven())b.ishrn(1);var r=a.cmp(b);if(r<0){var t=a;a=b;b=t}else if(r===0||b.cmpn(1)===0){break}a.isub(b)}while(true);return b.ishln(shift)};BN.prototype.invm=function invm(num){return this.egcd(num).a.mod(num)};BN.prototype.isEven=function isEven(){return(this.words[0]&1)===0};BN.prototype.isOdd=function isOdd(){return(this.words[0]&1)===1};BN.prototype.andln=function andln(num){return this.words[0]&num};BN.prototype.bincn=function bincn(bit){assert(typeof bit==="number");var r=bit%26;var s=(bit-r)/26;var q=1<>>26;w&=67108863;this.words[i]=w}if(carry!==0){this.words[i]=carry;this.length++}return this};BN.prototype.cmpn=function cmpn(num){var sign=num<0;if(sign)num=-num;if(this.sign&&!sign)return-1;else if(!this.sign&&sign)return 1;num&=67108863;this.strip();var res;if(this.length>1){res=1}else{var w=this.words[0];res=w===num?0:wnum.length)return 1;else if(this.length=0;i--){var a=this.words[i];var b=num.words[i];if(a===b)continue;if(ab)res=1;break}return res};BN.red=function red(num){return new Red(num)};BN.prototype.toRed=function toRed(ctx){assert(!this.red,"Already a number in reduction context");assert(!this.sign,"red works only with positives");return ctx.convertTo(this)._forceRed(ctx)};BN.prototype.fromRed=function fromRed(){assert(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)};BN.prototype._forceRed=function _forceRed(ctx){this.red=ctx;return this};BN.prototype.forceRed=function forceRed(ctx){assert(!this.red,"Already a number in reduction context");return this._forceRed(ctx)};BN.prototype.redAdd=function redAdd(num){assert(this.red,"redAdd works only with red numbers");return this.red.add(this,num)};BN.prototype.redIAdd=function redIAdd(num){assert(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,num)};BN.prototype.redSub=function redSub(num){assert(this.red,"redSub works only with red numbers");return this.red.sub(this,num)};BN.prototype.redISub=function redISub(num){assert(this.red,"redISub works only with red numbers");return this.red.isub(this,num)};BN.prototype.redShl=function redShl(num){assert(this.red,"redShl works only with red numbers");return this.red.shl(this,num)};BN.prototype.redMul=function redMul(num){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,num);return this.red.mul(this,num)};BN.prototype.redIMul=function redIMul(num){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,num);return this.red.imul(this,num)};BN.prototype.redSqr=function redSqr(){assert(this.red,"redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};BN.prototype.redISqr=function redISqr(){assert(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};BN.prototype.redSqrt=function redSqrt(){assert(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};BN.prototype.redInvm=function redInvm(){assert(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};BN.prototype.redNeg=function redNeg(){assert(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};BN.prototype.redPow=function redPow(num){assert(this.red&&!num.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,num)};var primes={k256:null,p224:null,p192:null,p25519:null};function MPrime(name,p){this.name=name;this.p=new BN(p,16);this.n=this.p.bitLength();this.k=new BN(1).ishln(this.n).isub(this.p);this.tmp=this._tmp()}MPrime.prototype._tmp=function _tmp(){var tmp=new BN(null);tmp.words=new Array(Math.ceil(this.n/13));return tmp};MPrime.prototype.ireduce=function ireduce(num){var r=num;var rlen;do{this.split(r,this.tmp);r=this.imulK(r);r=r.iadd(this.tmp);rlen=r.bitLength()}while(rlen>this.n);var cmp=rlen0){r.isub(this.p)}else{r.strip()}return r};MPrime.prototype.split=function split(input,out){input.ishrn(this.n,0,out)};MPrime.prototype.imulK=function imulK(num){return num.imul(this.k)};function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}inherits(K256,MPrime);K256.prototype.split=function split(input,output){var mask=4194303;var outLen=Math.min(input.length,9);for(var i=0;i>>22;prev=next}input.words[i-10]=prev>>>22;input.length-=9};K256.prototype.imulK=function imulK(num){num.words[num.length]=0;num.words[num.length+1]=0;num.length+=2;var hi;var lo=0;for(var i=0;i>>=26;num.words[i]=lo;carry=hi}if(carry!==0)num.words[num.length++]=carry;return num};BN._prime=function prime(name){if(primes[name])return primes[name];var prime;if(name==="k256")prime=new K256;else if(name==="p224")prime=new P224;else if(name==="p192")prime=new P192;else if(name==="p25519")prime=new P25519;else throw new Error("Unknown prime "+name);primes[name]=prime;return prime};function Red(m){if(typeof m==="string"){var prime=BN._prime(m);this.m=prime.p;this.prime=prime}else{this.m=m;this.prime=null}}Red.prototype._verify1=function _verify1(a){assert(!a.sign,"red works only with positives");assert(a.red,"red works only with red numbers")};Red.prototype._verify2=function _verify2(a,b){assert(!a.sign&&!b.sign,"red works only with positives");assert(a.red&&a.red===b.red,"red works only with red numbers")};Red.prototype.imod=function imod(a){if(this.prime)return this.prime.ireduce(a)._forceRed(this);return a.mod(this.m)._forceRed(this)};Red.prototype.neg=function neg(a){var r=a.clone();r.sign=!r.sign;return r.iadd(this.m)._forceRed(this)};Red.prototype.add=function add(a,b){this._verify2(a,b);var res=a.add(b);if(res.cmp(this.m)>=0)res.isub(this.m);return res._forceRed(this)};Red.prototype.iadd=function iadd(a,b){this._verify2(a,b);var res=a.iadd(b);if(res.cmp(this.m)>=0)res.isub(this.m);return res};Red.prototype.sub=function sub(a,b){this._verify2(a,b);var res=a.sub(b);if(res.cmpn(0)<0)res.iadd(this.m);return res._forceRed(this)};Red.prototype.isub=function isub(a,b){this._verify2(a,b);var res=a.isub(b);if(res.cmpn(0)<0)res.iadd(this.m);return res};Red.prototype.shl=function shl(a,num){this._verify1(a);return this.imod(a.shln(num))};Red.prototype.imul=function imul(a,b){this._verify2(a,b);return this.imod(a.imul(b))};Red.prototype.mul=function mul(a,b){this._verify2(a,b);return this.imod(a.mul(b))};Red.prototype.isqr=function isqr(a){return this.imul(a,a)};Red.prototype.sqr=function sqr(a){return this.mul(a,a)};Red.prototype.sqrt=function sqrt(a){if(a.cmpn(0)===0)return a.clone();var mod3=this.m.andln(3);assert(mod3%2===1);if(mod3===3){var pow=this.m.add(new BN(1)).ishrn(2);var r=this.pow(a,pow);return r}var q=this.m.subn(1);var s=0;while(q.cmpn(0)!==0&&q.andln(1)===0){s++;q.ishrn(1)}assert(q.cmpn(0)!==0);var one=new BN(1).toRed(this);var nOne=one.redNeg();var lpow=this.m.subn(1).ishrn(1);var z=this.m.bitLength();z=new BN(2*z*z).toRed(this);while(this.pow(z,lpow).cmp(nOne)!==0)z.redIAdd(nOne);var c=this.pow(z,q);var r=this.pow(a,q.addn(1).ishrn(1));var t=this.pow(a,q);var m=s;while(t.cmp(one)!==0){var tmp=t;for(var i=0;tmp.cmp(one)!==0;i++)tmp=tmp.redSqr();assert(i=0)res=u.isub(this.m);else if(u.cmpn(0)<0)res=u.iadd(this.m);return res._forceRed(this)};Mont.prototype.mul=function mul(a,b){if(a.cmpn(0)===0||b.cmpn(0)===0)return new BN(0)._forceRed(this);var t=a.mul(b);var c=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var u=t.isub(c).ishrn(this.shift);var res=u;if(u.cmp(this.m)>=0)res=u.isub(this.m);else if(u.cmpn(0)<0)res=u.iadd(this.m);return res._forceRed(this)};Mont.prototype.invm=function invm(a){var res=this.imod(a._invmp(this.m).mul(this.r2));return res._forceRed(this)}})(typeof module==="undefined"||module,this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/bn.js/lib/bn.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/bn.js/lib")},{_process:379,buffer:230}],257:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var bn=require("bn.js");var randomBytes=require("randombytes");module.exports=crt;function blind(priv){var r=getr(priv);var blinder=r.toRed(bn.mont(priv.modulus)).redPow(new bn(priv.publicExponent)).fromRed();return{blinder:blinder,unblinder:r.invm(priv.modulus)}}function crt(msg,priv){var blinds=blind(priv);var len=priv.modulus.byteLength();var mod=bn.mont(priv.modulus);var blinded=new bn(msg).mul(blinds.blinder).mod(priv.modulus);var c1=blinded.toRed(bn.mont(priv.prime1));var c2=blinded.toRed(bn.mont(priv.prime2));var qinv=priv.coefficient;var p=priv.prime1;var q=priv.prime2;var m1=c1.redPow(priv.exponent1);var m2=c2.redPow(priv.exponent2);m1=m1.fromRed();m2=m2.fromRed();var h=m1.isub(m2).imul(qinv).mod(p);h.imul(q);m2.iadd(h);var out=new Buffer(m2.imul(blinds.unblinder).mod(priv.modulus).toArray());if(out.length=0||!r.mod(priv.prime1)||!r.mod(priv.prime2)){r=new bn(randomBytes(len))}return r}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/browserify-rsa/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/browserify-rsa")},{_process:379,"bn.js":256,buffer:230,randombytes:374}],258:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var elliptic=exports;elliptic.version=require("../package.json").version;elliptic.utils=require("./elliptic/utils");elliptic.rand=require("brorand");elliptic.hmacDRBG=require("./elliptic/hmac-drbg");elliptic.curve=require("./elliptic/curve");elliptic.curves=require("./elliptic/curves");elliptic.ec=require("./elliptic/ec")}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib")},{"../package.json":278,"./elliptic/curve":261,"./elliptic/curves":264,"./elliptic/ec":265,"./elliptic/hmac-drbg":268,"./elliptic/utils":270,_process:379,brorand:271,buffer:230}],259:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var bn=require("bn.js");var elliptic=require("../../elliptic");var getNAF=elliptic.utils.getNAF;var getJSF=elliptic.utils.getJSF;var assert=elliptic.utils.assert;function BaseCurve(type,conf){this.type=type;this.p=new bn(conf.p,16);this.red=conf.prime?bn.red(conf.prime):bn.mont(this.p);this.zero=new bn(0).toRed(this.red);this.one=new bn(1).toRed(this.red);this.two=new bn(2).toRed(this.red);this.n=conf.n&&new bn(conf.n,16);this.g=conf.g&&this.pointFromJSON(conf.g,conf.gRed);this._wnafT1=new Array(4);this._wnafT2=new Array(4);this._wnafT3=new Array(4);this._wnafT4=new Array(4)}module.exports=BaseCurve;BaseCurve.prototype.point=function point(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function validate(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function _fixedNafMul(p,k){assert(p.precomputed);var doubles=p._getDoubles();var naf=getNAF(k,1);var I=(1<=j;k--)nafW=(nafW<<1)+naf[k];repr.push(nafW)}var a=this.jpoint(null,null,null);var b=this.jpoint(null,null,null);for(var i=I;i>0;i--){for(var j=0;j=0;i--){for(var k=0;i>=0&&naf[i]===0;i--)k++;if(i>=0)k++;acc=acc.dblp(k);if(i<0)break;var z=naf[i];assert(z!==0);if(p.type==="affine"){if(z>0)acc=acc.mixedAdd(wnd[z-1>>1]);else acc=acc.mixedAdd(wnd[-z-1>>1].neg())}else{if(z>0)acc=acc.add(wnd[z-1>>1]);else acc=acc.add(wnd[-z-1>>1].neg())}}return p.type==="affine"?acc.toP():acc};BaseCurve.prototype._wnafMulAdd=function _wnafMulAdd(defW,points,coeffs,len){var wndWidth=this._wnafT1;var wnd=this._wnafT2;var naf=this._wnafT3;var max=0;for(var i=0;i=1;i-=2){var a=i-1;var b=i;if(wndWidth[a]!==1||wndWidth[b]!==1){naf[a]=getNAF(coeffs[a],wndWidth[a]);naf[b]=getNAF(coeffs[b],wndWidth[b]);max=Math.max(naf[a].length,max);max=Math.max(naf[b].length,max);continue}var comb=[points[a],null,null,points[b]];if(points[a].y.cmp(points[b].y)===0){comb[1]=points[a].add(points[b]);comb[2]=points[a].toJ().mixedAdd(points[b].neg())}else if(points[a].y.cmp(points[b].y.redNeg())===0){comb[1]=points[a].toJ().mixedAdd(points[b]);comb[2]=points[a].add(points[b].neg())}else{comb[1]=points[a].toJ().mixedAdd(points[b]);comb[2]=points[a].toJ().mixedAdd(points[b].neg())}var index=[-3,-1,-5,-7,0,7,5,1,3];var jsf=getJSF(coeffs[a],coeffs[b]);max=Math.max(jsf[0].length,max);naf[a]=new Array(max);naf[b]=new Array(max);for(var j=0;j=0;i--){var k=0;while(i>=0){var zero=true;for(var j=0;j=0)k++;acc=acc.dblp(k);if(i<0)break;for(var j=0;j0)p=wnd[j][z-1>>1];else if(z<0)p=wnd[j][-z-1>>1].neg();if(p.type==="affine")acc=acc.mixedAdd(p);else acc=acc.add(p)}}for(var i=0;i=Math.ceil((k.bitLength()+1)/doubles.step)};BasePoint.prototype._getDoubles=function _getDoubles(step,power){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var doubles=[this];var acc=this;for(var i=0;i";return""};Point.prototype.isInfinity=function isInfinity(){return this.x.cmpn(0)===0&&this.y.cmp(this.z)===0};Point.prototype._extDbl=function _extDbl(){var a=this.x.redSqr();var b=this.y.redSqr();var c=this.z.redSqr();c=c.redIAdd(c);var d=this.curve._mulA(a);var e=this.x.redAdd(this.y).redSqr().redISub(a).redISub(b);var g=d.redAdd(b);var f=g.redSub(c);var h=d.redSub(b);var nx=e.redMul(f);var ny=g.redMul(h);var nt=e.redMul(h);var nz=f.redMul(g);return this.curve.point(nx,ny,nz,nt)};Point.prototype._projDbl=function _projDbl(){var b=this.x.redAdd(this.y).redSqr();var c=this.x.redSqr();var d=this.y.redSqr();var nx;var ny;var nz;if(this.curve.twisted){var e=this.curve._mulA(c);var f=e.redAdd(d);if(this.zOne){nx=b.redSub(c).redSub(d).redMul(f.redSub(this.curve.two));ny=f.redMul(e.redSub(d));nz=f.redSqr().redSub(f).redSub(f)}else{var h=this.z.redSqr();var j=f.redSub(h).redISub(h);nx=b.redSub(c).redISub(d).redMul(j);ny=f.redMul(e.redSub(d));nz=f.redMul(j)}}else{var e=c.redAdd(d);var h=this.curve._mulC(this.c.redMul(this.z)).redSqr();var j=e.redSub(h).redSub(h);nx=this.curve._mulC(b.redISub(e)).redMul(j);ny=this.curve._mulC(e).redMul(c.redISub(d));nz=e.redMul(j)}return this.curve.point(nx,ny,nz)};Point.prototype.dbl=function dbl(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()};Point.prototype._extAdd=function _extAdd(p){var a=this.y.redSub(this.x).redMul(p.y.redSub(p.x));var b=this.y.redAdd(this.x).redMul(p.y.redAdd(p.x));var c=this.t.redMul(this.curve.dd).redMul(p.t);var d=this.z.redMul(p.z.redAdd(p.z));var e=b.redSub(a);var f=d.redSub(c);var g=d.redAdd(c);var h=b.redAdd(a);var nx=e.redMul(f);var ny=g.redMul(h);var nt=e.redMul(h);var nz=f.redMul(g);return this.curve.point(nx,ny,nz,nt)};Point.prototype._projAdd=function _projAdd(p){var a=this.z.redMul(p.z);var b=a.redSqr();var c=this.x.redMul(p.x);var d=this.y.redMul(p.y);var e=this.curve.d.redMul(c).redMul(d);var f=b.redSub(e);var g=b.redAdd(e);var tmp=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(c).redISub(d);var nx=a.redMul(f).redMul(tmp);var ny;var nz;if(this.curve.twisted){ny=a.redMul(g).redMul(d.redSub(this.curve._mulA(c)));nz=f.redMul(g)}else{ny=a.redMul(g).redMul(d.redSub(c));nz=this.curve._mulC(f).redMul(g)}return this.curve.point(nx,ny,nz)};Point.prototype.add=function add(p){if(this.isInfinity())return p;if(p.isInfinity())return this;if(this.curve.extended)return this._extAdd(p);else return this._projAdd(p)};Point.prototype.mul=function mul(k){if(this._hasDoubles(k))return this.curve._fixedNafMul(this,k);else return this.curve._wnafMul(this,k)};Point.prototype.mulAdd=function mulAdd(k1,p,k2){return this.curve._wnafMulAdd(1,[this,p],[k1,k2],2)};Point.prototype.normalize=function normalize(){if(this.zOne)return this;var zi=this.z.redInvm();this.x=this.x.redMul(zi);this.y=this.y.redMul(zi);if(this.t)this.t=this.t.redMul(zi);this.z=this.curve.one;this.zOne=true;return this};Point.prototype.neg=function neg(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function getX(){this.normalize();return this.x.fromRed()};Point.prototype.getY=function getY(){this.normalize();return this.y.fromRed()};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/curve/edwards.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/curve")},{"../../elliptic":258,"../curve":261,_process:379,"bn.js":256,buffer:230,inherits:"inherits"}],261:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var curve=exports;curve.base=require("./base");curve.short=require("./short");curve.mont=require("./mont");curve.edwards=require("./edwards")}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/curve/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/curve")},{"./base":259,"./edwards":260,"./mont":262,"./short":263,_process:379,buffer:230}],262:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var curve=require("../curve");var bn=require("bn.js");var inherits=require("inherits");var Base=curve.base;function MontCurve(conf){Base.call(this,"mont",conf);this.a=new bn(conf.a,16).toRed(this.red);this.b=new bn(conf.b,16).toRed(this.red);this.i4=new bn(4).toRed(this.red).redInvm();this.two=new bn(2).toRed(this.red);this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits(MontCurve,Base);module.exports=MontCurve;MontCurve.prototype.validate=function validate(point){var x=point.normalize().x;var x2=x.redSqr();var rhs=x2.redMul(x).redAdd(x2.redMul(this.a)).redAdd(x);var y=rhs.redSqrt();return y.redSqr().cmp(rhs)===0};function Point(curve,x,z){Base.BasePoint.call(this,curve,"projective");if(x===null&&z===null){this.x=this.curve.one;this.z=this.curve.zero}else{this.x=new bn(x,16);this.z=new bn(z,16);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red)}}inherits(Point,Base.BasePoint);MontCurve.prototype.point=function point(x,z){return new Point(this,x,z)};MontCurve.prototype.pointFromJSON=function pointFromJSON(obj){return Point.fromJSON(this,obj)};Point.prototype.precompute=function precompute(){};Point.fromJSON=function fromJSON(curve,obj){ +return new Point(curve,obj[0],obj[1]||curve.one)};Point.prototype.inspect=function inspect(){if(this.isInfinity())return"";return""};Point.prototype.isInfinity=function isInfinity(){return this.z.cmpn(0)===0};Point.prototype.dbl=function dbl(){var a=this.x.redAdd(this.z);var aa=a.redSqr();var b=this.x.redSub(this.z);var bb=b.redSqr();var c=aa.redSub(bb);var nx=aa.redMul(bb);var nz=c.redMul(bb.redAdd(this.curve.a24.redMul(c)));return this.curve.point(nx,nz)};Point.prototype.add=function add(){throw new Error("Not supported on Montgomery curve")};Point.prototype.diffAdd=function diffAdd(p,diff){var a=this.x.redAdd(this.z);var b=this.x.redSub(this.z);var c=p.x.redAdd(p.z);var d=p.x.redSub(p.z);var da=d.redMul(a);var cb=c.redMul(b);var nx=diff.z.redMul(da.redAdd(cb).redSqr());var nz=diff.x.redMul(da.redISub(cb).redSqr());return this.curve.point(nx,nz)};Point.prototype.mul=function mul(k){var t=k.clone();var a=this;var b=this.curve.point(null,null);var c=this;for(var bits=[];t.cmpn(0)!==0;t.ishrn(1))bits.push(t.andln(1));for(var i=bits.length-1;i>=0;i--){if(bits[i]===0){a=a.diffAdd(b,c);b=b.dbl()}else{b=a.diffAdd(b,c);a=a.dbl()}}return b};Point.prototype.mulAdd=function mulAdd(){throw new Error("Not supported on Montgomery curve")};Point.prototype.normalize=function normalize(){this.x=this.x.redMul(this.z.redInvm());this.z=this.curve.one;return this};Point.prototype.getX=function getX(){this.normalize();return this.x.fromRed()}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/curve/mont.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/curve")},{"../curve":261,_process:379,"bn.js":256,buffer:230,inherits:"inherits"}],263:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var curve=require("../curve");var elliptic=require("../../elliptic");var bn=require("bn.js");var inherits=require("inherits");var Base=curve.base;var assert=elliptic.utils.assert;function ShortCurve(conf){Base.call(this,"short",conf);this.a=new bn(conf.a,16).toRed(this.red);this.b=new bn(conf.b,16).toRed(this.red);this.tinv=this.two.redInvm();this.zeroA=this.a.fromRed().cmpn(0)===0;this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0;this.endo=this._getEndomorphism(conf);this._endoWnafT1=new Array(4);this._endoWnafT2=new Array(4)}inherits(ShortCurve,Base);module.exports=ShortCurve;ShortCurve.prototype._getEndomorphism=function _getEndomorphism(conf){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var beta;var lambda;if(conf.beta){beta=new bn(conf.beta,16).toRed(this.red)}else{var betas=this._getEndoRoots(this.p);beta=betas[0].cmp(betas[1])<0?betas[0]:betas[1];beta=beta.toRed(this.red)}if(conf.lambda){lambda=new bn(conf.lambda,16)}else{var lambdas=this._getEndoRoots(this.n);if(this.g.mul(lambdas[0]).x.cmp(this.g.x.redMul(beta))===0){lambda=lambdas[0]}else{lambda=lambdas[1];assert(this.g.mul(lambda).x.cmp(this.g.x.redMul(beta))===0)}}var basis;if(conf.basis){basis=conf.basis.map(function(vec){return{a:new bn(vec.a,16),b:new bn(vec.b,16)}})}else{basis=this._getEndoBasis(lambda)}return{beta:beta,lambda:lambda,basis:basis}};ShortCurve.prototype._getEndoRoots=function _getEndoRoots(num){var red=num===this.p?this.red:bn.mont(num);var tinv=new bn(2).toRed(red).redInvm();var ntinv=tinv.redNeg();var s=new bn(3).toRed(red).redNeg().redSqrt().redMul(tinv);var l1=ntinv.redAdd(s).fromRed();var l2=ntinv.redSub(s).fromRed();return[l1,l2]};ShortCurve.prototype._getEndoBasis=function _getEndoBasis(lambda){var aprxSqrt=this.n.shrn(Math.floor(this.n.bitLength()/2));var u=lambda;var v=this.n.clone();var x1=new bn(1);var y1=new bn(0);var x2=new bn(0);var y2=new bn(1);var a0;var b0;var a1;var b1;var a2;var b2;var prevR;var i=0;var r;var x;while(u.cmpn(0)!==0){var q=v.div(u);r=v.sub(q.mul(u));x=x2.sub(q.mul(x1));var y=y2.sub(q.mul(y1));if(!a1&&r.cmp(aprxSqrt)<0){a0=prevR.neg();b0=x1;a1=r.neg();b1=x}else if(a1&&++i===2){break}prevR=r;v=u;u=r;x2=x1;x1=x;y2=y1;y1=y}a2=r.neg();b2=x;var len1=a1.sqr().add(b1.sqr());var len2=a2.sqr().add(b2.sqr());if(len2.cmp(len1)>=0){a2=a0;b2=b0}if(a1.sign){a1=a1.neg();b1=b1.neg()}if(a2.sign){a2=a2.neg();b2=b2.neg()}return[{a:a1,b:b1},{a:a2,b:b2}]};ShortCurve.prototype._endoSplit=function _endoSplit(k){var basis=this.endo.basis;var v1=basis[0];var v2=basis[1];var c1=v2.b.mul(k).divRound(this.n);var c2=v1.b.neg().mul(k).divRound(this.n);var p1=c1.mul(v1.a);var p2=c2.mul(v2.a);var q1=c1.mul(v1.b);var q2=c2.mul(v2.b);var k1=k.sub(p1).sub(p2);var k2=q1.add(q2).neg();return{k1:k1,k2:k2}};ShortCurve.prototype.pointFromX=function pointFromX(odd,x){x=new bn(x,16);if(!x.red)x=x.toRed(this.red);var y2=x.redSqr().redMul(x).redIAdd(x.redMul(this.a)).redIAdd(this.b);var y=y2.redSqrt();var isOdd=y.fromRed().isOdd();if(odd&&!isOdd||!odd&&isOdd)y=y.redNeg();return this.point(x,y)};ShortCurve.prototype.validate=function validate(point){if(point.inf)return true;var x=point.x;var y=point.y;var ax=this.a.redMul(x);var rhs=x.redSqr().redMul(x).redIAdd(ax).redIAdd(this.b);return y.redSqr().redISub(rhs).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function _endoWnafMulAdd(points,coeffs){var npoints=this._endoWnafT1;var ncoeffs=this._endoWnafT2;for(var i=0;i";return""};Point.prototype.isInfinity=function isInfinity(){return this.inf};Point.prototype.add=function add(p){if(this.inf)return p;if(p.inf)return this;if(this.eq(p))return this.dbl();if(this.neg().eq(p))return this.curve.point(null,null);if(this.x.cmp(p.x)===0)return this.curve.point(null,null);var c=this.y.redSub(p.y);if(c.cmpn(0)!==0)c=c.redMul(this.x.redSub(p.x).redInvm());var nx=c.redSqr().redISub(this.x).redISub(p.x);var ny=c.redMul(this.x.redSub(nx)).redISub(this.y);return this.curve.point(nx,ny)};Point.prototype.dbl=function dbl(){if(this.inf)return this;var ys1=this.y.redAdd(this.y);if(ys1.cmpn(0)===0)return this.curve.point(null,null);var a=this.curve.a;var x2=this.x.redSqr();var dyinv=ys1.redInvm();var c=x2.redAdd(x2).redIAdd(x2).redIAdd(a).redMul(dyinv);var nx=c.redSqr().redISub(this.x.redAdd(this.x));var ny=c.redMul(this.x.redSub(nx)).redISub(this.y);return this.curve.point(nx,ny)};Point.prototype.getX=function getX(){return this.x.fromRed()};Point.prototype.getY=function getY(){return this.y.fromRed()};Point.prototype.mul=function mul(k){k=new bn(k,16);if(this._hasDoubles(k))return this.curve._fixedNafMul(this,k);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[k]);else return this.curve._wnafMul(this,k)};Point.prototype.mulAdd=function mulAdd(k1,p2,k2){var points=[this,p2];var coeffs=[k1,k2];if(this.curve.endo)return this.curve._endoWnafMulAdd(points,coeffs);else return this.curve._wnafMulAdd(1,points,coeffs,2)};Point.prototype.eq=function eq(p){return this===p||this.inf===p.inf&&(this.inf||this.x.cmp(p.x)===0&&this.y.cmp(p.y)===0)};Point.prototype.neg=function neg(_precompute){if(this.inf)return this;var res=this.curve.point(this.x,this.y.redNeg());if(_precompute&&this.precomputed){var pre=this.precomputed;var negate=function(p){return p.neg()};res.precomputed={naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(negate)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(negate)}}}return res};Point.prototype.toJ=function toJ(){if(this.inf)return this.curve.jpoint(null,null,null);var res=this.curve.jpoint(this.x,this.y,this.curve.one);return res};function JPoint(curve,x,y,z){Base.BasePoint.call(this,curve,"jacobian");if(x===null&&y===null&&z===null){this.x=this.curve.one;this.y=this.curve.one;this.z=new bn(0)}else{this.x=new bn(x,16);this.y=new bn(y,16);this.z=new bn(z,16)}if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);this.zOne=this.z===this.curve.one}inherits(JPoint,Base.BasePoint);ShortCurve.prototype.jpoint=function jpoint(x,y,z){return new JPoint(this,x,y,z)};JPoint.prototype.toP=function toP(){if(this.isInfinity())return this.curve.point(null,null);var zinv=this.z.redInvm();var zinv2=zinv.redSqr();var ax=this.x.redMul(zinv2);var ay=this.y.redMul(zinv2).redMul(zinv);return this.curve.point(ax,ay)};JPoint.prototype.neg=function neg(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function add(p){if(this.isInfinity())return p;if(p.isInfinity())return this;var pz2=p.z.redSqr();var z2=this.z.redSqr();var u1=this.x.redMul(pz2);var u2=p.x.redMul(z2);var s1=this.y.redMul(pz2.redMul(p.z));var s2=p.y.redMul(z2.redMul(this.z));var h=u1.redSub(u2);var r=s1.redSub(s2);if(h.cmpn(0)===0){if(r.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl()}var h2=h.redSqr();var h3=h2.redMul(h);var v=u1.redMul(h2);var nx=r.redSqr().redIAdd(h3).redISub(v).redISub(v);var ny=r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));var nz=this.z.redMul(p.z).redMul(h);return this.curve.jpoint(nx,ny,nz)};JPoint.prototype.mixedAdd=function mixedAdd(p){if(this.isInfinity())return p.toJ();if(p.isInfinity())return this;var z2=this.z.redSqr();var u1=this.x;var u2=p.x.redMul(z2);var s1=this.y;var s2=p.y.redMul(z2).redMul(this.z);var h=u1.redSub(u2);var r=s1.redSub(s2);if(h.cmpn(0)===0){if(r.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl()}var h2=h.redSqr();var h3=h2.redMul(h);var v=u1.redMul(h2);var nx=r.redSqr().redIAdd(h3).redISub(v).redISub(v);var ny=r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));var nz=this.z.redMul(h);return this.curve.jpoint(nx,ny,nz)};JPoint.prototype.dblp=function dblp(pow){if(pow===0)return this;if(this.isInfinity())return this;if(!pow)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var r=this;for(var i=0;i";return""};JPoint.prototype.isInfinity=function isInfinity(){return this.z.cmpn(0)===0}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/curve/short.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/curve")},{"../../elliptic":258,"../curve":261,_process:379,"bn.js":256,buffer:230,inherits:"inherits"}],264:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var curves=exports;var hash=require("hash.js");var elliptic=require("../elliptic");var assert=elliptic.utils.assert;function PresetCurve(options){if(options.type==="short")this.curve=new elliptic.curve.short(options);else if(options.type==="edwards")this.curve=new elliptic.curve.edwards(options);else this.curve=new elliptic.curve.mont(options);this.g=this.curve.g;this.n=this.curve.n;this.hash=options.hash;assert(this.g.validate(),"Invalid curve");assert(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}curves.PresetCurve=PresetCurve;function defineCurve(name,options){Object.defineProperty(curves,name,{configurable:true,enumerable:true,get:function(){var curve=new PresetCurve(options);Object.defineProperty(curves,name,{configurable:true,enumerable:true,value:curve});return curve}})}defineCurve("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:hash.sha256,gRed:false,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});defineCurve("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:hash.sha256,gRed:false,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});defineCurve("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:hash.sha256,gRed:false,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});defineCurve("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"0",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:hash.sha256,gRed:false,g:["9"]});defineCurve("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:hash.sha256,gRed:false,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var pre;try{pre=require("./precomputed/secp256k1")}catch(e){pre=undefined}defineCurve("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:hash.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:false,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",pre]})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/curves.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic")},{"../elliptic":258,"./precomputed/secp256k1":269,_process:379,buffer:230,"hash.js":272}],265:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var bn=require("bn.js");var elliptic=require("../../elliptic");var utils=elliptic.utils;var assert=utils.assert;var KeyPair=require("./key");var Signature=require("./signature");function EC(options){if(!(this instanceof EC))return new EC(options);if(typeof options==="string"){assert(elliptic.curves.hasOwnProperty(options),"Unknown curve "+options);options=elliptic.curves[options]}if(options instanceof elliptic.curves.PresetCurve)options={curve:options};this.curve=options.curve.curve;this.n=this.curve.n;this.nh=this.n.shrn(1);this.g=this.curve.g;this.g=options.curve.g;this.g.precompute(options.curve.n.bitLength()+1);this.hash=options.hash||options.curve.hash}module.exports=EC;EC.prototype.keyPair=function keyPair(options){return new KeyPair(this,options)};EC.prototype.keyFromPrivate=function keyFromPrivate(priv,enc){return KeyPair.fromPrivate(this,priv,enc)};EC.prototype.keyFromPublic=function keyFromPublic(pub,enc){return KeyPair.fromPublic(this,pub,enc)};EC.prototype.genKeyPair=function genKeyPair(options){if(!options)options={};var drbg=new elliptic.hmacDRBG({hash:this.hash,pers:options.pers,entropy:options.entropy||elliptic.rand(this.hash.hmacStrength),nonce:this.n.toArray()});var bytes=this.n.byteLength();var ns2=this.n.sub(new bn(2));do{var priv=new bn(drbg.generate(bytes));if(priv.cmp(ns2)>0)continue;priv.iaddn(1);return this.keyFromPrivate(priv)}while(true)};EC.prototype._truncateToN=function truncateToN(msg,truncOnly){var delta=msg.byteLength()*8-this.n.bitLength();if(delta>0)msg=msg.shrn(delta);if(!truncOnly&&msg.cmp(this.n)>=0)return msg.sub(this.n);else return msg};EC.prototype.sign=function sign(msg,key,enc,options){if(typeof enc==="object"){options=enc;enc=null}if(!options)options={};key=this.keyFromPrivate(key,enc);msg=this._truncateToN(new bn(msg,16));var bytes=this.n.byteLength();var bkey=key.getPrivate().toArray();for(var i=bkey.length;i<21;i++)bkey.unshift(0);var nonce=msg.toArray();for(var i=nonce.length;i=0)continue;var kp=this.g.mul(k);if(kp.isInfinity())continue;var kpX=kp.getX();var r=kpX.mod(this.n);if(r.cmpn(0)===0)continue;var s=k.invm(this.n).mul(r.mul(key.getPrivate()).iadd(msg)).mod(this.n);if(s.cmpn(0)===0)continue;if(options.canonical&&s.cmp(this.nh)>0)s=this.n.sub(s);var recoveryParam=(kp.getY().isOdd()?1:0)|(kpX.cmp(r)!==0?2:0);return new Signature({r:r,s:s,recoveryParam:recoveryParam})}while(true)};EC.prototype.verify=function verify(msg,signature,key,enc){msg=this._truncateToN(new bn(msg,16));key=this.keyFromPublic(key,enc);signature=new Signature(signature,"hex");var r=signature.r;var s=signature.s;if(r.cmpn(1)<0||r.cmp(this.n)>=0)return false;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return false;var sinv=s.invm(this.n);var u1=sinv.mul(msg).mod(this.n);var u2=sinv.mul(r).mod(this.n);var p=this.g.mulAdd(u1,key.getPublic(),u2);if(p.isInfinity())return false;return p.getX().mod(this.n).cmp(r)===0};EC.prototype.recoverPubKey=function(msg,signature,j,enc){assert((3&j)===j,"The recovery param is more than two bits");signature=new Signature(signature,enc);var n=this.n;var e=new bn(msg);var r=signature.r;var s=signature.s;var isYOdd=j&1;var isSecondKey=j>>1;if(r.cmp(this.curve.p.mod(this.curve.n))>=0&&isSecondKey)throw new Error("Unable to find sencond key candinate");r=this.curve.pointFromX(isYOdd,r);var eNeg=e.neg().mod(n);var rInv=signature.r.invm(n);return r.mul(s).add(this.g.mul(eNeg)).mul(rInv)};EC.prototype.getKeyRecoveryParam=function(e,signature,Q,enc){signature=new Signature(signature,enc);if(signature.recoveryParam!==null)return signature.recoveryParam;for(var i=0;i<4;i++){var Qprime=this.recoverPubKey(e,signature,i);if(Qprime.eq(Q))return i}throw new Error("Unable to find valid recovery factor")}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/ec/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/ec")},{"../../elliptic":258,"./key":266,"./signature":267,_process:379,"bn.js":256,buffer:230}],266:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var bn=require("bn.js");var elliptic=require("../../elliptic");var utils=elliptic.utils;function KeyPair(ec,options){this.ec=ec;this.priv=null;this.pub=null;if(options.priv)this._importPrivate(options.priv,options.privEnc);if(options.pub)this._importPublic(options.pub,options.pubEnc)}module.exports=KeyPair;KeyPair.fromPublic=function fromPublic(ec,pub,enc){if(pub instanceof KeyPair)return pub;return new KeyPair(ec,{pub:pub,pubEnc:enc})};KeyPair.fromPrivate=function fromPrivate(ec,priv,enc){if(priv instanceof KeyPair)return priv;return new KeyPair(ec,{priv:priv,privEnc:enc})};KeyPair.prototype.validate=function validate(){var pub=this.getPublic();if(pub.isInfinity())return{result:false,reason:"Invalid public key"};if(!pub.validate())return{result:false,reason:"Public key is not a point"};if(!pub.mul(this.ec.curve.n).isInfinity())return{result:false,reason:"Public key * N != O"};return{result:true,reason:null}};KeyPair.prototype.getPublic=function getPublic(compact,enc){if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(typeof compact==="string"){enc=compact;compact=null}if(!enc)return this.pub;var len=this.ec.curve.p.byteLength();var x=this.pub.getX().toArray();for(var i=x.length;i"}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/ec/key.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/ec")},{"../../elliptic":258,_process:379,"bn.js":256,buffer:230}],267:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var bn=require("bn.js");var elliptic=require("../../elliptic");var utils=elliptic.utils;var assert=utils.assert;function Signature(options,enc){if(options instanceof Signature)return options;if(this._importDER(options,enc))return;assert(options.r&&options.s,"Signature without r or s");this.r=new bn(options.r,16);this.s=new bn(options.s,16);if(options.recoveryParam!==null)this.recoveryParam=options.recoveryParam;else this.recoveryParam=null}module.exports=Signature;Signature.prototype._importDER=function _importDER(data,enc){data=utils.toArray(data,enc);if(data.length<6||data[0]!==48||data[2]!==2)return false;var total=data[1];if(1+total>data.length)return false;var rlen=data[3];if(rlen>=128)return false;if(4+rlen+2>=data.length)return false;if(data[4+rlen]!==2)return false;var slen=data[5+rlen];if(slen>=128)return false;if(4+rlen+2+slen>data.length)return false;this.r=new bn(data.slice(4,4+rlen));this.s=new bn(data.slice(4+rlen+2,4+rlen+2+slen));this.recoveryParam=null; +return true};Signature.prototype.toDER=function toDER(enc){var r=this.r.toArray();var s=this.s.toArray();if(r[0]&128)r=[0].concat(r);if(s[0]&128)s=[0].concat(s);var total=r.length+s.length+4;var res=[48,total,2,r.length];res=res.concat(r,[2,s.length],s);return utils.encode(res,enc)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/ec/signature.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/ec")},{"../../elliptic":258,_process:379,"bn.js":256,buffer:230}],268:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var hash=require("hash.js");var elliptic=require("../elliptic");var utils=elliptic.utils;var assert=utils.assert;function HmacDRBG(options){if(!(this instanceof HmacDRBG))return new HmacDRBG(options);this.hash=options.hash;this.predResist=!!options.predResist;this.outLen=this.hash.outSize;this.minEntropy=options.minEntropy||this.hash.hmacStrength;this.reseed=null;this.reseedInterval=null;this.K=null;this.V=null;var entropy=utils.toArray(options.entropy,options.entropyEnc);var nonce=utils.toArray(options.nonce,options.nonceEnc);var pers=utils.toArray(options.pers,options.persEnc);assert(entropy.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._init(entropy,nonce,pers)}module.exports=HmacDRBG;HmacDRBG.prototype._init=function init(entropy,nonce,pers){var seed=entropy.concat(nonce).concat(pers);this.K=new Array(this.outLen/8);this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._update(entropy.concat(add||[]));this.reseed=1};HmacDRBG.prototype.generate=function generate(len,enc,add,addEnc){if(this.reseed>this.reseedInterval)throw new Error("Reseed is required");if(typeof enc!=="string"){addEnc=add;add=enc;enc=null}if(add){add=utils.toArray(add,addEnc);this._update(add)}var temp=[];while(temp.length>8;var lo=c&255;if(hi)res.push(hi,lo);else res.push(lo)}}else if(enc==="hex"){msg=msg.replace(/[^a-z0-9]+/gi,"");if(msg.length%2!==0)msg="0"+msg;for(var i=0;i=0){var z;if(k.isOdd()){var mod=k.andln(ws-1);if(mod>(ws>>1)-1)z=(ws>>1)-mod;else z=mod; +k.isubn(z)}else{z=0}naf.push(z);var shift=k.cmpn(0)!==0&&k.andln(ws-1)===0?w+1:1;for(var i=1;i0||k2.cmpn(-d2)>0){var m14=k1.andln(3)+d1&3;var m24=k2.andln(3)+d2&3;if(m14===3)m14=-1;if(m24===3)m24=-1;var u1;if((m14&1)===0){u1=0}else{var m8=k1.andln(7)+d1&7;if((m8===3||m8===5)&&m24===2)u1=-m14;else u1=m14}jsf[0].push(u1);var u2;if((m24&1)===0){u2=0}else{var m8=k2.andln(7)+d2&7;if((m8===3||m8===5)&&m14===2)u2=-m24;else u2=m24}jsf[1].push(u2);if(2*d1===u1+1)d1=1-d1;if(2*d2===u2+1)d2=1-d2;k1.ishrn(1);k2.ishrn(1)}return jsf}utils.getJSF=getJSF}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic/utils.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/lib/elliptic")},{_process:379,buffer:230}],271:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var r;module.exports=function rand(len){if(!r)r=new Rand(null);return r.generate(len)};function Rand(rand){this.rand=rand}module.exports.Rand=Rand;Rand.prototype.generate=function generate(len){return this._rand(len)};if(typeof window==="object"){if(window.crypto&&window.crypto.getRandomValues){Rand.prototype._rand=function _rand(n){var arr=new Uint8Array(n);window.crypto.getRandomValues(arr);return arr}}else if(window.msCrypto&&window.msCrypto.getRandomValues){Rand.prototype._rand=function _rand(n){var arr=new Uint8Array(n);window.msCrypto.getRandomValues(arr);return arr}}else{Rand.prototype._rand=function(){throw new Error("Not implemented yet")}}}else{try{var crypto=require("cry"+"pto");Rand.prototype._rand=function _rand(n){return crypto.randomBytes(n)}}catch(e){Rand.prototype._rand=function _rand(n){var res=new Uint8Array(n);for(var i=0;i=this._delta8){msg=this.pending;var r=msg.length%this._delta8;this.pending=msg.slice(msg.length-r,msg.length);if(this.pending.length===0)this.pending=null;msg=utils.join32(msg,0,msg.length-r,this.endian);for(var i=0;i>>24&255;res[i++]=len>>>16&255;res[i++]=len>>>8&255;res[i++]=len&255}else{res[i++]=len&255;res[i++]=len>>>8&255;res[i++]=len>>>16&255;res[i++]=len>>>24&255;res[i++]=0;res[i++]=0;res[i++]=0;res[i++]=0;for(var t=8;tthis.blockSize)key=(new this.Hash).update(key).digest();assert(key.length<=this.blockSize);for(var i=key.length;i>>3}function g1_256(x){return rotr32(x,17)^rotr32(x,19)^x>>>10}function ft_1(s,x,y,z){if(s===0)return ch32(x,y,z);if(s===1||s===3)return p32(x,y,z);if(s===2)return maj32(x,y,z)}function ch64_hi(xh,xl,yh,yl,zh,zl){var r=xh&yh^~xh&zh;if(r<0)r+=4294967296;return r}function ch64_lo(xh,xl,yh,yl,zh,zl){var r=xl&yl^~xl&zl;if(r<0)r+=4294967296;return r}function maj64_hi(xh,xl,yh,yl,zh,zl){var r=xh&yh^xh&zh^yh&zh;if(r<0)r+=4294967296;return r}function maj64_lo(xh,xl,yh,yl,zh,zl){var r=xl&yl^xl&zl^yl&zl;if(r<0)r+=4294967296;return r}function s0_512_hi(xh,xl){var c0_hi=rotr64_hi(xh,xl,28);var c1_hi=rotr64_hi(xl,xh,2);var c2_hi=rotr64_hi(xl,xh,7);var r=c0_hi^c1_hi^c2_hi;if(r<0)r+=4294967296;return r}function s0_512_lo(xh,xl){var c0_lo=rotr64_lo(xh,xl,28);var c1_lo=rotr64_lo(xl,xh,2);var c2_lo=rotr64_lo(xl,xh,7);var r=c0_lo^c1_lo^c2_lo;if(r<0)r+=4294967296;return r}function s1_512_hi(xh,xl){var c0_hi=rotr64_hi(xh,xl,14);var c1_hi=rotr64_hi(xh,xl,18);var c2_hi=rotr64_hi(xl,xh,9);var r=c0_hi^c1_hi^c2_hi;if(r<0)r+=4294967296;return r}function s1_512_lo(xh,xl){var c0_lo=rotr64_lo(xh,xl,14);var c1_lo=rotr64_lo(xh,xl,18);var c2_lo=rotr64_lo(xl,xh,9);var r=c0_lo^c1_lo^c2_lo;if(r<0)r+=4294967296;return r}function g0_512_hi(xh,xl){var c0_hi=rotr64_hi(xh,xl,1);var c1_hi=rotr64_hi(xh,xl,8);var c2_hi=shr64_hi(xh,xl,7);var r=c0_hi^c1_hi^c2_hi;if(r<0)r+=4294967296;return r}function g0_512_lo(xh,xl){var c0_lo=rotr64_lo(xh,xl,1);var c1_lo=rotr64_lo(xh,xl,8);var c2_lo=shr64_lo(xh,xl,7);var r=c0_lo^c1_lo^c2_lo;if(r<0)r+=4294967296;return r}function g1_512_hi(xh,xl){var c0_hi=rotr64_hi(xh,xl,19);var c1_hi=rotr64_hi(xl,xh,29);var c2_hi=shr64_hi(xh,xl,6);var r=c0_hi^c1_hi^c2_hi;if(r<0)r+=4294967296;return r}function g1_512_lo(xh,xl){var c0_lo=rotr64_lo(xh,xl,19);var c1_lo=rotr64_lo(xl,xh,29);var c2_lo=shr64_lo(xh,xl,6);var r=c0_lo^c1_lo^c2_lo;if(r<0)r+=4294967296;return r}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/node_modules/hash.js/lib/hash/sha.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/node_modules/hash.js/lib/hash")},{"../hash":272,_process:379,buffer:230}],277:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var utils=exports;var inherits=require("inherits");function toArray(msg,enc){if(Array.isArray(msg))return msg.slice();if(!msg)return[];var res=[];if(typeof msg==="string"){if(!enc){for(var i=0;i>8;var lo=c&255;if(hi)res.push(hi,lo);else res.push(lo)}}else if(enc==="hex"){msg=msg.replace(/[^a-z0-9]+/gi,"");if(msg.length%2!==0)msg="0"+msg;for(var i=0;i>>24|w>>>8&65280|w<<8&16711680|(w&255)<<24;return res>>>0}utils.htonl=htonl;function toHex32(msg,endian){var res="";for(var i=0;i>>0}return res}utils.join32=join32;function split32(msg,endian){var res=new Array(msg.length*4);for(var i=0,k=0;i>>24;res[k+1]=m>>>16&255;res[k+2]=m>>>8&255;res[k+3]=m&255}else{res[k+3]=m>>>24;res[k+2]=m>>>16&255;res[k+1]=m>>>8&255;res[k]=m&255}}return res}utils.split32=split32;function rotr32(w,b){return w>>>b|w<<32-b}utils.rotr32=rotr32;function rotl32(w,b){return w<>>32-b}utils.rotl32=rotl32;function sum32(a,b){return a+b>>>0}utils.sum32=sum32;function sum32_3(a,b,c){return a+b+c>>>0}utils.sum32_3=sum32_3;function sum32_4(a,b,c,d){return a+b+c+d>>>0}utils.sum32_4=sum32_4;function sum32_5(a,b,c,d,e){return a+b+c+d+e>>>0}utils.sum32_5=sum32_5;function assert(cond,msg){if(!cond)throw new Error(msg||"Assertion failed")}utils.assert=assert;utils.inherits=inherits;function sum64(buf,pos,ah,al){var bh=buf[pos];var bl=buf[pos+1];var lo=al+bl>>>0;var hi=(lo>>0;buf[pos+1]=lo}exports.sum64=sum64;function sum64_hi(ah,al,bh,bl){var lo=al+bl>>>0;var hi=(lo>>0}exports.sum64_hi=sum64_hi;function sum64_lo(ah,al,bh,bl){var lo=al+bl;return lo>>>0}exports.sum64_lo=sum64_lo;function sum64_4_hi(ah,al,bh,bl,ch,cl,dh,dl){var carry=0;var lo=al;lo=lo+bl>>>0;carry+=lo>>0;carry+=lo>>0;carry+=lo>>0}exports.sum64_4_hi=sum64_4_hi;function sum64_4_lo(ah,al,bh,bl,ch,cl,dh,dl){var lo=al+bl+cl+dl;return lo>>>0}exports.sum64_4_lo=sum64_4_lo;function sum64_5_hi(ah,al,bh,bl,ch,cl,dh,dl,eh,el){var carry=0;var lo=al;lo=lo+bl>>>0;carry+=lo>>0;carry+=lo>>0;carry+=lo>>0;carry+=lo>>0}exports.sum64_5_hi=sum64_5_hi;function sum64_5_lo(ah,al,bh,bl,ch,cl,dh,dl,eh,el){var lo=al+bl+cl+dl+el;return lo>>>0}exports.sum64_5_lo=sum64_5_lo;function rotr64_hi(ah,al,num){var r=al<<32-num|ah>>>num;return r>>>0}exports.rotr64_hi=rotr64_hi;function rotr64_lo(ah,al,num){var r=ah<<32-num|al>>>num;return r>>>0}exports.rotr64_lo=rotr64_lo;function shr64_hi(ah,al,num){return ah>>>num}exports.shr64_hi=shr64_hi;function shr64_lo(ah,al,num){var r=ah<<32-num|al>>>num;return r>>>0}exports.shr64_lo=shr64_lo}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/node_modules/hash.js/lib/hash/utils.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/elliptic/node_modules/hash.js/lib/hash")},{_process:379,buffer:230,inherits:"inherits"}],278:[function(require,module,exports){module.exports={name:"elliptic",version:"3.1.0",description:"EC cryptography",main:"lib/elliptic.js",scripts:{test:"make lint && mocha --reporter=spec test/*-test.js"},repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},keywords:["EC","Elliptic","curve","Cryptography"],author:{name:"Fedor Indutny",email:"fedor@indutny.com"},license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{browserify:"^3.44.2",jscs:"^1.11.3",jshint:"^2.6.0",mocha:"^2.1.0","uglify-js":"^2.4.13"},dependencies:{"bn.js":"^2.0.3",brorand:"^1.0.1","hash.js":"^1.0.0",inherits:"^2.0.1"},gitHead:"d86cd2a8178f7e7cecbd6dd92eea084e2ab44c13",_id:"elliptic@3.1.0",_shasum:"c21682ef762769b56a74201609105da11d5f60cc",_from:"elliptic@>=3.0.0 <4.0.0",_npmVersion:"2.11.0",_nodeVersion:"2.2.1",_npmUser:{name:"indutny",email:"fedor@indutny.com"},maintainers:[{name:"indutny",email:"fedor@indutny.com"}],dist:{shasum:"c21682ef762769b56a74201609105da11d5f60cc",tarball:"http://registry.npmjs.org/elliptic/-/elliptic-3.1.0.tgz"},directories:{},_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-3.1.0.tgz"}},{}],279:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var createHash=require("create-hash");module.exports=function evp(password,salt,keyLen){keyLen=keyLen/8;var ki=0;var ii=0;var key=new Buffer(keyLen);var addmd=0;var md,md_buf;var i;while(true){md=createHash("md5");if(addmd++>0){md.update(md_buf)}md.update(password);md.update(salt);md_buf=md.digest();i=0;if(keyLen>0){while(true){if(keyLen===0){break}if(i===md_buf.length){break}key[ki++]=md_buf[i++];keyLen--}}if(keyLen===0){break}}for(i=0;i>6];var primitive=(tag&32)===0;if((tag&31)===31){var oct=tag;tag=0;while((oct&128)===128){oct=buf.readUInt8(fail);if(buf.isError(oct))return oct;tag<<=7;tag|=oct&127}}else{tag&=31}var tagStr=der.tag[tag];return{cls:cls,primitive:primitive,tag:tag,tagStr:tagStr}}function derDecodeLen(buf,primitive,fail){var len=buf.readUInt8(fail);if(buf.isError(len))return len;if(!primitive&&len===128)return null;if((len&128)===0){return len}var num=len&127;if(num>=4)return buf.error("length octect is too long");len=0;for(var i=0;i=256;i>>=8)lenOctets++;var header=new Buffer(1+1+lenOctets);header[0]=encodedTag;header[1]=128|lenOctets;for(var i=1+lenOctets,j=content.length;j>0;i--,j>>=8)header[i]=j&255;return this._createEncoderBuffer([header,content])};DERNode.prototype._encodeStr=function encodeStr(str,tag){if(tag==="octstr")return this._createEncoderBuffer(str);else if(tag==="bitstr")return this._createEncoderBuffer([str.unused|0,str.data]);else if(tag==="ia5str"||tag==="utf8str")return this._createEncoderBuffer(str);return this.reporter.error("Encoding of string type: "+tag+" unsupported")};DERNode.prototype._encodeObjid=function encodeObjid(id,values,relative){if(typeof id==="string"){if(!values)return this.reporter.error("string objid given, but no values map found");if(!values.hasOwnProperty(id))return this.reporter.error("objid not found in values map");id=values[id].split(/[\s\.]+/g);for(var i=0;i=40)return this.reporter.error("Second objid identifier OOB");id.splice(0,2,id[0]*40+id[1])}var size=0;for(var i=0;i=128;ident>>=7)size++}var objid=new Buffer(size);var offset=objid.length-1;for(var i=id.length-1;i>=0;i--){var ident=id[i];objid[offset--]=ident&127;while((ident>>=7)>0)objid[offset--]=128|ident&127}return this._createEncoderBuffer(objid)};function two(num){if(num<10)return"0"+num;else return num}DERNode.prototype._encodeTime=function encodeTime(time,tag){var str;var date=new Date(time);if(tag==="gentime"){str=[two(date.getFullYear()),two(date.getUTCMonth()+1),two(date.getUTCDate()),two(date.getUTCHours()),two(date.getUTCMinutes()),two(date.getUTCSeconds()),"Z"].join("")}else if(tag==="utctime"){str=[two(date.getFullYear()%100),two(date.getUTCMonth()+1),two(date.getUTCDate()),two(date.getUTCHours()),two(date.getUTCMinutes()),two(date.getUTCSeconds()),"Z"].join("")}else{this.reporter.error("Encoding "+tag+" time is not supported yet")}return this._encodeStr(str,"octstr")};DERNode.prototype._encodeNull=function encodeNull(){return this._createEncoderBuffer("")};DERNode.prototype._encodeInt=function encodeInt(num,values){if(typeof num==="string"){if(!values)return this.reporter.error("String int or enum given, but no values map");if(!values.hasOwnProperty(num)){return this.reporter.error("Values map doesn't contain: "+JSON.stringify(num))}num=values[num]}if(typeof num!=="number"&&!Buffer.isBuffer(num)){var numArray=num.toArray();if(num.sign===false&&numArray[0]&128){numArray.unshift(0)}num=new Buffer(numArray)}if(Buffer.isBuffer(num)){var size=num.length;if(num.length===0)size++;var out=new Buffer(size);num.copy(out);if(num.length===0)out[0]=0;return this._createEncoderBuffer(out)}if(num<128)return this._createEncoderBuffer(num);if(num<256)return this._createEncoderBuffer([0,num]);var size=1;for(var i=num;i>=256;i>>=8)size++;var out=new Array(size);for(var i=out.length-1;i>=0;i--){out[i]=num&255;num>>=8}if(out[0]&128){out.unshift(0)}return this._createEncoderBuffer(new Buffer(out))};DERNode.prototype._encodeBool=function encodeBool(value){return this._createEncoderBuffer(value?255:0)};DERNode.prototype._use=function use(entity,obj){if(typeof entity==="function")entity=entity(obj);return entity._getEncoder("der").tree};DERNode.prototype._skipDefault=function skipDefault(dataBuffer,reporter,parent){var state=this._baseState;var i;if(state["default"]===null)return false;var data=dataBuffer.join();if(state.defaultBuffer===undefined)state.defaultBuffer=this._encodeValue(state["default"],reporter,parent).join();if(data.length!==state.defaultBuffer.length)return false;for(i=0;i=31)return reporter.error("Multi-octet tag encoding unsupported");if(!primitive)res|=32;res|=der.tagClassByName[cls||"universal"]<<6;return res}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/parse-asn1/node_modules/asn1.js/lib/asn1/encoders/der.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/parse-asn1/node_modules/asn1.js/lib/asn1/encoders")},{"../../asn1":284,_process:379,buffer:230,inherits:"inherits"}],296:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var encoders=exports;encoders.der=require("./der");encoders.pem=require("./pem")}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/parse-asn1/node_modules/asn1.js/lib/asn1/encoders/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/node_modules/parse-asn1/node_modules/asn1.js/lib/asn1/encoders")},{"./der":295,"./pem":297,_process:379,buffer:230}],297:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var inherits=require("inherits");var Buffer=require("buffer").Buffer;var asn1=require("../../asn1");var DEREncoder=require("./der");function PEMEncoder(entity){DEREncoder.call(this,entity);this.enc="pem"}inherits(PEMEncoder,DEREncoder);module.exports=PEMEncoder;PEMEncoder.prototype.encode=function encode(data,options){var buf=DEREncoder.prototype.encode.call(this,data);var p=buf.toString("base64");var out=["-----BEGIN "+options.label+"-----"];for(var i=0;i0){bits.ishrn(shift)}return bits}function bits2octets(bits,q){bits=bits2int(bits,q);bits=bits.mod(q);var out=new Buffer(bits.toArray());if(out.length=q){throw new Error("invalid sig")}}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign/verify.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/browserify-sign")},{"./curves":255,_process:379,"bn.js":256,buffer:230,elliptic:258,"parse-asn1":283}],301:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var elliptic=require("elliptic");var BN=require("bn.js");module.exports=function createECDH(curve){return new ECDH(curve)};var aliases={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32}};aliases.p224=aliases.secp224r1;aliases.p256=aliases.secp256r1=aliases.prime256v1;aliases.p192=aliases.secp192r1=aliases.prime192v1;function ECDH(curve){this.curveType=aliases[curve];if(!this.curveType){this.curveType={name:curve}}this.curve=new elliptic.ec(this.curveType.name);this.keys=void 0}ECDH.prototype.generateKeys=function(enc,format){this.keys=this.curve.genKeyPair();return this.getPublicKey(enc,format)};ECDH.prototype.computeSecret=function(other,inenc,enc){inenc=inenc||"utf8";if(!Buffer.isBuffer(other)){other=new Buffer(other,inenc)}var otherPub=this.curve.keyFromPublic(other).getPublic();var out=otherPub.mul(this.keys.getPrivate()).getX();return formatReturnValue(out,enc,this.curveType.byteLength)};ECDH.prototype.getPublicKey=function(enc,format){var key=this.keys.getPublic(format==="compressed",true);if(format==="hybrid"){if(key[key.length-1]%2){key[0]=7}else{key[0]=6}}return formatReturnValue(key,enc)};ECDH.prototype.getPrivateKey=function(enc){return formatReturnValue(this.keys.getPrivate(),enc)};ECDH.prototype.setPublicKey=function(pub,enc){enc=enc||"utf8";if(!Buffer.isBuffer(pub)){pub=new Buffer(pub,enc)}this.keys._importPublic(pub);return this};ECDH.prototype.setPrivateKey=function(priv,enc){enc=enc||"utf8";if(!Buffer.isBuffer(priv)){priv=new Buffer(priv,enc)}var _priv=new BN(priv);_priv=_priv.toString(16);this.keys._importPrivate(_priv);return this};function formatReturnValue(bn,enc,len){if(!Array.isArray(bn)){bn=bn.toArray()}var buf=new Buffer(bn);if(len&&buf.length=2&&base<=36);number=number.toString().replace(/\s+/g,"");var start=0;if(number[0]==="-")start++;if(base===16)this._parseHex(number,start);else this._parseBase(number,base,start);if(number[0]==="-")this.sign=true;this.strip();if(endian!=="le")return;this._initArray(this.toArray(),base,endian)};BN.prototype._initNumber=function _initNumber(number,base,endian){if(number<0){this.sign=true;number=-number}if(number<67108864){this.words=[number&67108863];this.length=1}else if(number<4503599627370496){this.words=[number&67108863,number/67108864&67108863];this.length=2}else{assert(number<9007199254740992);this.words=[number&67108863,number/67108864&67108863,1];this.length=3}if(endian!=="le")return;this._initArray(this.toArray(),base,endian)};BN.prototype._initArray=function _initArray(number,base,endian){assert(typeof number.length==="number");if(number.length<=0){this.words=[0];this.length=1;return this}this.length=Math.ceil(number.length/3);this.words=new Array(this.length);for(var i=0;i=0;i-=3){var w=number[i]|number[i-1]<<8|number[i-2]<<16;this.words[j]|=w<>>26-off&67108863;off+=24;if(off>=26){off-=26;j++}}}else if(endian==="le"){for(var i=0,j=0;i>>26-off&67108863;off+=24;if(off>=26){off-=26;j++}}}return this.strip()};function parseHex(str,start,end){var r=0;var len=Math.min(str.length,end);for(var i=start;i=49&&c<=54)r|=c-49+10;else if(c>=17&&c<=22)r|=c-17+10;else r|=c&15}return r}BN.prototype._parseHex=function _parseHex(number,start){this.length=Math.ceil((number.length-start)/6);this.words=new Array(this.length);for(var i=0;i=start;i-=6){var w=parseHex(number,i,i+6);this.words[j]|=w<>>26-off&4194303;off+=24;if(off>=26){off-=26;j++}}if(i+6!==start){var w=parseHex(number,start,i+6);this.words[j]|=w<>>26-off&4194303}this.strip()};function parseBase(str,start,end,mul){var r=0;var len=Math.min(str.length,end);for(var i=start;i=49)r+=c-49+10;else if(c>=17)r+=c-17+10;else r+=c}return r}BN.prototype._parseBase=function _parseBase(number,base,start){this.words=[0];this.length=1;for(var limbLen=0,limbPow=1;limbPow<=67108863;limbPow*=base)limbLen++;limbLen--;limbPow=limbPow/base|0;var total=number.length-start;var mod=total%limbLen;var end=Math.min(total,total-mod)+start;var word=0;for(var i=start;i1&&this.words[this.length-1]===0)this.length--;return this._normSign()};BN.prototype._normSign=function _normSign(){if(this.length===1&&this.words[0]===0)this.sign=false;return this};BN.prototype.inspect=function inspect(){return(this.red?""};var zeros=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"]; +var groupSizes=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5];var groupBases=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];BN.prototype.toString=function toString(base,padding){base=base||10;if(base===16||base==="hex"){var out="";var off=0;var padding=padding|0||1;var carry=0;for(var i=0;i>>24-off&16777215;if(carry!==0||i!==this.length-1)out=zeros[6-word.length]+word+out;else out=word+out;off+=2;if(off>=26){off-=26;i--}}if(carry!==0)out=carry.toString(16)+out;while(out.length%padding!==0)out="0"+out;if(this.sign)out="-"+out;return out}else if(base===(base|0)&&base>=2&&base<=36){var groupSize=groupSizes[base];var groupBase=groupBases[base];var out="";var c=this.clone();c.sign=false;while(c.cmpn(0)!==0){var r=c.modn(groupBase).toString(base);c=c.idivn(groupBase);if(c.cmpn(0)!==0)out=zeros[groupSize-r.length]+r+out;else out=r+out}if(this.cmpn(0)===0)out="0"+out;if(this.sign)out="-"+out;return out}else{assert(false,"Base should be between 2 and 36")}};BN.prototype.toJSON=function toJSON(){return this.toString(16)};BN.prototype.toArray=function toArray(endian){this.strip();var res=new Array(this.byteLength());res[0]=0;var q=this.clone();if(endian!=="le"){for(var i=0;q.cmpn(0)!==0;i++){var b=q.andln(255);q.ishrn(8);res[res.length-i-1]=b}}else{for(var i=0;q.cmpn(0)!==0;i++){var b=q.andln(255);q.ishrn(8);res[i]=b}}return res};if(Math.clz32){BN.prototype._countBits=function _countBits(w){return 32-Math.clz32(w)}}else{BN.prototype._countBits=function _countBits(w){var t=w;var r=0;if(t>=4096){r+=13;t>>>=13}if(t>=64){r+=7;t>>>=7}if(t>=8){r+=4;t>>>=4}if(t>=2){r+=2;t>>>=2}return r+t}}BN.prototype._zeroBits=function _zeroBits(w){if(w===0)return 26;var t=w;var r=0;if((t&8191)===0){r+=13;t>>>=13}if((t&127)===0){r+=7;t>>>=7}if((t&15)===0){r+=4;t>>>=4}if((t&3)===0){r+=2;t>>>=2}if((t&1)===0)r++;return r};BN.prototype.bitLength=function bitLength(){var hi=0;var w=this.words[this.length-1];var hi=this._countBits(w);return(this.length-1)*26+hi};BN.prototype.zeroBits=function zeroBits(){if(this.cmpn(0)===0)return 0;var r=0;for(var i=0;inum.length)return this.clone().ior(num);else return num.clone().ior(this)};BN.prototype.iand=function iand(num){this.sign=this.sign&&num.sign;var b;if(this.length>num.length)b=num;else b=this;for(var i=0;inum.length)return this.clone().iand(num);else return num.clone().iand(this)};BN.prototype.ixor=function ixor(num){this.sign=this.sign||num.sign;var a;var b;if(this.length>num.length){a=this;b=num}else{a=num;b=this}for(var i=0;inum.length)return this.clone().ixor(num);else return num.clone().ixor(this)};BN.prototype.setn=function setn(bit,val){assert(typeof bit==="number"&&bit>=0);var off=bit/26|0;var wbit=bit%26;while(this.length<=off)this.words[this.length++]=0;if(val)this.words[off]=this.words[off]|1<num.length){a=this;b=num}else{a=num;b=this}var carry=0;for(var i=0;i>>26}for(;carry!==0&&i>>26}this.length=a.length;if(carry!==0){this.words[this.length]=carry;this.length++}else if(a!==this){for(;inum.length)return this.clone().iadd(num);else return num.clone().iadd(this)};BN.prototype.isub=function isub(num){if(num.sign){num.sign=false;var r=this.iadd(num);num.sign=true;return r._normSign()}else if(this.sign){this.sign=false;this.iadd(num);this.sign=true;return this._normSign()}var cmp=this.cmp(num);if(cmp===0){this.sign=false;this.length=1;this.words[0]=0;return this}var a;var b;if(cmp>0){a=this;b=num}else{a=num;b=this}var carry=0;for(var i=0;i>26;this.words[i]=r&67108863}for(;carry!==0&&i>26;this.words[i]=r&67108863}if(carry===0&&i>>26;var rword=carry&67108863;var maxJ=Math.min(k,num.length-1);for(var j=Math.max(0,k-this.length+1);j<=maxJ;j++){var i=k-j;var a=this.words[i]|0;var b=num.words[j]|0;var r=a*b;var lo=r&67108863;ncarry=ncarry+(r/67108864|0)|0;lo=lo+rword|0;rword=lo&67108863;ncarry=ncarry+(lo>>>26)|0}out.words[k]=rword;carry=ncarry}if(carry!==0){out.words[k]=carry}else{out.length--}return out.strip()};BN.prototype._bigMulTo=function _bigMulTo(num,out){out.sign=num.sign!==this.sign;out.length=this.length+num.length;var carry=0;var hncarry=0;for(var k=0;k>>26)|0;hncarry+=ncarry>>>26;ncarry&=67108863}out.words[k]=rword;carry=ncarry;ncarry=hncarry}if(carry!==0){out.words[k]=carry}else{out.length--}return out.strip()};BN.prototype.mulTo=function mulTo(num,out){var res;if(this.length+num.length<63)res=this._smallMulTo(num,out);else res=this._bigMulTo(num,out);return res};BN.prototype.mul=function mul(num){var out=new BN(null);out.words=new Array(this.length+num.length);return this.mulTo(num,out)};BN.prototype.imul=function imul(num){if(this.cmpn(0)===0||num.cmpn(0)===0){this.words[0]=0;this.length=1;return this}var tlen=this.length;var nlen=num.length;this.sign=num.sign!==this.sign;this.length=this.length+num.length;this.words[this.length-1]=0;for(var k=this.length-2;k>=0;k--){var carry=0;var rword=0;var maxJ=Math.min(k,nlen-1);for(var j=Math.max(0,k-tlen+1);j<=maxJ;j++){var i=k-j;var a=this.words[i];var b=num.words[j];var r=a*b;var lo=r&67108863;carry+=r/67108864|0;lo+=rword;rword=lo&67108863;carry+=lo>>>26}this.words[k]=rword;this.words[k+1]+=carry;carry=0}var carry=0;for(var i=1;i>>26}return this.strip()};BN.prototype.imuln=function imuln(num){assert(typeof num==="number");var carry=0;for(var i=0;i>=26;carry+=w/67108864|0;carry+=lo>>>26;this.words[i]=lo&67108863}if(carry!==0){this.words[i]=carry;this.length++}return this};BN.prototype.muln=function muln(num){return this.clone().imuln(num)};BN.prototype.sqr=function sqr(){return this.mul(this)};BN.prototype.isqr=function isqr(){return this.mul(this)};BN.prototype.ishln=function ishln(bits){assert(typeof bits==="number"&&bits>=0);var r=bits%26;var s=(bits-r)/26;var carryMask=67108863>>>26-r<<26-r;if(r!==0){var carry=0;for(var i=0;i>>26-r}if(carry){this.words[i]=carry;this.length++}}if(s!==0){for(var i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(var i=0;i=0);var h;if(hint)h=(hint-hint%26)/26;else h=0;var r=bits%26;var s=Math.min((bits-r)/26,this.length);var mask=67108863^67108863>>>r<s){this.length-=s;for(var i=0;i=0&&(carry!==0||i>=h);i--){var word=this.words[i];this.words[i]=carry<<26-r|word>>>r;carry=word&mask}if(maskedWords&&carry!==0)maskedWords.words[maskedWords.length++]=carry;if(this.length===0){this.words[0]=0;this.length=1}this.strip();return this};BN.prototype.shln=function shln(bits){return this.clone().ishln(bits)};BN.prototype.shrn=function shrn(bits){return this.clone().ishrn(bits)};BN.prototype.testn=function testn(bit){assert(typeof bit==="number"&&bit>=0);var r=bit%26;var s=(bit-r)/26;var q=1<=0);var r=bits%26;var s=(bits-r)/26;assert(!this.sign,"imaskn works only with positive numbers");if(r!==0)s++;this.length=Math.min(s,this.length);if(r!==0){var mask=67108863^67108863>>>r<=67108864;i++){this.words[i]-=67108864;if(i===this.length-1)this.words[i+1]=1;else this.words[i+1]++}this.length=Math.max(this.length,i+1);return this};BN.prototype.isubn=function isubn(num){assert(typeof num==="number");if(num<0)return this.iaddn(-num);if(this.sign){this.sign=false;this.iaddn(num);this.sign=true;return this}this.words[0]-=num;for(var i=0;i>26)-(right/67108864|0);this.words[i+shift]=w&67108863}for(;i>26;this.words[i+shift]=w&67108863}if(carry===0)return this.strip();assert(carry===-1);carry=0;for(var i=0;i>26;this.words[i]=w&67108863}this.sign=true;return this.strip()};BN.prototype._wordDiv=function _wordDiv(num,mode){var shift=this.length-num.length;var a=this.clone();var b=num;var bhi=b.words[b.length-1];var bhiBits=this._countBits(bhi);shift=26-bhiBits;if(shift!==0){b=b.shln(shift);a.ishln(shift);bhi=b.words[b.length-1]}var m=a.length-b.length;var q;if(mode!=="mod"){q=new BN(null);q.length=m+1;q.words=new Array(q.length);for(var i=0;i=0;j--){var qj=a.words[b.length+j]*67108864+a.words[b.length+j-1];qj=Math.min(qj/bhi|0,67108863);a._ishlnsubmul(b,qj,j);while(a.sign){qj--;a.sign=false;a._ishlnsubmul(b,1,j);if(a.cmpn(0)!==0)a.sign=!a.sign}if(q)q.words[j]=qj}if(q)q.strip();a.strip();if(mode!=="div"&&shift!==0)a.ishrn(shift);return{div:q?q:null,mod:a}};BN.prototype.divmod=function divmod(num,mode){assert(num.cmpn(0)!==0);if(this.sign&&!num.sign){var res=this.neg().divmod(num,mode);var div;var mod;if(mode!=="mod")div=res.div.neg();if(mode!=="div")mod=res.mod.cmpn(0)===0?res.mod:num.sub(res.mod);return{div:div,mod:mod}}else if(!this.sign&&num.sign){var res=this.divmod(num.neg(),mode);var div;if(mode!=="mod")div=res.div.neg();return{div:div,mod:res.mod}}else if(this.sign&&num.sign){return this.neg().divmod(num.neg(),mode)}if(num.length>this.length||this.cmp(num)<0)return{div:new BN(0),mod:this};if(num.length===1){if(mode==="div")return{div:this.divn(num.words[0]),mod:null};else if(mode==="mod")return{div:null,mod:new BN(this.modn(num.words[0]))};return{div:this.divn(num.words[0]),mod:new BN(this.modn(num.words[0]))}}return this._wordDiv(num,mode)};BN.prototype.div=function div(num){return this.divmod(num,"div").div};BN.prototype.mod=function mod(num){return this.divmod(num,"mod").mod};BN.prototype.divRound=function divRound(num){var dm=this.divmod(num);if(dm.mod.cmpn(0)===0)return dm.div;var mod=dm.div.sign?dm.mod.isub(num):dm.mod;var half=num.shrn(1);var r2=num.andln(1);var cmp=mod.cmp(half);if(cmp<0||r2===1&&cmp===0)return dm.div;return dm.div.sign?dm.div.isubn(1):dm.div.iaddn(1)};BN.prototype.modn=function modn(num){assert(num<=67108863);var p=(1<<26)%num;var acc=0;for(var i=this.length-1;i>=0;i--)acc=(p*acc+this.words[i])%num;return acc};BN.prototype.idivn=function idivn(num){assert(num<=67108863);var carry=0;for(var i=this.length-1;i>=0;i--){var w=this.words[i]+carry*67108864;this.words[i]=w/num|0;carry=w%num}return this.strip()};BN.prototype.divn=function divn(num){return this.clone().idivn(num)};BN.prototype.egcd=function egcd(p){assert(!p.sign);assert(p.cmpn(0)!==0);var x=this;var y=p.clone();if(x.sign)x=x.mod(p);else x=x.clone();var A=new BN(1);var B=new BN(0);var C=new BN(0);var D=new BN(1);var g=0;while(x.isEven()&&y.isEven()){x.ishrn(1);y.ishrn(1);++g}var yp=y.clone();var xp=x.clone();while(x.cmpn(0)!==0){while(x.isEven()){x.ishrn(1);if(A.isEven()&&B.isEven()){A.ishrn(1);B.ishrn(1)}else{A.iadd(yp).ishrn(1);B.isub(xp).ishrn(1)}}while(y.isEven()){y.ishrn(1);if(C.isEven()&&D.isEven()){C.ishrn(1);D.ishrn(1)}else{C.iadd(yp).ishrn(1);D.isub(xp).ishrn(1)}}if(x.cmp(y)>=0){x.isub(y);A.isub(C);B.isub(D)}else{y.isub(x);C.isub(A);D.isub(B)}}return{a:C,b:D,gcd:y.ishln(g)}};BN.prototype._invmp=function _invmp(p){assert(!p.sign);assert(p.cmpn(0)!==0);var a=this;var b=p.clone();if(a.sign)a=a.mod(p);else a=a.clone();var x1=new BN(1);var x2=new BN(0);var delta=b.clone();while(a.cmpn(1)>0&&b.cmpn(1)>0){while(a.isEven()){a.ishrn(1);if(x1.isEven())x1.ishrn(1);else x1.iadd(delta).ishrn(1)}while(b.isEven()){b.ishrn(1);if(x2.isEven())x2.ishrn(1);else x2.iadd(delta).ishrn(1)}if(a.cmp(b)>=0){a.isub(b);x1.isub(x2)}else{b.isub(a);x2.isub(x1)}}if(a.cmpn(1)===0)return x1;else return x2};BN.prototype.gcd=function gcd(num){if(this.cmpn(0)===0)return num.clone();if(num.cmpn(0)===0)return this.clone();var a=this.clone();var b=num.clone();a.sign=false;b.sign=false;for(var shift=0;a.isEven()&&b.isEven();shift++){a.ishrn(1);b.ishrn(1)}do{while(a.isEven())a.ishrn(1);while(b.isEven())b.ishrn(1);var r=a.cmp(b);if(r<0){var t=a;a=b;b=t}else if(r===0||b.cmpn(1)===0){break}a.isub(b)}while(true);return b.ishln(shift)};BN.prototype.invm=function invm(num){return this.egcd(num).a.mod(num)};BN.prototype.isEven=function isEven(){return(this.words[0]&1)===0};BN.prototype.isOdd=function isOdd(){return(this.words[0]&1)===1};BN.prototype.andln=function andln(num){return this.words[0]&num};BN.prototype.bincn=function bincn(bit){assert(typeof bit==="number");var r=bit%26;var s=(bit-r)/26;var q=1<>>26;w&=67108863;this.words[i]=w}if(carry!==0){this.words[i]=carry;this.length++}return this};BN.prototype.cmpn=function cmpn(num){var sign=num<0;if(sign)num=-num;if(this.sign&&!sign)return-1;else if(!this.sign&&sign)return 1;num&=67108863;this.strip();var res;if(this.length>1){res=1}else{var w=this.words[0];res=w===num?0:wnum.length)return 1;else if(this.length=0;i--){var a=this.words[i];var b=num.words[i];if(a===b)continue;if(ab)res=1;break}return res};BN.red=function red(num){return new Red(num)};BN.prototype.toRed=function toRed(ctx){assert(!this.red,"Already a number in reduction context");assert(!this.sign,"red works only with positives");return ctx.convertTo(this)._forceRed(ctx)};BN.prototype.fromRed=function fromRed(){assert(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)};BN.prototype._forceRed=function _forceRed(ctx){this.red=ctx;return this};BN.prototype.forceRed=function forceRed(ctx){assert(!this.red,"Already a number in reduction context");return this._forceRed(ctx)};BN.prototype.redAdd=function redAdd(num){assert(this.red,"redAdd works only with red numbers");return this.red.add(this,num)};BN.prototype.redIAdd=function redIAdd(num){assert(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,num)};BN.prototype.redSub=function redSub(num){assert(this.red,"redSub works only with red numbers");return this.red.sub(this,num)};BN.prototype.redISub=function redISub(num){assert(this.red,"redISub works only with red numbers");return this.red.isub(this,num)};BN.prototype.redShl=function redShl(num){assert(this.red,"redShl works only with red numbers");return this.red.shl(this,num)};BN.prototype.redMul=function redMul(num){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,num);return this.red.mul(this,num)};BN.prototype.redIMul=function redIMul(num){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,num);return this.red.imul(this,num)};BN.prototype.redSqr=function redSqr(){assert(this.red,"redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};BN.prototype.redISqr=function redISqr(){assert(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};BN.prototype.redSqrt=function redSqrt(){assert(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};BN.prototype.redInvm=function redInvm(){assert(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};BN.prototype.redNeg=function redNeg(){assert(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};BN.prototype.redPow=function redPow(num){assert(this.red&&!num.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,num)};var primes={k256:null,p224:null,p192:null,p25519:null};function MPrime(name,p){this.name=name;this.p=new BN(p,16);this.n=this.p.bitLength();this.k=new BN(1).ishln(this.n).isub(this.p);this.tmp=this._tmp()}MPrime.prototype._tmp=function _tmp(){var tmp=new BN(null);tmp.words=new Array(Math.ceil(this.n/13));return tmp};MPrime.prototype.ireduce=function ireduce(num){var r=num;var rlen;do{this.split(r,this.tmp);r=this.imulK(r);r=r.iadd(this.tmp);rlen=r.bitLength()}while(rlen>this.n);var cmp=rlen0){r.isub(this.p)}else{r.strip()}return r};MPrime.prototype.split=function split(input,out){input.ishrn(this.n,0,out)};MPrime.prototype.imulK=function imulK(num){return num.imul(this.k)};function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}inherits(K256,MPrime);K256.prototype.split=function split(input,output){var mask=4194303;var outLen=Math.min(input.length,9);for(var i=0;i>>22;prev=next}input.words[i-10]=prev>>>22;input.length-=9};K256.prototype.imulK=function imulK(num){num.words[num.length]=0;num.words[num.length+1]=0;num.length+=2;var hi;var lo=0;for(var i=0;i>>=26;num.words[i]=lo;carry=hi}if(carry!==0)num.words[num.length++]=carry;return num};BN._prime=function prime(name){if(primes[name])return primes[name];var prime;if(name==="k256")prime=new K256;else if(name==="p224")prime=new P224;else if(name==="p192")prime=new P192;else if(name==="p25519")prime=new P25519;else throw new Error("Unknown prime "+name);primes[name]=prime;return prime};function Red(m){if(typeof m==="string"){var prime=BN._prime(m);this.m=prime.p;this.prime=prime}else{this.m=m;this.prime=null}}Red.prototype._verify1=function _verify1(a){assert(!a.sign,"red works only with positives");assert(a.red,"red works only with red numbers")};Red.prototype._verify2=function _verify2(a,b){assert(!a.sign&&!b.sign,"red works only with positives");assert(a.red&&a.red===b.red,"red works only with red numbers")};Red.prototype.imod=function imod(a){if(this.prime)return this.prime.ireduce(a)._forceRed(this);return a.mod(this.m)._forceRed(this)};Red.prototype.neg=function neg(a){var r=a.clone();r.sign=!r.sign;return r.iadd(this.m)._forceRed(this)};Red.prototype.add=function add(a,b){this._verify2(a,b);var res=a.add(b);if(res.cmp(this.m)>=0)res.isub(this.m);return res._forceRed(this)};Red.prototype.iadd=function iadd(a,b){this._verify2(a,b);var res=a.iadd(b);if(res.cmp(this.m)>=0)res.isub(this.m);return res};Red.prototype.sub=function sub(a,b){this._verify2(a,b);var res=a.sub(b);if(res.cmpn(0)<0)res.iadd(this.m);return res._forceRed(this)};Red.prototype.isub=function isub(a,b){this._verify2(a,b);var res=a.isub(b);if(res.cmpn(0)<0)res.iadd(this.m);return res};Red.prototype.shl=function shl(a,num){this._verify1(a);return this.imod(a.shln(num))};Red.prototype.imul=function imul(a,b){this._verify2(a,b);return this.imod(a.imul(b))};Red.prototype.mul=function mul(a,b){this._verify2(a,b);return this.imod(a.mul(b))};Red.prototype.isqr=function isqr(a){return this.imul(a,a)};Red.prototype.sqr=function sqr(a){return this.mul(a,a)};Red.prototype.sqrt=function sqrt(a){if(a.cmpn(0)===0)return a.clone();var mod3=this.m.andln(3);assert(mod3%2===1);if(mod3===3){var pow=this.m.add(new BN(1)).ishrn(2);var r=this.pow(a,pow);return r}var q=this.m.subn(1);var s=0;while(q.cmpn(0)!==0&&q.andln(1)===0){s++;q.ishrn(1)}assert(q.cmpn(0)!==0);var one=new BN(1).toRed(this);var nOne=one.redNeg();var lpow=this.m.subn(1).ishrn(1);var z=this.m.bitLength();z=new BN(2*z*z).toRed(this);while(this.pow(z,lpow).cmp(nOne)!==0)z.redIAdd(nOne);var c=this.pow(z,q);var r=this.pow(a,q.addn(1).ishrn(1));var t=this.pow(a,q);var m=s;while(t.cmp(one)!==0){var tmp=t;for(var i=0;tmp.cmp(one)!==0;i++)tmp=tmp.redSqr();assert(i=0)res=u.isub(this.m);else if(u.cmpn(0)<0)res=u.iadd(this.m);return res._forceRed(this)};Mont.prototype.mul=function mul(a,b){if(a.cmpn(0)===0||b.cmpn(0)===0)return new BN(0)._forceRed(this);var t=a.mul(b);var c=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var u=t.isub(c).ishrn(this.shift);var res=u;if(u.cmp(this.m)>=0)res=u.isub(this.m);else if(u.cmpn(0)<0)res=u.iadd(this.m);return res._forceRed(this)};Mont.prototype.invm=function invm(a){var res=this.imod(a._invmp(this.m).mul(this.r2));return res._forceRed(this)}})(typeof module==="undefined"||module,this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/bn.js/lib/bn.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/bn.js/lib")},{_process:379,buffer:230}],304:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var elliptic=exports;elliptic.version=require("../package.json").version;elliptic.utils=require("./elliptic/utils");elliptic.rand=require("brorand");elliptic.hmacDRBG=require("./elliptic/hmac-drbg");elliptic.curve=require("./elliptic/curve");elliptic.curves=require("./elliptic/curves");elliptic.ec=require("./elliptic/ec")}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib")},{"../package.json":324,"./elliptic/curve":307,"./elliptic/curves":310,"./elliptic/ec":311,"./elliptic/hmac-drbg":314,"./elliptic/utils":316,_process:379,brorand:317,buffer:230}],305:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var bn=require("bn.js");var elliptic=require("../../elliptic");var getNAF=elliptic.utils.getNAF;var getJSF=elliptic.utils.getJSF;var assert=elliptic.utils.assert;function BaseCurve(type,conf){this.type=type;this.p=new bn(conf.p,16);this.red=conf.prime?bn.red(conf.prime):bn.mont(this.p);this.zero=new bn(0).toRed(this.red);this.one=new bn(1).toRed(this.red);this.two=new bn(2).toRed(this.red);this.n=conf.n&&new bn(conf.n,16);this.g=conf.g&&this.pointFromJSON(conf.g,conf.gRed);this._wnafT1=new Array(4);this._wnafT2=new Array(4);this._wnafT3=new Array(4);this._wnafT4=new Array(4)}module.exports=BaseCurve;BaseCurve.prototype.point=function point(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function validate(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function _fixedNafMul(p,k){assert(p.precomputed);var doubles=p._getDoubles();var naf=getNAF(k,1);var I=(1<=j;k--)nafW=(nafW<<1)+naf[k];repr.push(nafW)}var a=this.jpoint(null,null,null);var b=this.jpoint(null,null,null);for(var i=I;i>0;i--){for(var j=0;j=0;i--){for(var k=0;i>=0&&naf[i]===0;i--)k++;if(i>=0)k++;acc=acc.dblp(k);if(i<0)break;var z=naf[i];assert(z!==0);if(p.type==="affine"){if(z>0)acc=acc.mixedAdd(wnd[z-1>>1]);else acc=acc.mixedAdd(wnd[-z-1>>1].neg())}else{if(z>0)acc=acc.add(wnd[z-1>>1]);else acc=acc.add(wnd[-z-1>>1].neg())}}return p.type==="affine"?acc.toP():acc};BaseCurve.prototype._wnafMulAdd=function _wnafMulAdd(defW,points,coeffs,len){var wndWidth=this._wnafT1;var wnd=this._wnafT2;var naf=this._wnafT3;var max=0;for(var i=0;i=1;i-=2){var a=i-1;var b=i;if(wndWidth[a]!==1||wndWidth[b]!==1){naf[a]=getNAF(coeffs[a],wndWidth[a]);naf[b]=getNAF(coeffs[b],wndWidth[b]);max=Math.max(naf[a].length,max);max=Math.max(naf[b].length,max);continue}var comb=[points[a],null,null,points[b]];if(points[a].y.cmp(points[b].y)===0){comb[1]=points[a].add(points[b]);comb[2]=points[a].toJ().mixedAdd(points[b].neg())}else if(points[a].y.cmp(points[b].y.redNeg())===0){comb[1]=points[a].toJ().mixedAdd(points[b]);comb[2]=points[a].add(points[b].neg()); +}else{comb[1]=points[a].toJ().mixedAdd(points[b]);comb[2]=points[a].toJ().mixedAdd(points[b].neg())}var index=[-3,-1,-5,-7,0,7,5,1,3];var jsf=getJSF(coeffs[a],coeffs[b]);max=Math.max(jsf[0].length,max);naf[a]=new Array(max);naf[b]=new Array(max);for(var j=0;j=0;i--){var k=0;while(i>=0){var zero=true;for(var j=0;j=0)k++;acc=acc.dblp(k);if(i<0)break;for(var j=0;j0)p=wnd[j][z-1>>1];else if(z<0)p=wnd[j][-z-1>>1].neg();if(p.type==="affine")acc=acc.mixedAdd(p);else acc=acc.add(p)}}for(var i=0;i=Math.ceil((k.bitLength()+1)/doubles.step)};BasePoint.prototype._getDoubles=function _getDoubles(step,power){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var doubles=[this];var acc=this;for(var i=0;i";return""};Point.prototype.isInfinity=function isInfinity(){return this.x.cmpn(0)===0&&this.y.cmp(this.z)===0};Point.prototype._extDbl=function _extDbl(){var a=this.x.redSqr();var b=this.y.redSqr();var c=this.z.redSqr();c=c.redIAdd(c);var d=this.curve._mulA(a);var e=this.x.redAdd(this.y).redSqr().redISub(a).redISub(b);var g=d.redAdd(b);var f=g.redSub(c);var h=d.redSub(b);var nx=e.redMul(f);var ny=g.redMul(h);var nt=e.redMul(h);var nz=f.redMul(g);return this.curve.point(nx,ny,nz,nt)};Point.prototype._projDbl=function _projDbl(){var b=this.x.redAdd(this.y).redSqr();var c=this.x.redSqr();var d=this.y.redSqr();var nx;var ny;var nz;if(this.curve.twisted){var e=this.curve._mulA(c);var f=e.redAdd(d);if(this.zOne){nx=b.redSub(c).redSub(d).redMul(f.redSub(this.curve.two));ny=f.redMul(e.redSub(d));nz=f.redSqr().redSub(f).redSub(f)}else{var h=this.z.redSqr();var j=f.redSub(h).redISub(h);nx=b.redSub(c).redISub(d).redMul(j);ny=f.redMul(e.redSub(d));nz=f.redMul(j)}}else{var e=c.redAdd(d);var h=this.curve._mulC(this.c.redMul(this.z)).redSqr();var j=e.redSub(h).redSub(h);nx=this.curve._mulC(b.redISub(e)).redMul(j);ny=this.curve._mulC(e).redMul(c.redISub(d));nz=e.redMul(j)}return this.curve.point(nx,ny,nz)};Point.prototype.dbl=function dbl(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()};Point.prototype._extAdd=function _extAdd(p){var a=this.y.redSub(this.x).redMul(p.y.redSub(p.x));var b=this.y.redAdd(this.x).redMul(p.y.redAdd(p.x));var c=this.t.redMul(this.curve.dd).redMul(p.t);var d=this.z.redMul(p.z.redAdd(p.z));var e=b.redSub(a);var f=d.redSub(c);var g=d.redAdd(c);var h=b.redAdd(a);var nx=e.redMul(f);var ny=g.redMul(h);var nt=e.redMul(h);var nz=f.redMul(g);return this.curve.point(nx,ny,nz,nt)};Point.prototype._projAdd=function _projAdd(p){var a=this.z.redMul(p.z);var b=a.redSqr();var c=this.x.redMul(p.x);var d=this.y.redMul(p.y);var e=this.curve.d.redMul(c).redMul(d);var f=b.redSub(e);var g=b.redAdd(e);var tmp=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(c).redISub(d);var nx=a.redMul(f).redMul(tmp);var ny;var nz;if(this.curve.twisted){ny=a.redMul(g).redMul(d.redSub(this.curve._mulA(c)));nz=f.redMul(g)}else{ny=a.redMul(g).redMul(d.redSub(c));nz=this.curve._mulC(f).redMul(g)}return this.curve.point(nx,ny,nz)};Point.prototype.add=function add(p){if(this.isInfinity())return p;if(p.isInfinity())return this;if(this.curve.extended)return this._extAdd(p);else return this._projAdd(p)};Point.prototype.mul=function mul(k){if(this._hasDoubles(k))return this.curve._fixedNafMul(this,k);else return this.curve._wnafMul(this,k)};Point.prototype.mulAdd=function mulAdd(k1,p,k2){return this.curve._wnafMulAdd(1,[this,p],[k1,k2],2)};Point.prototype.normalize=function normalize(){if(this.zOne)return this;var zi=this.z.redInvm();this.x=this.x.redMul(zi);this.y=this.y.redMul(zi);if(this.t)this.t=this.t.redMul(zi);this.z=this.curve.one;this.zOne=true;return this};Point.prototype.neg=function neg(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function getX(){this.normalize();return this.x.fromRed()};Point.prototype.getY=function getY(){this.normalize();return this.y.fromRed()};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/curve/edwards.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/curve")},{"../../elliptic":304,"../curve":307,_process:379,"bn.js":303,buffer:230,inherits:"inherits"}],307:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var curve=exports;curve.base=require("./base");curve.short=require("./short");curve.mont=require("./mont");curve.edwards=require("./edwards")}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/curve/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/curve")},{"./base":305,"./edwards":306,"./mont":308,"./short":309,_process:379,buffer:230}],308:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var curve=require("../curve");var bn=require("bn.js");var inherits=require("inherits");var Base=curve.base;function MontCurve(conf){Base.call(this,"mont",conf);this.a=new bn(conf.a,16).toRed(this.red);this.b=new bn(conf.b,16).toRed(this.red);this.i4=new bn(4).toRed(this.red).redInvm();this.two=new bn(2).toRed(this.red);this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits(MontCurve,Base);module.exports=MontCurve;MontCurve.prototype.validate=function validate(point){var x=point.normalize().x;var x2=x.redSqr();var rhs=x2.redMul(x).redAdd(x2.redMul(this.a)).redAdd(x);var y=rhs.redSqrt();return y.redSqr().cmp(rhs)===0};function Point(curve,x,z){Base.BasePoint.call(this,curve,"projective");if(x===null&&z===null){this.x=this.curve.one;this.z=this.curve.zero}else{this.x=new bn(x,16);this.z=new bn(z,16);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red)}}inherits(Point,Base.BasePoint);MontCurve.prototype.point=function point(x,z){return new Point(this,x,z)};MontCurve.prototype.pointFromJSON=function pointFromJSON(obj){return Point.fromJSON(this,obj)};Point.prototype.precompute=function precompute(){};Point.fromJSON=function fromJSON(curve,obj){return new Point(curve,obj[0],obj[1]||curve.one)};Point.prototype.inspect=function inspect(){if(this.isInfinity())return"";return""};Point.prototype.isInfinity=function isInfinity(){return this.z.cmpn(0)===0};Point.prototype.dbl=function dbl(){var a=this.x.redAdd(this.z);var aa=a.redSqr();var b=this.x.redSub(this.z);var bb=b.redSqr();var c=aa.redSub(bb);var nx=aa.redMul(bb);var nz=c.redMul(bb.redAdd(this.curve.a24.redMul(c)));return this.curve.point(nx,nz)};Point.prototype.add=function add(){throw new Error("Not supported on Montgomery curve")};Point.prototype.diffAdd=function diffAdd(p,diff){var a=this.x.redAdd(this.z);var b=this.x.redSub(this.z);var c=p.x.redAdd(p.z);var d=p.x.redSub(p.z);var da=d.redMul(a);var cb=c.redMul(b);var nx=diff.z.redMul(da.redAdd(cb).redSqr());var nz=diff.x.redMul(da.redISub(cb).redSqr());return this.curve.point(nx,nz)};Point.prototype.mul=function mul(k){var t=k.clone();var a=this;var b=this.curve.point(null,null);var c=this;for(var bits=[];t.cmpn(0)!==0;t.ishrn(1))bits.push(t.andln(1));for(var i=bits.length-1;i>=0;i--){if(bits[i]===0){a=a.diffAdd(b,c);b=b.dbl()}else{b=a.diffAdd(b,c);a=a.dbl()}}return b};Point.prototype.mulAdd=function mulAdd(){throw new Error("Not supported on Montgomery curve")};Point.prototype.normalize=function normalize(){this.x=this.x.redMul(this.z.redInvm());this.z=this.curve.one;return this};Point.prototype.getX=function getX(){this.normalize();return this.x.fromRed()}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/curve/mont.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/curve")},{"../curve":307,_process:379,"bn.js":303,buffer:230,inherits:"inherits"}],309:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var curve=require("../curve");var elliptic=require("../../elliptic");var bn=require("bn.js");var inherits=require("inherits");var Base=curve.base;var assert=elliptic.utils.assert;function ShortCurve(conf){Base.call(this,"short",conf);this.a=new bn(conf.a,16).toRed(this.red);this.b=new bn(conf.b,16).toRed(this.red);this.tinv=this.two.redInvm();this.zeroA=this.a.fromRed().cmpn(0)===0;this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0;this.endo=this._getEndomorphism(conf);this._endoWnafT1=new Array(4);this._endoWnafT2=new Array(4)}inherits(ShortCurve,Base);module.exports=ShortCurve;ShortCurve.prototype._getEndomorphism=function _getEndomorphism(conf){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var beta;var lambda;if(conf.beta){beta=new bn(conf.beta,16).toRed(this.red)}else{var betas=this._getEndoRoots(this.p);beta=betas[0].cmp(betas[1])<0?betas[0]:betas[1];beta=beta.toRed(this.red)}if(conf.lambda){lambda=new bn(conf.lambda,16)}else{var lambdas=this._getEndoRoots(this.n);if(this.g.mul(lambdas[0]).x.cmp(this.g.x.redMul(beta))===0){lambda=lambdas[0]}else{lambda=lambdas[1];assert(this.g.mul(lambda).x.cmp(this.g.x.redMul(beta))===0)}}var basis;if(conf.basis){basis=conf.basis.map(function(vec){return{a:new bn(vec.a,16),b:new bn(vec.b,16)}})}else{basis=this._getEndoBasis(lambda)}return{beta:beta,lambda:lambda,basis:basis}};ShortCurve.prototype._getEndoRoots=function _getEndoRoots(num){var red=num===this.p?this.red:bn.mont(num);var tinv=new bn(2).toRed(red).redInvm();var ntinv=tinv.redNeg();var s=new bn(3).toRed(red).redNeg().redSqrt().redMul(tinv);var l1=ntinv.redAdd(s).fromRed();var l2=ntinv.redSub(s).fromRed();return[l1,l2]};ShortCurve.prototype._getEndoBasis=function _getEndoBasis(lambda){var aprxSqrt=this.n.shrn(Math.floor(this.n.bitLength()/2));var u=lambda;var v=this.n.clone();var x1=new bn(1);var y1=new bn(0);var x2=new bn(0);var y2=new bn(1);var a0;var b0;var a1;var b1;var a2;var b2;var prevR;var i=0;var r;var x;while(u.cmpn(0)!==0){var q=v.div(u);r=v.sub(q.mul(u));x=x2.sub(q.mul(x1));var y=y2.sub(q.mul(y1));if(!a1&&r.cmp(aprxSqrt)<0){a0=prevR.neg();b0=x1;a1=r.neg();b1=x}else if(a1&&++i===2){break}prevR=r;v=u;u=r;x2=x1;x1=x;y2=y1;y1=y}a2=r.neg();b2=x;var len1=a1.sqr().add(b1.sqr());var len2=a2.sqr().add(b2.sqr());if(len2.cmp(len1)>=0){a2=a0;b2=b0}if(a1.sign){a1=a1.neg();b1=b1.neg()}if(a2.sign){a2=a2.neg();b2=b2.neg()}return[{a:a1,b:b1},{a:a2,b:b2}]};ShortCurve.prototype._endoSplit=function _endoSplit(k){var basis=this.endo.basis;var v1=basis[0];var v2=basis[1];var c1=v2.b.mul(k).divRound(this.n);var c2=v1.b.neg().mul(k).divRound(this.n);var p1=c1.mul(v1.a);var p2=c2.mul(v2.a);var q1=c1.mul(v1.b);var q2=c2.mul(v2.b);var k1=k.sub(p1).sub(p2);var k2=q1.add(q2).neg();return{k1:k1,k2:k2}};ShortCurve.prototype.pointFromX=function pointFromX(odd,x){x=new bn(x,16);if(!x.red)x=x.toRed(this.red);var y2=x.redSqr().redMul(x).redIAdd(x.redMul(this.a)).redIAdd(this.b);var y=y2.redSqrt();var isOdd=y.fromRed().isOdd();if(odd&&!isOdd||!odd&&isOdd)y=y.redNeg();return this.point(x,y)};ShortCurve.prototype.validate=function validate(point){if(point.inf)return true;var x=point.x;var y=point.y;var ax=this.a.redMul(x);var rhs=x.redSqr().redMul(x).redIAdd(ax).redIAdd(this.b);return y.redSqr().redISub(rhs).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function _endoWnafMulAdd(points,coeffs){var npoints=this._endoWnafT1;var ncoeffs=this._endoWnafT2;for(var i=0;i";return""};Point.prototype.isInfinity=function isInfinity(){return this.inf};Point.prototype.add=function add(p){if(this.inf)return p;if(p.inf)return this;if(this.eq(p))return this.dbl();if(this.neg().eq(p))return this.curve.point(null,null);if(this.x.cmp(p.x)===0)return this.curve.point(null,null);var c=this.y.redSub(p.y);if(c.cmpn(0)!==0)c=c.redMul(this.x.redSub(p.x).redInvm());var nx=c.redSqr().redISub(this.x).redISub(p.x);var ny=c.redMul(this.x.redSub(nx)).redISub(this.y);return this.curve.point(nx,ny)};Point.prototype.dbl=function dbl(){if(this.inf)return this;var ys1=this.y.redAdd(this.y);if(ys1.cmpn(0)===0)return this.curve.point(null,null);var a=this.curve.a;var x2=this.x.redSqr();var dyinv=ys1.redInvm();var c=x2.redAdd(x2).redIAdd(x2).redIAdd(a).redMul(dyinv);var nx=c.redSqr().redISub(this.x.redAdd(this.x));var ny=c.redMul(this.x.redSub(nx)).redISub(this.y);return this.curve.point(nx,ny)};Point.prototype.getX=function getX(){return this.x.fromRed()};Point.prototype.getY=function getY(){return this.y.fromRed()};Point.prototype.mul=function mul(k){k=new bn(k,16);if(this._hasDoubles(k))return this.curve._fixedNafMul(this,k);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[k]);else return this.curve._wnafMul(this,k)};Point.prototype.mulAdd=function mulAdd(k1,p2,k2){var points=[this,p2];var coeffs=[k1,k2];if(this.curve.endo)return this.curve._endoWnafMulAdd(points,coeffs);else return this.curve._wnafMulAdd(1,points,coeffs,2)};Point.prototype.eq=function eq(p){return this===p||this.inf===p.inf&&(this.inf||this.x.cmp(p.x)===0&&this.y.cmp(p.y)===0)};Point.prototype.neg=function neg(_precompute){if(this.inf)return this;var res=this.curve.point(this.x,this.y.redNeg());if(_precompute&&this.precomputed){var pre=this.precomputed;var negate=function(p){return p.neg()};res.precomputed={naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(negate)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(negate)}}}return res};Point.prototype.toJ=function toJ(){if(this.inf)return this.curve.jpoint(null,null,null);var res=this.curve.jpoint(this.x,this.y,this.curve.one);return res};function JPoint(curve,x,y,z){Base.BasePoint.call(this,curve,"jacobian");if(x===null&&y===null&&z===null){this.x=this.curve.one;this.y=this.curve.one;this.z=new bn(0)}else{this.x=new bn(x,16);this.y=new bn(y,16);this.z=new bn(z,16)}if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);this.zOne=this.z===this.curve.one}inherits(JPoint,Base.BasePoint);ShortCurve.prototype.jpoint=function jpoint(x,y,z){return new JPoint(this,x,y,z)};JPoint.prototype.toP=function toP(){if(this.isInfinity())return this.curve.point(null,null);var zinv=this.z.redInvm();var zinv2=zinv.redSqr();var ax=this.x.redMul(zinv2);var ay=this.y.redMul(zinv2).redMul(zinv);return this.curve.point(ax,ay)};JPoint.prototype.neg=function neg(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function add(p){if(this.isInfinity())return p;if(p.isInfinity())return this;var pz2=p.z.redSqr();var z2=this.z.redSqr();var u1=this.x.redMul(pz2);var u2=p.x.redMul(z2);var s1=this.y.redMul(pz2.redMul(p.z));var s2=p.y.redMul(z2.redMul(this.z));var h=u1.redSub(u2);var r=s1.redSub(s2);if(h.cmpn(0)===0){if(r.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl()}var h2=h.redSqr();var h3=h2.redMul(h);var v=u1.redMul(h2);var nx=r.redSqr().redIAdd(h3).redISub(v).redISub(v);var ny=r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));var nz=this.z.redMul(p.z).redMul(h);return this.curve.jpoint(nx,ny,nz)};JPoint.prototype.mixedAdd=function mixedAdd(p){if(this.isInfinity())return p.toJ();if(p.isInfinity())return this;var z2=this.z.redSqr();var u1=this.x;var u2=p.x.redMul(z2);var s1=this.y;var s2=p.y.redMul(z2).redMul(this.z);var h=u1.redSub(u2);var r=s1.redSub(s2);if(h.cmpn(0)===0){if(r.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl()}var h2=h.redSqr();var h3=h2.redMul(h);var v=u1.redMul(h2);var nx=r.redSqr().redIAdd(h3).redISub(v).redISub(v);var ny=r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));var nz=this.z.redMul(h);return this.curve.jpoint(nx,ny,nz)};JPoint.prototype.dblp=function dblp(pow){if(pow===0)return this;if(this.isInfinity())return this;if(!pow)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var r=this;for(var i=0;i";return""};JPoint.prototype.isInfinity=function isInfinity(){return this.z.cmpn(0)===0}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/curve/short.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/curve")},{"../../elliptic":304,"../curve":307,_process:379,"bn.js":303,buffer:230,inherits:"inherits"}],310:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var curves=exports;var hash=require("hash.js");var elliptic=require("../elliptic");var assert=elliptic.utils.assert;function PresetCurve(options){if(options.type==="short")this.curve=new elliptic.curve.short(options);else if(options.type==="edwards")this.curve=new elliptic.curve.edwards(options);else this.curve=new elliptic.curve.mont(options);this.g=this.curve.g;this.n=this.curve.n;this.hash=options.hash;assert(this.g.validate(),"Invalid curve");assert(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}curves.PresetCurve=PresetCurve;function defineCurve(name,options){Object.defineProperty(curves,name,{configurable:true,enumerable:true,get:function(){var curve=new PresetCurve(options);Object.defineProperty(curves,name,{configurable:true,enumerable:true,value:curve});return curve}})}defineCurve("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:hash.sha256,gRed:false,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});defineCurve("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:hash.sha256,gRed:false,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"] +});defineCurve("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:hash.sha256,gRed:false,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});defineCurve("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"0",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:hash.sha256,gRed:false,g:["9"]});defineCurve("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:hash.sha256,gRed:false,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var pre;try{pre=require("./precomputed/secp256k1")}catch(e){pre=undefined}defineCurve("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:hash.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:false,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",pre]})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/curves.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic")},{"../elliptic":304,"./precomputed/secp256k1":315,_process:379,buffer:230,"hash.js":318}],311:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var bn=require("bn.js");var elliptic=require("../../elliptic");var utils=elliptic.utils;var assert=utils.assert;var KeyPair=require("./key");var Signature=require("./signature");function EC(options){if(!(this instanceof EC))return new EC(options);if(typeof options==="string"){assert(elliptic.curves.hasOwnProperty(options),"Unknown curve "+options);options=elliptic.curves[options]}if(options instanceof elliptic.curves.PresetCurve)options={curve:options};this.curve=options.curve.curve;this.n=this.curve.n;this.nh=this.n.shrn(1);this.g=this.curve.g;this.g=options.curve.g;this.g.precompute(options.curve.n.bitLength()+1);this.hash=options.hash||options.curve.hash}module.exports=EC;EC.prototype.keyPair=function keyPair(options){return new KeyPair(this,options)};EC.prototype.keyFromPrivate=function keyFromPrivate(priv,enc){return KeyPair.fromPrivate(this,priv,enc)};EC.prototype.keyFromPublic=function keyFromPublic(pub,enc){return KeyPair.fromPublic(this,pub,enc)};EC.prototype.genKeyPair=function genKeyPair(options){if(!options)options={};var drbg=new elliptic.hmacDRBG({hash:this.hash,pers:options.pers,entropy:options.entropy||elliptic.rand(this.hash.hmacStrength),nonce:this.n.toArray()});var bytes=this.n.byteLength();var ns2=this.n.sub(new bn(2));do{var priv=new bn(drbg.generate(bytes));if(priv.cmp(ns2)>0)continue;priv.iaddn(1);return this.keyFromPrivate(priv)}while(true)};EC.prototype._truncateToN=function truncateToN(msg,truncOnly){var delta=msg.byteLength()*8-this.n.bitLength();if(delta>0)msg=msg.shrn(delta);if(!truncOnly&&msg.cmp(this.n)>=0)return msg.sub(this.n);else return msg};EC.prototype.sign=function sign(msg,key,enc,options){if(typeof enc==="object"){options=enc;enc=null}if(!options)options={};key=this.keyFromPrivate(key,enc);msg=this._truncateToN(new bn(msg,16));var bytes=this.n.byteLength();var bkey=key.getPrivate().toArray();for(var i=bkey.length;i<21;i++)bkey.unshift(0);var nonce=msg.toArray();for(var i=nonce.length;i=0)continue;var kp=this.g.mul(k);if(kp.isInfinity())continue;var kpX=kp.getX();var r=kpX.mod(this.n);if(r.cmpn(0)===0)continue;var s=k.invm(this.n).mul(r.mul(key.getPrivate()).iadd(msg)).mod(this.n);if(s.cmpn(0)===0)continue;if(options.canonical&&s.cmp(this.nh)>0)s=this.n.sub(s);var recoveryParam=(kp.getY().isOdd()?1:0)|(kpX.cmp(r)!==0?2:0);return new Signature({r:r,s:s,recoveryParam:recoveryParam})}while(true)};EC.prototype.verify=function verify(msg,signature,key,enc){msg=this._truncateToN(new bn(msg,16));key=this.keyFromPublic(key,enc);signature=new Signature(signature,"hex");var r=signature.r;var s=signature.s;if(r.cmpn(1)<0||r.cmp(this.n)>=0)return false;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return false;var sinv=s.invm(this.n);var u1=sinv.mul(msg).mod(this.n);var u2=sinv.mul(r).mod(this.n);var p=this.g.mulAdd(u1,key.getPublic(),u2);if(p.isInfinity())return false;return p.getX().mod(this.n).cmp(r)===0};EC.prototype.recoverPubKey=function(msg,signature,j,enc){assert((3&j)===j,"The recovery param is more than two bits");signature=new Signature(signature,enc);var n=this.n;var e=new bn(msg);var r=signature.r;var s=signature.s;var isYOdd=j&1;var isSecondKey=j>>1;if(r.cmp(this.curve.p.mod(this.curve.n))>=0&&isSecondKey)throw new Error("Unable to find sencond key candinate");r=this.curve.pointFromX(isYOdd,r);var eNeg=e.neg().mod(n);var rInv=signature.r.invm(n);return r.mul(s).add(this.g.mul(eNeg)).mul(rInv)};EC.prototype.getKeyRecoveryParam=function(e,signature,Q,enc){signature=new Signature(signature,enc);if(signature.recoveryParam!==null)return signature.recoveryParam;for(var i=0;i<4;i++){var Qprime=this.recoverPubKey(e,signature,i);if(Qprime.eq(Q))return i}throw new Error("Unable to find valid recovery factor")}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/ec/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/ec")},{"../../elliptic":304,"./key":312,"./signature":313,_process:379,"bn.js":303,buffer:230}],312:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var bn=require("bn.js");var elliptic=require("../../elliptic");var utils=elliptic.utils;function KeyPair(ec,options){this.ec=ec;this.priv=null;this.pub=null;if(options.priv)this._importPrivate(options.priv,options.privEnc);if(options.pub)this._importPublic(options.pub,options.pubEnc)}module.exports=KeyPair;KeyPair.fromPublic=function fromPublic(ec,pub,enc){if(pub instanceof KeyPair)return pub;return new KeyPair(ec,{pub:pub,pubEnc:enc})};KeyPair.fromPrivate=function fromPrivate(ec,priv,enc){if(priv instanceof KeyPair)return priv;return new KeyPair(ec,{priv:priv,privEnc:enc})};KeyPair.prototype.validate=function validate(){var pub=this.getPublic();if(pub.isInfinity())return{result:false,reason:"Invalid public key"};if(!pub.validate())return{result:false,reason:"Public key is not a point"};if(!pub.mul(this.ec.curve.n).isInfinity())return{result:false,reason:"Public key * N != O"};return{result:true,reason:null}};KeyPair.prototype.getPublic=function getPublic(compact,enc){if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(typeof compact==="string"){enc=compact;compact=null}if(!enc)return this.pub;var len=this.ec.curve.p.byteLength();var x=this.pub.getX().toArray();for(var i=x.length;i"}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/ec/key.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/ec")},{"../../elliptic":304,_process:379,"bn.js":303,buffer:230}],313:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var bn=require("bn.js");var elliptic=require("../../elliptic");var utils=elliptic.utils;var assert=utils.assert;function Signature(options,enc){if(options instanceof Signature)return options;if(this._importDER(options,enc))return;assert(options.r&&options.s,"Signature without r or s");this.r=new bn(options.r,16);this.s=new bn(options.s,16);if(options.recoveryParam!==null)this.recoveryParam=options.recoveryParam;else this.recoveryParam=null}module.exports=Signature;Signature.prototype._importDER=function _importDER(data,enc){data=utils.toArray(data,enc);if(data.length<6||data[0]!==48||data[2]!==2)return false;var total=data[1];if(1+total>data.length)return false;var rlen=data[3];if(rlen>=128)return false;if(4+rlen+2>=data.length)return false;if(data[4+rlen]!==2)return false;var slen=data[5+rlen];if(slen>=128)return false;if(4+rlen+2+slen>data.length)return false;this.r=new bn(data.slice(4,4+rlen));this.s=new bn(data.slice(4+rlen+2,4+rlen+2+slen));this.recoveryParam=null;return true};Signature.prototype.toDER=function toDER(enc){var r=this.r.toArray();var s=this.s.toArray();if(r[0]&128)r=[0].concat(r);if(s[0]&128)s=[0].concat(s);var total=r.length+s.length+4;var res=[48,total,2,r.length];res=res.concat(r,[2,s.length],s);return utils.encode(res,enc)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/ec/signature.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/ec")},{"../../elliptic":304,_process:379,"bn.js":303,buffer:230}],314:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var hash=require("hash.js");var elliptic=require("../elliptic");var utils=elliptic.utils;var assert=utils.assert;function HmacDRBG(options){if(!(this instanceof HmacDRBG))return new HmacDRBG(options);this.hash=options.hash;this.predResist=!!options.predResist;this.outLen=this.hash.outSize;this.minEntropy=options.minEntropy||this.hash.hmacStrength;this.reseed=null;this.reseedInterval=null;this.K=null;this.V=null;var entropy=utils.toArray(options.entropy,options.entropyEnc);var nonce=utils.toArray(options.nonce,options.nonceEnc);var pers=utils.toArray(options.pers,options.persEnc);assert(entropy.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._init(entropy,nonce,pers)}module.exports=HmacDRBG;HmacDRBG.prototype._init=function init(entropy,nonce,pers){var seed=entropy.concat(nonce).concat(pers);this.K=new Array(this.outLen/8);this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._update(entropy.concat(add||[]));this.reseed=1};HmacDRBG.prototype.generate=function generate(len,enc,add,addEnc){if(this.reseed>this.reseedInterval)throw new Error("Reseed is required");if(typeof enc!=="string"){addEnc=add;add=enc;enc=null}if(add){add=utils.toArray(add,addEnc);this._update(add)}var temp=[];while(temp.length>8;var lo=c&255;if(hi)res.push(hi,lo);else res.push(lo)}}else if(enc==="hex"){msg=msg.replace(/[^a-z0-9]+/gi,"");if(msg.length%2!==0)msg="0"+msg;for(var i=0;i=0){var z;if(k.isOdd()){var mod=k.andln(ws-1);if(mod>(ws>>1)-1)z=(ws>>1)-mod;else z=mod;k.isubn(z)}else{z=0}naf.push(z);var shift=k.cmpn(0)!==0&&k.andln(ws-1)===0?w+1:1;for(var i=1;i0||k2.cmpn(-d2)>0){var m14=k1.andln(3)+d1&3;var m24=k2.andln(3)+d2&3;if(m14===3)m14=-1;if(m24===3)m24=-1;var u1;if((m14&1)===0){u1=0}else{var m8=k1.andln(7)+d1&7;if((m8===3||m8===5)&&m24===2)u1=-m14;else u1=m14}jsf[0].push(u1);var u2;if((m24&1)===0){u2=0}else{var m8=k2.andln(7)+d2&7;if((m8===3||m8===5)&&m14===2)u2=-m24;else u2=m24}jsf[1].push(u2);if(2*d1===u1+1)d1=1-d1;if(2*d2===u2+1)d2=1-d2;k1.ishrn(1);k2.ishrn(1)}return jsf}utils.getJSF=getJSF}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic/utils.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/lib/elliptic")},{_process:379,buffer:230}],317:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var r;module.exports=function rand(len){if(!r)r=new Rand(null);return r.generate(len)};function Rand(rand){this.rand=rand}module.exports.Rand=Rand;Rand.prototype.generate=function generate(len){return this._rand(len)};if(typeof window==="object"){if(window.crypto&&window.crypto.getRandomValues){Rand.prototype._rand=function _rand(n){var arr=new Uint8Array(n);window.crypto.getRandomValues(arr);return arr}}else if(window.msCrypto&&window.msCrypto.getRandomValues){Rand.prototype._rand=function _rand(n){var arr=new Uint8Array(n);window.msCrypto.getRandomValues(arr);return arr}}else{Rand.prototype._rand=function(){throw new Error("Not implemented yet")}}}else{try{var crypto=require("cry"+"pto");Rand.prototype._rand=function _rand(n){return crypto.randomBytes(n)}}catch(e){Rand.prototype._rand=function _rand(n){var res=new Uint8Array(n);for(var i=0;i=this._delta8){msg=this.pending;var r=msg.length%this._delta8;this.pending=msg.slice(msg.length-r,msg.length);if(this.pending.length===0)this.pending=null;msg=utils.join32(msg,0,msg.length-r,this.endian);for(var i=0;i>>24&255;res[i++]=len>>>16&255;res[i++]=len>>>8&255;res[i++]=len&255}else{res[i++]=len&255;res[i++]=len>>>8&255;res[i++]=len>>>16&255;res[i++]=len>>>24&255;res[i++]=0;res[i++]=0;res[i++]=0;res[i++]=0;for(var t=8;tthis.blockSize)key=(new this.Hash).update(key).digest();assert(key.length<=this.blockSize);for(var i=key.length;i>>3}function g1_256(x){return rotr32(x,17)^rotr32(x,19)^x>>>10}function ft_1(s,x,y,z){if(s===0)return ch32(x,y,z);if(s===1||s===3)return p32(x,y,z);if(s===2)return maj32(x,y,z)}function ch64_hi(xh,xl,yh,yl,zh,zl){var r=xh&yh^~xh&zh;if(r<0)r+=4294967296;return r}function ch64_lo(xh,xl,yh,yl,zh,zl){var r=xl&yl^~xl&zl;if(r<0)r+=4294967296;return r}function maj64_hi(xh,xl,yh,yl,zh,zl){var r=xh&yh^xh&zh^yh&zh;if(r<0)r+=4294967296;return r}function maj64_lo(xh,xl,yh,yl,zh,zl){var r=xl&yl^xl&zl^yl&zl;if(r<0)r+=4294967296;return r}function s0_512_hi(xh,xl){var c0_hi=rotr64_hi(xh,xl,28);var c1_hi=rotr64_hi(xl,xh,2);var c2_hi=rotr64_hi(xl,xh,7);var r=c0_hi^c1_hi^c2_hi;if(r<0)r+=4294967296;return r}function s0_512_lo(xh,xl){var c0_lo=rotr64_lo(xh,xl,28);var c1_lo=rotr64_lo(xl,xh,2);var c2_lo=rotr64_lo(xl,xh,7);var r=c0_lo^c1_lo^c2_lo;if(r<0)r+=4294967296;return r}function s1_512_hi(xh,xl){var c0_hi=rotr64_hi(xh,xl,14);var c1_hi=rotr64_hi(xh,xl,18);var c2_hi=rotr64_hi(xl,xh,9);var r=c0_hi^c1_hi^c2_hi;if(r<0)r+=4294967296;return r}function s1_512_lo(xh,xl){var c0_lo=rotr64_lo(xh,xl,14);var c1_lo=rotr64_lo(xh,xl,18);var c2_lo=rotr64_lo(xl,xh,9);var r=c0_lo^c1_lo^c2_lo;if(r<0)r+=4294967296;return r}function g0_512_hi(xh,xl){var c0_hi=rotr64_hi(xh,xl,1);var c1_hi=rotr64_hi(xh,xl,8);var c2_hi=shr64_hi(xh,xl,7);var r=c0_hi^c1_hi^c2_hi;if(r<0)r+=4294967296;return r}function g0_512_lo(xh,xl){var c0_lo=rotr64_lo(xh,xl,1);var c1_lo=rotr64_lo(xh,xl,8);var c2_lo=shr64_lo(xh,xl,7);var r=c0_lo^c1_lo^c2_lo;if(r<0)r+=4294967296;return r}function g1_512_hi(xh,xl){var c0_hi=rotr64_hi(xh,xl,19);var c1_hi=rotr64_hi(xl,xh,29);var c2_hi=shr64_hi(xh,xl,6);var r=c0_hi^c1_hi^c2_hi;if(r<0)r+=4294967296;return r}function g1_512_lo(xh,xl){var c0_lo=rotr64_lo(xh,xl,19);var c1_lo=rotr64_lo(xl,xh,29);var c2_lo=shr64_lo(xh,xl,6);var r=c0_lo^c1_lo^c2_lo;if(r<0)r+=4294967296;return r}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/node_modules/hash.js/lib/hash/sha.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/node_modules/hash.js/lib/hash")},{"../hash":318,_process:379,buffer:230}],323:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var utils=exports;var inherits=require("inherits");function toArray(msg,enc){if(Array.isArray(msg))return msg.slice();if(!msg)return[];var res=[];if(typeof msg==="string"){if(!enc){for(var i=0;i>8;var lo=c&255;if(hi)res.push(hi,lo);else res.push(lo)}}else if(enc==="hex"){msg=msg.replace(/[^a-z0-9]+/gi,"");if(msg.length%2!==0)msg="0"+msg;for(var i=0;i>>24|w>>>8&65280|w<<8&16711680|(w&255)<<24;return res>>>0}utils.htonl=htonl;function toHex32(msg,endian){var res="";for(var i=0;i>>0}return res}utils.join32=join32;function split32(msg,endian){var res=new Array(msg.length*4);for(var i=0,k=0;i>>24;res[k+1]=m>>>16&255;res[k+2]=m>>>8&255;res[k+3]=m&255}else{res[k+3]=m>>>24;res[k+2]=m>>>16&255;res[k+1]=m>>>8&255;res[k]=m&255}}return res}utils.split32=split32;function rotr32(w,b){return w>>>b|w<<32-b}utils.rotr32=rotr32;function rotl32(w,b){return w<>>32-b}utils.rotl32=rotl32;function sum32(a,b){return a+b>>>0}utils.sum32=sum32;function sum32_3(a,b,c){return a+b+c>>>0}utils.sum32_3=sum32_3;function sum32_4(a,b,c,d){return a+b+c+d>>>0}utils.sum32_4=sum32_4;function sum32_5(a,b,c,d,e){return a+b+c+d+e>>>0}utils.sum32_5=sum32_5;function assert(cond,msg){if(!cond)throw new Error(msg||"Assertion failed")}utils.assert=assert;utils.inherits=inherits;function sum64(buf,pos,ah,al){var bh=buf[pos];var bl=buf[pos+1];var lo=al+bl>>>0;var hi=(lo>>0;buf[pos+1]=lo}exports.sum64=sum64;function sum64_hi(ah,al,bh,bl){var lo=al+bl>>>0;var hi=(lo>>0}exports.sum64_hi=sum64_hi;function sum64_lo(ah,al,bh,bl){var lo=al+bl;return lo>>>0}exports.sum64_lo=sum64_lo;function sum64_4_hi(ah,al,bh,bl,ch,cl,dh,dl){var carry=0;var lo=al;lo=lo+bl>>>0;carry+=lo>>0;carry+=lo>>0;carry+=lo>>0}exports.sum64_4_hi=sum64_4_hi;function sum64_4_lo(ah,al,bh,bl,ch,cl,dh,dl){var lo=al+bl+cl+dl;return lo>>>0}exports.sum64_4_lo=sum64_4_lo;function sum64_5_hi(ah,al,bh,bl,ch,cl,dh,dl,eh,el){var carry=0;var lo=al;lo=lo+bl>>>0;carry+=lo>>0;carry+=lo>>0;carry+=lo>>0;carry+=lo>>0}exports.sum64_5_hi=sum64_5_hi;function sum64_5_lo(ah,al,bh,bl,ch,cl,dh,dl,eh,el){var lo=al+bl+cl+dl+el;return lo>>>0}exports.sum64_5_lo=sum64_5_lo;function rotr64_hi(ah,al,num){var r=al<<32-num|ah>>>num;return r>>>0}exports.rotr64_hi=rotr64_hi;function rotr64_lo(ah,al,num){var r=ah<<32-num|al>>>num;return r>>>0}exports.rotr64_lo=rotr64_lo;function shr64_hi(ah,al,num){return ah>>>num}exports.shr64_hi=shr64_hi;function shr64_lo(ah,al,num){var r=ah<<32-num|al>>>num;return r>>>0}exports.shr64_lo=shr64_lo}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/node_modules/hash.js/lib/hash/utils.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-ecdh/node_modules/elliptic/node_modules/hash.js/lib/hash")},{_process:379,buffer:230,inherits:"inherits"}],324:[function(require,module,exports){arguments[4][278][0].apply(exports,arguments)},{dup:278}],325:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var inherits=require("inherits");var md5=require("./md5");var rmd160=require("ripemd160");var sha=require("sha.js");var Transform=require("stream").Transform;function HashNoConstructor(hash){Transform.call(this);this._hash=hash;this.buffers=[]}inherits(HashNoConstructor,Transform);HashNoConstructor.prototype._transform=function(data,_,next){this.buffers.push(data);next()};HashNoConstructor.prototype._flush=function(next){this.push(this.digest());next()};HashNoConstructor.prototype.update=function(data,enc){if(typeof data==="string"){data=new Buffer(data,enc)}this.buffers.push(data);return this};HashNoConstructor.prototype.digest=function(enc){var buf=Buffer.concat(this.buffers);var r=this._hash(buf);this.buffers=null;return enc?r.toString(enc):r};function Hash(hash){Transform.call(this);this._hash=hash}inherits(Hash,Transform);Hash.prototype._transform=function(data,enc,next){if(enc)data=new Buffer(data,enc);this._hash.update(data);next()};Hash.prototype._flush=function(next){this.push(this._hash.digest());this._hash=null;next()};Hash.prototype.update=function(data,enc){if(typeof data==="string"){data=new Buffer(data,enc)}this._hash.update(data);return this};Hash.prototype.digest=function(enc){var outData=this._hash.digest();return enc?outData.toString(enc):outData};module.exports=function createHash(alg){if("md5"===alg)return new HashNoConstructor(md5);if("rmd160"===alg)return new HashNoConstructor(rmd160);return new Hash(sha(alg))}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/browser.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash")},{"./md5":327,_process:379,buffer:230,inherits:"inherits",ripemd160:328,"sha.js":330,stream:396}],326:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var intSize=4;var zeroBuffer=new Buffer(intSize); +zeroBuffer.fill(0);var chrsz=8;function toArray(buf,bigEndian){if(buf.length%intSize!==0){var len=buf.length+(intSize-buf.length%intSize);buf=Buffer.concat([buf,zeroBuffer],len)}var arr=[];var fn=bigEndian?buf.readInt32BE:buf.readInt32LE;for(var i=0;i>5]|=128<>>9<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i>16)+(y>>16)+(lsw>>16);return msw<<16|lsw&65535}function bit_rol(num,cnt){return num<>>32-cnt}module.exports=function md5(buf){return helpers.hash(buf,core_md5,16)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/md5.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash")},{"./helpers":326,_process:379,buffer:230}],328:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13];var zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11];var sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6];var sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];var hl=[0,1518500249,1859775393,2400959708,2840853838];var hr=[1352829926,1548603684,1836072691,2053994217,0];function bytesToWords(bytes){var words=[];for(var i=0,b=0;i>>5]|=bytes[i]<<24-b%32}return words}function wordsToBytes(words){var bytes=[];for(var b=0;b>>5]>>>24-b%32&255)}return bytes}function processBlock(H,M,offset){for(var i=0;i<16;i++){var offset_i=offset+i;var M_offset_i=M[offset_i];M[offset_i]=(M_offset_i<<8|M_offset_i>>>24)&16711935|(M_offset_i<<24|M_offset_i>>>8)&4278255360}var al,bl,cl,dl,el;var ar,br,cr,dr,er;ar=al=H[0];br=bl=H[1];cr=cl=H[2];dr=dl=H[3];er=el=H[4];var t;for(i=0;i<80;i+=1){t=al+M[offset+zl[i]]|0;if(i<16){t+=f1(bl,cl,dl)+hl[0]}else if(i<32){t+=f2(bl,cl,dl)+hl[1]}else if(i<48){t+=f3(bl,cl,dl)+hl[2]}else if(i<64){t+=f4(bl,cl,dl)+hl[3]}else{t+=f5(bl,cl,dl)+hl[4]}t=t|0;t=rotl(t,sl[i]);t=t+el|0;al=el;el=dl;dl=rotl(cl,10);cl=bl;bl=t;t=ar+M[offset+zr[i]]|0;if(i<16){t+=f5(br,cr,dr)+hr[0]}else if(i<32){t+=f4(br,cr,dr)+hr[1]}else if(i<48){t+=f3(br,cr,dr)+hr[2]}else if(i<64){t+=f2(br,cr,dr)+hr[3]}else{t+=f1(br,cr,dr)+hr[4]}t=t|0;t=rotl(t,sr[i]);t=t+er|0;ar=er;er=dr;dr=rotl(cr,10);cr=br;br=t}t=H[1]+cl+dr|0;H[1]=H[2]+dl+er|0;H[2]=H[3]+el+ar|0;H[3]=H[4]+al+br|0;H[4]=H[0]+bl+cr|0;H[0]=t}function f1(x,y,z){return x^y^z}function f2(x,y,z){return x&y|~x&z}function f3(x,y,z){return(x|~y)^z}function f4(x,y,z){return x&z|y&~z}function f5(x,y,z){return x^(y|~z)}function rotl(x,n){return x<>>32-n}function ripemd160(message){var H=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof message==="string"){message=new Buffer(message,"utf8")}var m=bytesToWords(message);var nBitsLeft=message.length*8;var nBitsTotal=message.length*8;m[nBitsLeft>>>5]|=128<<24-nBitsLeft%32;m[(nBitsLeft+64>>>9<<4)+14]=(nBitsTotal<<8|nBitsTotal>>>24)&16711935|(nBitsTotal<<24|nBitsTotal>>>8)&4278255360;for(var i=0;i>>24)&16711935|(H_i<<24|H_i>>>8)&4278255360}var digestbytes=wordsToBytes(H);return new Buffer(digestbytes)}module.exports=ripemd160}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/ripemd160/lib/ripemd160.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/ripemd160/lib")},{_process:379,buffer:230}],329:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){function Hash(blockSize,finalSize){this._block=new Buffer(blockSize);this._finalSize=finalSize;this._blockSize=blockSize;this._len=0;this._s=0}Hash.prototype.update=function(data,enc){if(typeof data==="string"){enc=enc||"utf8";data=new Buffer(data,enc)}var l=this._len+=data.length;var s=this._s||0;var f=0;var buffer=this._block;while(s=this._finalSize*8){this._update(this._block);this._block.fill(0)}this._block.writeInt32BE(l,this._blockSize-4);var hash=this._update(this._block)||this._hash();return enc?hash.toString(enc):hash};Hash.prototype._update=function(){throw new Error("_update must be implemented by subclass")};module.exports=Hash}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js/hash.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js")},{_process:379,buffer:230}],330:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var exports=module.exports=function SHA(algorithm){algorithm=algorithm.toLowerCase();var Algorithm=exports[algorithm];if(!Algorithm)throw new Error(algorithm+" is not supported (we accept pull requests)");return new Algorithm};exports.sha=require("./sha");exports.sha1=require("./sha1");exports.sha224=require("./sha224");exports.sha256=require("./sha256");exports.sha384=require("./sha384");exports.sha512=require("./sha512")}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js")},{"./sha":331,"./sha1":332,"./sha224":333,"./sha256":334,"./sha384":335,"./sha512":336,_process:379,buffer:230}],331:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var inherits=require("inherits");var Hash=require("./hash");var W=new Array(80);function Sha(){this.init();this._w=W;Hash.call(this,64,56)}inherits(Sha,Hash);Sha.prototype.init=function(){this._a=1732584193|0;this._b=4023233417|0;this._c=2562383102|0;this._d=271733878|0;this._e=3285377520|0;return this};function rol(num,cnt){return num<>>32-cnt}Sha.prototype._update=function(M){var W=this._w;var a=this._a;var b=this._b;var c=this._c;var d=this._d;var e=this._e;var j=0,k;function calcW(){return W[j-3]^W[j-8]^W[j-14]^W[j-16]}function loop(w,f){W[j]=w;var t=rol(a,5)+f+e+w+k;e=d;d=c;c=rol(b,30);b=a;a=t;j++}k=1518500249;while(j<16)loop(M.readInt32BE(j*4),b&c|~b&d);while(j<20)loop(calcW(),b&c|~b&d);k=1859775393;while(j<40)loop(calcW(),b^c^d);k=-1894007588;while(j<60)loop(calcW(),b&c|b&d|c&d);k=-899497514;while(j<80)loop(calcW(),b^c^d);this._a=a+this._a|0;this._b=b+this._b|0;this._c=c+this._c|0;this._d=d+this._d|0;this._e=e+this._e|0};Sha.prototype._hash=function(){var H=new Buffer(20);H.writeInt32BE(this._a|0,0);H.writeInt32BE(this._b|0,4);H.writeInt32BE(this._c|0,8);H.writeInt32BE(this._d|0,12);H.writeInt32BE(this._e|0,16);return H};module.exports=Sha}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js/sha.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js")},{"./hash":329,_process:379,buffer:230,inherits:"inherits"}],332:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var inherits=require("inherits");var Hash=require("./hash");var W=new Array(80);function Sha1(){this.init();this._w=W;Hash.call(this,64,56)}inherits(Sha1,Hash);Sha1.prototype.init=function(){this._a=1732584193|0;this._b=4023233417|0;this._c=2562383102|0;this._d=271733878|0;this._e=3285377520|0;return this};function rol(num,cnt){return num<>>32-cnt}Sha1.prototype._update=function(M){var W=this._w;var a=this._a;var b=this._b;var c=this._c;var d=this._d;var e=this._e;var j=0,k;function calcW(){return rol(W[j-3]^W[j-8]^W[j-14]^W[j-16],1)}function loop(w,f){W[j]=w;var t=rol(a,5)+f+e+w+k;e=d;d=c;c=rol(b,30);b=a;a=t;j++}k=1518500249;while(j<16)loop(M.readInt32BE(j*4),b&c|~b&d);while(j<20)loop(calcW(),b&c|~b&d);k=1859775393;while(j<40)loop(calcW(),b^c^d);k=-1894007588;while(j<60)loop(calcW(),b&c|b&d|c&d);k=-899497514;while(j<80)loop(calcW(),b^c^d);this._a=a+this._a|0;this._b=b+this._b|0;this._c=c+this._c|0;this._d=d+this._d|0;this._e=e+this._e|0};Sha1.prototype._hash=function(){var H=new Buffer(20);H.writeInt32BE(this._a|0,0);H.writeInt32BE(this._b|0,4);H.writeInt32BE(this._c|0,8);H.writeInt32BE(this._d|0,12);H.writeInt32BE(this._e|0,16);return H};module.exports=Sha1}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js/sha1.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js")},{"./hash":329,_process:379,buffer:230,inherits:"inherits"}],333:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var inherits=require("inherits");var Sha256=require("./sha256");var Hash=require("./hash");var W=new Array(64);function Sha224(){this.init();this._w=W;Hash.call(this,64,56)}inherits(Sha224,Sha256);Sha224.prototype.init=function(){this._a=3238371032|0;this._b=914150663|0;this._c=812702999|0;this._d=4144912697|0;this._e=4290775857|0;this._f=1750603025|0;this._g=1694076839|0;this._h=3204075428|0;return this};Sha224.prototype._hash=function(){var H=new Buffer(28);H.writeInt32BE(this._a,0);H.writeInt32BE(this._b,4);H.writeInt32BE(this._c,8);H.writeInt32BE(this._d,12);H.writeInt32BE(this._e,16);H.writeInt32BE(this._f,20);H.writeInt32BE(this._g,24);return H};module.exports=Sha224}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js/sha224.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js")},{"./hash":329,"./sha256":334,_process:379,buffer:230,inherits:"inherits"}],334:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var inherits=require("inherits");var Hash=require("./hash");var K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var W=new Array(64);function Sha256(){this.init();this._w=W;Hash.call(this,64,56)}inherits(Sha256,Hash);Sha256.prototype.init=function(){this._a=1779033703|0;this._b=3144134277|0;this._c=1013904242|0;this._d=2773480762|0;this._e=1359893119|0;this._f=2600822924|0;this._g=528734635|0;this._h=1541459225|0;return this};function S(X,n){return X>>>n|X<<32-n}function R(X,n){return X>>>n}function Ch(x,y,z){return x&y^~x&z}function Maj(x,y,z){return x&y^x&z^y&z}function Sigma0256(x){return S(x,2)^S(x,13)^S(x,22)}function Sigma1256(x){return S(x,6)^S(x,11)^S(x,25)}function Gamma0256(x){return S(x,7)^S(x,18)^R(x,3)}function Gamma1256(x){return S(x,17)^S(x,19)^R(x,10)}Sha256.prototype._update=function(M){var W=this._w;var a=this._a|0;var b=this._b|0;var c=this._c|0;var d=this._d|0;var e=this._e|0;var f=this._f|0;var g=this._g|0;var h=this._h|0;var j=0;function calcW(){return Gamma1256(W[j-2])+W[j-7]+Gamma0256(W[j-15])+W[j-16]}function loop(w){W[j]=w;var T1=h+Sigma1256(e)+Ch(e,f,g)+K[j]+w;var T2=Sigma0256(a)+Maj(a,b,c);h=g;g=f;f=e;e=d+T1;d=c;c=b;b=a;a=T1+T2;j++}while(j<16)loop(M.readInt32BE(j*4));while(j<64)loop(calcW());this._a=a+this._a|0;this._b=b+this._b|0;this._c=c+this._c|0;this._d=d+this._d|0;this._e=e+this._e|0;this._f=f+this._f|0;this._g=g+this._g|0;this._h=h+this._h|0};Sha256.prototype._hash=function(){var H=new Buffer(32);H.writeInt32BE(this._a,0);H.writeInt32BE(this._b,4);H.writeInt32BE(this._c,8);H.writeInt32BE(this._d,12);H.writeInt32BE(this._e,16);H.writeInt32BE(this._f,20);H.writeInt32BE(this._g,24);H.writeInt32BE(this._h,28);return H};module.exports=Sha256}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js/sha256.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js")},{"./hash":329,_process:379,buffer:230,inherits:"inherits"}],335:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var inherits=require("inherits");var SHA512=require("./sha512");var Hash=require("./hash");var W=new Array(160);function Sha384(){this.init();this._w=W;Hash.call(this,128,112)}inherits(Sha384,SHA512);Sha384.prototype.init=function(){this._a=3418070365|0;this._b=1654270250|0;this._c=2438529370|0;this._d=355462360|0;this._e=1731405415|0;this._f=2394180231|0;this._g=3675008525|0;this._h=1203062813|0;this._al=3238371032|0;this._bl=914150663|0;this._cl=812702999|0;this._dl=4144912697|0;this._el=4290775857|0;this._fl=1750603025|0;this._gl=1694076839|0;this._hl=3204075428|0;return this};Sha384.prototype._hash=function(){var H=new Buffer(48);function writeInt64BE(h,l,offset){H.writeInt32BE(h,offset);H.writeInt32BE(l,offset+4)}writeInt64BE(this._a,this._al,0);writeInt64BE(this._b,this._bl,8);writeInt64BE(this._c,this._cl,16);writeInt64BE(this._d,this._dl,24);writeInt64BE(this._e,this._el,32);writeInt64BE(this._f,this._fl,40);return H};module.exports=Sha384}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js/sha384.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js")},{"./hash":329,"./sha512":336,_process:379,buffer:230,inherits:"inherits"}],336:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var inherits=require("inherits");var Hash=require("./hash");var K=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];var W=new Array(160);function Sha512(){this.init();this._w=W;Hash.call(this,128,112)}inherits(Sha512,Hash);Sha512.prototype.init=function(){this._a=1779033703|0;this._b=3144134277|0;this._c=1013904242|0;this._d=2773480762|0;this._e=1359893119|0;this._f=2600822924|0;this._g=528734635|0;this._h=1541459225|0;this._al=4089235720|0;this._bl=2227873595|0;this._cl=4271175723|0;this._dl=1595750129|0;this._el=2917565137|0;this._fl=725511199|0;this._gl=4215389547|0;this._hl=327033209|0;return this};function S(X,Xl,n){return X>>>n|Xl<<32-n}function Ch(x,y,z){return x&y^~x&z}function Maj(x,y,z){return x&y^x&z^y&z}Sha512.prototype._update=function(M){var W=this._w;var a=this._a|0;var b=this._b|0;var c=this._c|0;var d=this._d|0;var e=this._e|0;var f=this._f|0;var g=this._g|0;var h=this._h|0;var al=this._al|0;var bl=this._bl|0;var cl=this._cl|0;var dl=this._dl|0;var el=this._el|0;var fl=this._fl|0;var gl=this._gl|0;var hl=this._hl|0;var i=0,j=0;var Wi,Wil;function calcW(){var x=W[j-15*2];var xl=W[j-15*2+1];var gamma0=S(x,xl,1)^S(x,xl,8)^x>>>7;var gamma0l=S(xl,x,1)^S(xl,x,8)^S(xl,x,7);x=W[j-2*2];xl=W[j-2*2+1];var gamma1=S(x,xl,19)^S(xl,x,29)^x>>>6;var gamma1l=S(xl,x,19)^S(x,xl,29)^S(xl,x,6);var Wi7=W[j-7*2];var Wi7l=W[j-7*2+1];var Wi16=W[j-16*2];var Wi16l=W[j-16*2+1];Wil=gamma0l+Wi7l;Wi=gamma0+Wi7+(Wil>>>0>>0?1:0);Wil=Wil+gamma1l;Wi=Wi+gamma1+(Wil>>>0>>0?1:0);Wil=Wil+Wi16l;Wi=Wi+Wi16+(Wil>>>0>>0?1:0)}function loop(){W[j]=Wi;W[j+1]=Wil;var maj=Maj(a,b,c);var majl=Maj(al,bl,cl);var sigma0h=S(a,al,28)^S(al,a,2)^S(al,a,7);var sigma0l=S(al,a,28)^S(a,al,2)^S(a,al,7);var sigma1h=S(e,el,14)^S(e,el,18)^S(el,e,9);var sigma1l=S(el,e,14)^S(el,e,18)^S(e,el,9);var Ki=K[j];var Kil=K[j+1];var ch=Ch(e,f,g);var chl=Ch(el,fl,gl);var t1l=hl+sigma1l;var t1=h+sigma1h+(t1l>>>0>>0?1:0);t1l=t1l+chl;t1=t1+ch+(t1l>>>0>>0?1:0);t1l=t1l+Kil;t1=t1+Ki+(t1l>>>0>>0?1:0);t1l=t1l+Wil;t1=t1+Wi+(t1l>>>0>>0?1:0);var t2l=sigma0l+majl;var t2=sigma0h+maj+(t2l>>>0>>0?1:0);h=g;hl=gl;g=f;gl=fl;f=e;fl=el;el=dl+t1l|0;e=d+t1+(el>>>0
    >>0?1:0)|0;d=c;dl=cl;c=b;cl=bl;b=a;bl=al;al=t1l+t2l|0;a=t1+t2+(al>>>0>>0?1:0)|0;i++;j+=2}while(i<16){Wi=M.readInt32BE(j*4);Wil=M.readInt32BE(j*4+4);loop()}while(i<80){calcW();loop()}this._al=this._al+al|0;this._bl=this._bl+bl|0;this._cl=this._cl+cl|0;this._dl=this._dl+dl|0;this._el=this._el+el|0;this._fl=this._fl+fl|0;this._gl=this._gl+gl|0;this._hl=this._hl+hl|0;this._a=this._a+a+(this._al>>>0>>0?1:0)|0;this._b=this._b+b+(this._bl>>>0>>0?1:0)|0;this._c=this._c+c+(this._cl>>>0>>0?1:0)|0;this._d=this._d+d+(this._dl>>>0
    >>0?1:0)|0;this._e=this._e+e+(this._el>>>0>>0?1:0)|0;this._f=this._f+f+(this._fl>>>0>>0?1:0)|0;this._g=this._g+g+(this._gl>>>0>>0?1:0)|0;this._h=this._h+h+(this._hl>>>0>>0?1:0)|0};Sha512.prototype._hash=function(){var H=new Buffer(64);function writeInt64BE(h,l,offset){H.writeInt32BE(h,offset);H.writeInt32BE(l,offset+4)}writeInt64BE(this._a,this._al,0);writeInt64BE(this._b,this._bl,8);writeInt64BE(this._c,this._cl,16);writeInt64BE(this._d,this._dl,24);writeInt64BE(this._e,this._el,32);writeInt64BE(this._f,this._fl,40);writeInt64BE(this._g,this._gl,48);writeInt64BE(this._h,this._hl,56);return H};module.exports=Sha512}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js/sha512.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/create-hash/node_modules/sha.js")},{"./hash":329,_process:379,buffer:230,inherits:"inherits"}],337:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var createHash=require("create-hash/browser");var inherits=require("inherits");var Transform=require("stream").Transform;var ZEROS=new Buffer(128);ZEROS.fill(0);function Hmac(alg,key){Transform.call(this);if(typeof key==="string"){key=new Buffer(key)}var blocksize=alg==="sha512"||alg==="sha384"?128:64;this._alg=alg;this._key=key;if(key.length>blocksize){key=createHash(alg).update(key).digest()}else if(key.lengthbits){out.ishrn(1)}if(out.isEven()){out.iadd(ONE)}if(!out.testn(1)){out.iadd(TWO)}if(!gen.cmp(TWO)){while(out.mod(TWENTYFOUR).cmp(ELEVEN)){out.iadd(FOUR)}comp={major:[TWENTYFOUR],minor:[TWELVE]}}else if(!gen.cmp(FIVE)){rem=out.mod(TEN);while(rem.cmp(THREE)){out.iadd(FOUR);rem=out.mod(TEN)}comp={major:[FOUR,SIXTEEN],minor:[TWO,EIGHT]}}else{comp={major:[FOUR],minor:[TWO]}}return out}var num=generateRandom(bits);var n2=num.shrn(1);while(true){while(num.bitLength()>bits){num=generateRandom(bits);n2=num.shrn(1)}runs++;if(simpleSieve(n2)&&simpleSieve(num)&&fermatTest(n2)&&fermatTest(num)&&millerRabin.test(n2)&&millerRabin.test(num)){return num}num.iadd(comp.major[runs%comp.major.length]);n2.iadd(comp.minor[runs%comp.minor.length])}}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/diffie-hellman/lib/generatePrime.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/diffie-hellman/lib")},{_process:379,"bn.js":342,buffer:230,"miller-rabin":343,randombytes:374}],341:[function(require,module,exports){module.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],342:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){(function(module,exports){"use strict";function assert(val,msg){if(!val)throw new Error(msg||"Assertion failed")}function inherits(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}function BN(number,base,endian){if(number!==null&&typeof number==="object"&&Array.isArray(number.words)){return number}this.sign=false;this.words=null;this.length=0;this.red=null;if(base==="le"||base==="be"){endian=base;base=10}if(number!==null)this._init(number||0,base||10,endian||"be")}if(typeof module==="object")module.exports=BN;else exports.BN=BN;BN.BN=BN;BN.wordSize=26;BN.prototype._init=function init(number,base,endian){if(typeof number==="number"){return this._initNumber(number,base,endian)}else if(typeof number==="object"){return this._initArray(number,base,endian)}if(base==="hex")base=16;assert(base===(base|0)&&base>=2&&base<=36);number=number.toString().replace(/\s+/g,"");var start=0;if(number[0]==="-")start++;if(base===16)this._parseHex(number,start);else this._parseBase(number,base,start);if(number[0]==="-")this.sign=true;this.strip();if(endian!=="le")return;this._initArray(this.toArray(),base,endian)};BN.prototype._initNumber=function _initNumber(number,base,endian){if(number<0){this.sign=true;number=-number}if(number<67108864){this.words=[number&67108863];this.length=1}else if(number<4503599627370496){this.words=[number&67108863,number/67108864&67108863];this.length=2}else{assert(number<9007199254740992);this.words=[number&67108863,number/67108864&67108863,1];this.length=3}if(endian!=="le")return;this._initArray(this.toArray(),base,endian)};BN.prototype._initArray=function _initArray(number,base,endian){assert(typeof number.length==="number");if(number.length<=0){this.words=[0];this.length=1;return this}this.length=Math.ceil(number.length/3);this.words=new Array(this.length);for(var i=0;i=0;i-=3){var w=number[i]|number[i-1]<<8|number[i-2]<<16;this.words[j]|=w<>>26-off&67108863;off+=24;if(off>=26){off-=26;j++}}}else if(endian==="le"){for(var i=0,j=0;i>>26-off&67108863;off+=24;if(off>=26){off-=26;j++}}}return this.strip()};function parseHex(str,start,end){var r=0;var len=Math.min(str.length,end);for(var i=start;i=49&&c<=54)r|=c-49+10;else if(c>=17&&c<=22)r|=c-17+10;else r|=c&15}return r}BN.prototype._parseHex=function _parseHex(number,start){this.length=Math.ceil((number.length-start)/6);this.words=new Array(this.length);for(var i=0;i=start;i-=6){var w=parseHex(number,i,i+6);this.words[j]|=w<>>26-off&4194303;off+=24;if(off>=26){off-=26;j++}}if(i+6!==start){var w=parseHex(number,start,i+6);this.words[j]|=w<>>26-off&4194303}this.strip()};function parseBase(str,start,end,mul){var r=0;var len=Math.min(str.length,end);for(var i=start;i=49)r+=c-49+10;else if(c>=17)r+=c-17+10;else r+=c}return r}BN.prototype._parseBase=function _parseBase(number,base,start){this.words=[0];this.length=1;for(var limbLen=0,limbPow=1;limbPow<=67108863;limbPow*=base)limbLen++;limbLen--;limbPow=limbPow/base|0;var total=number.length-start;var mod=total%limbLen;var end=Math.min(total,total-mod)+start;var word=0;for(var i=start;i1&&this.words[this.length-1]===0)this.length--;return this._normSign()};BN.prototype._normSign=function _normSign(){if(this.length===1&&this.words[0]===0)this.sign=false;return this};BN.prototype.inspect=function inspect(){return(this.red?""};var zeros=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"];var groupSizes=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5];var groupBases=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];BN.prototype.toString=function toString(base,padding){base=base||10;if(base===16||base==="hex"){var out="";var off=0;var padding=padding|0||1;var carry=0;for(var i=0;i>>24-off&16777215;if(carry!==0||i!==this.length-1)out=zeros[6-word.length]+word+out;else out=word+out;off+=2;if(off>=26){off-=26;i--}}if(carry!==0)out=carry.toString(16)+out;while(out.length%padding!==0)out="0"+out;if(this.sign)out="-"+out;return out}else if(base===(base|0)&&base>=2&&base<=36){var groupSize=groupSizes[base];var groupBase=groupBases[base];var out="";var c=this.clone();c.sign=false;while(c.cmpn(0)!==0){var r=c.modn(groupBase).toString(base);c=c.idivn(groupBase);if(c.cmpn(0)!==0)out=zeros[groupSize-r.length]+r+out;else out=r+out}if(this.cmpn(0)===0)out="0"+out;if(this.sign)out="-"+out;return out}else{assert(false,"Base should be between 2 and 36")}};BN.prototype.toJSON=function toJSON(){return this.toString(16)};BN.prototype.toArray=function toArray(endian){this.strip();var res=new Array(this.byteLength());res[0]=0;var q=this.clone();if(endian!=="le"){for(var i=0;q.cmpn(0)!==0;i++){var b=q.andln(255);q.ishrn(8);res[res.length-i-1]=b}}else{for(var i=0;q.cmpn(0)!==0;i++){var b=q.andln(255);q.ishrn(8);res[i]=b}}return res};if(Math.clz32){BN.prototype._countBits=function _countBits(w){return 32-Math.clz32(w)}}else{BN.prototype._countBits=function _countBits(w){var t=w;var r=0;if(t>=4096){r+=13;t>>>=13}if(t>=64){r+=7;t>>>=7}if(t>=8){r+=4;t>>>=4}if(t>=2){r+=2;t>>>=2}return r+t}}BN.prototype._zeroBits=function _zeroBits(w){if(w===0)return 26;var t=w;var r=0;if((t&8191)===0){r+=13;t>>>=13}if((t&127)===0){r+=7;t>>>=7}if((t&15)===0){r+=4;t>>>=4}if((t&3)===0){r+=2;t>>>=2}if((t&1)===0)r++;return r};BN.prototype.bitLength=function bitLength(){var hi=0;var w=this.words[this.length-1];var hi=this._countBits(w);return(this.length-1)*26+hi};BN.prototype.zeroBits=function zeroBits(){if(this.cmpn(0)===0)return 0;var r=0;for(var i=0;inum.length)return this.clone().ior(num);else return num.clone().ior(this)};BN.prototype.iand=function iand(num){this.sign=this.sign&&num.sign;var b;if(this.length>num.length)b=num;else b=this;for(var i=0;inum.length)return this.clone().iand(num);else return num.clone().iand(this)};BN.prototype.ixor=function ixor(num){this.sign=this.sign||num.sign;var a;var b;if(this.length>num.length){a=this;b=num}else{a=num;b=this}for(var i=0;inum.length)return this.clone().ixor(num);else return num.clone().ixor(this)};BN.prototype.setn=function setn(bit,val){assert(typeof bit==="number"&&bit>=0);var off=bit/26|0;var wbit=bit%26;while(this.length<=off)this.words[this.length++]=0;if(val)this.words[off]=this.words[off]|1<num.length){a=this;b=num}else{a=num;b=this}var carry=0;for(var i=0;i>>26}for(;carry!==0&&i>>26}this.length=a.length;if(carry!==0){this.words[this.length]=carry;this.length++}else if(a!==this){for(;inum.length)return this.clone().iadd(num);else return num.clone().iadd(this)};BN.prototype.isub=function isub(num){if(num.sign){num.sign=false;var r=this.iadd(num);num.sign=true;return r._normSign()}else if(this.sign){this.sign=false;this.iadd(num);this.sign=true;return this._normSign()}var cmp=this.cmp(num);if(cmp===0){this.sign=false;this.length=1;this.words[0]=0;return this}var a;var b;if(cmp>0){a=this;b=num}else{a=num;b=this}var carry=0;for(var i=0;i>26;this.words[i]=r&67108863}for(;carry!==0&&i>26;this.words[i]=r&67108863}if(carry===0&&i>>26;var rword=carry&67108863;var maxJ=Math.min(k,num.length-1);for(var j=Math.max(0,k-this.length+1);j<=maxJ;j++){var i=k-j;var a=this.words[i]|0;var b=num.words[j]|0;var r=a*b;var lo=r&67108863;ncarry=ncarry+(r/67108864|0)|0;lo=lo+rword|0;rword=lo&67108863;ncarry=ncarry+(lo>>>26)|0}out.words[k]=rword;carry=ncarry}if(carry!==0){out.words[k]=carry}else{out.length--}return out.strip()};BN.prototype._bigMulTo=function _bigMulTo(num,out){out.sign=num.sign!==this.sign;out.length=this.length+num.length;var carry=0;var hncarry=0;for(var k=0;k>>26)|0;hncarry+=ncarry>>>26;ncarry&=67108863}out.words[k]=rword;carry=ncarry;ncarry=hncarry}if(carry!==0){out.words[k]=carry}else{out.length--}return out.strip()};BN.prototype.mulTo=function mulTo(num,out){var res;if(this.length+num.length<63)res=this._smallMulTo(num,out);else res=this._bigMulTo(num,out);return res};BN.prototype.mul=function mul(num){var out=new BN(null);out.words=new Array(this.length+num.length);return this.mulTo(num,out)};BN.prototype.imul=function imul(num){if(this.cmpn(0)===0||num.cmpn(0)===0){this.words[0]=0;this.length=1;return this}var tlen=this.length;var nlen=num.length;this.sign=num.sign!==this.sign;this.length=this.length+num.length;this.words[this.length-1]=0;for(var k=this.length-2;k>=0;k--){var carry=0;var rword=0;var maxJ=Math.min(k,nlen-1);for(var j=Math.max(0,k-tlen+1);j<=maxJ;j++){var i=k-j;var a=this.words[i];var b=num.words[j];var r=a*b;var lo=r&67108863;carry+=r/67108864|0;lo+=rword;rword=lo&67108863;carry+=lo>>>26}this.words[k]=rword;this.words[k+1]+=carry;carry=0}var carry=0;for(var i=1;i>>26}return this.strip()};BN.prototype.imuln=function imuln(num){assert(typeof num==="number");var carry=0;for(var i=0;i>=26;carry+=w/67108864|0;carry+=lo>>>26;this.words[i]=lo&67108863}if(carry!==0){this.words[i]=carry;this.length++}return this};BN.prototype.muln=function muln(num){return this.clone().imuln(num)};BN.prototype.sqr=function sqr(){return this.mul(this)};BN.prototype.isqr=function isqr(){return this.mul(this)};BN.prototype.ishln=function ishln(bits){assert(typeof bits==="number"&&bits>=0);var r=bits%26;var s=(bits-r)/26;var carryMask=67108863>>>26-r<<26-r;if(r!==0){var carry=0;for(var i=0;i>>26-r}if(carry){this.words[i]=carry;this.length++}}if(s!==0){for(var i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(var i=0;i=0);var h;if(hint)h=(hint-hint%26)/26;else h=0;var r=bits%26;var s=Math.min((bits-r)/26,this.length);var mask=67108863^67108863>>>r<s){this.length-=s;for(var i=0;i=0&&(carry!==0||i>=h);i--){var word=this.words[i];this.words[i]=carry<<26-r|word>>>r;carry=word&mask}if(maskedWords&&carry!==0)maskedWords.words[maskedWords.length++]=carry;if(this.length===0){this.words[0]=0;this.length=1}this.strip();return this};BN.prototype.shln=function shln(bits){return this.clone().ishln(bits)};BN.prototype.shrn=function shrn(bits){return this.clone().ishrn(bits)};BN.prototype.testn=function testn(bit){assert(typeof bit==="number"&&bit>=0);var r=bit%26;var s=(bit-r)/26;var q=1<=0);var r=bits%26;var s=(bits-r)/26;assert(!this.sign,"imaskn works only with positive numbers");if(r!==0)s++;this.length=Math.min(s,this.length);if(r!==0){var mask=67108863^67108863>>>r<=67108864;i++){this.words[i]-=67108864;if(i===this.length-1)this.words[i+1]=1;else this.words[i+1]++}this.length=Math.max(this.length,i+1);return this};BN.prototype.isubn=function isubn(num){assert(typeof num==="number");if(num<0)return this.iaddn(-num);if(this.sign){this.sign=false;this.iaddn(num);this.sign=true;return this}this.words[0]-=num;for(var i=0;i>26)-(right/67108864|0);this.words[i+shift]=w&67108863}for(;i>26;this.words[i+shift]=w&67108863}if(carry===0)return this.strip();assert(carry===-1);carry=0;for(var i=0;i>26;this.words[i]=w&67108863}this.sign=true;return this.strip()};BN.prototype._wordDiv=function _wordDiv(num,mode){var shift=this.length-num.length;var a=this.clone();var b=num;var bhi=b.words[b.length-1];var bhiBits=this._countBits(bhi);shift=26-bhiBits;if(shift!==0){b=b.shln(shift);a.ishln(shift);bhi=b.words[b.length-1]}var m=a.length-b.length;var q;if(mode!=="mod"){q=new BN(null);q.length=m+1;q.words=new Array(q.length);for(var i=0;i=0;j--){var qj=a.words[b.length+j]*67108864+a.words[b.length+j-1];qj=Math.min(qj/bhi|0,67108863);a._ishlnsubmul(b,qj,j);while(a.sign){qj--;a.sign=false;a._ishlnsubmul(b,1,j);if(a.cmpn(0)!==0)a.sign=!a.sign}if(q)q.words[j]=qj}if(q)q.strip();a.strip();if(mode!=="div"&&shift!==0)a.ishrn(shift);return{div:q?q:null,mod:a}};BN.prototype.divmod=function divmod(num,mode){assert(num.cmpn(0)!==0);if(this.sign&&!num.sign){var res=this.neg().divmod(num,mode);var div;var mod;if(mode!=="mod")div=res.div.neg();if(mode!=="div")mod=res.mod.cmpn(0)===0?res.mod:num.sub(res.mod);return{div:div,mod:mod}}else if(!this.sign&&num.sign){var res=this.divmod(num.neg(),mode);var div;if(mode!=="mod")div=res.div.neg();return{div:div,mod:res.mod}}else if(this.sign&&num.sign){return this.neg().divmod(num.neg(),mode)}if(num.length>this.length||this.cmp(num)<0)return{div:new BN(0),mod:this};if(num.length===1){if(mode==="div")return{div:this.divn(num.words[0]),mod:null};else if(mode==="mod")return{div:null,mod:new BN(this.modn(num.words[0]))};return{div:this.divn(num.words[0]),mod:new BN(this.modn(num.words[0]))}}return this._wordDiv(num,mode)};BN.prototype.div=function div(num){return this.divmod(num,"div").div};BN.prototype.mod=function mod(num){return this.divmod(num,"mod").mod};BN.prototype.divRound=function divRound(num){var dm=this.divmod(num);if(dm.mod.cmpn(0)===0)return dm.div;var mod=dm.div.sign?dm.mod.isub(num):dm.mod;var half=num.shrn(1);var r2=num.andln(1);var cmp=mod.cmp(half);if(cmp<0||r2===1&&cmp===0)return dm.div;return dm.div.sign?dm.div.isubn(1):dm.div.iaddn(1)};BN.prototype.modn=function modn(num){assert(num<=67108863);var p=(1<<26)%num;var acc=0;for(var i=this.length-1;i>=0;i--)acc=(p*acc+this.words[i])%num;return acc};BN.prototype.idivn=function idivn(num){ +assert(num<=67108863);var carry=0;for(var i=this.length-1;i>=0;i--){var w=this.words[i]+carry*67108864;this.words[i]=w/num|0;carry=w%num}return this.strip()};BN.prototype.divn=function divn(num){return this.clone().idivn(num)};BN.prototype.egcd=function egcd(p){assert(!p.sign);assert(p.cmpn(0)!==0);var x=this;var y=p.clone();if(x.sign)x=x.mod(p);else x=x.clone();var A=new BN(1);var B=new BN(0);var C=new BN(0);var D=new BN(1);var g=0;while(x.isEven()&&y.isEven()){x.ishrn(1);y.ishrn(1);++g}var yp=y.clone();var xp=x.clone();while(x.cmpn(0)!==0){while(x.isEven()){x.ishrn(1);if(A.isEven()&&B.isEven()){A.ishrn(1);B.ishrn(1)}else{A.iadd(yp).ishrn(1);B.isub(xp).ishrn(1)}}while(y.isEven()){y.ishrn(1);if(C.isEven()&&D.isEven()){C.ishrn(1);D.ishrn(1)}else{C.iadd(yp).ishrn(1);D.isub(xp).ishrn(1)}}if(x.cmp(y)>=0){x.isub(y);A.isub(C);B.isub(D)}else{y.isub(x);C.isub(A);D.isub(B)}}return{a:C,b:D,gcd:y.ishln(g)}};BN.prototype._invmp=function _invmp(p){assert(!p.sign);assert(p.cmpn(0)!==0);var a=this;var b=p.clone();if(a.sign)a=a.mod(p);else a=a.clone();var x1=new BN(1);var x2=new BN(0);var delta=b.clone();while(a.cmpn(1)>0&&b.cmpn(1)>0){while(a.isEven()){a.ishrn(1);if(x1.isEven())x1.ishrn(1);else x1.iadd(delta).ishrn(1)}while(b.isEven()){b.ishrn(1);if(x2.isEven())x2.ishrn(1);else x2.iadd(delta).ishrn(1)}if(a.cmp(b)>=0){a.isub(b);x1.isub(x2)}else{b.isub(a);x2.isub(x1)}}if(a.cmpn(1)===0)return x1;else return x2};BN.prototype.gcd=function gcd(num){if(this.cmpn(0)===0)return num.clone();if(num.cmpn(0)===0)return this.clone();var a=this.clone();var b=num.clone();a.sign=false;b.sign=false;for(var shift=0;a.isEven()&&b.isEven();shift++){a.ishrn(1);b.ishrn(1)}do{while(a.isEven())a.ishrn(1);while(b.isEven())b.ishrn(1);var r=a.cmp(b);if(r<0){var t=a;a=b;b=t}else if(r===0||b.cmpn(1)===0){break}a.isub(b)}while(true);return b.ishln(shift)};BN.prototype.invm=function invm(num){return this.egcd(num).a.mod(num)};BN.prototype.isEven=function isEven(){return(this.words[0]&1)===0};BN.prototype.isOdd=function isOdd(){return(this.words[0]&1)===1};BN.prototype.andln=function andln(num){return this.words[0]&num};BN.prototype.bincn=function bincn(bit){assert(typeof bit==="number");var r=bit%26;var s=(bit-r)/26;var q=1<>>26;w&=67108863;this.words[i]=w}if(carry!==0){this.words[i]=carry;this.length++}return this};BN.prototype.cmpn=function cmpn(num){var sign=num<0;if(sign)num=-num;if(this.sign&&!sign)return-1;else if(!this.sign&&sign)return 1;num&=67108863;this.strip();var res;if(this.length>1){res=1}else{var w=this.words[0];res=w===num?0:wnum.length)return 1;else if(this.length=0;i--){var a=this.words[i];var b=num.words[i];if(a===b)continue;if(ab)res=1;break}return res};BN.red=function red(num){return new Red(num)};BN.prototype.toRed=function toRed(ctx){assert(!this.red,"Already a number in reduction context");assert(!this.sign,"red works only with positives");return ctx.convertTo(this)._forceRed(ctx)};BN.prototype.fromRed=function fromRed(){assert(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)};BN.prototype._forceRed=function _forceRed(ctx){this.red=ctx;return this};BN.prototype.forceRed=function forceRed(ctx){assert(!this.red,"Already a number in reduction context");return this._forceRed(ctx)};BN.prototype.redAdd=function redAdd(num){assert(this.red,"redAdd works only with red numbers");return this.red.add(this,num)};BN.prototype.redIAdd=function redIAdd(num){assert(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,num)};BN.prototype.redSub=function redSub(num){assert(this.red,"redSub works only with red numbers");return this.red.sub(this,num)};BN.prototype.redISub=function redISub(num){assert(this.red,"redISub works only with red numbers");return this.red.isub(this,num)};BN.prototype.redShl=function redShl(num){assert(this.red,"redShl works only with red numbers");return this.red.shl(this,num)};BN.prototype.redMul=function redMul(num){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,num);return this.red.mul(this,num)};BN.prototype.redIMul=function redIMul(num){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,num);return this.red.imul(this,num)};BN.prototype.redSqr=function redSqr(){assert(this.red,"redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};BN.prototype.redISqr=function redISqr(){assert(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};BN.prototype.redSqrt=function redSqrt(){assert(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};BN.prototype.redInvm=function redInvm(){assert(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};BN.prototype.redNeg=function redNeg(){assert(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};BN.prototype.redPow=function redPow(num){assert(this.red&&!num.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,num)};var primes={k256:null,p224:null,p192:null,p25519:null};function MPrime(name,p){this.name=name;this.p=new BN(p,16);this.n=this.p.bitLength();this.k=new BN(1).ishln(this.n).isub(this.p);this.tmp=this._tmp()}MPrime.prototype._tmp=function _tmp(){var tmp=new BN(null);tmp.words=new Array(Math.ceil(this.n/13));return tmp};MPrime.prototype.ireduce=function ireduce(num){var r=num;var rlen;do{this.split(r,this.tmp);r=this.imulK(r);r=r.iadd(this.tmp);rlen=r.bitLength()}while(rlen>this.n);var cmp=rlen0){r.isub(this.p)}else{r.strip()}return r};MPrime.prototype.split=function split(input,out){input.ishrn(this.n,0,out)};MPrime.prototype.imulK=function imulK(num){return num.imul(this.k)};function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}inherits(K256,MPrime);K256.prototype.split=function split(input,output){var mask=4194303;var outLen=Math.min(input.length,9);for(var i=0;i>>22;prev=next}input.words[i-10]=prev>>>22;input.length-=9};K256.prototype.imulK=function imulK(num){num.words[num.length]=0;num.words[num.length+1]=0;num.length+=2;var hi;var lo=0;for(var i=0;i>>=26;num.words[i]=lo;carry=hi}if(carry!==0)num.words[num.length++]=carry;return num};BN._prime=function prime(name){if(primes[name])return primes[name];var prime;if(name==="k256")prime=new K256;else if(name==="p224")prime=new P224;else if(name==="p192")prime=new P192;else if(name==="p25519")prime=new P25519;else throw new Error("Unknown prime "+name);primes[name]=prime;return prime};function Red(m){if(typeof m==="string"){var prime=BN._prime(m);this.m=prime.p;this.prime=prime}else{this.m=m;this.prime=null}}Red.prototype._verify1=function _verify1(a){assert(!a.sign,"red works only with positives");assert(a.red,"red works only with red numbers")};Red.prototype._verify2=function _verify2(a,b){assert(!a.sign&&!b.sign,"red works only with positives");assert(a.red&&a.red===b.red,"red works only with red numbers")};Red.prototype.imod=function imod(a){if(this.prime)return this.prime.ireduce(a)._forceRed(this);return a.mod(this.m)._forceRed(this)};Red.prototype.neg=function neg(a){var r=a.clone();r.sign=!r.sign;return r.iadd(this.m)._forceRed(this)};Red.prototype.add=function add(a,b){this._verify2(a,b);var res=a.add(b);if(res.cmp(this.m)>=0)res.isub(this.m);return res._forceRed(this)};Red.prototype.iadd=function iadd(a,b){this._verify2(a,b);var res=a.iadd(b);if(res.cmp(this.m)>=0)res.isub(this.m);return res};Red.prototype.sub=function sub(a,b){this._verify2(a,b);var res=a.sub(b);if(res.cmpn(0)<0)res.iadd(this.m);return res._forceRed(this)};Red.prototype.isub=function isub(a,b){this._verify2(a,b);var res=a.isub(b);if(res.cmpn(0)<0)res.iadd(this.m);return res};Red.prototype.shl=function shl(a,num){this._verify1(a);return this.imod(a.shln(num))};Red.prototype.imul=function imul(a,b){this._verify2(a,b);return this.imod(a.imul(b))};Red.prototype.mul=function mul(a,b){this._verify2(a,b);return this.imod(a.mul(b))};Red.prototype.isqr=function isqr(a){return this.imul(a,a)};Red.prototype.sqr=function sqr(a){return this.mul(a,a)};Red.prototype.sqrt=function sqrt(a){if(a.cmpn(0)===0)return a.clone();var mod3=this.m.andln(3);assert(mod3%2===1);if(mod3===3){var pow=this.m.add(new BN(1)).ishrn(2);var r=this.pow(a,pow);return r}var q=this.m.subn(1);var s=0;while(q.cmpn(0)!==0&&q.andln(1)===0){s++;q.ishrn(1)}assert(q.cmpn(0)!==0);var one=new BN(1).toRed(this);var nOne=one.redNeg();var lpow=this.m.subn(1).ishrn(1);var z=this.m.bitLength();z=new BN(2*z*z).toRed(this);while(this.pow(z,lpow).cmp(nOne)!==0)z.redIAdd(nOne);var c=this.pow(z,q);var r=this.pow(a,q.addn(1).ishrn(1));var t=this.pow(a,q);var m=s;while(t.cmp(one)!==0){var tmp=t;for(var i=0;tmp.cmp(one)!==0;i++)tmp=tmp.redSqr();assert(i=0)res=u.isub(this.m);else if(u.cmpn(0)<0)res=u.iadd(this.m);return res._forceRed(this)};Mont.prototype.mul=function mul(a,b){if(a.cmpn(0)===0||b.cmpn(0)===0)return new BN(0)._forceRed(this);var t=a.mul(b);var c=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var u=t.isub(c).ishrn(this.shift);var res=u;if(u.cmp(this.m)>=0)res=u.isub(this.m);else if(u.cmpn(0)<0)res=u.iadd(this.m);return res._forceRed(this)};Mont.prototype.invm=function invm(a){var res=this.imod(a._invmp(this.m).mul(this.r2));return res._forceRed(this)}})(typeof module==="undefined"||module,this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/diffie-hellman/node_modules/bn.js/lib/bn.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/diffie-hellman/node_modules/bn.js/lib")},{_process:379,buffer:230}],343:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var bn=require("bn.js");var brorand=require("brorand");function MillerRabin(rand){this.rand=rand||new brorand.Rand}module.exports=MillerRabin;MillerRabin.create=function create(rand){return new MillerRabin(rand)};MillerRabin.prototype._rand=function _rand(n){var len=n.bitLength();var buf=this.rand.generate(Math.ceil(len/8));buf[0]|=3;var mask=len&7;if(mask!==0)buf[buf.length-1]>>=7-mask;return new bn(buf)};MillerRabin.prototype.test=function test(n,k,cb){var len=n.bitLength();var red=bn.mont(n);var rone=new bn(1).toRed(red);if(!k)k=Math.max(1,len/48|0);var n1=n.subn(1);var n2=n1.subn(1);for(var s=0;!n1.testn(s);s++){}var d=n.shrn(s);var rn1=n1.toRed(red);var prime=true;for(;k>0;k--){var a=this._rand(n2);if(cb)cb(a);var x=a.toRed(red).redPow(d);if(x.cmp(rone)===0||x.cmp(rn1)===0)continue;for(var i=1;i0;k--){var a=this._rand(n2);var g=n.gcd(a);if(g.cmpn(1)!==0)return g;var x=a.toRed(red).redPow(d);if(x.cmp(rone)===0||x.cmp(rn1)===0)continue;for(var i=1;iMAX_ALLOC){throw new TypeError("Bad key length")}digest=digest||"sha1";if(!Buffer.isBuffer(password))password=new Buffer(password,"binary");if(!Buffer.isBuffer(salt))salt=new Buffer(salt,"binary");var hLen;var l=1;var DK=new Buffer(keylen);var block1=new Buffer(salt.length+4);salt.copy(block1,0,0,salt.length);var r;var T;for(var i=1;i<=l;i++){block1.writeUInt32BE(i,salt.length);var U=createHmac(digest,password).update(block1).digest();if(!hLen){hLen=U.length;T=new Buffer(hLen);l=Math.ceil(keylen/hLen);r=keylen-(l-1)*hLen}U.copy(T,0,0,hLen);for(var j=1;j=2&&base<=36);number=number.toString().replace(/\s+/g,"");var start=0;if(number[0]==="-")start++;if(base===16)this._parseHex(number,start);else this._parseBase(number,base,start);if(number[0]==="-")this.sign=true;this.strip();if(endian!=="le")return;this._initArray(this.toArray(),base,endian)};BN.prototype._initNumber=function _initNumber(number,base,endian){if(number<0){this.sign=true;number=-number}if(number<67108864){this.words=[number&67108863];this.length=1}else if(number<4503599627370496){this.words=[number&67108863,number/67108864&67108863];this.length=2}else{assert(number<9007199254740992);this.words=[number&67108863,number/67108864&67108863,1];this.length=3}if(endian!=="le")return;this._initArray(this.toArray(),base,endian)};BN.prototype._initArray=function _initArray(number,base,endian){assert(typeof number.length==="number");if(number.length<=0){this.words=[0];this.length=1;return this}this.length=Math.ceil(number.length/3);this.words=new Array(this.length);for(var i=0;i=0;i-=3){var w=number[i]|number[i-1]<<8|number[i-2]<<16;this.words[j]|=w<>>26-off&67108863;off+=24;if(off>=26){off-=26;j++}}}else if(endian==="le"){for(var i=0,j=0;i>>26-off&67108863;off+=24;if(off>=26){off-=26;j++}}}return this.strip()};function parseHex(str,start,end){var r=0;var len=Math.min(str.length,end);for(var i=start;i=49&&c<=54)r|=c-49+10;else if(c>=17&&c<=22)r|=c-17+10;else r|=c&15}return r}BN.prototype._parseHex=function _parseHex(number,start){this.length=Math.ceil((number.length-start)/6);this.words=new Array(this.length);for(var i=0;i=start;i-=6){var w=parseHex(number,i,i+6);this.words[j]|=w<>>26-off&4194303;off+=24;if(off>=26){off-=26;j++}}if(i+6!==start){var w=parseHex(number,start,i+6);this.words[j]|=w<>>26-off&4194303}this.strip()};function parseBase(str,start,end,mul){var r=0;var len=Math.min(str.length,end);for(var i=start;i=49)r+=c-49+10;else if(c>=17)r+=c-17+10;else r+=c}return r}BN.prototype._parseBase=function _parseBase(number,base,start){this.words=[0];this.length=1;for(var limbLen=0,limbPow=1;limbPow<=67108863;limbPow*=base)limbLen++;limbLen--;limbPow=limbPow/base|0;var total=number.length-start;var mod=total%limbLen;var end=Math.min(total,total-mod)+start;var word=0;for(var i=start;i1&&this.words[this.length-1]===0)this.length--;return this._normSign()};BN.prototype._normSign=function _normSign(){if(this.length===1&&this.words[0]===0)this.sign=false;return this};BN.prototype.inspect=function inspect(){return(this.red?""};var zeros=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"];var groupSizes=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5];var groupBases=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];BN.prototype.toString=function toString(base,padding){base=base||10;if(base===16||base==="hex"){var out="";var off=0;var padding=padding|0||1;var carry=0;for(var i=0;i>>24-off&16777215;if(carry!==0||i!==this.length-1)out=zeros[6-word.length]+word+out;else out=word+out;off+=2;if(off>=26){off-=26;i--}}if(carry!==0)out=carry.toString(16)+out;while(out.length%padding!==0)out="0"+out;if(this.sign)out="-"+out;return out}else if(base===(base|0)&&base>=2&&base<=36){var groupSize=groupSizes[base];var groupBase=groupBases[base];var out="";var c=this.clone();c.sign=false;while(c.cmpn(0)!==0){var r=c.modn(groupBase).toString(base);c=c.idivn(groupBase);if(c.cmpn(0)!==0)out=zeros[groupSize-r.length]+r+out;else out=r+out}if(this.cmpn(0)===0)out="0"+out;if(this.sign)out="-"+out;return out}else{assert(false,"Base should be between 2 and 36")}};BN.prototype.toJSON=function toJSON(){return this.toString(16)};BN.prototype.toArray=function toArray(endian){this.strip();var res=new Array(this.byteLength());res[0]=0;var q=this.clone();if(endian!=="le"){for(var i=0;q.cmpn(0)!==0;i++){var b=q.andln(255);q.ishrn(8);res[res.length-i-1]=b}}else{for(var i=0;q.cmpn(0)!==0;i++){var b=q.andln(255);q.ishrn(8);res[i]=b}}return res};if(Math.clz32){BN.prototype._countBits=function _countBits(w){return 32-Math.clz32(w)}}else{BN.prototype._countBits=function _countBits(w){var t=w;var r=0;if(t>=4096){r+=13;t>>>=13}if(t>=64){r+=7;t>>>=7}if(t>=8){r+=4;t>>>=4}if(t>=2){r+=2;t>>>=2}return r+t}}BN.prototype._zeroBits=function _zeroBits(w){if(w===0)return 26;var t=w;var r=0;if((t&8191)===0){r+=13;t>>>=13}if((t&127)===0){r+=7;t>>>=7}if((t&15)===0){r+=4;t>>>=4}if((t&3)===0){r+=2;t>>>=2}if((t&1)===0)r++;return r};BN.prototype.bitLength=function bitLength(){var hi=0;var w=this.words[this.length-1];var hi=this._countBits(w);return(this.length-1)*26+hi};BN.prototype.zeroBits=function zeroBits(){if(this.cmpn(0)===0)return 0;var r=0;for(var i=0;inum.length)return this.clone().ior(num);else return num.clone().ior(this)};BN.prototype.iand=function iand(num){this.sign=this.sign&&num.sign;var b;if(this.length>num.length)b=num;else b=this;for(var i=0;inum.length)return this.clone().iand(num);else return num.clone().iand(this)};BN.prototype.ixor=function ixor(num){this.sign=this.sign||num.sign;var a;var b;if(this.length>num.length){a=this;b=num}else{a=num;b=this}for(var i=0;inum.length)return this.clone().ixor(num);else return num.clone().ixor(this)};BN.prototype.setn=function setn(bit,val){assert(typeof bit==="number"&&bit>=0);var off=bit/26|0;var wbit=bit%26;while(this.length<=off)this.words[this.length++]=0;if(val)this.words[off]=this.words[off]|1<num.length){a=this;b=num}else{a=num;b=this}var carry=0;for(var i=0;i>>26}for(;carry!==0&&i>>26}this.length=a.length;if(carry!==0){this.words[this.length]=carry;this.length++}else if(a!==this){for(;inum.length)return this.clone().iadd(num);else return num.clone().iadd(this)};BN.prototype.isub=function isub(num){if(num.sign){num.sign=false;var r=this.iadd(num);num.sign=true;return r._normSign()}else if(this.sign){this.sign=false;this.iadd(num);this.sign=true;return this._normSign()}var cmp=this.cmp(num);if(cmp===0){this.sign=false;this.length=1;this.words[0]=0;return this}var a;var b;if(cmp>0){a=this;b=num}else{a=num;b=this}var carry=0;for(var i=0;i>26;this.words[i]=r&67108863}for(;carry!==0&&i>26;this.words[i]=r&67108863}if(carry===0&&i>>26;var rword=carry&67108863;var maxJ=Math.min(k,num.length-1);for(var j=Math.max(0,k-this.length+1);j<=maxJ;j++){var i=k-j;var a=this.words[i]|0;var b=num.words[j]|0;var r=a*b;var lo=r&67108863;ncarry=ncarry+(r/67108864|0)|0;lo=lo+rword|0;rword=lo&67108863;ncarry=ncarry+(lo>>>26)|0}out.words[k]=rword;carry=ncarry}if(carry!==0){out.words[k]=carry}else{out.length--}return out.strip()};BN.prototype._bigMulTo=function _bigMulTo(num,out){out.sign=num.sign!==this.sign;out.length=this.length+num.length;var carry=0;var hncarry=0;for(var k=0;k>>26)|0;hncarry+=ncarry>>>26;ncarry&=67108863}out.words[k]=rword;carry=ncarry;ncarry=hncarry}if(carry!==0){out.words[k]=carry}else{out.length--}return out.strip()};BN.prototype.mulTo=function mulTo(num,out){var res;if(this.length+num.length<63)res=this._smallMulTo(num,out);else res=this._bigMulTo(num,out);return res};BN.prototype.mul=function mul(num){var out=new BN(null);out.words=new Array(this.length+num.length);return this.mulTo(num,out)};BN.prototype.imul=function imul(num){if(this.cmpn(0)===0||num.cmpn(0)===0){this.words[0]=0;this.length=1;return this}var tlen=this.length;var nlen=num.length;this.sign=num.sign!==this.sign;this.length=this.length+num.length;this.words[this.length-1]=0;for(var k=this.length-2;k>=0;k--){var carry=0;var rword=0;var maxJ=Math.min(k,nlen-1);for(var j=Math.max(0,k-tlen+1);j<=maxJ;j++){var i=k-j;var a=this.words[i];var b=num.words[j];var r=a*b;var lo=r&67108863;carry+=r/67108864|0;lo+=rword;rword=lo&67108863;carry+=lo>>>26}this.words[k]=rword;this.words[k+1]+=carry;carry=0}var carry=0;for(var i=1;i>>26}return this.strip()};BN.prototype.imuln=function imuln(num){assert(typeof num==="number");var carry=0;for(var i=0;i>=26;carry+=w/67108864|0;carry+=lo>>>26;this.words[i]=lo&67108863}if(carry!==0){this.words[i]=carry;this.length++}return this};BN.prototype.muln=function muln(num){return this.clone().imuln(num)};BN.prototype.sqr=function sqr(){return this.mul(this)};BN.prototype.isqr=function isqr(){return this.mul(this)};BN.prototype.ishln=function ishln(bits){assert(typeof bits==="number"&&bits>=0);var r=bits%26;var s=(bits-r)/26;var carryMask=67108863>>>26-r<<26-r;if(r!==0){var carry=0;for(var i=0;i>>26-r}if(carry){this.words[i]=carry;this.length++}}if(s!==0){for(var i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(var i=0;i=0);var h;if(hint)h=(hint-hint%26)/26;else h=0;var r=bits%26;var s=Math.min((bits-r)/26,this.length);var mask=67108863^67108863>>>r<s){this.length-=s;for(var i=0;i=0&&(carry!==0||i>=h);i--){var word=this.words[i];this.words[i]=carry<<26-r|word>>>r;carry=word&mask}if(maskedWords&&carry!==0)maskedWords.words[maskedWords.length++]=carry;if(this.length===0){this.words[0]=0;this.length=1}this.strip();return this};BN.prototype.shln=function shln(bits){return this.clone().ishln(bits)};BN.prototype.shrn=function shrn(bits){return this.clone().ishrn(bits)};BN.prototype.testn=function testn(bit){assert(typeof bit==="number"&&bit>=0);var r=bit%26;var s=(bit-r)/26;var q=1<=0);var r=bits%26;var s=(bits-r)/26;assert(!this.sign,"imaskn works only with positive numbers");if(r!==0)s++;this.length=Math.min(s,this.length);if(r!==0){var mask=67108863^67108863>>>r<=67108864;i++){this.words[i]-=67108864;if(i===this.length-1)this.words[i+1]=1;else this.words[i+1]++}this.length=Math.max(this.length,i+1);return this};BN.prototype.isubn=function isubn(num){assert(typeof num==="number");if(num<0)return this.iaddn(-num);if(this.sign){this.sign=false;this.iaddn(num);this.sign=true;return this}this.words[0]-=num;for(var i=0;i>26)-(right/67108864|0);this.words[i+shift]=w&67108863}for(;i>26;this.words[i+shift]=w&67108863}if(carry===0)return this.strip();assert(carry===-1);carry=0;for(var i=0;i>26;this.words[i]=w&67108863}this.sign=true;return this.strip()};BN.prototype._wordDiv=function _wordDiv(num,mode){var shift=this.length-num.length;var a=this.clone();var b=num;var bhi=b.words[b.length-1];var bhiBits=this._countBits(bhi);shift=26-bhiBits;if(shift!==0){b=b.shln(shift);a.ishln(shift);bhi=b.words[b.length-1]}var m=a.length-b.length;var q;if(mode!=="mod"){q=new BN(null);q.length=m+1;q.words=new Array(q.length);for(var i=0;i=0;j--){var qj=a.words[b.length+j]*67108864+a.words[b.length+j-1];qj=Math.min(qj/bhi|0,67108863);a._ishlnsubmul(b,qj,j);while(a.sign){qj--;a.sign=false;a._ishlnsubmul(b,1,j);if(a.cmpn(0)!==0)a.sign=!a.sign}if(q)q.words[j]=qj}if(q)q.strip();a.strip();if(mode!=="div"&&shift!==0)a.ishrn(shift);return{div:q?q:null,mod:a}};BN.prototype.divmod=function divmod(num,mode){assert(num.cmpn(0)!==0);if(this.sign&&!num.sign){var res=this.neg().divmod(num,mode);var div;var mod;if(mode!=="mod")div=res.div.neg();if(mode!=="div")mod=res.mod.cmpn(0)===0?res.mod:num.sub(res.mod);return{div:div,mod:mod}}else if(!this.sign&&num.sign){var res=this.divmod(num.neg(),mode);var div;if(mode!=="mod")div=res.div.neg();return{div:div,mod:res.mod}}else if(this.sign&&num.sign){return this.neg().divmod(num.neg(),mode)}if(num.length>this.length||this.cmp(num)<0)return{div:new BN(0),mod:this};if(num.length===1){if(mode==="div")return{div:this.divn(num.words[0]),mod:null};else if(mode==="mod")return{div:null,mod:new BN(this.modn(num.words[0]))};return{div:this.divn(num.words[0]),mod:new BN(this.modn(num.words[0]))}}return this._wordDiv(num,mode)};BN.prototype.div=function div(num){return this.divmod(num,"div").div};BN.prototype.mod=function mod(num){return this.divmod(num,"mod").mod};BN.prototype.divRound=function divRound(num){var dm=this.divmod(num);if(dm.mod.cmpn(0)===0)return dm.div;var mod=dm.div.sign?dm.mod.isub(num):dm.mod;var half=num.shrn(1);var r2=num.andln(1);var cmp=mod.cmp(half);if(cmp<0||r2===1&&cmp===0)return dm.div;return dm.div.sign?dm.div.isubn(1):dm.div.iaddn(1)};BN.prototype.modn=function modn(num){assert(num<=67108863);var p=(1<<26)%num;var acc=0;for(var i=this.length-1;i>=0;i--)acc=(p*acc+this.words[i])%num;return acc};BN.prototype.idivn=function idivn(num){assert(num<=67108863);var carry=0;for(var i=this.length-1;i>=0;i--){var w=this.words[i]+carry*67108864;this.words[i]=w/num|0;carry=w%num}return this.strip()};BN.prototype.divn=function divn(num){return this.clone().idivn(num)};BN.prototype.egcd=function egcd(p){assert(!p.sign);assert(p.cmpn(0)!==0);var x=this;var y=p.clone();if(x.sign)x=x.mod(p);else x=x.clone();var A=new BN(1);var B=new BN(0);var C=new BN(0);var D=new BN(1);var g=0;while(x.isEven()&&y.isEven()){x.ishrn(1);y.ishrn(1);++g}var yp=y.clone();var xp=x.clone();while(x.cmpn(0)!==0){while(x.isEven()){x.ishrn(1);if(A.isEven()&&B.isEven()){A.ishrn(1);B.ishrn(1)}else{A.iadd(yp).ishrn(1);B.isub(xp).ishrn(1)}}while(y.isEven()){y.ishrn(1);if(C.isEven()&&D.isEven()){C.ishrn(1);D.ishrn(1)}else{C.iadd(yp).ishrn(1);D.isub(xp).ishrn(1)}}if(x.cmp(y)>=0){x.isub(y);A.isub(C);B.isub(D)}else{y.isub(x);C.isub(A);D.isub(B)}}return{a:C,b:D,gcd:y.ishln(g)}};BN.prototype._invmp=function _invmp(p){assert(!p.sign);assert(p.cmpn(0)!==0);var a=this;var b=p.clone();if(a.sign)a=a.mod(p);else a=a.clone();var x1=new BN(1);var x2=new BN(0);var delta=b.clone();while(a.cmpn(1)>0&&b.cmpn(1)>0){while(a.isEven()){a.ishrn(1);if(x1.isEven())x1.ishrn(1);else x1.iadd(delta).ishrn(1)}while(b.isEven()){b.ishrn(1);if(x2.isEven())x2.ishrn(1);else x2.iadd(delta).ishrn(1)}if(a.cmp(b)>=0){a.isub(b);x1.isub(x2)}else{b.isub(a);x2.isub(x1)}}if(a.cmpn(1)===0)return x1;else return x2};BN.prototype.gcd=function gcd(num){if(this.cmpn(0)===0)return num.clone();if(num.cmpn(0)===0)return this.clone();var a=this.clone();var b=num.clone();a.sign=false;b.sign=false;for(var shift=0;a.isEven()&&b.isEven();shift++){a.ishrn(1);b.ishrn(1)}do{while(a.isEven())a.ishrn(1);while(b.isEven())b.ishrn(1);var r=a.cmp(b);if(r<0){var t=a;a=b;b=t}else if(r===0||b.cmpn(1)===0){break}a.isub(b)}while(true);return b.ishln(shift)};BN.prototype.invm=function invm(num){return this.egcd(num).a.mod(num)};BN.prototype.isEven=function isEven(){return(this.words[0]&1)===0};BN.prototype.isOdd=function isOdd(){return(this.words[0]&1)===1};BN.prototype.andln=function andln(num){return this.words[0]&num};BN.prototype.bincn=function bincn(bit){assert(typeof bit==="number");var r=bit%26;var s=(bit-r)/26;var q=1<>>26;w&=67108863;this.words[i]=w}if(carry!==0){this.words[i]=carry;this.length++}return this};BN.prototype.cmpn=function cmpn(num){var sign=num<0;if(sign)num=-num;if(this.sign&&!sign)return-1;else if(!this.sign&&sign)return 1;num&=67108863;this.strip();var res;if(this.length>1){res=1}else{var w=this.words[0];res=w===num?0:wnum.length)return 1;else if(this.length=0;i--){var a=this.words[i];var b=num.words[i];if(a===b)continue;if(ab)res=1;break}return res};BN.red=function red(num){return new Red(num)};BN.prototype.toRed=function toRed(ctx){assert(!this.red,"Already a number in reduction context");assert(!this.sign,"red works only with positives");return ctx.convertTo(this)._forceRed(ctx)};BN.prototype.fromRed=function fromRed(){assert(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)};BN.prototype._forceRed=function _forceRed(ctx){this.red=ctx;return this};BN.prototype.forceRed=function forceRed(ctx){assert(!this.red,"Already a number in reduction context");return this._forceRed(ctx)};BN.prototype.redAdd=function redAdd(num){assert(this.red,"redAdd works only with red numbers");return this.red.add(this,num)};BN.prototype.redIAdd=function redIAdd(num){assert(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,num)};BN.prototype.redSub=function redSub(num){assert(this.red,"redSub works only with red numbers");return this.red.sub(this,num)};BN.prototype.redISub=function redISub(num){assert(this.red,"redISub works only with red numbers");return this.red.isub(this,num)};BN.prototype.redShl=function redShl(num){assert(this.red,"redShl works only with red numbers");return this.red.shl(this,num)};BN.prototype.redMul=function redMul(num){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,num);return this.red.mul(this,num)};BN.prototype.redIMul=function redIMul(num){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,num);return this.red.imul(this,num)};BN.prototype.redSqr=function redSqr(){assert(this.red,"redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};BN.prototype.redISqr=function redISqr(){assert(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};BN.prototype.redSqrt=function redSqrt(){assert(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};BN.prototype.redInvm=function redInvm(){assert(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};BN.prototype.redNeg=function redNeg(){assert(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};BN.prototype.redPow=function redPow(num){assert(this.red&&!num.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,num)};var primes={k256:null,p224:null,p192:null,p25519:null};function MPrime(name,p){this.name=name;this.p=new BN(p,16);this.n=this.p.bitLength();this.k=new BN(1).ishln(this.n).isub(this.p);this.tmp=this._tmp()}MPrime.prototype._tmp=function _tmp(){var tmp=new BN(null);tmp.words=new Array(Math.ceil(this.n/13));return tmp};MPrime.prototype.ireduce=function ireduce(num){var r=num;var rlen;do{this.split(r,this.tmp);r=this.imulK(r);r=r.iadd(this.tmp);rlen=r.bitLength()}while(rlen>this.n);var cmp=rlen0){r.isub(this.p)}else{r.strip()}return r};MPrime.prototype.split=function split(input,out){input.ishrn(this.n,0,out)};MPrime.prototype.imulK=function imulK(num){return num.imul(this.k)};function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}inherits(K256,MPrime);K256.prototype.split=function split(input,output){var mask=4194303;var outLen=Math.min(input.length,9);for(var i=0;i>>22;prev=next}input.words[i-10]=prev>>>22;input.length-=9};K256.prototype.imulK=function imulK(num){num.words[num.length]=0;num.words[num.length+1]=0;num.length+=2;var hi;var lo=0;for(var i=0;i>>=26;num.words[i]=lo;carry=hi}if(carry!==0)num.words[num.length++]=carry;return num};BN._prime=function prime(name){if(primes[name])return primes[name];var prime;if(name==="k256")prime=new K256;else if(name==="p224")prime=new P224;else if(name==="p192")prime=new P192;else if(name==="p25519")prime=new P25519;else throw new Error("Unknown prime "+name);primes[name]=prime;return prime};function Red(m){if(typeof m==="string"){var prime=BN._prime(m);this.m=prime.p;this.prime=prime}else{this.m=m;this.prime=null}}Red.prototype._verify1=function _verify1(a){assert(!a.sign,"red works only with positives");assert(a.red,"red works only with red numbers")};Red.prototype._verify2=function _verify2(a,b){assert(!a.sign&&!b.sign,"red works only with positives");assert(a.red&&a.red===b.red,"red works only with red numbers")};Red.prototype.imod=function imod(a){if(this.prime)return this.prime.ireduce(a)._forceRed(this);return a.mod(this.m)._forceRed(this)};Red.prototype.neg=function neg(a){var r=a.clone();r.sign=!r.sign;return r.iadd(this.m)._forceRed(this)};Red.prototype.add=function add(a,b){this._verify2(a,b);var res=a.add(b);if(res.cmp(this.m)>=0)res.isub(this.m);return res._forceRed(this)};Red.prototype.iadd=function iadd(a,b){this._verify2(a,b);var res=a.iadd(b);if(res.cmp(this.m)>=0)res.isub(this.m);return res};Red.prototype.sub=function sub(a,b){this._verify2(a,b);var res=a.sub(b);if(res.cmpn(0)<0)res.iadd(this.m);return res._forceRed(this)};Red.prototype.isub=function isub(a,b){this._verify2(a,b);var res=a.isub(b);if(res.cmpn(0)<0)res.iadd(this.m);return res};Red.prototype.shl=function shl(a,num){this._verify1(a);return this.imod(a.shln(num))};Red.prototype.imul=function imul(a,b){this._verify2(a,b);return this.imod(a.imul(b))};Red.prototype.mul=function mul(a,b){this._verify2(a,b);return this.imod(a.mul(b))};Red.prototype.isqr=function isqr(a){return this.imul(a,a)};Red.prototype.sqr=function sqr(a){return this.mul(a,a)};Red.prototype.sqrt=function sqrt(a){if(a.cmpn(0)===0)return a.clone();var mod3=this.m.andln(3);assert(mod3%2===1);if(mod3===3){var pow=this.m.add(new BN(1)).ishrn(2);var r=this.pow(a,pow);return r}var q=this.m.subn(1);var s=0;while(q.cmpn(0)!==0&&q.andln(1)===0){s++;q.ishrn(1)}assert(q.cmpn(0)!==0);var one=new BN(1).toRed(this);var nOne=one.redNeg();var lpow=this.m.subn(1).ishrn(1);var z=this.m.bitLength();z=new BN(2*z*z).toRed(this);while(this.pow(z,lpow).cmp(nOne)!==0)z.redIAdd(nOne);var c=this.pow(z,q);var r=this.pow(a,q.addn(1).ishrn(1));var t=this.pow(a,q);var m=s;while(t.cmp(one)!==0){var tmp=t;for(var i=0;tmp.cmp(one)!==0;i++)tmp=tmp.redSqr();assert(i=0)res=u.isub(this.m);else if(u.cmpn(0)<0)res=u.iadd(this.m);return res._forceRed(this)};Mont.prototype.mul=function mul(a,b){if(a.cmpn(0)===0||b.cmpn(0)===0)return new BN(0)._forceRed(this);var t=a.mul(b);var c=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var u=t.isub(c).ishrn(this.shift);var res=u;if(u.cmp(this.m)>=0)res=u.isub(this.m);else if(u.cmpn(0)<0)res=u.iadd(this.m);return res._forceRed(this)};Mont.prototype.invm=function invm(a){var res=this.imod(a._invmp(this.m).mul(this.r2));return res._forceRed(this)}})(typeof module==="undefined"||module,this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/public-encrypt/node_modules/bn.js/lib/bn.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/public-encrypt/node_modules/bn.js/lib")},{_process:379,buffer:230}],349:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var bn=require("bn.js");var randomBytes=require("randombytes");module.exports=crt;function blind(priv){var r=getr(priv);var blinder=r.toRed(bn.mont(priv.modulus)).redPow(new bn(priv.publicExponent)).fromRed();return{blinder:blinder,unblinder:r.invm(priv.modulus)}}function crt(msg,priv){var blinds=blind(priv);var len=priv.modulus.byteLength();var mod=bn.mont(priv.modulus);var blinded=new bn(msg).mul(blinds.blinder).mod(priv.modulus);var c1=blinded.toRed(bn.mont(priv.prime1));var c2=blinded.toRed(bn.mont(priv.prime2));var qinv=priv.coefficient;var p=priv.prime1;var q=priv.prime2;var m1=c1.redPow(priv.exponent1);var m2=c2.redPow(priv.exponent2);m1=m1.fromRed();m2=m2.fromRed();var h=m1.isub(m2).imul(qinv).mod(p);h.imul(q);m2.iadd(h);var out=new Buffer(m2.imul(blinds.unblinder).mod(priv.modulus).toArray());if(out.length=0||!r.mod(priv.prime1)||!r.mod(priv.prime2)){r=new bn(randomBytes(len))}return r}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/public-encrypt/node_modules/browserify-rsa/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/public-encrypt/node_modules/browserify-rsa")},{_process:379,"bn.js":348,buffer:230,randombytes:374}],350:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var createHash=require("create-hash");module.exports=function evp(password,salt,keyLen){keyLen=keyLen/8;var ki=0;var ii=0;var key=new Buffer(keyLen);var addmd=0;var md,md_buf;var i;while(true){md=createHash("md5");if(addmd++>0){md.update(md_buf)}md.update(password);md.update(salt);md_buf=md.digest();i=0;if(keyLen>0){while(true){if(keyLen===0){break}if(i===md_buf.length){break}key[ki++]=md_buf[i++];keyLen--}}if(keyLen===0){break}}for(i=0;i>6];var primitive=(tag&32)===0;if((tag&31)===31){var oct=tag;tag=0;while((oct&128)===128){oct=buf.readUInt8(fail);if(buf.isError(oct))return oct;tag<<=7;tag|=oct&127}}else{tag&=31}var tagStr=der.tag[tag];return{cls:cls,primitive:primitive,tag:tag,tagStr:tagStr}}function derDecodeLen(buf,primitive,fail){var len=buf.readUInt8(fail);if(buf.isError(len))return len;if(!primitive&&len===128)return null;if((len&128)===0){return len}var num=len&127;if(num>=4)return buf.error("length octect is too long");len=0;for(var i=0;i=256;i>>=8)lenOctets++;var header=new Buffer(1+1+lenOctets);header[0]=encodedTag;header[1]=128|lenOctets;for(var i=1+lenOctets,j=content.length;j>0;i--,j>>=8)header[i]=j&255;return this._createEncoderBuffer([header,content])};DERNode.prototype._encodeStr=function encodeStr(str,tag){if(tag==="octstr")return this._createEncoderBuffer(str);else if(tag==="bitstr")return this._createEncoderBuffer([str.unused|0,str.data]);else if(tag==="ia5str"||tag==="utf8str")return this._createEncoderBuffer(str);return this.reporter.error("Encoding of string type: "+tag+" unsupported")};DERNode.prototype._encodeObjid=function encodeObjid(id,values,relative){if(typeof id==="string"){if(!values)return this.reporter.error("string objid given, but no values map found");if(!values.hasOwnProperty(id))return this.reporter.error("objid not found in values map");id=values[id].split(/[\s\.]+/g);for(var i=0;i=40)return this.reporter.error("Second objid identifier OOB");id.splice(0,2,id[0]*40+id[1])}var size=0;for(var i=0;i=128;ident>>=7)size++}var objid=new Buffer(size);var offset=objid.length-1;for(var i=id.length-1;i>=0;i--){var ident=id[i];objid[offset--]=ident&127;while((ident>>=7)>0)objid[offset--]=128|ident&127}return this._createEncoderBuffer(objid)};function two(num){if(num<10)return"0"+num;else return num}DERNode.prototype._encodeTime=function encodeTime(time,tag){var str;var date=new Date(time);if(tag==="gentime"){str=[two(date.getFullYear()),two(date.getUTCMonth()+1),two(date.getUTCDate()),two(date.getUTCHours()),two(date.getUTCMinutes()),two(date.getUTCSeconds()),"Z"].join("")}else if(tag==="utctime"){str=[two(date.getFullYear()%100),two(date.getUTCMonth()+1),two(date.getUTCDate()),two(date.getUTCHours()),two(date.getUTCMinutes()),two(date.getUTCSeconds()),"Z"].join("")}else{this.reporter.error("Encoding "+tag+" time is not supported yet")}return this._encodeStr(str,"octstr")};DERNode.prototype._encodeNull=function encodeNull(){return this._createEncoderBuffer("")};DERNode.prototype._encodeInt=function encodeInt(num,values){if(typeof num==="string"){if(!values)return this.reporter.error("String int or enum given, but no values map");if(!values.hasOwnProperty(num)){return this.reporter.error("Values map doesn't contain: "+JSON.stringify(num))}num=values[num]}if(typeof num!=="number"&&!Buffer.isBuffer(num)){var numArray=num.toArray();if(num.sign===false&&numArray[0]&128){numArray.unshift(0)}num=new Buffer(numArray)}if(Buffer.isBuffer(num)){var size=num.length;if(num.length===0)size++;var out=new Buffer(size);num.copy(out);if(num.length===0)out[0]=0;return this._createEncoderBuffer(out)}if(num<128)return this._createEncoderBuffer(num);if(num<256)return this._createEncoderBuffer([0,num]);var size=1;for(var i=num;i>=256;i>>=8)size++;var out=new Array(size);for(var i=out.length-1;i>=0;i--){out[i]=num&255;num>>=8}if(out[0]&128){out.unshift(0)}return this._createEncoderBuffer(new Buffer(out))};DERNode.prototype._encodeBool=function encodeBool(value){return this._createEncoderBuffer(value?255:0)};DERNode.prototype._use=function use(entity,obj){if(typeof entity==="function")entity=entity(obj);return entity._getEncoder("der").tree};DERNode.prototype._skipDefault=function skipDefault(dataBuffer,reporter,parent){var state=this._baseState;var i;if(state["default"]===null)return false;var data=dataBuffer.join();if(state.defaultBuffer===undefined)state.defaultBuffer=this._encodeValue(state["default"],reporter,parent).join();if(data.length!==state.defaultBuffer.length)return false;for(i=0;i=31)return reporter.error("Multi-octet tag encoding unsupported");if(!primitive)res|=32;res|=der.tagClassByName[cls||"universal"]<<6;return res}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/public-encrypt/node_modules/parse-asn1/node_modules/asn1.js/lib/asn1/encoders/der.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/public-encrypt/node_modules/parse-asn1/node_modules/asn1.js/lib/asn1/encoders")},{"../../asn1":355,_process:379,buffer:230,inherits:"inherits"}],367:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var encoders=exports;encoders.der=require("./der");encoders.pem=require("./pem")}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/public-encrypt/node_modules/parse-asn1/node_modules/asn1.js/lib/asn1/encoders/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/crypto-browserify/node_modules/public-encrypt/node_modules/parse-asn1/node_modules/asn1.js/lib/asn1/encoders")},{"./der":366,"./pem":368,_process:379,buffer:230}],368:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var inherits=require("inherits");var Buffer=require("buffer").Buffer;var asn1=require("../../asn1");var DEREncoder=require("./der");function PEMEncoder(entity){DEREncoder.call(this,entity);this.enc="pem"}inherits(PEMEncoder,DEREncoder);module.exports=PEMEncoder;PEMEncoder.prototype.encode=function encode(data,options){var buf=DEREncoder.prototype.encode.call(this,data);var p=buf.toString("base64");var out=["-----BEGIN "+options.label+"-----"];for(var i=0;ik||new bn(enc).cmp(key.modulus)>=0){throw new Error("decryption error")}var msg;if(reverse){msg=withPublic(new bn(enc),key)}else{msg=crt(enc,key)}var zBuffer=new Buffer(k-msg.length);zBuffer.fill(0);msg=Buffer.concat([zBuffer,msg],k);if(padding===4){return oaep(key,msg)}else if(padding===1){return pkcs1(key,msg,reverse)}else if(padding===3){return msg}else{throw new Error("unknown padding")}};function oaep(key,msg){var n=key.modulus;var k=key.modulus.byteLength();var mLen=msg.length;var iHash=createHash("sha1").update(new Buffer("")).digest();var hLen=iHash.length;var hLen2=2*hLen;if(msg[0]!==0){throw new Error("decryption error")}var maskedSeed=msg.slice(1,hLen+1);var maskedDb=msg.slice(hLen+1);var seed=xor(maskedSeed,mgf(maskedDb,hLen));var db=xor(maskedDb,mgf(seed,k-hLen-1));if(compare(iHash,db.slice(0,hLen))){throw new Error("decryption error")}var i=hLen;while(db[i]===0){i++}if(db[i++]!==1){throw new Error("decryption error")}return db.slice(i)}function pkcs1(key,msg,reverse){var p1=msg.slice(0,2);var i=2;var status=0;while(msg[i++]!==0){if(i>=msg.length){status++;break}}var ps=msg.slice(2,i-1);var p2=msg.slice(i-1,i);if(p1.toString("hex")!=="0002"&&!reverse||p1.toString("hex")!=="0001"&&reverse){status++}if(ps.length<8){status++}if(status){throw new Error("decryption error")}return msg.slice(i)}function compare(a,b){a=new Buffer(a);b=new Buffer(b);var dif=0;var len=a.length;if(a.length!==b.length){dif++;len=Math.min(a.length,b.length)}var i=-1;while(++i=0){throw new Error("data too long for modulus")}}else{throw new Error("unknown padding")}if(reverse){return crt(paddedMsg,key)}else{return withPublic(paddedMsg,key)}};function oaep(key,msg){var k=key.modulus.byteLength();var mLen=msg.length;var iHash=createHash("sha1").update(new Buffer("")).digest();var hLen=iHash.length;var hLen2=2*hLen;if(mLen>k-hLen2-2){throw new Error("message too long")}var ps=new Buffer(k-mLen-hLen2-2);ps.fill(0);var dblen=k-hLen-1;var seed=randomBytes(hLen);var maskedDb=xor(Buffer.concat([iHash,ps,new Buffer([1]),msg],dblen),mgf(seed,dblen));var maskedSeed=xor(seed,mgf(maskedDb,hLen));return new bn(Buffer.concat([new Buffer([0]),maskedSeed,maskedDb],k))}function pkcs1(key,msg,reverse){var mLen=msg.length;var k=key.modulus.byteLength();if(mLen>k-11){throw new Error("message too long")}var ps;if(reverse){ps=new Buffer(k-mLen-3);ps.fill(255)}else{ps=nonZero(k-mLen-3)}return new bn(Buffer.concat([new Buffer([0,reverse?1:2]),ps,new Buffer([0]),msg],k))}function nonZero(len,crypto){var out=new Buffer(len);var i=0;var cache=randomBytes(len*2);var cur=0;var num;while(i0&&this._events[type].length>m){this._events[type].warned=true;console.error("(node) warning: possible EventEmitter memory "+"leak detected. %d listeners added. "+"Use emitter.setMaxListeners() to increase limit.",this._events[type].length);if(typeof console.trace==="function"){console.trace()}}}return this};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.once=function(type,listener){if(!isFunction(listener))throw TypeError("listener must be a function");var fired=false;function g(){this.removeListener(type,g);if(!fired){fired=true;listener.apply(this,arguments)}}g.listener=listener;this.on(type,g);return this};EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;list=this._events[type];length=list.length;position=-1;if(list===listener||isFunction(list.listener)&&list.listener===listener){delete this._events[type];if(this._events.removeListener)this.emit("removeListener",type,listener)}else if(isObject(list)){for(i=length;i-->0;){if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}}if(position<0)return this;if(list.length===1){list.length=0;delete this._events[type]}else{list.splice(position,1)}if(this._events.removeListener)this.emit("removeListener",type,listener)}return this};EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener){if(arguments.length===0)this._events={};else if(this._events[type])delete this._events[type];return this}if(arguments.length===0){for(key in this._events){if(key==="removeListener")continue;this.removeAllListeners(key)}this.removeAllListeners("removeListener");this._events={};return this}listeners=this._events[type];if(isFunction(listeners)){this.removeListener(type,listeners)}else{while(listeners.length)this.removeListener(type,listeners[listeners.length-1])}delete this._events[type];return this};EventEmitter.prototype.listeners=function(type){var ret;if(!this._events||!this._events[type])ret=[];else if(isFunction(this._events[type]))ret=[this._events[type]];else ret=this._events[type].slice();return ret};EventEmitter.listenerCount=function(emitter,type){var ret;if(!emitter._events||!emitter._events[type])ret=0;else if(isFunction(emitter._events[type]))ret=1;else ret=emitter._events[type].length;return ret};function isFunction(arg){return typeof arg==="function"}function isNumber(arg){return typeof arg==="number"}function isObject(arg){return typeof arg==="object"&&arg!==null}function isUndefined(arg){return arg===void 0}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/events/events.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/events")},{_process:379,buffer:230}],376:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var http=require("http");var https=module.exports;for(var key in http){if(http.hasOwnProperty(key))https[key]=http[key]}https.request=function(params,cb){if(!params)params={};params.scheme="https";return http.request.call(this,params,cb)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/https-browserify/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/https-browserify")},{_process:379,buffer:230,http:397}],377:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){exports.endianness=function(){return"LE"};exports.hostname=function(){if(typeof location!=="undefined"){return location.hostname}else return""};exports.loadavg=function(){return[]};exports.uptime=function(){return 0};exports.freemem=function(){return Number.MAX_VALUE};exports.totalmem=function(){return Number.MAX_VALUE};exports.cpus=function(){return[]};exports.type=function(){return"Browser"};exports.release=function(){if(typeof navigator!=="undefined"){return navigator.appVersion}return""};exports.networkInterfaces=exports.getNetworkInterfaces=function(){return{}};exports.arch=function(){return"javascript"};exports.platform=function(){return"browser"};exports.tmpdir=exports.tmpDir=function(){return"/tmp"};exports.EOL="\n"}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/os-browserify/browser.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/os-browserify")},{_process:379,buffer:230}],378:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){function normalizeArray(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;var splitPath=function(filename){return splitPathRe.exec(filename).slice(1)};exports.resolve=function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){continue}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=normalizeArray(filter(resolvedPath.split("/"),function(p){return!!p}),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."};exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash=substr(path,-1)==="/";path=normalizeArray(filter(path.split("/"),function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path};exports.isAbsolute=function(path){return path.charAt(0)==="/"};exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(filter(paths,function(p,index){if(typeof p!=="string"){throw new TypeError("Arguments to path.join must be strings")}return p}).join("/"))};exports.relative=function(from,to){from=exports.resolve(from).substr(1);to=exports.resolve(to).substr(1);function trim(arr){var start=0;for(;start=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i1){for(var i=1;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode,key;function error(type){throw RangeError(errors[type])}function map(array,fn){var length=array.length;var result=[];while(length--){result[length]=fn(array[length])}return result}function mapDomain(string,fn){var parts=string.split("@");var result="";if(parts.length>1){result=parts[0]+"@";string=parts[1]}string=string.replace(regexSeparators,".");var labels=string.split(".");var encoded=map(labels,fn).join(".");return result+encoded}function ucs2decode(string){var output=[],counter=0,length=string.length,value,extra;while(counter=55296&&value<=56319&&counter65535){value-=65536;output+=stringFromCharCode(value>>>10&1023|55296);value=56320|value&1023}output+=stringFromCharCode(value);return output}).join("")}function basicToDigit(codePoint){if(codePoint-48<10){return codePoint-22}if(codePoint-65<26){return codePoint-65}if(codePoint-97<26){return codePoint-97}return base}function digitToBasic(digit,flag){return digit+22+75*(digit<26)-((flag!=0)<<5)}function adapt(delta,numPoints,firstTime){var k=0;delta=firstTime?floor(delta/damp):delta>>1;delta+=floor(delta/numPoints);for(;delta>baseMinusTMin*tMax>>1;k+=base){delta=floor(delta/baseMinusTMin)}return floor(k+(baseMinusTMin+1)*delta/(delta+skew))}function decode(input){var output=[],inputLength=input.length,out,i=0,n=initialN,bias=initialBias,basic,j,index,oldi,w,k,digit,t,baseMinusT;basic=input.lastIndexOf(delimiter);if(basic<0){basic=0}for(j=0;j=128){error("not-basic")}output.push(input.charCodeAt(j))}for(index=basic>0?basic+1:0;index=inputLength){error("invalid-input")}digit=basicToDigit(input.charCodeAt(index++));if(digit>=base||digit>floor((maxInt-i)/w)){error("overflow")}i+=digit*w;t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias;if(digitfloor(maxInt/baseMinusT)){error("overflow")}w*=baseMinusT}out=output.length+1;bias=adapt(i-oldi,out,oldi==0);if(floor(i/out)>maxInt-n){error("overflow")}n+=floor(i/out);i%=out;output.splice(i++,0,n)}return ucs2encode(output)}function encode(input){var n,delta,handledCPCount,basicLength,bias,j,m,q,k,t,currentValue,output=[],inputLength,handledCPCountPlusOne,baseMinusT,qMinusT;input=ucs2decode(input);inputLength=input.length;n=initialN;delta=0;bias=initialBias;for(j=0;j=n&¤tValuefloor((maxInt-delta)/handledCPCountPlusOne)){error("overflow")}delta+=(m-n)*handledCPCountPlusOne;n=m;for(j=0;jmaxInt){error("overflow")}if(currentValue==n){for(q=delta,k=base;;k+=base){t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias;if(q0&&len>maxKeys){len=maxKeys}for(var i=0;i=0){kstr=x.substr(0,idx);vstr=x.substr(idx+1)}else{kstr=x;vstr=""}k=decodeURIComponent(kstr);v=decodeURIComponent(vstr);if(!hasOwnProperty(obj,k)){obj[k]=v}else if(isArray(obj[k])){obj[k].push(v)}else{obj[k]=[obj[k],v]}}return obj};var isArray=Array.isArray||function(xs){return Object.prototype.toString.call(xs)==="[object Array]"}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/querystring-es3/decode.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/querystring-es3")},{_process:379,buffer:230}],382:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var stringifyPrimitive=function(v){switch(typeof v){case"string":return v;case"boolean":return v?"true":"false";case"number":return isFinite(v)?v:"";default:return""}};module.exports=function(obj,sep,eq,name){sep=sep||"&";eq=eq||"=";if(obj===null){obj=undefined}if(typeof obj==="object"){return map(objectKeys(obj),function(k){var ks=encodeURIComponent(stringifyPrimitive(k))+eq;if(isArray(obj[k])){return map(obj[k],function(v){return ks+encodeURIComponent(stringifyPrimitive(v))}).join(sep)}else{return ks+encodeURIComponent(stringifyPrimitive(obj[k]))}}).join(sep)}if(!name)return"";return encodeURIComponent(stringifyPrimitive(name))+eq+encodeURIComponent(stringifyPrimitive(obj))};var isArray=Array.isArray||function(xs){return Object.prototype.toString.call(xs)==="[object Array]"};function map(xs,f){if(xs.map)return xs.map(f);var res=[];for(var i=0;i0){if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){var e=new Error("stream.unshift() after end event");stream.emit("error",e)}else{if(state.decoder&&!addToFront&&!encoding)chunk=state.decoder.write(chunk);if(!addToFront)state.reading=false;if(state.flowing&&state.length===0&&!state.sync){stream.emit("data",chunk);stream.read(0)}else{state.length+=state.objectMode?1:chunk.length;if(addToFront)state.buffer.unshift(chunk);else state.buffer.push(chunk);if(state.needReadable)emitReadable(stream)}maybeReadMore(stream,state)}}else if(!addToFront){state.reading=false}return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=MAX_HWM){n=MAX_HWM}else{n--;for(var p=1;p<32;p<<=1)n|=n>>p;n++}return n}function howMuchToRead(n,state){if(state.length===0&&state.ended)return 0;if(state.objectMode)return n===0?0:1;if(n===null||isNaN(n)){if(state.flowing&&state.buffer.length)return state.buffer[0].length;else return state.length}if(n<=0)return 0;if(n>state.highWaterMark)state.highWaterMark=roundUpToNextPowerOf2(n);if(n>state.length){if(!state.ended){state.needReadable=true;return 0}else{return state.length}}return n}Readable.prototype.read=function(n){debug("read",n);var state=this._readableState;var nOrig=n;if(typeof n!=="number"||n>0)state.emittedReadable=false;if(n===0&&state.needReadable&&(state.length>=state.highWaterMark||state.ended)){debug("read: emitReadable",state.length,state.ended);if(state.length===0&&state.ended)endReadable(this);else emitReadable(this);return null}n=howMuchToRead(n,state);if(n===0&&state.ended){if(state.length===0)endReadable(this);return null}var doRead=state.needReadable;debug("need readable",doRead);if(state.length===0||state.length-n0)ret=fromList(n,state);else ret=null;if(ret===null){state.needReadable=true;n=0}state.length-=n;if(state.length===0&&!state.ended)state.needReadable=true;if(nOrig!==n&&state.ended&&state.length===0)endReadable(this);if(ret!==null)this.emit("data",ret);return ret};function chunkInvalid(state,chunk){var er=null;if(!Buffer.isBuffer(chunk)&&typeof chunk!=="string"&&chunk!==null&&chunk!==undefined&&!state.objectMode){er=new TypeError("Invalid non-string/buffer chunk")}return er}function onEofChunk(stream,state){if(state.ended)return;if(state.decoder){var chunk=state.decoder.end();if(chunk&&chunk.length){state.buffer.push(chunk);state.length+=state.objectMode?1:chunk.length}}state.ended=true;emitReadable(stream)}function emitReadable(stream){var state=stream._readableState;state.needReadable=false;if(!state.emittedReadable){debug("emitReadable",state.flowing);state.emittedReadable=true;if(state.sync)processNextTick(emitReadable_,stream);else emitReadable_(stream)}}function emitReadable_(stream){debug("emit readable");stream.emit("readable");flow(stream)}function maybeReadMore(stream,state){if(!state.readingMore){state.readingMore=true;processNextTick(maybeReadMore_,stream,state)}}function maybeReadMore_(stream,state){var len=state.length;while(!state.reading&&!state.flowing&&!state.ended&&state.length=length){if(stringMode)ret=list.join("");else ret=Buffer.concat(list,length);list.length=0}else{if(n0)throw new Error("endReadable called on non-empty stream");if(!state.endEmitted){state.ended=true;processNextTick(endReadableNT,state,stream)}}function endReadableNT(state,stream){if(!state.endEmitted&&state.length===0){state.endEmitted=true;stream.readable=false;stream.emit("end")}}function forEach(xs,f){for(var i=0,l=xs.length;i-1))throw new TypeError("Unknown encoding: "+encoding);this._writableState.defaultEncoding=encoding};function decodeChunk(state,chunk,encoding){if(!state.objectMode&&state.decodeStrings!==false&&typeof chunk==="string"){chunk=new Buffer(chunk,encoding)}return chunk}function writeOrBuffer(stream,state,chunk,encoding,cb){chunk=decodeChunk(state,chunk,encoding);if(Buffer.isBuffer(chunk))encoding="buffer";var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.lengthself._pos){var newData=response.substr(self._pos);if(self._charset==="x-user-defined"){var buffer=new Buffer(newData.length);for(var i=0;iself._pos){self.push(new Buffer(new Uint8Array(reader.result.slice(self._pos))));self._pos=reader.result.byteLength}};reader.onload=function(){self.push(null)};reader.readAsArrayBuffer(response);break}if(self._xhr.readyState===rStates.DONE&&self._mode!=="ms-stream"){self.push(null)}}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/stream-http/lib/response.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/stream-http/lib")},{"./capability":398,_process:379,buffer:230,foreach:402,inherits:"inherits",stream:396}],401:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){module.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/stream-http/node_modules/builtin-status-codes/browser.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/stream-http/node_modules/builtin-status-codes")},{_process:379,buffer:230}],402:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var hasOwn=Object.prototype.hasOwnProperty;var toString=Object.prototype.toString;module.exports=function forEach(obj,fn,ctx){if(toString.call(fn)!=="[object Function]"){throw new TypeError("iterator must be a function")}var l=obj.length;if(l===+l){for(var i=0;i0&&!has.call(object,0)){for(var i=0;i0){for(var j=0;j=0&&toStr.call(value.callee)==="[object Function]"}return isArgs}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/stream-http/node_modules/object-keys/isArguments.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/stream-http/node_modules/object-keys")},{_process:379,buffer:230}],406:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Buffer=require("buffer").Buffer;var isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding)){throw new Error("Unknown encoding: "+encoding)}}var StringDecoder=exports.StringDecoder=function(encoding){this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,"");assertEncoding(encoding);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2;this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3;this.detectIncompleteChar=base64DetectIncompleteChar;break;default:this.write=passThroughWrite;return}this.charBuffer=new Buffer(6);this.charReceived=0;this.charLength=0};StringDecoder.prototype.write=function(buffer){var charStr="";while(this.charLength){var available=buffer.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:buffer.length;buffer.copy(this.charBuffer,this.charReceived,0,available);this.charReceived+=available;if(this.charReceived=55296&&charCode<=56319){this.charLength+=this.surrogateSize;charStr="";continue}this.charReceived=this.charLength=0;if(buffer.length===0){return charStr}break}this.detectIncompleteChar(buffer);var end=buffer.length;if(this.charLength){buffer.copy(this.charBuffer,0,buffer.length-this.charReceived,end);end-=this.charReceived}charStr+=buffer.toString(this.encoding,0,end);var end=charStr.length-1;var charCode=charStr.charCodeAt(end);if(charCode>=55296&&charCode<=56319){var size=this.surrogateSize;this.charLength+=size;this.charReceived+=size;this.charBuffer.copy(this.charBuffer,size,0,size);buffer.copy(this.charBuffer,0,0,size);return charStr.substring(0,end)}return charStr};StringDecoder.prototype.detectIncompleteChar=function(buffer){var i=buffer.length>=3?3:buffer.length;for(;i>0;i--){var c=buffer[buffer.length-i];if(i==1&&c>>5==6){this.charLength=2;break}if(i<=2&&c>>4==14){this.charLength=3;break}if(i<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=i};StringDecoder.prototype.end=function(buffer){var res="";if(buffer&&buffer.length)res=this.write(buffer);if(this.charReceived){var cr=this.charReceived;var buf=this.charBuffer;var enc=this.encoding;res+=buf.slice(0,cr).toString(enc)}return res};function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2;this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3;this.charLength=this.charReceived?3:0}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/string_decoder/index.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/string_decoder")},{_process:379,buffer:230}],407:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var punycode=require("punycode");exports.parse=urlParse;exports.resolve=urlResolve;exports.resolveObject=urlResolveObject;exports.format=urlFormat;exports.Url=Url;function Url(){this.protocol=null;this.slashes=null;this.auth=null;this.host=null;this.port=null;this.hostname=null;this.hash=null;this.search=null;this.query=null;this.pathname=null;this.path=null;this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,delims=["<",">",'"',"`"," ","\r","\n"," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:true,"javascript:":true},hostlessProtocol={javascript:true,"javascript:":true},slashedProtocol={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true},querystring=require("querystring");function urlParse(url,parseQueryString,slashesDenoteHost){if(url&&isObject(url)&&url instanceof Url)return url;var u=new Url;u.parse(url,parseQueryString,slashesDenoteHost);return u}Url.prototype.parse=function(url,parseQueryString,slashesDenoteHost){if(!isString(url)){throw new TypeError("Parameter 'url' must be a string, not "+typeof url)}var rest=url;rest=rest.trim();var proto=protocolPattern.exec(rest);if(proto){proto=proto[0];var lowerProto=proto.toLowerCase();this.protocol=lowerProto;rest=rest.substr(proto.length)}if(slashesDenoteHost||proto||rest.match(/^\/\/[^@\/]+@[^@\/]+/)){var slashes=rest.substr(0,2)==="//";if(slashes&&!(proto&&hostlessProtocol[proto])){rest=rest.substr(2);this.slashes=true}}if(!hostlessProtocol[proto]&&(slashes||proto&&!slashedProtocol[proto])){var hostEnd=-1;for(var i=0;i127){newpart+="x"}else{newpart+=part[j]}}if(!newpart.match(hostnamePartPattern)){var validParts=hostparts.slice(0,i);var notHost=hostparts.slice(i+1);var bit=part.match(hostnamePartStart);if(bit){validParts.push(bit[1]);notHost.unshift(bit[2])}if(notHost.length){rest="/"+notHost.join(".")+rest}this.hostname=validParts.join(".");break}}}}if(this.hostname.length>hostnameMaxLen){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!ipv6Hostname){var domainArray=this.hostname.split(".");var newOut=[];for(var i=0;i0?result.host.split("@"):false;if(authInHost){result.auth=authInHost.shift();result.host=result.hostname=authInHost.shift()}}result.search=relative.search;result.query=relative.query;if(!isNull(result.pathname)||!isNull(result.search)){result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")}result.href=result.format();return result}if(!srcPath.length){result.pathname=null;if(result.search){result.path="/"+result.search}else{result.path=null}result.href=result.format();return result}var last=srcPath.slice(-1)[0];var hasTrailingSlash=(result.host||relative.host)&&(last==="."||last==="..")||last==="";var up=0;for(var i=srcPath.length;i>=0;i--){last=srcPath[i];if(last=="."){srcPath.splice(i,1)}else if(last===".."){srcPath.splice(i,1);up++}else if(up){srcPath.splice(i,1);up--}}if(!mustEndAbs&&!removeAllDots){for(;up--;up){srcPath.unshift("..")}}if(mustEndAbs&&srcPath[0]!==""&&(!srcPath[0]||srcPath[0].charAt(0)!=="/")){srcPath.unshift("")}if(hasTrailingSlash&&srcPath.join("/").substr(-1)!=="/"){srcPath.push("")}var isAbsolute=srcPath[0]===""||srcPath[0]&&srcPath[0].charAt(0)==="/";if(psychotic){result.hostname=result.host=isAbsolute?"":srcPath.length?srcPath.shift():"";var authInHost=result.host&&result.host.indexOf("@")>0?result.host.split("@"):false;if(authInHost){result.auth=authInHost.shift();result.host=result.hostname=authInHost.shift()}}mustEndAbs=mustEndAbs||result.host&&srcPath.length;if(mustEndAbs&&!isAbsolute){srcPath.unshift("")}if(!srcPath.length){result.pathname=null;result.path=null}else{result.pathname=srcPath.join("/")}if(!isNull(result.pathname)||!isNull(result.search)){result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")}result.auth=relative.auth||result.auth;result.slashes=result.slashes||relative.slashes;result.href=result.format();return result};Url.prototype.parseHost=function(){var host=this.host;var port=portPattern.exec(host);if(port){port=port[0];if(port!==":"){this.port=port.substr(1)}host=host.substr(0,host.length-port.length)}if(host)this.hostname=host};function isString(arg){return typeof arg==="string"}function isObject(arg){return typeof arg==="object"&&arg!==null}function isNull(arg){return arg===null}function isNullOrUndefined(arg){return arg==null}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/url/url.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/url")},{_process:379,buffer:230,punycode:380,querystring:383}],408:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){module.exports=function isBuffer(arg){return arg&&typeof arg==="object"&&typeof arg.copy==="function"&&typeof arg.fill==="function"&&typeof arg.readUInt8==="function"}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/util/support/isBufferBrowser.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/util/support")},{_process:379,buffer:230}],409:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){var objects=[];for(var i=0;i=len)return x;switch(x){case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}default:return x}});for(var x=args[i];i=3)ctx.depth=arguments[2];if(arguments.length>=4)ctx.colors=arguments[3];if(isBoolean(opts)){ctx.showHidden=opts}else if(opts){exports._extend(ctx,opts)}if(isUndefined(ctx.showHidden))ctx.showHidden=false;if(isUndefined(ctx.depth))ctx.depth=2;if(isUndefined(ctx.colors))ctx.colors=false;if(isUndefined(ctx.customInspect))ctx.customInspect=true;if(ctx.colors)ctx.stylize=stylizeWithColor;return formatValue(ctx,obj,ctx.depth)}exports.inspect=inspect;inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};inspect.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"};function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];if(style){return"["+inspect.colors[style][0]+"m"+str+"["+inspect.colors[style][1]+"m"}else{return str}}function stylizeNoColor(str,styleType){return str}function arrayToHash(array){var hash={};array.forEach(function(val,idx){hash[val]=true});return hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&!(value.constructor&&value.constructor.prototype===value)){var ret=value.inspect(recurseTimes,ctx);if(!isString(ret)){ret=formatValue(ctx,ret,recurseTimes)}return ret}var primitive=formatPrimitive(ctx,value);if(primitive){return primitive}var keys=Object.keys(value);var visibleKeys=arrayToHash(keys);if(ctx.showHidden){keys=Object.getOwnPropertyNames(value)}if(isError(value)&&(keys.indexOf("message")>=0||keys.indexOf("description")>=0)){return formatError(value)}if(keys.length===0){if(isFunction(value)){var name=value.name?": "+value.name:"";return ctx.stylize("[Function"+name+"]","special")}if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),"regexp")}if(isDate(value)){return ctx.stylize(Date.prototype.toString.call(value),"date")}if(isError(value)){return formatError(value)}}var base="",array=false,braces=["{","}"];if(isArray(value)){array=true;braces=["[","]"]}if(isFunction(value)){var n=value.name?": "+value.name:"";base=" [Function"+n+"]"}if(isRegExp(value)){base=" "+RegExp.prototype.toString.call(value)}if(isDate(value)){base=" "+Date.prototype.toUTCString.call(value)}if(isError(value)){base=" "+formatError(value)}if(keys.length===0&&(!array||value.length==0)){return braces[0]+base+braces[1]}if(recurseTimes<0){if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),"regexp")}else{return ctx.stylize("[Object]","special")}}ctx.seen.push(value);var output;if(array){output=formatArray(ctx,value,recurseTimes,visibleKeys,keys)}else{output=keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)})}ctx.seen.pop();return reduceToSingleString(output,base,braces)}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize("undefined","undefined");if(isString(value)){var simple="'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ctx.stylize(simple,"string")}if(isNumber(value))return ctx.stylize(""+value,"number");if(isBoolean(value))return ctx.stylize(""+value,"boolean");if(isNull(value))return ctx.stylize("null","null")}function formatError(value){return"["+Error.prototype.toString.call(value)+"]"}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){var output=[];for(var i=0,l=value.length;i-1){if(array){str=str.split("\n").map(function(line){return" "+line}).join("\n").substr(2)}else{str="\n"+str.split("\n").map(function(line){return" "+line}).join("\n")}}}else{str=ctx.stylize("[Circular]","special")}}if(isUndefined(name)){if(array&&key.match(/^\d+$/)){return str}name=JSON.stringify(""+key);if(name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){name=name.substr(1,name.length-2);name=ctx.stylize(name,"name")}else{name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");name=ctx.stylize(name,"string")}}return name+": "+str}function reduceToSingleString(output,base,braces){var numLinesEst=0;var length=output.reduce(function(prev,cur){numLinesEst++;if(cur.indexOf("\n")>=0)numLinesEst++;return prev+cur.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(length>60){return braces[0]+(base===""?"":base+"\n ")+" "+output.join(",\n ")+" "+braces[1]}return braces[0]+base+" "+output.join(", ")+" "+braces[1]}function isArray(ar){return Array.isArray(ar)}exports.isArray=isArray;function isBoolean(arg){return typeof arg==="boolean"}exports.isBoolean=isBoolean;function isNull(arg){return arg===null}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null}exports.isNullOrUndefined=isNullOrUndefined;function isNumber(arg){return typeof arg==="number"}exports.isNumber=isNumber;function isString(arg){return typeof arg==="string"}exports.isString=isString;function isSymbol(arg){return typeof arg==="symbol"}exports.isSymbol=isSymbol;function isUndefined(arg){return arg===void 0}exports.isUndefined=isUndefined;function isRegExp(re){return isObject(re)&&objectToString(re)==="[object RegExp]"}exports.isRegExp=isRegExp;function isObject(arg){return typeof arg==="object"&&arg!==null}exports.isObject=isObject;function isDate(d){return isObject(d)&&objectToString(d)==="[object Date]"}exports.isDate=isDate;function isError(e){return isObject(e)&&(objectToString(e)==="[object Error]"||e instanceof Error)}exports.isError=isError;function isFunction(arg){return typeof arg==="function"}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==="boolean"||typeof arg==="number"||typeof arg==="string"||typeof arg==="symbol"||typeof arg==="undefined"}exports.isPrimitive=isPrimitive;exports.isBuffer=require("./support/isBuffer");function objectToString(o){return Object.prototype.toString.call(o)}function pad(n){return n<10?"0"+n.toString(10):n.toString(10)}var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var d=new Date;var time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(":");return[d.getDate(),months[d.getMonth()],time].join(" ")}exports.log=function(){console.log("%s - %s",timestamp(),exports.format.apply(exports,arguments))};exports.inherits=require("inherits");exports._extend=function(origin,add){if(!add||!isObject(add))return origin;var keys=Object.keys(add);var i=keys.length;while(i--){origin[keys[i]]=add[keys[i]]}return origin};function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/util/util.js","/../../../../../../../usr/local/lib/node_modules/browserify/node_modules/util")},{"./support/isBuffer":408,_process:379,buffer:230,inherits:"inherits"}],410:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var indexOf=require("indexof");var Object_keys=function(obj){if(Object.keys)return Object.keys(obj);else{var res=[];for(var key in obj)res.push(key);return res}};var forEach=function(xs,fn){if(xs.forEach)return xs.forEach(fn);else for(var i=0;i=arr.length){callback()}}}};async.forEach=async.each;async.eachSeries=function(arr,iterator,callback){callback=callback||function(){};if(!arr.length){return callback()}var completed=0;var iterate=function(){iterator(arr[completed],function(err){if(err){callback(err);callback=function(){}}else{completed+=1;if(completed>=arr.length){callback()}else{iterate()}}})};iterate()};async.forEachSeries=async.eachSeries;async.eachLimit=function(arr,limit,iterator,callback){var fn=_eachLimit(limit);fn.apply(null,[arr,iterator,callback])};async.forEachLimit=async.eachLimit;var _eachLimit=function(limit){return function(arr,iterator,callback){callback=callback||function(){};if(!arr.length||limit<=0){return callback()}var completed=0;var started=0;var running=0;(function replenish(){if(completed>=arr.length){return callback()}while(running=arr.length){callback()}else{replenish()}}})}})()}};var doParallel=function(fn){return function(){var args=Array.prototype.slice.call(arguments);return fn.apply(null,[async.each].concat(args))}};var doParallelLimit=function(limit,fn){return function(){var args=Array.prototype.slice.call(arguments);return fn.apply(null,[_eachLimit(limit)].concat(args))}};var doSeries=function(fn){return function(){var args=Array.prototype.slice.call(arguments);return fn.apply(null,[async.eachSeries].concat(args))}};var _asyncMap=function(eachfn,arr,iterator,callback){arr=_map(arr,function(x,i){return{index:i,value:x}});if(!callback){eachfn(arr,function(x,callback){iterator(x.value,function(err){callback(err)})})}else{var results=[];eachfn(arr,function(x,callback){iterator(x.value,function(err,v){results[x.index]=v;callback(err)})},function(err){callback(err,results)})}};async.map=doParallel(_asyncMap);async.mapSeries=doSeries(_asyncMap);async.mapLimit=function(arr,limit,iterator,callback){return _mapLimit(limit)(arr,iterator,callback)};var _mapLimit=function(limit){return doParallelLimit(limit,_asyncMap)};async.reduce=function(arr,memo,iterator,callback){async.eachSeries(arr,function(x,callback){iterator(memo,x,function(err,v){memo=v;callback(err)})},function(err){callback(err,memo)})};async.inject=async.reduce;async.foldl=async.reduce;async.reduceRight=function(arr,memo,iterator,callback){var reversed=_map(arr,function(x){return x}).reverse();async.reduce(reversed,memo,iterator,callback)};async.foldr=async.reduceRight;var _filter=function(eachfn,arr,iterator,callback){var results=[];arr=_map(arr,function(x,i){return{index:i,value:x}});eachfn(arr,function(x,callback){iterator(x.value,function(v){if(v){results.push(x)}callback()})},function(err){callback(_map(results.sort(function(a,b){return a.index-b.index}),function(x){return x.value}))})};async.filter=doParallel(_filter);async.filterSeries=doSeries(_filter);async.select=async.filter;async.selectSeries=async.filterSeries;var _reject=function(eachfn,arr,iterator,callback){var results=[];arr=_map(arr,function(x,i){return{index:i,value:x}});eachfn(arr,function(x,callback){iterator(x.value,function(v){if(!v){results.push(x)}callback()})},function(err){callback(_map(results.sort(function(a,b){return a.index-b.index}),function(x){return x.value}))})};async.reject=doParallel(_reject);async.rejectSeries=doSeries(_reject);var _detect=function(eachfn,arr,iterator,main_callback){eachfn(arr,function(x,callback){iterator(x,function(result){if(result){main_callback(x);main_callback=function(){}}else{callback()}})},function(err){main_callback()})};async.detect=doParallel(_detect);async.detectSeries=doSeries(_detect);async.some=function(arr,iterator,main_callback){async.each(arr,function(x,callback){iterator(x,function(v){if(v){main_callback(true);main_callback=function(){}}callback()})},function(err){main_callback(false)})};async.any=async.some;async.every=function(arr,iterator,main_callback){async.each(arr,function(x,callback){iterator(x,function(v){if(!v){main_callback(false);main_callback=function(){}}callback()})},function(err){main_callback(true)})};async.all=async.every;async.sortBy=function(arr,iterator,callback){async.map(arr,function(x,callback){iterator(x,function(err,criteria){if(err){callback(err)}else{callback(null,{value:x,criteria:criteria})}})},function(err,results){if(err){return callback(err)}else{var fn=function(left,right){var a=left.criteria,b=right.criteria;return ab?1:0};callback(null,_map(results.sort(fn),function(x){return x.value}))}})};async.auto=function(tasks,callback){callback=callback||function(){};var keys=_keys(tasks);var remainingTasks=keys.length;if(!remainingTasks){return callback()}var results={};var listeners=[];var addListener=function(fn){listeners.unshift(fn)};var removeListener=function(fn){for(var i=0;i>>1);if(compare(item,sequence[mid])>=0){beg=mid}else{end=mid-1}}return beg}function _insert(q,data,priority,callback){if(!q.started){q.started=true}if(!_isArray(data)){data=[data]}if(data.length==0){return async.setImmediate(function(){if(q.drain){q.drain()}})}_each(data,function(task){var item={data:task,priority:priority,callback:typeof callback==="function"?callback:null};q.tasks.splice(_binarySearch(q.tasks,item,_compareTasks)+1,0,item);if(q.saturated&&q.tasks.length===q.concurrency){q.saturated()}async.setImmediate(q.process)})}var q=async.queue(worker,concurrency);q.push=function(data,priority,callback){_insert(q,data,priority,callback)};delete q.unshift;return q};async.cargo=function(worker,payload){var working=false,tasks=[];var cargo={tasks:tasks,payload:payload,saturated:null,empty:null,drain:null,drained:true,push:function(data,callback){if(!_isArray(data)){data=[data]}_each(data,function(task){tasks.push({data:task,callback:typeof callback==="function"?callback:null});cargo.drained=false;if(cargo.saturated&&tasks.length===payload){cargo.saturated()}});async.setImmediate(cargo.process)},process:function process(){if(working)return;if(tasks.length===0){if(cargo.drain&&!cargo.drained)cargo.drain();cargo.drained=true;return}var ts=typeof payload==="number"?tasks.splice(0,payload):tasks.splice(0,tasks.length);var ds=_map(ts,function(task){return task.data});if(cargo.empty)cargo.empty();working=true;worker(ds,function(){working=false;var args=arguments;_each(ts,function(data){if(data.callback){data.callback.apply(null,args)}});process()})},length:function(){return tasks.length},running:function(){return working}};return cargo};var _console_fn=function(name){return function(fn){var args=Array.prototype.slice.call(arguments,1);fn.apply(null,args.concat([function(err){var args=Array.prototype.slice.call(arguments,1);if(typeof console!=="undefined"){if(err){if(console.error){console.error(err)}}else if(console[name]){_each(args,function(x){console[name](x)})}}}]))}};async.log=_console_fn("log");async.dir=_console_fn("dir");async.memoize=function(fn,hasher){var memo={};var queues={};hasher=hasher||function(x){return x};var memoized=function(){var args=Array.prototype.slice.call(arguments);var callback=args.pop();var key=hasher.apply(null,args);if(key in memo){async.nextTick(function(){callback.apply(null,memo[key])})}else if(key in queues){queues[key].push(callback)}else{queues[key]=[callback];fn.apply(null,args.concat([function(){memo[key]=arguments;var q=queues[key];delete queues[key];for(var i=0,l=q.length;i2){var args=Array.prototype.slice.call(arguments,2);return go.apply(this,args)}else{return go}};async.applyEach=doParallel(_applyEach);async.applyEachSeries=doSeries(_applyEach);async.forever=function(fn,callback){function next(err){if(err){if(callback){return callback(err)}throw err}fn(next)}next()};if(typeof module!=="undefined"&&module.exports){module.exports=async}else if(typeof define!=="undefined"&&define.amd){define([],function(){return async})}else{root.async=async}})()}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/superagent/node_modules/form-data/node_modules/async/lib/async.js","/node_modules/deep-resource/node_modules/superagent/node_modules/form-data/node_modules/async/lib")},{_process:379,buffer:230}],"aws-sdk":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("./core");AWS.apiLoader=function(svc,version){return AWS.apiLoader.services[svc][version]};AWS.apiLoader.services={};AWS.XML.Parser=require("./xml/browser_parser");require("./http/xhr");if(typeof window!=="undefined")window.AWS=AWS;if(typeof module!=="undefined")module.exports=AWS;AWS.apiLoader.services["cloudwatch"]={};AWS.CloudWatch=AWS.Service.defineService("cloudwatch",["2010-08-01"]);AWS.apiLoader.services["cloudwatch"]["2010-08-01"]={metadata:{apiVersion:"2010-08-01",endpointPrefix:"monitoring",serviceAbbreviation:"CloudWatch",serviceFullName:"Amazon CloudWatch",signatureVersion:"v4",xmlNamespace:"http://monitoring.amazonaws.com/doc/2010-08-01/",protocol:"query"},operations:{DeleteAlarms:{input:{type:"structure",required:["AlarmNames"],members:{AlarmNames:{shape:"S2"}}},http:{}},DescribeAlarmHistory:{input:{type:"structure",members:{AlarmName:{},HistoryItemType:{},StartDate:{type:"timestamp"},EndDate:{type:"timestamp"},MaxRecords:{type:"integer"},NextToken:{}}},output:{resultWrapper:"DescribeAlarmHistoryResult",type:"structure",members:{AlarmHistoryItems:{type:"list",member:{type:"structure",members:{AlarmName:{},Timestamp:{type:"timestamp"},HistoryItemType:{},HistorySummary:{},HistoryData:{}}}},NextToken:{}}},http:{}},DescribeAlarms:{input:{type:"structure",members:{AlarmNames:{shape:"S2"},AlarmNamePrefix:{},StateValue:{},ActionPrefix:{},MaxRecords:{type:"integer"},NextToken:{}}},output:{resultWrapper:"DescribeAlarmsResult",type:"structure",members:{MetricAlarms:{shape:"Sj"},NextToken:{}}},http:{}},DescribeAlarmsForMetric:{input:{type:"structure",required:["MetricName","Namespace"],members:{MetricName:{},Namespace:{},Statistic:{},Dimensions:{shape:"Sv"},Period:{type:"integer"},Unit:{}}},output:{resultWrapper:"DescribeAlarmsForMetricResult",type:"structure",members:{MetricAlarms:{shape:"Sj"}}},http:{}},DisableAlarmActions:{input:{type:"structure",required:["AlarmNames"],members:{AlarmNames:{shape:"S2"}}},http:{}},EnableAlarmActions:{input:{type:"structure",required:["AlarmNames"],members:{AlarmNames:{shape:"S2"}}},http:{}},GetMetricStatistics:{input:{type:"structure",required:["Namespace","MetricName","StartTime","EndTime","Period","Statistics"],members:{Namespace:{},MetricName:{},Dimensions:{shape:"Sv"},StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},Period:{type:"integer"},Statistics:{type:"list",member:{}},Unit:{}}},output:{resultWrapper:"GetMetricStatisticsResult",type:"structure",members:{Label:{},Datapoints:{type:"list",member:{type:"structure",members:{Timestamp:{type:"timestamp"},SampleCount:{type:"double"},Average:{type:"double"},Sum:{type:"double"},Minimum:{type:"double"},Maximum:{type:"double"},Unit:{}},xmlOrder:["Timestamp","SampleCount","Average","Sum","Minimum","Maximum","Unit"]}}}},http:{}},ListMetrics:{input:{type:"structure",members:{Namespace:{},MetricName:{},Dimensions:{type:"list",member:{type:"structure",required:["Name"],members:{Name:{},Value:{}}}},NextToken:{}}},output:{xmlOrder:["Metrics","NextToken"],resultWrapper:"ListMetricsResult",type:"structure",members:{Metrics:{type:"list",member:{type:"structure",members:{Namespace:{},MetricName:{},Dimensions:{shape:"Sv"}},xmlOrder:["Namespace","MetricName","Dimensions"]}},NextToken:{}}},http:{}},PutMetricAlarm:{input:{type:"structure",required:["AlarmName","MetricName","Namespace","Statistic","Period","EvaluationPeriods","Threshold","ComparisonOperator"],members:{AlarmName:{},AlarmDescription:{},ActionsEnabled:{type:"boolean"},OKActions:{shape:"So"},AlarmActions:{shape:"So"},InsufficientDataActions:{shape:"So"},MetricName:{},Namespace:{},Statistic:{},Dimensions:{shape:"Sv"},Period:{type:"integer"},Unit:{},EvaluationPeriods:{type:"integer"},Threshold:{type:"double"},ComparisonOperator:{}}},http:{}},PutMetricData:{input:{type:"structure",required:["Namespace","MetricData"],members:{Namespace:{},MetricData:{type:"list",member:{type:"structure",required:["MetricName"],members:{MetricName:{},Dimensions:{shape:"Sv"},Timestamp:{type:"timestamp"},Value:{type:"double"},StatisticValues:{type:"structure",required:["SampleCount","Sum","Minimum","Maximum"],members:{SampleCount:{type:"double"},Sum:{type:"double"},Minimum:{type:"double"},Maximum:{type:"double"}}},Unit:{}}}}}},http:{}},SetAlarmState:{input:{type:"structure",required:["AlarmName","StateValue","StateReason"],members:{AlarmName:{},StateValue:{},StateReason:{},StateReasonData:{}}},http:{}}},shapes:{S2:{type:"list",member:{}},Sj:{type:"list",member:{type:"structure",members:{AlarmName:{},AlarmArn:{},AlarmDescription:{},AlarmConfigurationUpdatedTimestamp:{type:"timestamp"},ActionsEnabled:{type:"boolean"},OKActions:{shape:"So"},AlarmActions:{shape:"So"},InsufficientDataActions:{shape:"So"},StateValue:{},StateReason:{},StateReasonData:{},StateUpdatedTimestamp:{type:"timestamp"},MetricName:{},Namespace:{},Statistic:{},Dimensions:{shape:"Sv"},Period:{type:"integer"},Unit:{},EvaluationPeriods:{type:"integer"},Threshold:{type:"double"},ComparisonOperator:{}},xmlOrder:["AlarmName","AlarmArn","AlarmDescription","AlarmConfigurationUpdatedTimestamp","ActionsEnabled","OKActions","AlarmActions","InsufficientDataActions","StateValue","StateReason","StateReasonData","StateUpdatedTimestamp","MetricName","Namespace","Statistic","Dimensions","Period","Unit","EvaluationPeriods","Threshold","ComparisonOperator"]}},So:{type:"list",member:{}},Sv:{type:"list",member:{type:"structure",required:["Name","Value"],members:{Name:{},Value:{}},xmlOrder:["Name","Value"]}}},paginators:{DescribeAlarmHistory:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxRecords",result_key:"AlarmHistoryItems"},DescribeAlarms:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxRecords",result_key:"MetricAlarms"},DescribeAlarmsForMetric:{result_key:"MetricAlarms"},ListMetrics:{input_token:"NextToken",output_token:"NextToken",result_key:"Metrics"}}};AWS.apiLoader.services["cloudwatchlogs"]={};AWS.CloudWatchLogs=AWS.Service.defineService("cloudwatchlogs",["2014-03-28"]);AWS.apiLoader.services["cloudwatchlogs"]["2014-03-28"]={version:"2.0",metadata:{apiVersion:"2014-03-28",endpointPrefix:"logs",jsonVersion:"1.1",serviceFullName:"Amazon CloudWatch Logs",signatureVersion:"v4",targetPrefix:"Logs_20140328",protocol:"json"},operations:{CreateLogGroup:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{}}},http:{}},CreateLogStream:{input:{type:"structure",required:["logGroupName","logStreamName"],members:{logGroupName:{},logStreamName:{}}},http:{}},DeleteDestination:{input:{type:"structure",required:["destinationName"],members:{destinationName:{}}},http:{}},DeleteLogGroup:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{}}},http:{}},DeleteLogStream:{input:{type:"structure",required:["logGroupName","logStreamName"],members:{logGroupName:{},logStreamName:{}}},http:{}},DeleteMetricFilter:{input:{type:"structure",required:["logGroupName","filterName"],members:{logGroupName:{},filterName:{}}},http:{}},DeleteRetentionPolicy:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{}}},http:{}},DeleteSubscriptionFilter:{input:{type:"structure",required:["logGroupName","filterName"],members:{logGroupName:{},filterName:{}}},http:{}},DescribeDestinations:{input:{type:"structure",members:{DestinationNamePrefix:{},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{destinations:{type:"list",member:{shape:"Si"}},nextToken:{}}},http:{}},DescribeLogGroups:{input:{type:"structure",members:{logGroupNamePrefix:{},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{logGroups:{type:"list",member:{type:"structure",members:{logGroupName:{},creationTime:{type:"long"},retentionInDays:{type:"integer"},metricFilterCount:{type:"integer"},arn:{},storedBytes:{type:"long"}}}},nextToken:{}}},http:{}},DescribeLogStreams:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{},logStreamNamePrefix:{},orderBy:{},descending:{type:"boolean"},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{logStreams:{type:"list",member:{type:"structure",members:{logStreamName:{},creationTime:{type:"long"},firstEventTimestamp:{type:"long"},lastEventTimestamp:{type:"long"},lastIngestionTime:{type:"long"},uploadSequenceToken:{},arn:{},storedBytes:{type:"long"}}}},nextToken:{}}},http:{}},DescribeMetricFilters:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{},filterNamePrefix:{},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{metricFilters:{type:"list",member:{type:"structure",members:{filterName:{},filterPattern:{},metricTransformations:{shape:"S17"},creationTime:{type:"long"}}}},nextToken:{}}},http:{}},DescribeSubscriptionFilters:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{},filterNamePrefix:{},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{subscriptionFilters:{type:"list",member:{type:"structure",members:{filterName:{},logGroupName:{},filterPattern:{},destinationArn:{},roleArn:{},creationTime:{type:"long"}}}},nextToken:{}}},http:{}},FilterLogEvents:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{},logStreamNames:{type:"list",member:{}},startTime:{type:"long"},endTime:{type:"long"},filterPattern:{},nextToken:{},limit:{type:"integer"},interleaved:{type:"boolean"}}},output:{type:"structure",members:{events:{type:"list",member:{type:"structure",members:{logStreamName:{},timestamp:{type:"long"},message:{},ingestionTime:{type:"long"},eventId:{}}}},searchedLogStreams:{type:"list",member:{type:"structure",members:{logStreamName:{},searchedCompletely:{type:"boolean"}}}},nextToken:{}}},http:{}},GetLogEvents:{input:{type:"structure",required:["logGroupName","logStreamName"],members:{logGroupName:{},logStreamName:{},startTime:{type:"long"},endTime:{type:"long"},nextToken:{},limit:{type:"integer"},startFromHead:{type:"boolean"}}},output:{type:"structure",members:{events:{type:"list",member:{type:"structure",members:{timestamp:{type:"long"},message:{},ingestionTime:{type:"long"}}}},nextForwardToken:{},nextBackwardToken:{}}},http:{}},PutDestination:{input:{type:"structure",required:["destinationName","targetArn","roleArn"],members:{destinationName:{},targetArn:{},roleArn:{}}},output:{type:"structure",members:{destination:{shape:"Si"}}},http:{}},PutDestinationPolicy:{input:{type:"structure",required:["destinationName","accessPolicy"],members:{destinationName:{},accessPolicy:{}}},http:{}},PutLogEvents:{input:{type:"structure",required:["logGroupName","logStreamName","logEvents"],members:{logGroupName:{},logStreamName:{},logEvents:{type:"list",member:{type:"structure",required:["timestamp","message"],members:{timestamp:{type:"long"},message:{}}}},sequenceToken:{}}},output:{type:"structure",members:{nextSequenceToken:{},rejectedLogEventsInfo:{type:"structure",members:{tooNewLogEventStartIndex:{type:"integer"},tooOldLogEventEndIndex:{type:"integer"},expiredLogEventEndIndex:{type:"integer"}}}}},http:{}},PutMetricFilter:{input:{type:"structure",required:["logGroupName","filterName","filterPattern","metricTransformations"],members:{logGroupName:{},filterName:{},filterPattern:{},metricTransformations:{shape:"S17"}}},http:{}},PutRetentionPolicy:{input:{type:"structure",required:["logGroupName","retentionInDays"],members:{logGroupName:{},retentionInDays:{type:"integer"}}},http:{}},PutSubscriptionFilter:{input:{type:"structure",required:["logGroupName","filterName","filterPattern","destinationArn"],members:{logGroupName:{},filterName:{},filterPattern:{},destinationArn:{},roleArn:{}}},http:{}},TestMetricFilter:{input:{type:"structure",required:["filterPattern","logEventMessages"],members:{filterPattern:{},logEventMessages:{type:"list",member:{}}}},output:{type:"structure",members:{matches:{type:"list",member:{type:"structure",members:{eventNumber:{type:"long"},eventMessage:{},extractedValues:{type:"map",key:{},value:{}}}}}}},http:{}}},shapes:{Si:{type:"structure",members:{destinationName:{},targetArn:{},roleArn:{},accessPolicy:{},arn:{},creationTime:{type:"long"}}},S17:{type:"list",member:{type:"structure",required:["metricName","metricNamespace","metricValue"],members:{metricName:{},metricNamespace:{},metricValue:{}}}}},examples:{},paginators:{DescribeDestinations:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:"destinations"},DescribeLogGroups:{input_token:"nextToken", +output_token:"nextToken",limit_key:"limit",result_key:"logGroups"},DescribeLogStreams:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:"logStreams"},DescribeMetricFilters:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:"metricFilters"},DescribeSubscriptionFilters:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:"subscriptionFilters"},FilterLogEvents:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:["events","searchedLogStreams"]},GetLogEvents:{input_token:"nextToken",output_token:"nextForwardToken",limit_key:"limit",result_key:"events"}}};AWS.apiLoader.services["cognitoidentity"]={};AWS.CognitoIdentity=AWS.Service.defineService("cognitoidentity",["2014-06-30"]);require("./services/cognitoidentity");AWS.apiLoader.services["cognitoidentity"]["2014-06-30"]={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-identity",jsonVersion:"1.1",serviceFullName:"Amazon Cognito Identity",signatureVersion:"v4",targetPrefix:"AWSCognitoIdentityService",protocol:"json"},operations:{CreateIdentityPool:{input:{type:"structure",required:["IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},SupportedLoginProviders:{shape:"S4"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S8"}}},output:{shape:"Sa"},http:{}},DeleteIdentities:{input:{type:"structure",required:["IdentityIdsToDelete"],members:{IdentityIdsToDelete:{type:"list",member:{}}}},output:{type:"structure",members:{UnprocessedIdentityIds:{type:"list",member:{type:"structure",members:{IdentityId:{},ErrorCode:{}}}}}},http:{}},DeleteIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},http:{}},DescribeIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{}}},output:{shape:"Sl"},http:{}},DescribeIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{shape:"Sa"},http:{}},GetCredentialsForIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"Sq"}}},output:{type:"structure",members:{IdentityId:{},Credentials:{type:"structure",members:{AccessKeyId:{},SecretKey:{},SessionToken:{},Expiration:{type:"timestamp"}}}}},http:{}},GetId:{input:{type:"structure",required:["IdentityPoolId"],members:{AccountId:{},IdentityPoolId:{},Logins:{shape:"Sq"}}},output:{type:"structure",members:{IdentityId:{}}},http:{}},GetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{type:"structure",members:{IdentityPoolId:{},Roles:{shape:"S12"}}},http:{}},GetOpenIdToken:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"Sq"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}},http:{}},GetOpenIdTokenForDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId","Logins"],members:{IdentityPoolId:{},IdentityId:{},Logins:{shape:"Sq"},TokenDuration:{type:"long"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}},http:{}},ListIdentities:{input:{type:"structure",required:["IdentityPoolId","MaxResults"],members:{IdentityPoolId:{},MaxResults:{type:"integer"},NextToken:{},HideDisabled:{type:"boolean"}}},output:{type:"structure",members:{IdentityPoolId:{},Identities:{type:"list",member:{shape:"Sl"}},NextToken:{}}},http:{}},ListIdentityPools:{input:{type:"structure",required:["MaxResults"],members:{MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityPools:{type:"list",member:{type:"structure",members:{IdentityPoolId:{},IdentityPoolName:{}}}},NextToken:{}}},http:{}},LookupDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{},IdentityId:{},DeveloperUserIdentifier:{},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityId:{},DeveloperUserIdentifierList:{type:"list",member:{}},NextToken:{}}},http:{}},MergeDeveloperIdentities:{input:{type:"structure",required:["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],members:{SourceUserIdentifier:{},DestinationUserIdentifier:{},DeveloperProviderName:{},IdentityPoolId:{}}},output:{type:"structure",members:{IdentityId:{}}},http:{}},SetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId","Roles"],members:{IdentityPoolId:{},Roles:{shape:"S12"}}},http:{}},UnlinkDeveloperIdentity:{input:{type:"structure",required:["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],members:{IdentityId:{},IdentityPoolId:{},DeveloperProviderName:{},DeveloperUserIdentifier:{}}},http:{}},UnlinkIdentity:{input:{type:"structure",required:["IdentityId","Logins","LoginsToRemove"],members:{IdentityId:{},Logins:{shape:"Sq"},LoginsToRemove:{shape:"Sm"}}},http:{}},UpdateIdentityPool:{input:{shape:"Sa"},output:{shape:"Sa"},http:{}}},shapes:{S4:{type:"map",key:{},value:{}},S8:{type:"list",member:{}},Sa:{type:"structure",required:["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolId:{},IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},SupportedLoginProviders:{shape:"S4"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S8"}}},Sl:{type:"structure",members:{IdentityId:{},Logins:{shape:"Sm"},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"}}},Sm:{type:"list",member:{}},Sq:{type:"map",key:{},value:{}},S12:{type:"map",key:{},value:{}}}};AWS.apiLoader.services["cognitosync"]={};AWS.CognitoSync=AWS.Service.defineService("cognitosync",["2014-06-30"]);AWS.apiLoader.services["cognitosync"]["2014-06-30"]={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-sync",jsonVersion:"1.1",serviceFullName:"Amazon Cognito Sync",signatureVersion:"v4",protocol:"rest-json"},operations:{BulkPublish:{http:{requestUri:"/identitypools/{IdentityPoolId}/bulkpublish",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{IdentityPoolId:{}}}},DeleteDataset:{http:{method:"DELETE",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"}}},output:{type:"structure",members:{Dataset:{shape:"S8"}}}},DescribeDataset:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"}}},output:{type:"structure",members:{Dataset:{shape:"S8"}}}},DescribeIdentityPoolUsage:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{IdentityPoolUsage:{shape:"Sg"}}}},DescribeIdentityUsage:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"}}},output:{type:"structure",members:{IdentityUsage:{type:"structure",members:{IdentityId:{},IdentityPoolId:{},LastModifiedDate:{type:"timestamp"},DatasetCount:{type:"integer"},DataStorage:{type:"long"}}}}}},GetBulkPublishDetails:{http:{requestUri:"/identitypools/{IdentityPoolId}/getBulkPublishDetails",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{IdentityPoolId:{},BulkPublishStartTime:{type:"timestamp"},BulkPublishCompleteTime:{type:"timestamp"},BulkPublishStatus:{},FailureMessage:{}}}},GetCognitoEvents:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/events",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{Events:{shape:"Sq"}}}},GetIdentityPoolConfiguration:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/configuration",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{IdentityPoolId:{},PushSync:{shape:"Sv"},CognitoStreams:{shape:"Sz"}}}},ListDatasets:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets",responseCode:200},input:{type:"structure",required:["IdentityId","IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},NextToken:{location:"querystring",locationName:"nextToken"},MaxResults:{location:"querystring",locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{Datasets:{type:"list",member:{shape:"S8"}},Count:{type:"integer"},NextToken:{}}}},ListIdentityPoolUsage:{http:{method:"GET",requestUri:"/identitypools",responseCode:200},input:{type:"structure",members:{NextToken:{location:"querystring",locationName:"nextToken"},MaxResults:{location:"querystring",locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{IdentityPoolUsages:{type:"list",member:{shape:"Sg"}},MaxResults:{type:"integer"},Count:{type:"integer"},NextToken:{}}}},ListRecords:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"},LastSyncCount:{location:"querystring",locationName:"lastSyncCount",type:"long"},NextToken:{location:"querystring",locationName:"nextToken"},MaxResults:{location:"querystring",locationName:"maxResults",type:"integer"},SyncSessionToken:{location:"querystring",locationName:"syncSessionToken"}}},output:{type:"structure",members:{Records:{shape:"S1c"},NextToken:{},Count:{type:"integer"},DatasetSyncCount:{type:"long"},LastModifiedBy:{},MergedDatasetNames:{type:"list",member:{}},DatasetExists:{type:"boolean"},DatasetDeletedAfterRequestedSyncCount:{type:"boolean"},SyncSessionToken:{}}}},RegisterDevice:{http:{requestUri:"/identitypools/{IdentityPoolId}/identity/{IdentityId}/device",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","Platform","Token"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},Platform:{},Token:{}}},output:{type:"structure",members:{DeviceId:{}}}},SetCognitoEvents:{http:{requestUri:"/identitypools/{IdentityPoolId}/events",responseCode:200},input:{type:"structure",required:["IdentityPoolId","Events"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},Events:{shape:"Sq"}}}},SetIdentityPoolConfiguration:{http:{requestUri:"/identitypools/{IdentityPoolId}/configuration",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},PushSync:{shape:"Sv"},CognitoStreams:{shape:"Sz"}}},output:{type:"structure",members:{IdentityPoolId:{},PushSync:{shape:"Sv"},CognitoStreams:{shape:"Sz"}}}},SubscribeToDataset:{http:{requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName","DeviceId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"},DeviceId:{location:"uri",locationName:"DeviceId"}}},output:{type:"structure",members:{}}},UnsubscribeFromDataset:{http:{method:"DELETE",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName","DeviceId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"},DeviceId:{location:"uri",locationName:"DeviceId"}}},output:{type:"structure",members:{}}},UpdateRecords:{http:{requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName","SyncSessionToken"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"},DeviceId:{},RecordPatches:{type:"list",member:{type:"structure",required:["Op","Key","SyncCount"],members:{Op:{},Key:{},Value:{},SyncCount:{type:"long"},DeviceLastModifiedDate:{type:"timestamp"}}}},SyncSessionToken:{},ClientContext:{location:"header",locationName:"x-amz-Client-Context"}}},output:{type:"structure",members:{Records:{shape:"S1c"}}}}},shapes:{S8:{type:"structure",members:{IdentityId:{},DatasetName:{},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"},LastModifiedBy:{},DataStorage:{type:"long"},NumRecords:{type:"long"}}},Sg:{type:"structure",members:{IdentityPoolId:{},SyncSessionsCount:{type:"long"},DataStorage:{type:"long"},LastModifiedDate:{type:"timestamp"}}},Sq:{type:"map",key:{},value:{}},Sv:{type:"structure",members:{ApplicationArns:{type:"list",member:{}},RoleArn:{}}},Sz:{type:"structure",members:{StreamName:{},RoleArn:{},StreamingStatus:{}}},S1c:{type:"list",member:{type:"structure",members:{Key:{},Value:{},SyncCount:{type:"long"},LastModifiedDate:{type:"timestamp"},LastModifiedBy:{},DeviceLastModifiedDate:{type:"timestamp"}}}}}};AWS.apiLoader.services["devicefarm"]={};AWS.DeviceFarm=AWS.Service.defineService("devicefarm",["2015-06-23"]);AWS.apiLoader.services["devicefarm"]["2015-06-23"]={version:"2.0",metadata:{apiVersion:"2015-06-23",endpointPrefix:"devicefarm",jsonVersion:"1.1",serviceFullName:"AWS Device Farm",signatureVersion:"v4",targetPrefix:"DeviceFarm_20150623",protocol:"json"},operations:{CreateDevicePool:{input:{type:"structure",required:["projectArn","name","rules"],members:{projectArn:{},name:{},description:{},rules:{shape:"S5"}}},output:{type:"structure",members:{devicePool:{shape:"Sb"}}},http:{}},CreateProject:{input:{type:"structure",required:["name"],members:{name:{}}},output:{type:"structure",members:{project:{shape:"Sf"}}},http:{}},CreateUpload:{input:{type:"structure",required:["projectArn","name","type"],members:{projectArn:{},name:{},type:{},contentType:{}}},output:{type:"structure",members:{upload:{shape:"Sl"}}},http:{}},GetAccountSettings:{input:{type:"structure",members:{}},output:{type:"structure",members:{accountSettings:{type:"structure",members:{awsAccountNumber:{},unmeteredDevices:{type:"map",key:{},value:{type:"integer"}}}}}},http:{}},GetDevice:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{device:{shape:"Sy"}}},http:{}},GetDevicePool:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{devicePool:{shape:"Sb"}}},http:{}},GetDevicePoolCompatibility:{input:{type:"structure",required:["devicePoolArn","appArn"],members:{devicePoolArn:{},appArn:{},testType:{}}},output:{type:"structure",members:{compatibleDevices:{shape:"S19"},incompatibleDevices:{shape:"S19"}}},http:{}},GetJob:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{job:{shape:"S1g"}}},http:{}},GetProject:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{project:{shape:"Sf"}}},http:{}},GetRun:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{run:{shape:"S1o"}}},http:{}},GetSuite:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{suite:{shape:"S1s"}}},http:{}},GetTest:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{test:{shape:"S1v"}}},http:{}},GetUpload:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{upload:{shape:"Sl"}}},http:{}},ListArtifacts:{input:{type:"structure",required:["arn","type"],members:{arn:{},type:{},nextToken:{}}},output:{type:"structure",members:{artifacts:{type:"list",member:{type:"structure",members:{arn:{},name:{},type:{},extension:{},url:{}}}},nextToken:{}}},http:{}},ListDevicePools:{input:{type:"structure",required:["arn"],members:{arn:{},type:{},nextToken:{}}},output:{type:"structure",members:{devicePools:{type:"list",member:{shape:"Sb"}},nextToken:{}}},http:{}},ListDevices:{input:{type:"structure",members:{arn:{},nextToken:{}}},output:{type:"structure",members:{devices:{type:"list",member:{shape:"Sy"}},nextToken:{}}},http:{}},ListJobs:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{jobs:{type:"list",member:{shape:"S1g"}},nextToken:{}}},http:{}},ListProjects:{input:{type:"structure",members:{arn:{},nextToken:{}}},output:{type:"structure",members:{projects:{type:"list",member:{shape:"Sf"}},nextToken:{}}},http:{}},ListRuns:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{runs:{type:"list",member:{shape:"S1o"}},nextToken:{}}},http:{}},ListSamples:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{samples:{type:"list",member:{type:"structure",members:{arn:{},type:{},url:{}}}},nextToken:{}}},http:{}},ListSuites:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{suites:{type:"list",member:{shape:"S1s"}},nextToken:{}}},http:{}},ListTests:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{tests:{type:"list",member:{shape:"S1v"}},nextToken:{}}},http:{}},ListUniqueProblems:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{uniqueProblems:{type:"map",key:{},value:{type:"list",member:{type:"structure",members:{message:{},problems:{type:"list",member:{type:"structure",members:{run:{shape:"S32"},job:{shape:"S32"},suite:{shape:"S32"},test:{shape:"S32"},device:{shape:"Sy"},result:{},message:{}}}}}}}},nextToken:{}}},http:{}},ListUploads:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{uploads:{type:"list",member:{shape:"Sl"}},nextToken:{}}},http:{}},ScheduleRun:{input:{type:"structure",required:["projectArn","appArn","devicePoolArn","test"],members:{projectArn:{},appArn:{},devicePoolArn:{},name:{},test:{type:"structure",required:["type"],members:{type:{},testPackageArn:{},filter:{},parameters:{type:"map",key:{},value:{}}}},configuration:{type:"structure",members:{extraDataPackageArn:{},networkProfileArn:{},locale:{},location:{type:"structure",required:["latitude","longitude"],members:{latitude:{type:"double"},longitude:{type:"double"}}},radios:{type:"structure",members:{wifi:{type:"boolean"},bluetooth:{type:"boolean"},nfc:{type:"boolean"},gps:{type:"boolean"}}},auxiliaryApps:{type:"list",member:{}},billingMethod:{}}}}},output:{type:"structure",members:{run:{shape:"S1o"}}},http:{}}},shapes:{S5:{type:"list",member:{type:"structure",members:{attribute:{},operator:{},value:{}}}},Sb:{type:"structure",members:{arn:{},name:{},description:{},type:{},rules:{shape:"S5"}}},Sf:{type:"structure",members:{arn:{},name:{},created:{type:"timestamp"}}},Sl:{type:"structure",members:{arn:{},name:{},created:{type:"timestamp"},type:{},status:{},url:{},metadata:{},contentType:{},message:{}}},Sy:{type:"structure",members:{arn:{},name:{},manufacturer:{},model:{},formFactor:{},platform:{},os:{},cpu:{type:"structure",members:{frequency:{},architecture:{},clock:{type:"double"}}},resolution:{type:"structure",members:{width:{type:"integer"},height:{type:"integer"}}},heapSize:{type:"long"},memory:{type:"long"},image:{},carrier:{},radio:{}}},S19:{type:"list",member:{type:"structure",members:{device:{shape:"Sy"},compatible:{type:"boolean"},incompatibilityMessages:{type:"list",member:{type:"structure",members:{message:{},type:{}}}}}}},S1g:{type:"structure",members:{arn:{},name:{},type:{},created:{type:"timestamp"},status:{},result:{},started:{type:"timestamp"},stopped:{type:"timestamp"},counters:{shape:"S1j"},message:{},device:{shape:"Sy"}}},S1j:{type:"structure",members:{total:{type:"integer"},passed:{type:"integer"},failed:{type:"integer"},warned:{type:"integer"},errored:{type:"integer"},stopped:{type:"integer"},skipped:{type:"integer"}}},S1o:{type:"structure",members:{arn:{},name:{},type:{},platform:{},created:{type:"timestamp"},status:{},result:{},started:{type:"timestamp"},stopped:{type:"timestamp"},counters:{shape:"S1j"},message:{},totalJobs:{type:"integer"},completedJobs:{type:"integer"},billingMethod:{}}},S1s:{type:"structure",members:{arn:{},name:{},type:{},created:{type:"timestamp"},status:{},result:{},started:{type:"timestamp"},stopped:{type:"timestamp"},counters:{shape:"S1j"},message:{}}},S1v:{type:"structure",members:{arn:{},name:{},type:{},created:{type:"timestamp"},status:{},result:{},started:{type:"timestamp"},stopped:{type:"timestamp"},counters:{shape:"S1j"},message:{}}},S32:{type:"structure",members:{arn:{},name:{}}}},examples:{},paginators:{ListArtifacts:{input_token:"nextToken",output_token:"nextToken",result_key:"artifacts"},ListDevicePools:{input_token:"nextToken",output_token:"nextToken",result_key:"devicePools"},ListDevices:{input_token:"nextToken",output_token:"nextToken",result_key:"devices"},ListJobs:{input_token:"nextToken",output_token:"nextToken",result_key:"jobs"},ListProjects:{input_token:"nextToken",output_token:"nextToken",result_key:"projects"},ListRuns:{input_token:"nextToken",output_token:"nextToken",result_key:"runs"},ListSamples:{input_token:"nextToken",output_token:"nextToken",result_key:"samples"},ListSuites:{input_token:"nextToken",output_token:"nextToken",result_key:"suites"},ListTests:{input_token:"nextToken",output_token:"nextToken",result_key:"tests"},ListUniqueProblems:{input_token:"nextToken",output_token:"nextToken",result_key:"uniqueProblems"},ListUploads:{input_token:"nextToken",output_token:"nextToken",result_key:"uploads"}}};AWS.apiLoader.services["dynamodb"]={};AWS.DynamoDB=AWS.Service.defineService("dynamodb",["2011-12-05","2012-08-10"]);require("./services/dynamodb");AWS.apiLoader.services["dynamodb"]["2012-08-10"]={version:"2.0",metadata:{apiVersion:"2012-08-10",endpointPrefix:"dynamodb",jsonVersion:"1.0",serviceAbbreviation:"DynamoDB",serviceFullName:"Amazon DynamoDB",signatureVersion:"v4",targetPrefix:"DynamoDB_20120810",protocol:"json"},operations:{BatchGetItem:{input:{type:"structure",required:["RequestItems"],members:{RequestItems:{shape:"S2"},ReturnConsumedCapacity:{}}},output:{type:"structure",members:{Responses:{type:"map",key:{},value:{shape:"Sr"}},UnprocessedKeys:{shape:"S2"},ConsumedCapacity:{shape:"St"}}},http:{}},BatchWriteItem:{input:{type:"structure",required:["RequestItems"],members:{RequestItems:{shape:"S10"},ReturnConsumedCapacity:{},ReturnItemCollectionMetrics:{}}},output:{type:"structure",members:{UnprocessedItems:{shape:"S10"},ItemCollectionMetrics:{type:"map",key:{},value:{type:"list",member:{shape:"S1a"}}},ConsumedCapacity:{shape:"St"}}},http:{}},CreateTable:{input:{type:"structure",required:["AttributeDefinitions","TableName","KeySchema","ProvisionedThroughput"],members:{AttributeDefinitions:{shape:"S1f"},TableName:{},KeySchema:{shape:"S1j"},LocalSecondaryIndexes:{type:"list",member:{type:"structure",required:["IndexName","KeySchema","Projection"],members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"}}}},GlobalSecondaryIndexes:{type:"list",member:{type:"structure",required:["IndexName","KeySchema","Projection","ProvisionedThroughput"],members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"},ProvisionedThroughput:{shape:"S1u"}}}},ProvisionedThroughput:{shape:"S1u"},StreamSpecification:{shape:"S1w"}}},output:{type:"structure",members:{TableDescription:{shape:"S20"}}},http:{}},DeleteItem:{input:{type:"structure",required:["TableName","Key"],members:{TableName:{},Key:{shape:"S6"},Expected:{shape:"S2e"},ConditionalOperator:{},ReturnValues:{},ReturnConsumedCapacity:{},ReturnItemCollectionMetrics:{},ConditionExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"}}},output:{type:"structure",members:{Attributes:{shape:"Ss"},ConsumedCapacity:{shape:"Su"},ItemCollectionMetrics:{shape:"S1a"}}},http:{}},DeleteTable:{input:{type:"structure",required:["TableName"],members:{TableName:{}}},output:{type:"structure",members:{TableDescription:{shape:"S20"}}},http:{}},DescribeTable:{input:{type:"structure",required:["TableName"],members:{TableName:{}}},output:{type:"structure",members:{Table:{shape:"S20"}}},http:{}},GetItem:{input:{type:"structure",required:["TableName","Key"],members:{TableName:{},Key:{shape:"S6"},AttributesToGet:{shape:"Sj"},ConsistentRead:{type:"boolean"},ReturnConsumedCapacity:{},ProjectionExpression:{},ExpressionAttributeNames:{shape:"Sm"}}},output:{type:"structure",members:{Item:{shape:"Ss"},ConsumedCapacity:{shape:"Su"}}},http:{}},ListTables:{input:{type:"structure",members:{ExclusiveStartTableName:{},Limit:{type:"integer"}}},output:{type:"structure",members:{TableNames:{type:"list",member:{}},LastEvaluatedTableName:{}}},http:{}},PutItem:{input:{type:"structure",required:["TableName","Item"],members:{TableName:{},Item:{shape:"S14"},Expected:{shape:"S2e"},ReturnValues:{},ReturnConsumedCapacity:{},ReturnItemCollectionMetrics:{},ConditionalOperator:{},ConditionExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"}}},output:{type:"structure",members:{Attributes:{shape:"Ss"},ConsumedCapacity:{shape:"Su"},ItemCollectionMetrics:{shape:"S1a"}}},http:{}},Query:{input:{type:"structure",required:["TableName"],members:{TableName:{},IndexName:{},Select:{},AttributesToGet:{shape:"Sj"},Limit:{type:"integer"},ConsistentRead:{type:"boolean"},KeyConditions:{type:"map",key:{},value:{shape:"S35"}},QueryFilter:{shape:"S36"},ConditionalOperator:{},ScanIndexForward:{type:"boolean"},ExclusiveStartKey:{shape:"S6"},ReturnConsumedCapacity:{},ProjectionExpression:{},FilterExpression:{},KeyConditionExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"}}},output:{type:"structure",members:{Items:{shape:"Sr"},Count:{type:"integer"},ScannedCount:{type:"integer"},LastEvaluatedKey:{shape:"S6"},ConsumedCapacity:{shape:"Su"}}},http:{}},Scan:{input:{type:"structure",required:["TableName"],members:{TableName:{},IndexName:{},AttributesToGet:{shape:"Sj"},Limit:{type:"integer"},Select:{},ScanFilter:{shape:"S36"},ConditionalOperator:{},ExclusiveStartKey:{shape:"S6"},ReturnConsumedCapacity:{},TotalSegments:{type:"integer"},Segment:{type:"integer"},ProjectionExpression:{},FilterExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"},ConsistentRead:{type:"boolean"}}},output:{type:"structure",members:{Items:{shape:"Sr"},Count:{type:"integer"},ScannedCount:{type:"integer"},LastEvaluatedKey:{shape:"S6"},ConsumedCapacity:{shape:"Su"}}},http:{}},UpdateItem:{input:{type:"structure",required:["TableName","Key"],members:{TableName:{},Key:{shape:"S6"},AttributeUpdates:{type:"map",key:{},value:{type:"structure",members:{Value:{shape:"S8"},Action:{}}}},Expected:{shape:"S2e"},ConditionalOperator:{},ReturnValues:{},ReturnConsumedCapacity:{},ReturnItemCollectionMetrics:{},UpdateExpression:{},ConditionExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"}}},output:{type:"structure",members:{Attributes:{shape:"Ss"},ConsumedCapacity:{shape:"Su"},ItemCollectionMetrics:{shape:"S1a"}}},http:{}},UpdateTable:{input:{type:"structure",required:["TableName"],members:{AttributeDefinitions:{shape:"S1f"},TableName:{},ProvisionedThroughput:{shape:"S1u"},GlobalSecondaryIndexUpdates:{type:"list",member:{type:"structure",members:{Update:{type:"structure",required:["IndexName","ProvisionedThroughput"],members:{IndexName:{},ProvisionedThroughput:{shape:"S1u"}}},Create:{type:"structure",required:["IndexName","KeySchema","Projection","ProvisionedThroughput"],members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"},ProvisionedThroughput:{shape:"S1u"}}},Delete:{type:"structure",required:["IndexName"],members:{IndexName:{}}}}}},StreamSpecification:{shape:"S1w"}}},output:{type:"structure",members:{TableDescription:{shape:"S20"}}},http:{}}},shapes:{S2:{type:"map",key:{},value:{type:"structure",required:["Keys"],members:{Keys:{type:"list",member:{shape:"S6"}},AttributesToGet:{shape:"Sj"},ConsistentRead:{type:"boolean"},ProjectionExpression:{},ExpressionAttributeNames:{shape:"Sm"}}}},S6:{type:"map",key:{},value:{shape:"S8"}},S8:{type:"structure",members:{S:{},N:{},B:{type:"blob"},SS:{type:"list",member:{}},NS:{type:"list",member:{}},BS:{type:"list",member:{type:"blob"}},M:{type:"map",key:{},value:{shape:"S8"}},L:{type:"list",member:{shape:"S8"}},NULL:{type:"boolean"},BOOL:{type:"boolean"}}},Sj:{type:"list",member:{}},Sm:{type:"map",key:{},value:{}},Sr:{type:"list",member:{shape:"Ss"}},Ss:{type:"map",key:{},value:{shape:"S8"}},St:{type:"list",member:{shape:"Su"}},Su:{type:"structure",members:{TableName:{},CapacityUnits:{type:"double"},Table:{shape:"Sw"},LocalSecondaryIndexes:{shape:"Sx"},GlobalSecondaryIndexes:{shape:"Sx"}}},Sw:{type:"structure",members:{CapacityUnits:{type:"double"}}},Sx:{type:"map",key:{},value:{shape:"Sw"}},S10:{type:"map",key:{},value:{type:"list",member:{type:"structure",members:{PutRequest:{type:"structure",required:["Item"],members:{Item:{shape:"S14"}}},DeleteRequest:{type:"structure",required:["Key"],members:{Key:{shape:"S6"}}}}}}},S14:{type:"map",key:{},value:{shape:"S8"}},S1a:{type:"structure",members:{ItemCollectionKey:{type:"map",key:{},value:{shape:"S8"}},SizeEstimateRangeGB:{type:"list",member:{type:"double"}}}},S1f:{type:"list",member:{type:"structure",required:["AttributeName","AttributeType"],members:{AttributeName:{},AttributeType:{}}}},S1j:{type:"list",member:{type:"structure",required:["AttributeName","KeyType"],members:{AttributeName:{},KeyType:{}}}},S1o:{type:"structure",members:{ProjectionType:{},NonKeyAttributes:{type:"list",member:{}}}},S1u:{type:"structure",required:["ReadCapacityUnits","WriteCapacityUnits"],members:{ReadCapacityUnits:{type:"long"},WriteCapacityUnits:{type:"long"}}},S1w:{type:"structure",members:{StreamEnabled:{type:"boolean"},StreamViewType:{}}},S20:{type:"structure",members:{AttributeDefinitions:{shape:"S1f"},TableName:{},KeySchema:{shape:"S1j"},TableStatus:{},CreationDateTime:{type:"timestamp"},ProvisionedThroughput:{shape:"S23"},TableSizeBytes:{type:"long"},ItemCount:{type:"long"},TableArn:{},LocalSecondaryIndexes:{type:"list",member:{type:"structure",members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"},IndexSizeBytes:{type:"long"},ItemCount:{type:"long"},IndexArn:{}}}}, +GlobalSecondaryIndexes:{type:"list",member:{type:"structure",members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"},IndexStatus:{},Backfilling:{type:"boolean"},ProvisionedThroughput:{shape:"S23"},IndexSizeBytes:{type:"long"},ItemCount:{type:"long"},IndexArn:{}}}},StreamSpecification:{shape:"S1w"},LatestStreamLabel:{},LatestStreamArn:{}}},S23:{type:"structure",members:{LastIncreaseDateTime:{type:"timestamp"},LastDecreaseDateTime:{type:"timestamp"},NumberOfDecreasesToday:{type:"long"},ReadCapacityUnits:{type:"long"},WriteCapacityUnits:{type:"long"}}},S2e:{type:"map",key:{},value:{type:"structure",members:{Value:{shape:"S8"},Exists:{type:"boolean"},ComparisonOperator:{},AttributeValueList:{shape:"S2i"}}}},S2i:{type:"list",member:{shape:"S8"}},S2m:{type:"map",key:{},value:{shape:"S8"}},S35:{type:"structure",required:["ComparisonOperator"],members:{AttributeValueList:{shape:"S2i"},ComparisonOperator:{}}},S36:{type:"map",key:{},value:{shape:"S35"}}},examples:{},paginators:{BatchGetItem:{input_token:"RequestItems",output_token:"UnprocessedKeys"},ListTables:{input_token:"ExclusiveStartTableName",output_token:"LastEvaluatedTableName",limit_key:"Limit",result_key:"TableNames"},Query:{input_token:"ExclusiveStartKey",output_token:"LastEvaluatedKey",limit_key:"Limit",result_key:"Items"},Scan:{input_token:"ExclusiveStartKey",output_token:"LastEvaluatedKey",limit_key:"Limit",result_key:"Items"}},waiters:{__default__:{interval:20,max_attempts:25},__TableState:{operation:"DescribeTable"},TableExists:{"extends":"__TableState",ignore_errors:["ResourceNotFoundException"],success_type:"output",success_path:"Table.TableStatus",success_value:"ACTIVE"},TableNotExists:{"extends":"__TableState",success_type:"error",success_value:"ResourceNotFoundException"}}};AWS.apiLoader.services["dynamodbstreams"]={};AWS.DynamoDBStreams=AWS.Service.defineService("dynamodbstreams",["2012-08-10"]);AWS.apiLoader.services["dynamodbstreams"]["2012-08-10"]={version:"2.0",metadata:{apiVersion:"2012-08-10",endpointPrefix:"streams.dynamodb",jsonVersion:"1.0",serviceFullName:"Amazon DynamoDB Streams",signatureVersion:"v4",signingName:"dynamodb",targetPrefix:"DynamoDBStreams_20120810",protocol:"json"},operations:{DescribeStream:{input:{type:"structure",required:["StreamArn"],members:{StreamArn:{},Limit:{type:"integer"},ExclusiveStartShardId:{}}},output:{type:"structure",members:{StreamDescription:{type:"structure",members:{StreamArn:{},StreamLabel:{},StreamStatus:{},StreamViewType:{},CreationRequestDateTime:{type:"timestamp"},TableName:{},KeySchema:{type:"list",member:{type:"structure",required:["AttributeName","KeyType"],members:{AttributeName:{},KeyType:{}}}},Shards:{type:"list",member:{type:"structure",members:{ShardId:{},SequenceNumberRange:{type:"structure",members:{StartingSequenceNumber:{},EndingSequenceNumber:{}}},ParentShardId:{}}}},LastEvaluatedShardId:{}}}}},http:{}},GetRecords:{input:{type:"structure",required:["ShardIterator"],members:{ShardIterator:{},Limit:{type:"integer"}}},output:{type:"structure",members:{Records:{type:"list",member:{type:"structure",members:{eventID:{},eventName:{},eventVersion:{},eventSource:{},awsRegion:{},dynamodb:{type:"structure",members:{Keys:{shape:"Sr"},NewImage:{shape:"Sr"},OldImage:{shape:"Sr"},SequenceNumber:{},SizeBytes:{type:"long"},StreamViewType:{}}}}}},NextShardIterator:{}}},http:{}},GetShardIterator:{input:{type:"structure",required:["StreamArn","ShardId","ShardIteratorType"],members:{StreamArn:{},ShardId:{},ShardIteratorType:{},SequenceNumber:{}}},output:{type:"structure",members:{ShardIterator:{}}},http:{}},ListStreams:{input:{type:"structure",members:{TableName:{},Limit:{type:"integer"},ExclusiveStartStreamArn:{}}},output:{type:"structure",members:{Streams:{type:"list",member:{type:"structure",members:{StreamArn:{},TableName:{},StreamLabel:{}}}},LastEvaluatedStreamArn:{}}},http:{}}},shapes:{Sr:{type:"map",key:{},value:{shape:"St"}},St:{type:"structure",members:{S:{},N:{},B:{type:"blob"},SS:{type:"list",member:{}},NS:{type:"list",member:{}},BS:{type:"list",member:{type:"blob"}},M:{type:"map",key:{},value:{shape:"St"}},L:{type:"list",member:{shape:"St"}},NULL:{type:"boolean"},BOOL:{type:"boolean"}}}},examples:{}};AWS.apiLoader.services["ec2"]={};AWS.EC2=AWS.Service.defineService("ec2",["2015-04-15"]);require("./services/ec2");AWS.apiLoader.services["ec2"]["2015-04-15"]={version:"2.0",metadata:{apiVersion:"2015-04-15",endpointPrefix:"ec2",serviceAbbreviation:"Amazon EC2",serviceFullName:"Amazon Elastic Compute Cloud",signatureVersion:"v4",xmlNamespace:"http://ec2.amazonaws.com/doc/2015-04-15",protocol:"ec2"},operations:{AcceptVpcPeeringConnection:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{VpcPeeringConnection:{shape:"S5",locationName:"vpcPeeringConnection"}}},http:{}},AllocateAddress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},Domain:{}}},output:{type:"structure",members:{PublicIp:{locationName:"publicIp"},Domain:{locationName:"domain"},AllocationId:{locationName:"allocationId"}}},http:{}},AssignPrivateIpAddresses:{input:{type:"structure",required:["NetworkInterfaceId"],members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIpAddresses:{shape:"Sg",locationName:"privateIpAddress"},SecondaryPrivateIpAddressCount:{locationName:"secondaryPrivateIpAddressCount",type:"integer"},AllowReassignment:{locationName:"allowReassignment",type:"boolean"}}},http:{}},AssociateAddress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{},PublicIp:{},AllocationId:{},NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIpAddress:{locationName:"privateIpAddress"},AllowReassociation:{locationName:"allowReassociation",type:"boolean"}}},output:{type:"structure",members:{AssociationId:{locationName:"associationId"}}},http:{}},AssociateDhcpOptions:{input:{type:"structure",required:["DhcpOptionsId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},DhcpOptionsId:{},VpcId:{}}},http:{}},AssociateRouteTable:{input:{type:"structure",required:["SubnetId","RouteTableId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SubnetId:{locationName:"subnetId"},RouteTableId:{locationName:"routeTableId"}}},output:{type:"structure",members:{AssociationId:{locationName:"associationId"}}},http:{}},AttachClassicLinkVpc:{input:{type:"structure",required:["InstanceId","VpcId","Groups"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},VpcId:{locationName:"vpcId"},Groups:{shape:"So",locationName:"SecurityGroupId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},AttachInternetGateway:{input:{type:"structure",required:["InternetGatewayId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayId:{locationName:"internetGatewayId"},VpcId:{locationName:"vpcId"}}},http:{}},AttachNetworkInterface:{input:{type:"structure",required:["NetworkInterfaceId","InstanceId","DeviceIndex"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},InstanceId:{locationName:"instanceId"},DeviceIndex:{locationName:"deviceIndex",type:"integer"}}},output:{type:"structure",members:{AttachmentId:{locationName:"attachmentId"}}},http:{}},AttachVolume:{input:{type:"structure",required:["VolumeId","InstanceId","Device"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},InstanceId:{},Device:{}}},output:{shape:"Su",locationName:"attachment"},http:{}},AttachVpnGateway:{input:{type:"structure",required:["VpnGatewayId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnGatewayId:{},VpcId:{}}},output:{type:"structure",members:{VpcAttachment:{shape:"Sy",locationName:"attachment"}}},http:{}},AuthorizeSecurityGroupEgress:{input:{type:"structure",required:["GroupId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupId:{locationName:"groupId"},SourceSecurityGroupName:{locationName:"sourceSecurityGroupName"},SourceSecurityGroupOwnerId:{locationName:"sourceSecurityGroupOwnerId"},IpProtocol:{locationName:"ipProtocol"},FromPort:{locationName:"fromPort",type:"integer"},ToPort:{locationName:"toPort",type:"integer"},CidrIp:{locationName:"cidrIp"},IpPermissions:{shape:"S11",locationName:"ipPermissions"}}},http:{}},AuthorizeSecurityGroupIngress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{},GroupId:{},SourceSecurityGroupName:{},SourceSecurityGroupOwnerId:{},IpProtocol:{},FromPort:{type:"integer"},ToPort:{type:"integer"},CidrIp:{},IpPermissions:{shape:"S11"}}},http:{}},BundleInstance:{input:{type:"structure",required:["InstanceId","Storage"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{},Storage:{shape:"S1b"}}},output:{type:"structure",members:{BundleTask:{shape:"S1f",locationName:"bundleInstanceTask"}}},http:{}},CancelBundleTask:{input:{type:"structure",required:["BundleId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},BundleId:{}}},output:{type:"structure",members:{BundleTask:{shape:"S1f",locationName:"bundleInstanceTask"}}},http:{}},CancelConversionTask:{input:{type:"structure",required:["ConversionTaskId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ConversionTaskId:{locationName:"conversionTaskId"},ReasonMessage:{locationName:"reasonMessage"}}},http:{}},CancelExportTask:{input:{type:"structure",required:["ExportTaskId"],members:{ExportTaskId:{locationName:"exportTaskId"}}},http:{}},CancelImportTask:{input:{type:"structure",members:{DryRun:{type:"boolean"},ImportTaskId:{},CancelReason:{}}},output:{type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},State:{locationName:"state"},PreviousState:{locationName:"previousState"}}},http:{}},CancelReservedInstancesListing:{input:{type:"structure",required:["ReservedInstancesListingId"],members:{ReservedInstancesListingId:{locationName:"reservedInstancesListingId"}}},output:{type:"structure",members:{ReservedInstancesListings:{shape:"S1q",locationName:"reservedInstancesListingsSet"}}},http:{}},CancelSpotFleetRequests:{input:{type:"structure",required:["SpotFleetRequestIds","TerminateInstances"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestIds:{shape:"S22",locationName:"spotFleetRequestId"},TerminateInstances:{locationName:"terminateInstances",type:"boolean"}}},output:{type:"structure",members:{UnsuccessfulFleetRequests:{locationName:"unsuccessfulFleetRequestSet",type:"list",member:{locationName:"item",type:"structure",required:["SpotFleetRequestId","Error"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},Error:{locationName:"error",type:"structure",required:["Code","Message"],members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}}},SuccessfulFleetRequests:{locationName:"successfulFleetRequestSet",type:"list",member:{locationName:"item",type:"structure",required:["SpotFleetRequestId","CurrentSpotFleetRequestState","PreviousSpotFleetRequestState"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},CurrentSpotFleetRequestState:{locationName:"currentSpotFleetRequestState"},PreviousSpotFleetRequestState:{locationName:"previousSpotFleetRequestState"}}}}}},http:{}},CancelSpotInstanceRequests:{input:{type:"structure",required:["SpotInstanceRequestIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotInstanceRequestIds:{shape:"S2c",locationName:"SpotInstanceRequestId"}}},output:{type:"structure",members:{CancelledSpotInstanceRequests:{locationName:"spotInstanceRequestSet",type:"list",member:{locationName:"item",type:"structure",members:{SpotInstanceRequestId:{locationName:"spotInstanceRequestId"},State:{locationName:"state"}}}}}},http:{}},ConfirmProductInstance:{input:{type:"structure",required:["ProductCode","InstanceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ProductCode:{},InstanceId:{}}},output:{type:"structure",members:{OwnerId:{locationName:"ownerId"},Return:{locationName:"return",type:"boolean"}}},http:{}},CopyImage:{input:{type:"structure",required:["SourceRegion","SourceImageId","Name"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SourceRegion:{},SourceImageId:{},Name:{},Description:{},ClientToken:{}}},output:{type:"structure",members:{ImageId:{locationName:"imageId"}}},http:{}},CopySnapshot:{input:{type:"structure",required:["SourceRegion","SourceSnapshotId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SourceRegion:{},SourceSnapshotId:{},Description:{},DestinationRegion:{locationName:"destinationRegion"},PresignedUrl:{locationName:"presignedUrl"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{locationName:"kmsKeyId"}}},output:{type:"structure",members:{SnapshotId:{locationName:"snapshotId"}}},http:{}},CreateCustomerGateway:{input:{type:"structure",required:["Type","PublicIp","BgpAsn"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Type:{},PublicIp:{locationName:"IpAddress"},BgpAsn:{type:"integer"}}},output:{type:"structure",members:{CustomerGateway:{shape:"S2q",locationName:"customerGateway"}}},http:{}},CreateDhcpOptions:{input:{type:"structure",required:["DhcpConfigurations"],members:{DryRun:{locationName:"dryRun",type:"boolean"},DhcpConfigurations:{locationName:"dhcpConfiguration",type:"list",member:{locationName:"item",type:"structure",members:{Key:{locationName:"key"},Values:{shape:"S22",locationName:"Value"}}}}}},output:{type:"structure",members:{DhcpOptions:{shape:"S2v",locationName:"dhcpOptions"}}},http:{}},CreateFlowLogs:{input:{type:"structure",required:["ResourceIds","ResourceType","TrafficType","LogGroupName","DeliverLogsPermissionArn"],members:{ResourceIds:{shape:"S22",locationName:"ResourceId"},ResourceType:{},TrafficType:{},LogGroupName:{},DeliverLogsPermissionArn:{},ClientToken:{}}},output:{type:"structure",members:{FlowLogIds:{shape:"S22",locationName:"flowLogIdSet"},ClientToken:{locationName:"clientToken"},Unsuccessful:{shape:"S34",locationName:"unsuccessful"}}},http:{}},CreateImage:{input:{type:"structure",required:["InstanceId","Name"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},Name:{locationName:"name"},Description:{locationName:"description"},NoReboot:{locationName:"noReboot",type:"boolean"},BlockDeviceMappings:{shape:"S38",locationName:"blockDeviceMapping"}}},output:{type:"structure",members:{ImageId:{locationName:"imageId"}}},http:{}},CreateInstanceExportTask:{input:{type:"structure",required:["InstanceId"],members:{Description:{locationName:"description"},InstanceId:{locationName:"instanceId"},TargetEnvironment:{locationName:"targetEnvironment"},ExportToS3Task:{locationName:"exportToS3",type:"structure",members:{DiskImageFormat:{locationName:"diskImageFormat"},ContainerFormat:{locationName:"containerFormat"},S3Bucket:{locationName:"s3Bucket"},S3Prefix:{locationName:"s3Prefix"}}}}},output:{type:"structure",members:{ExportTask:{shape:"S3j",locationName:"exportTask"}}},http:{}},CreateInternetGateway:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{InternetGateway:{shape:"S3p",locationName:"internetGateway"}}},http:{}},CreateKeyPair:{input:{type:"structure",required:["KeyName"],members:{DryRun:{locationName:"dryRun",type:"boolean"},KeyName:{}}},output:{locationName:"keyPair",type:"structure",members:{KeyName:{locationName:"keyName"},KeyFingerprint:{locationName:"keyFingerprint"},KeyMaterial:{locationName:"keyMaterial"}}},http:{}},CreateNetworkAcl:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{NetworkAcl:{shape:"S3w",locationName:"networkAcl"}}},http:{}},CreateNetworkAclEntry:{input:{type:"structure",required:["NetworkAclId","RuleNumber","Protocol","RuleAction","Egress","CidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclId:{locationName:"networkAclId"},RuleNumber:{locationName:"ruleNumber",type:"integer"},Protocol:{locationName:"protocol"},RuleAction:{locationName:"ruleAction"},Egress:{locationName:"egress",type:"boolean"},CidrBlock:{locationName:"cidrBlock"},IcmpTypeCode:{shape:"S40",locationName:"Icmp"},PortRange:{shape:"S41",locationName:"portRange"}}},http:{}},CreateNetworkInterface:{input:{type:"structure",required:["SubnetId"],members:{SubnetId:{locationName:"subnetId"},Description:{locationName:"description"},PrivateIpAddress:{locationName:"privateIpAddress"},Groups:{shape:"S46",locationName:"SecurityGroupId"},PrivateIpAddresses:{shape:"S47",locationName:"privateIpAddresses"},SecondaryPrivateIpAddressCount:{locationName:"secondaryPrivateIpAddressCount",type:"integer"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{NetworkInterface:{shape:"S4a",locationName:"networkInterface"}}},http:{}},CreatePlacementGroup:{input:{type:"structure",required:["GroupName","Strategy"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{locationName:"groupName"},Strategy:{locationName:"strategy"}}},http:{}},CreateReservedInstancesListing:{input:{type:"structure",required:["ReservedInstancesId","InstanceCount","PriceSchedules","ClientToken"],members:{ReservedInstancesId:{locationName:"reservedInstancesId"},InstanceCount:{locationName:"instanceCount",type:"integer"},PriceSchedules:{locationName:"priceSchedules",type:"list",member:{locationName:"item",type:"structure",members:{Term:{locationName:"term",type:"long"},Price:{locationName:"price",type:"double"},CurrencyCode:{locationName:"currencyCode"}}}},ClientToken:{locationName:"clientToken"}}},output:{type:"structure",members:{ReservedInstancesListings:{shape:"S1q",locationName:"reservedInstancesListingsSet"}}},http:{}},CreateRoute:{input:{type:"structure",required:["RouteTableId","DestinationCidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"},DestinationCidrBlock:{locationName:"destinationCidrBlock"},GatewayId:{locationName:"gatewayId"},InstanceId:{locationName:"instanceId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},CreateRouteTable:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{RouteTable:{shape:"S4s",locationName:"routeTable"}}},http:{}},CreateSecurityGroup:{input:{type:"structure",required:["GroupName","Description"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{},Description:{locationName:"GroupDescription"},VpcId:{}}},output:{type:"structure",members:{GroupId:{locationName:"groupId"}}},http:{}},CreateSnapshot:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},Description:{}}},output:{shape:"S54",locationName:"snapshot"},http:{}},CreateSpotDatafeedSubscription:{input:{type:"structure",required:["Bucket"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Bucket:{locationName:"bucket"},Prefix:{locationName:"prefix"}}},output:{type:"structure",members:{SpotDatafeedSubscription:{shape:"S58",locationName:"spotDatafeedSubscription"}}},http:{}},CreateSubnet:{input:{type:"structure",required:["VpcId","CidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{},CidrBlock:{},AvailabilityZone:{}}},output:{type:"structure",members:{Subnet:{shape:"S5d",locationName:"subnet"}}},http:{}},CreateTags:{input:{type:"structure",required:["Resources","Tags"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Resources:{shape:"S5g",locationName:"ResourceId"},Tags:{shape:"Sa",locationName:"Tag"}}},http:{}},CreateVolume:{input:{type:"structure",required:["AvailabilityZone"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Size:{type:"integer"},SnapshotId:{},AvailabilityZone:{},VolumeType:{},Iops:{type:"integer"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{}}},output:{shape:"S5i",locationName:"volume"},http:{}},CreateVpc:{input:{type:"structure",required:["CidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},CidrBlock:{},InstanceTenancy:{locationName:"instanceTenancy"}}},output:{type:"structure",members:{Vpc:{shape:"S5o",locationName:"vpc"}}},http:{}},CreateVpcEndpoint:{input:{type:"structure",required:["VpcId","ServiceName"],members:{DryRun:{type:"boolean"},VpcId:{},ServiceName:{},PolicyDocument:{},RouteTableIds:{shape:"S22",locationName:"RouteTableId"},ClientToken:{}}},output:{type:"structure",members:{VpcEndpoint:{shape:"S5s",locationName:"vpcEndpoint"},ClientToken:{locationName:"clientToken"}}},http:{}},CreateVpcPeeringConnection:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"},PeerVpcId:{locationName:"peerVpcId"},PeerOwnerId:{locationName:"peerOwnerId"}}},output:{type:"structure",members:{VpcPeeringConnection:{shape:"S5",locationName:"vpcPeeringConnection"}}},http:{}},CreateVpnConnection:{input:{type:"structure",required:["Type","CustomerGatewayId","VpnGatewayId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Type:{},CustomerGatewayId:{},VpnGatewayId:{},Options:{locationName:"options",type:"structure",members:{StaticRoutesOnly:{locationName:"staticRoutesOnly",type:"boolean"}}}}},output:{type:"structure",members:{VpnConnection:{shape:"S5z",locationName:"vpnConnection"}}},http:{}},CreateVpnConnectionRoute:{input:{type:"structure",required:["VpnConnectionId","DestinationCidrBlock"],members:{VpnConnectionId:{},DestinationCidrBlock:{}}},http:{}},CreateVpnGateway:{input:{type:"structure",required:["Type"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Type:{},AvailabilityZone:{}}},output:{type:"structure",members:{VpnGateway:{shape:"S6b",locationName:"vpnGateway"}}},http:{}},DeleteCustomerGateway:{input:{type:"structure",required:["CustomerGatewayId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},CustomerGatewayId:{}}},http:{}},DeleteDhcpOptions:{input:{type:"structure",required:["DhcpOptionsId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},DhcpOptionsId:{}}},http:{}},DeleteFlowLogs:{input:{type:"structure",required:["FlowLogIds"],members:{FlowLogIds:{shape:"S22",locationName:"FlowLogId"}}},output:{type:"structure",members:{Unsuccessful:{shape:"S34",locationName:"unsuccessful"}}},http:{}},DeleteInternetGateway:{input:{type:"structure",required:["InternetGatewayId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayId:{locationName:"internetGatewayId"}}},http:{}},DeleteKeyPair:{input:{type:"structure",required:["KeyName"],members:{DryRun:{locationName:"dryRun",type:"boolean"},KeyName:{}}},http:{}},DeleteNetworkAcl:{input:{type:"structure",required:["NetworkAclId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclId:{locationName:"networkAclId"}}},http:{}},DeleteNetworkAclEntry:{input:{type:"structure",required:["NetworkAclId","RuleNumber","Egress"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclId:{locationName:"networkAclId"},RuleNumber:{locationName:"ruleNumber",type:"integer"},Egress:{locationName:"egress",type:"boolean"}}},http:{}},DeleteNetworkInterface:{input:{type:"structure",required:["NetworkInterfaceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"}}},http:{}},DeletePlacementGroup:{input:{type:"structure",required:["GroupName"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{locationName:"groupName"}}},http:{}},DeleteRoute:{input:{type:"structure",required:["RouteTableId","DestinationCidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"},DestinationCidrBlock:{locationName:"destinationCidrBlock"}}},http:{}},DeleteRouteTable:{input:{type:"structure",required:["RouteTableId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"}}},http:{}},DeleteSecurityGroup:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{},GroupId:{}}},http:{}},DeleteSnapshot:{input:{type:"structure",required:["SnapshotId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotId:{}}},http:{}},DeleteSpotDatafeedSubscription:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"}}},http:{}},DeleteSubnet:{input:{type:"structure",required:["SubnetId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SubnetId:{}}},http:{}},DeleteTags:{input:{type:"structure",required:["Resources"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Resources:{shape:"S5g",locationName:"resourceId"},Tags:{shape:"Sa",locationName:"tag"}}},http:{}},DeleteVolume:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{}}},http:{}},DeleteVpc:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{}}},http:{}},DeleteVpcEndpoints:{input:{type:"structure",required:["VpcEndpointIds"],members:{DryRun:{type:"boolean"},VpcEndpointIds:{shape:"S22",locationName:"VpcEndpointId"}}},output:{type:"structure",members:{Unsuccessful:{shape:"S34",locationName:"unsuccessful"}}},http:{}},DeleteVpcPeeringConnection:{input:{type:"structure",required:["VpcPeeringConnectionId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},DeleteVpnConnection:{input:{type:"structure",required:["VpnConnectionId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnConnectionId:{}}},http:{}},DeleteVpnConnectionRoute:{input:{type:"structure",required:["VpnConnectionId","DestinationCidrBlock"],members:{VpnConnectionId:{},DestinationCidrBlock:{}}},http:{}},DeleteVpnGateway:{input:{type:"structure",required:["VpnGatewayId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnGatewayId:{}}},http:{}},DeregisterImage:{input:{type:"structure",required:["ImageId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{}}},http:{}},DescribeAccountAttributes:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},AttributeNames:{locationName:"attributeName",type:"list",member:{locationName:"attributeName"}}}},output:{type:"structure",members:{AccountAttributes:{locationName:"accountAttributeSet",type:"list",member:{locationName:"item",type:"structure",members:{AttributeName:{locationName:"attributeName"},AttributeValues:{locationName:"attributeValueSet",type:"list",member:{locationName:"item",type:"structure",members:{AttributeValue:{locationName:"attributeValue"}}}}}}}}},http:{}},DescribeAddresses:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIps:{locationName:"PublicIp",type:"list",member:{locationName:"PublicIp"}},Filters:{shape:"S7e",locationName:"Filter"},AllocationIds:{locationName:"AllocationId",type:"list",member:{locationName:"AllocationId"}}}},output:{type:"structure",members:{Addresses:{locationName:"addressesSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},PublicIp:{locationName:"publicIp"},AllocationId:{locationName:"allocationId"},AssociationId:{locationName:"associationId"},Domain:{locationName:"domain"},NetworkInterfaceId:{locationName:"networkInterfaceId"},NetworkInterfaceOwnerId:{locationName:"networkInterfaceOwnerId"},PrivateIpAddress:{locationName:"privateIpAddress"}}}}}},http:{}},DescribeAvailabilityZones:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},ZoneNames:{locationName:"ZoneName",type:"list",member:{locationName:"ZoneName"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{AvailabilityZones:{locationName:"availabilityZoneInfo",type:"list",member:{locationName:"item",type:"structure",members:{ZoneName:{locationName:"zoneName"},State:{locationName:"zoneState"},RegionName:{locationName:"regionName"},Messages:{locationName:"messageSet",type:"list",member:{locationName:"item",type:"structure",members:{Message:{locationName:"message"}}}}}}}}},http:{}},DescribeBundleTasks:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},BundleIds:{locationName:"BundleId",type:"list",member:{locationName:"BundleId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{BundleTasks:{locationName:"bundleInstanceTasksSet",type:"list",member:{shape:"S1f",locationName:"item"}}}},http:{}},DescribeClassicLinkInstances:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"},Filters:{shape:"S7e",locationName:"Filter"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{Instances:{locationName:"instancesSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},VpcId:{locationName:"vpcId"},Groups:{shape:"S4c",locationName:"groupSet"},Tags:{shape:"Sa",locationName:"tagSet"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeConversionTasks:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},Filters:{shape:"S7e",locationName:"filter"},ConversionTaskIds:{locationName:"conversionTaskId",type:"list",member:{locationName:"item"}}}},output:{type:"structure",members:{ConversionTasks:{locationName:"conversionTasks",type:"list",member:{shape:"S85",locationName:"item"}}}},http:{}},DescribeCustomerGateways:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},CustomerGatewayIds:{locationName:"CustomerGatewayId",type:"list",member:{locationName:"CustomerGatewayId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{CustomerGateways:{locationName:"customerGatewaySet",type:"list",member:{shape:"S2q",locationName:"item"}}}},http:{}},DescribeDhcpOptions:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},DhcpOptionsIds:{locationName:"DhcpOptionsId",type:"list",member:{locationName:"DhcpOptionsId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{DhcpOptions:{locationName:"dhcpOptionsSet",type:"list",member:{shape:"S2v",locationName:"item"}}}},http:{}},DescribeExportTasks:{input:{type:"structure",members:{ExportTaskIds:{locationName:"exportTaskId",type:"list",member:{locationName:"ExportTaskId"}}}},output:{type:"structure",members:{ExportTasks:{locationName:"exportTaskSet",type:"list",member:{shape:"S3j",locationName:"item"}}}},http:{}},DescribeFlowLogs:{input:{type:"structure",members:{FlowLogIds:{shape:"S22",locationName:"FlowLogId"},Filter:{shape:"S7e"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{FlowLogs:{locationName:"flowLogSet",type:"list",member:{locationName:"item",type:"structure",members:{CreationTime:{locationName:"creationTime",type:"timestamp"},FlowLogId:{locationName:"flowLogId"},FlowLogStatus:{locationName:"flowLogStatus"},ResourceId:{locationName:"resourceId"},TrafficType:{locationName:"trafficType"},LogGroupName:{locationName:"logGroupName"},DeliverLogsStatus:{locationName:"deliverLogsStatus"},DeliverLogsErrorMessage:{locationName:"deliverLogsErrorMessage"},DeliverLogsPermissionArn:{locationName:"deliverLogsPermissionArn"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeImageAttribute:{input:{type:"structure",required:["ImageId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{},Attribute:{}}},output:{locationName:"imageAttribute",type:"structure",members:{ +ImageId:{locationName:"imageId"},LaunchPermissions:{shape:"S8x",locationName:"launchPermission"},ProductCodes:{shape:"S90",locationName:"productCodes"},KernelId:{shape:"S2z",locationName:"kernel"},RamdiskId:{shape:"S2z",locationName:"ramdisk"},Description:{shape:"S2z",locationName:"description"},SriovNetSupport:{shape:"S2z",locationName:"sriovNetSupport"},BlockDeviceMappings:{shape:"S93",locationName:"blockDeviceMapping"}}},http:{}},DescribeImages:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageIds:{locationName:"ImageId",type:"list",member:{locationName:"ImageId"}},Owners:{shape:"S96",locationName:"Owner"},ExecutableUsers:{locationName:"ExecutableBy",type:"list",member:{locationName:"ExecutableBy"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{Images:{locationName:"imagesSet",type:"list",member:{locationName:"item",type:"structure",members:{ImageId:{locationName:"imageId"},ImageLocation:{locationName:"imageLocation"},State:{locationName:"imageState"},OwnerId:{locationName:"imageOwnerId"},CreationDate:{locationName:"creationDate"},Public:{locationName:"isPublic",type:"boolean"},ProductCodes:{shape:"S90",locationName:"productCodes"},Architecture:{locationName:"architecture"},ImageType:{locationName:"imageType"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},Platform:{locationName:"platform"},SriovNetSupport:{locationName:"sriovNetSupport"},StateReason:{shape:"S9e",locationName:"stateReason"},ImageOwnerAlias:{locationName:"imageOwnerAlias"},Name:{locationName:"name"},Description:{locationName:"description"},RootDeviceType:{locationName:"rootDeviceType"},RootDeviceName:{locationName:"rootDeviceName"},BlockDeviceMappings:{shape:"S93",locationName:"blockDeviceMapping"},VirtualizationType:{locationName:"virtualizationType"},Tags:{shape:"Sa",locationName:"tagSet"},Hypervisor:{locationName:"hypervisor"}}}}}},http:{}},DescribeImportImageTasks:{input:{type:"structure",members:{DryRun:{type:"boolean"},ImportTaskIds:{shape:"S9j",locationName:"ImportTaskId"},NextToken:{},MaxResults:{type:"integer"},Filters:{shape:"S7e"}}},output:{type:"structure",members:{ImportImageTasks:{locationName:"importImageTaskSet",type:"list",member:{locationName:"item",type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},Architecture:{locationName:"architecture"},LicenseType:{locationName:"licenseType"},Platform:{locationName:"platform"},Hypervisor:{locationName:"hypervisor"},Description:{locationName:"description"},SnapshotDetails:{shape:"S9n",locationName:"snapshotDetailSet"},ImageId:{locationName:"imageId"},Progress:{locationName:"progress"},StatusMessage:{locationName:"statusMessage"},Status:{locationName:"status"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeImportSnapshotTasks:{input:{type:"structure",members:{DryRun:{type:"boolean"},ImportTaskIds:{shape:"S9j",locationName:"ImportTaskId"},NextToken:{},MaxResults:{type:"integer"},Filters:{shape:"S7e"}}},output:{type:"structure",members:{ImportSnapshotTasks:{locationName:"importSnapshotTaskSet",type:"list",member:{locationName:"item",type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},SnapshotTaskDetail:{shape:"S9u",locationName:"snapshotTaskDetail"},Description:{locationName:"description"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeInstanceAttribute:{input:{type:"structure",required:["InstanceId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},Attribute:{locationName:"attribute"}}},output:{type:"structure",members:{InstanceId:{locationName:"instanceId"},InstanceType:{shape:"S2z",locationName:"instanceType"},KernelId:{shape:"S2z",locationName:"kernel"},RamdiskId:{shape:"S2z",locationName:"ramdisk"},UserData:{shape:"S2z",locationName:"userData"},DisableApiTermination:{shape:"S9y",locationName:"disableApiTermination"},InstanceInitiatedShutdownBehavior:{shape:"S2z",locationName:"instanceInitiatedShutdownBehavior"},RootDeviceName:{shape:"S2z",locationName:"rootDeviceName"},BlockDeviceMappings:{shape:"S9z",locationName:"blockDeviceMapping"},ProductCodes:{shape:"S90",locationName:"productCodes"},EbsOptimized:{shape:"S9y",locationName:"ebsOptimized"},SriovNetSupport:{shape:"S2z",locationName:"sriovNetSupport"},SourceDestCheck:{shape:"S9y",locationName:"sourceDestCheck"},Groups:{shape:"S4c",locationName:"groupSet"}}},http:{}},DescribeInstanceStatus:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"},Filters:{shape:"S7e",locationName:"Filter"},NextToken:{},MaxResults:{type:"integer"},IncludeAllInstances:{locationName:"includeAllInstances",type:"boolean"}}},output:{type:"structure",members:{InstanceStatuses:{locationName:"instanceStatusSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},AvailabilityZone:{locationName:"availabilityZone"},Events:{locationName:"eventsSet",type:"list",member:{locationName:"item",type:"structure",members:{Code:{locationName:"code"},Description:{locationName:"description"},NotBefore:{locationName:"notBefore",type:"timestamp"},NotAfter:{locationName:"notAfter",type:"timestamp"}}}},InstanceState:{shape:"Sa9",locationName:"instanceState"},SystemStatus:{shape:"Sab",locationName:"systemStatus"},InstanceStatus:{shape:"Sab",locationName:"instanceStatus"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeInstances:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"},Filters:{shape:"S7e",locationName:"Filter"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{Reservations:{locationName:"reservationSet",type:"list",member:{shape:"Sak",locationName:"item"}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeInternetGateways:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayIds:{shape:"S22",locationName:"internetGatewayId"},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{InternetGateways:{locationName:"internetGatewaySet",type:"list",member:{shape:"S3p",locationName:"item"}}}},http:{}},DescribeKeyPairs:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},KeyNames:{locationName:"KeyName",type:"list",member:{locationName:"KeyName"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{KeyPairs:{locationName:"keySet",type:"list",member:{locationName:"item",type:"structure",members:{KeyName:{locationName:"keyName"},KeyFingerprint:{locationName:"keyFingerprint"}}}}}},http:{}},DescribeMovingAddresses:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIps:{shape:"S22",locationName:"publicIp"},NextToken:{locationName:"nextToken"},Filters:{shape:"S7e",locationName:"filter"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{MovingAddressStatuses:{locationName:"movingAddressStatusSet",type:"list",member:{locationName:"item",type:"structure",members:{PublicIp:{locationName:"publicIp"},MoveStatus:{locationName:"moveStatus"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeNetworkAcls:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclIds:{shape:"S22",locationName:"NetworkAclId"},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{NetworkAcls:{locationName:"networkAclSet",type:"list",member:{shape:"S3w",locationName:"item"}}}},http:{}},DescribeNetworkInterfaceAttribute:{input:{type:"structure",required:["NetworkInterfaceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},Attribute:{locationName:"attribute"}}},output:{type:"structure",members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},Description:{shape:"S2z",locationName:"description"},SourceDestCheck:{shape:"S9y",locationName:"sourceDestCheck"},Groups:{shape:"S4c",locationName:"groupSet"},Attachment:{shape:"S4e",locationName:"attachment"}}},http:{}},DescribeNetworkInterfaces:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceIds:{locationName:"NetworkInterfaceId",type:"list",member:{locationName:"item"}},Filters:{shape:"S7e",locationName:"filter"}}},output:{type:"structure",members:{NetworkInterfaces:{locationName:"networkInterfaceSet",type:"list",member:{shape:"S4a",locationName:"item"}}}},http:{}},DescribePlacementGroups:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupNames:{locationName:"groupName",type:"list",member:{}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{PlacementGroups:{locationName:"placementGroupSet",type:"list",member:{locationName:"item",type:"structure",members:{GroupName:{locationName:"groupName"},Strategy:{locationName:"strategy"},State:{locationName:"state"}}}}}},http:{}},DescribePrefixLists:{input:{type:"structure",members:{DryRun:{type:"boolean"},PrefixListIds:{shape:"S22",locationName:"PrefixListId"},Filters:{shape:"S7e",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{PrefixLists:{locationName:"prefixListSet",type:"list",member:{locationName:"item",type:"structure",members:{PrefixListId:{locationName:"prefixListId"},PrefixListName:{locationName:"prefixListName"},Cidrs:{shape:"S22",locationName:"cidrSet"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeRegions:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},RegionNames:{locationName:"RegionName",type:"list",member:{locationName:"RegionName"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{Regions:{locationName:"regionInfo",type:"list",member:{locationName:"item",type:"structure",members:{RegionName:{locationName:"regionName"},Endpoint:{locationName:"regionEndpoint"}}}}}},http:{}},DescribeReservedInstances:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},ReservedInstancesIds:{shape:"Sc2",locationName:"ReservedInstancesId"},Filters:{shape:"S7e",locationName:"Filter"},OfferingType:{locationName:"offeringType"}}},output:{type:"structure",members:{ReservedInstances:{locationName:"reservedInstancesSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"},InstanceType:{locationName:"instanceType"},AvailabilityZone:{locationName:"availabilityZone"},Start:{locationName:"start",type:"timestamp"},End:{locationName:"end",type:"timestamp"},Duration:{locationName:"duration",type:"long"},UsagePrice:{locationName:"usagePrice",type:"float"},FixedPrice:{locationName:"fixedPrice",type:"float"},InstanceCount:{locationName:"instanceCount",type:"integer"},ProductDescription:{locationName:"productDescription"},State:{locationName:"state"},Tags:{shape:"Sa",locationName:"tagSet"},InstanceTenancy:{locationName:"instanceTenancy"},CurrencyCode:{locationName:"currencyCode"},OfferingType:{locationName:"offeringType"},RecurringCharges:{shape:"Sca",locationName:"recurringCharges"}}}}}},http:{}},DescribeReservedInstancesListings:{input:{type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"},ReservedInstancesListingId:{locationName:"reservedInstancesListingId"},Filters:{shape:"S7e",locationName:"filters"}}},output:{type:"structure",members:{ReservedInstancesListings:{shape:"S1q",locationName:"reservedInstancesListingsSet"}}},http:{}},DescribeReservedInstancesModifications:{input:{type:"structure",members:{ReservedInstancesModificationIds:{locationName:"ReservedInstancesModificationId",type:"list",member:{locationName:"ReservedInstancesModificationId"}},NextToken:{locationName:"nextToken"},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{ReservedInstancesModifications:{locationName:"reservedInstancesModificationsSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesModificationId:{locationName:"reservedInstancesModificationId"},ReservedInstancesIds:{locationName:"reservedInstancesSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"}}}},ModificationResults:{locationName:"modificationResultSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"},TargetConfiguration:{shape:"Sco",locationName:"targetConfiguration"}}}},CreateDate:{locationName:"createDate",type:"timestamp"},UpdateDate:{locationName:"updateDate",type:"timestamp"},EffectiveDate:{locationName:"effectiveDate",type:"timestamp"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},ClientToken:{locationName:"clientToken"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeReservedInstancesOfferings:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},ReservedInstancesOfferingIds:{locationName:"ReservedInstancesOfferingId",type:"list",member:{}},InstanceType:{},AvailabilityZone:{},ProductDescription:{},Filters:{shape:"S7e",locationName:"Filter"},InstanceTenancy:{locationName:"instanceTenancy"},OfferingType:{locationName:"offeringType"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"},IncludeMarketplace:{type:"boolean"},MinDuration:{type:"long"},MaxDuration:{type:"long"},MaxInstanceCount:{type:"integer"}}},output:{type:"structure",members:{ReservedInstancesOfferings:{locationName:"reservedInstancesOfferingsSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesOfferingId:{locationName:"reservedInstancesOfferingId"},InstanceType:{locationName:"instanceType"},AvailabilityZone:{locationName:"availabilityZone"},Duration:{locationName:"duration",type:"long"},UsagePrice:{locationName:"usagePrice",type:"float"},FixedPrice:{locationName:"fixedPrice",type:"float"},ProductDescription:{locationName:"productDescription"},InstanceTenancy:{locationName:"instanceTenancy"},CurrencyCode:{locationName:"currencyCode"},OfferingType:{locationName:"offeringType"},RecurringCharges:{shape:"Sca",locationName:"recurringCharges"},Marketplace:{locationName:"marketplace",type:"boolean"},PricingDetails:{locationName:"pricingDetailsSet",type:"list",member:{locationName:"item",type:"structure",members:{Price:{locationName:"price",type:"double"},Count:{locationName:"count",type:"integer"}}}}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeRouteTables:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableIds:{shape:"S22",locationName:"RouteTableId"},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{RouteTables:{locationName:"routeTableSet",type:"list",member:{shape:"S4s",locationName:"item"}}}},http:{}},DescribeSecurityGroups:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupNames:{shape:"Sd0",locationName:"GroupName"},GroupIds:{shape:"So",locationName:"GroupId"},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{SecurityGroups:{locationName:"securityGroupInfo",type:"list",member:{locationName:"item",type:"structure",members:{OwnerId:{locationName:"ownerId"},GroupName:{locationName:"groupName"},GroupId:{locationName:"groupId"},Description:{locationName:"groupDescription"},IpPermissions:{shape:"S11",locationName:"ipPermissions"},IpPermissionsEgress:{shape:"S11",locationName:"ipPermissionsEgress"},VpcId:{locationName:"vpcId"},Tags:{shape:"Sa",locationName:"tagSet"}}}}}},http:{}},DescribeSnapshotAttribute:{input:{type:"structure",required:["SnapshotId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotId:{},Attribute:{}}},output:{type:"structure",members:{SnapshotId:{locationName:"snapshotId"},CreateVolumePermissions:{shape:"Sd7",locationName:"createVolumePermission"},ProductCodes:{shape:"S90",locationName:"productCodes"}}},http:{}},DescribeSnapshots:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotIds:{locationName:"SnapshotId",type:"list",member:{locationName:"SnapshotId"}},OwnerIds:{shape:"S96",locationName:"Owner"},RestorableByUserIds:{locationName:"RestorableBy",type:"list",member:{}},Filters:{shape:"S7e",locationName:"Filter"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{Snapshots:{locationName:"snapshotSet",type:"list",member:{shape:"S54",locationName:"item"}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSpotDatafeedSubscription:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{SpotDatafeedSubscription:{shape:"S58",locationName:"spotDatafeedSubscription"}}},http:{}},DescribeSpotFleetInstances:{input:{type:"structure",required:["SpotFleetRequestId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestId:{locationName:"spotFleetRequestId"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",required:["SpotFleetRequestId","ActiveInstances"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},ActiveInstances:{locationName:"activeInstanceSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceType:{locationName:"instanceType"},InstanceId:{locationName:"instanceId"},SpotInstanceRequestId:{locationName:"spotInstanceRequestId"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSpotFleetRequestHistory:{input:{type:"structure",required:["SpotFleetRequestId","StartTime"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestId:{locationName:"spotFleetRequestId"},EventType:{locationName:"eventType"},StartTime:{locationName:"startTime",type:"timestamp"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",required:["SpotFleetRequestId","StartTime","LastEvaluatedTime","HistoryRecords"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},StartTime:{locationName:"startTime",type:"timestamp"},LastEvaluatedTime:{locationName:"lastEvaluatedTime",type:"timestamp"},HistoryRecords:{locationName:"historyRecordSet",type:"list",member:{locationName:"item",type:"structure",required:["Timestamp","EventType","EventInformation"],members:{Timestamp:{locationName:"timestamp",type:"timestamp"},EventType:{locationName:"eventType"},EventInformation:{locationName:"eventInformation",type:"structure",members:{InstanceId:{locationName:"instanceId"},EventSubType:{locationName:"eventSubType"},EventDescription:{locationName:"eventDescription"}}}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSpotFleetRequests:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestIds:{shape:"S22",locationName:"spotFleetRequestId"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",required:["SpotFleetRequestConfigs"],members:{SpotFleetRequestConfigs:{locationName:"spotFleetRequestConfigSet",type:"list",member:{locationName:"item",type:"structure",required:["SpotFleetRequestId","SpotFleetRequestState","SpotFleetRequestConfig"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},SpotFleetRequestState:{locationName:"spotFleetRequestState"},SpotFleetRequestConfig:{shape:"Sdu",locationName:"spotFleetRequestConfig"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSpotInstanceRequests:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotInstanceRequestIds:{shape:"S2c",locationName:"SpotInstanceRequestId"},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{SpotInstanceRequests:{shape:"Se4",locationName:"spotInstanceRequestSet"}}},http:{}},DescribeSpotPriceHistory:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},StartTime:{locationName:"startTime",type:"timestamp"},EndTime:{locationName:"endTime",type:"timestamp"},InstanceTypes:{locationName:"InstanceType",type:"list",member:{}},ProductDescriptions:{locationName:"ProductDescription",type:"list",member:{}},Filters:{shape:"S7e",locationName:"Filter"},AvailabilityZone:{locationName:"availabilityZone"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"}}},output:{type:"structure",members:{SpotPriceHistory:{locationName:"spotPriceHistorySet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceType:{locationName:"instanceType"},ProductDescription:{locationName:"productDescription"},SpotPrice:{locationName:"spotPrice"},Timestamp:{locationName:"timestamp",type:"timestamp"},AvailabilityZone:{locationName:"availabilityZone"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSubnets:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},SubnetIds:{locationName:"SubnetId",type:"list",member:{locationName:"SubnetId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{Subnets:{locationName:"subnetSet",type:"list",member:{shape:"S5d",locationName:"item"}}}},http:{}},DescribeTags:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},Filters:{shape:"S7e",locationName:"Filter"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"}}},output:{type:"structure",members:{Tags:{locationName:"tagSet",type:"list",member:{locationName:"item",type:"structure",members:{ResourceId:{locationName:"resourceId"},ResourceType:{locationName:"resourceType"},Key:{locationName:"key"},Value:{locationName:"value"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVolumeAttribute:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},Attribute:{}}},output:{type:"structure",members:{VolumeId:{locationName:"volumeId"},AutoEnableIO:{shape:"S9y",locationName:"autoEnableIO"},ProductCodes:{shape:"S90",locationName:"productCodes"}}},http:{}},DescribeVolumeStatus:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeIds:{shape:"Seu",locationName:"VolumeId"},Filters:{shape:"S7e",locationName:"Filter"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{VolumeStatuses:{locationName:"volumeStatusSet",type:"list",member:{locationName:"item",type:"structure",members:{VolumeId:{locationName:"volumeId"},AvailabilityZone:{locationName:"availabilityZone"},VolumeStatus:{locationName:"volumeStatus",type:"structure",members:{Status:{locationName:"status"},Details:{locationName:"details",type:"list",member:{locationName:"item",type:"structure",members:{Name:{locationName:"name"},Status:{locationName:"status"}}}}}},Events:{locationName:"eventsSet",type:"list",member:{locationName:"item",type:"structure",members:{EventType:{locationName:"eventType"},Description:{locationName:"description"},NotBefore:{locationName:"notBefore",type:"timestamp"},NotAfter:{locationName:"notAfter",type:"timestamp"},EventId:{locationName:"eventId"}}}},Actions:{locationName:"actionsSet",type:"list",member:{locationName:"item",type:"structure",members:{Code:{locationName:"code"},Description:{locationName:"description"},EventType:{locationName:"eventType"},EventId:{locationName:"eventId"}}}}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVolumes:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeIds:{shape:"Seu",locationName:"VolumeId"},Filters:{shape:"S7e",locationName:"Filter"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{Volumes:{locationName:"volumeSet",type:"list",member:{shape:"S5i",locationName:"item"}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVpcAttribute:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{},Attribute:{}}},output:{type:"structure",members:{VpcId:{locationName:"vpcId"},EnableDnsSupport:{shape:"S9y",locationName:"enableDnsSupport"},EnableDnsHostnames:{shape:"S9y",locationName:"enableDnsHostnames"}}},http:{}},DescribeVpcClassicLink:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcIds:{locationName:"VpcId",type:"list",member:{locationName:"VpcId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{Vpcs:{locationName:"vpcSet",type:"list",member:{locationName:"item",type:"structure",members:{VpcId:{locationName:"vpcId"},ClassicLinkEnabled:{locationName:"classicLinkEnabled",type:"boolean"},Tags:{shape:"Sa",locationName:"tagSet"}}}}}},http:{}},DescribeVpcEndpointServices:{input:{type:"structure",members:{DryRun:{type:"boolean"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{ServiceNames:{shape:"S22",locationName:"serviceNameSet"},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVpcEndpoints:{input:{type:"structure",members:{DryRun:{type:"boolean"},VpcEndpointIds:{shape:"S22",locationName:"VpcEndpointId"},Filters:{shape:"S7e",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{VpcEndpoints:{locationName:"vpcEndpointSet",type:"list",member:{shape:"S5s",locationName:"item"}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVpcPeeringConnections:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionIds:{shape:"S22",locationName:"VpcPeeringConnectionId"},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{VpcPeeringConnections:{locationName:"vpcPeeringConnectionSet",type:"list",member:{shape:"S5",locationName:"item"}}}},http:{}},DescribeVpcs:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcIds:{locationName:"VpcId",type:"list",member:{locationName:"VpcId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{Vpcs:{locationName:"vpcSet",type:"list",member:{shape:"S5o",locationName:"item"}}}},http:{}},DescribeVpnConnections:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnConnectionIds:{locationName:"VpnConnectionId",type:"list",member:{locationName:"VpnConnectionId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{VpnConnections:{locationName:"vpnConnectionSet",type:"list",member:{shape:"S5z",locationName:"item"}}}},http:{}},DescribeVpnGateways:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnGatewayIds:{locationName:"VpnGatewayId",type:"list",member:{locationName:"VpnGatewayId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{VpnGateways:{locationName:"vpnGatewaySet",type:"list",member:{shape:"S6b",locationName:"item"}}}},http:{}},DetachClassicLinkVpc:{input:{type:"structure",required:["InstanceId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},DetachInternetGateway:{input:{type:"structure",required:["InternetGatewayId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayId:{locationName:"internetGatewayId"},VpcId:{locationName:"vpcId"}}},http:{}},DetachNetworkInterface:{input:{type:"structure",required:["AttachmentId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AttachmentId:{locationName:"attachmentId"},Force:{locationName:"force",type:"boolean"}}},http:{}},DetachVolume:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},InstanceId:{},Device:{},Force:{type:"boolean"}}},output:{shape:"Su",locationName:"attachment"},http:{}},DetachVpnGateway:{input:{type:"structure",required:["VpnGatewayId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnGatewayId:{},VpcId:{}}},http:{}},DisableVgwRoutePropagation:{input:{type:"structure",required:["RouteTableId","GatewayId"],members:{RouteTableId:{},GatewayId:{}}},http:{}},DisableVpcClassicLink:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},DisassociateAddress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIp:{},AssociationId:{}}},http:{}},DisassociateRouteTable:{input:{type:"structure",required:["AssociationId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AssociationId:{locationName:"associationId"}}},http:{}},EnableVgwRoutePropagation:{input:{type:"structure",required:["RouteTableId","GatewayId"],members:{RouteTableId:{},GatewayId:{}}},http:{}},EnableVolumeIO:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{locationName:"volumeId"}}},http:{}},EnableVpcClassicLink:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},GetConsoleOutput:{input:{type:"structure",required:["InstanceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{}}},output:{type:"structure",members:{InstanceId:{locationName:"instanceId"},Timestamp:{locationName:"timestamp",type:"timestamp"},Output:{locationName:"output"}}},http:{}},GetPasswordData:{input:{type:"structure",required:["InstanceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{}}},output:{type:"structure",members:{InstanceId:{locationName:"instanceId"},Timestamp:{locationName:"timestamp",type:"timestamp"},PasswordData:{locationName:"passwordData"}}},http:{}},ImportImage:{input:{type:"structure",members:{DryRun:{type:"boolean"},Description:{},DiskContainers:{locationName:"DiskContainer",type:"list",member:{locationName:"item",type:"structure",members:{Description:{},Format:{},Url:{},UserBucket:{shape:"Sgo"},DeviceName:{},SnapshotId:{}}}},LicenseType:{},Hypervisor:{},Architecture:{},Platform:{},ClientData:{shape:"Sgp"},ClientToken:{},RoleName:{}}},output:{type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},Architecture:{locationName:"architecture"},LicenseType:{locationName:"licenseType"},Platform:{locationName:"platform"},Hypervisor:{locationName:"hypervisor"},Description:{locationName:"description"},SnapshotDetails:{shape:"S9n",locationName:"snapshotDetailSet"},ImageId:{locationName:"imageId"},Progress:{locationName:"progress"},StatusMessage:{locationName:"statusMessage"},Status:{locationName:"status"}}},http:{}},ImportInstance:{input:{type:"structure",required:["Platform"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Description:{locationName:"description"},LaunchSpecification:{locationName:"launchSpecification",type:"structure",members:{Architecture:{locationName:"architecture"},GroupNames:{shape:"Sgt",locationName:"GroupName"},GroupIds:{shape:"S46",locationName:"GroupId"},AdditionalInfo:{locationName:"additionalInfo"},UserData:{locationName:"userData",type:"structure",members:{Data:{locationName:"data"}}},InstanceType:{locationName:"instanceType"},Placement:{shape:"Sao",locationName:"placement"},Monitoring:{locationName:"monitoring",type:"boolean"},SubnetId:{locationName:"subnetId"},InstanceInitiatedShutdownBehavior:{locationName:"instanceInitiatedShutdownBehavior"},PrivateIpAddress:{locationName:"privateIpAddress"}}},DiskImages:{locationName:"diskImage",type:"list",member:{type:"structure",members:{Image:{shape:"Sgy"},Description:{}, +Volume:{shape:"Sgz"}}}},Platform:{locationName:"platform"}}},output:{type:"structure",members:{ConversionTask:{shape:"S85",locationName:"conversionTask"}}},http:{}},ImportKeyPair:{input:{type:"structure",required:["KeyName","PublicKeyMaterial"],members:{DryRun:{locationName:"dryRun",type:"boolean"},KeyName:{locationName:"keyName"},PublicKeyMaterial:{locationName:"publicKeyMaterial",type:"blob"}}},output:{type:"structure",members:{KeyName:{locationName:"keyName"},KeyFingerprint:{locationName:"keyFingerprint"}}},http:{}},ImportSnapshot:{input:{type:"structure",members:{DryRun:{type:"boolean"},Description:{},DiskContainer:{type:"structure",members:{Description:{},Format:{},Url:{},UserBucket:{shape:"Sgo"}}},ClientData:{shape:"Sgp"},ClientToken:{},RoleName:{}}},output:{type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},SnapshotTaskDetail:{shape:"S9u",locationName:"snapshotTaskDetail"},Description:{locationName:"description"}}},http:{}},ImportVolume:{input:{type:"structure",required:["AvailabilityZone","Image","Volume"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AvailabilityZone:{locationName:"availabilityZone"},Image:{shape:"Sgy",locationName:"image"},Description:{locationName:"description"},Volume:{shape:"Sgz",locationName:"volume"}}},output:{type:"structure",members:{ConversionTask:{shape:"S85",locationName:"conversionTask"}}},http:{}},ModifyImageAttribute:{input:{type:"structure",required:["ImageId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{},Attribute:{},OperationType:{},UserIds:{shape:"Sha",locationName:"UserId"},UserGroups:{locationName:"UserGroup",type:"list",member:{locationName:"UserGroup"}},ProductCodes:{locationName:"ProductCode",type:"list",member:{locationName:"ProductCode"}},Value:{},LaunchPermission:{type:"structure",members:{Add:{shape:"S8x"},Remove:{shape:"S8x"}}},Description:{shape:"S2z"}}},http:{}},ModifyInstanceAttribute:{input:{type:"structure",required:["InstanceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},Attribute:{locationName:"attribute"},Value:{locationName:"value"},BlockDeviceMappings:{locationName:"blockDeviceMapping",type:"list",member:{locationName:"item",type:"structure",members:{DeviceName:{locationName:"deviceName"},Ebs:{locationName:"ebs",type:"structure",members:{VolumeId:{locationName:"volumeId"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}},VirtualName:{locationName:"virtualName"},NoDevice:{locationName:"noDevice"}}}},SourceDestCheck:{shape:"S9y"},DisableApiTermination:{shape:"S9y",locationName:"disableApiTermination"},InstanceType:{shape:"S2z",locationName:"instanceType"},Kernel:{shape:"S2z",locationName:"kernel"},Ramdisk:{shape:"S2z",locationName:"ramdisk"},UserData:{locationName:"userData",type:"structure",members:{Value:{locationName:"value",type:"blob"}}},InstanceInitiatedShutdownBehavior:{shape:"S2z",locationName:"instanceInitiatedShutdownBehavior"},Groups:{shape:"So",locationName:"GroupId"},EbsOptimized:{shape:"S9y",locationName:"ebsOptimized"},SriovNetSupport:{shape:"S2z",locationName:"sriovNetSupport"}}},http:{}},ModifyNetworkInterfaceAttribute:{input:{type:"structure",required:["NetworkInterfaceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},Description:{shape:"S2z",locationName:"description"},SourceDestCheck:{shape:"S9y",locationName:"sourceDestCheck"},Groups:{shape:"S46",locationName:"SecurityGroupId"},Attachment:{locationName:"attachment",type:"structure",members:{AttachmentId:{locationName:"attachmentId"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}}}},http:{}},ModifyReservedInstances:{input:{type:"structure",required:["ReservedInstancesIds","TargetConfigurations"],members:{ClientToken:{locationName:"clientToken"},ReservedInstancesIds:{shape:"Sc2",locationName:"ReservedInstancesId"},TargetConfigurations:{locationName:"ReservedInstancesConfigurationSetItemType",type:"list",member:{shape:"Sco",locationName:"item"}}}},output:{type:"structure",members:{ReservedInstancesModificationId:{locationName:"reservedInstancesModificationId"}}},http:{}},ModifySnapshotAttribute:{input:{type:"structure",required:["SnapshotId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotId:{},Attribute:{},OperationType:{},UserIds:{shape:"Sha",locationName:"UserId"},GroupNames:{shape:"Sd0",locationName:"UserGroup"},CreateVolumePermission:{type:"structure",members:{Add:{shape:"Sd7"},Remove:{shape:"Sd7"}}}}},http:{}},ModifySubnetAttribute:{input:{type:"structure",required:["SubnetId"],members:{SubnetId:{locationName:"subnetId"},MapPublicIpOnLaunch:{shape:"S9y"}}},http:{}},ModifyVolumeAttribute:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},AutoEnableIO:{shape:"S9y"}}},http:{}},ModifyVpcAttribute:{input:{type:"structure",required:["VpcId"],members:{VpcId:{locationName:"vpcId"},EnableDnsSupport:{shape:"S9y"},EnableDnsHostnames:{shape:"S9y"}}},http:{}},ModifyVpcEndpoint:{input:{type:"structure",required:["VpcEndpointId"],members:{DryRun:{type:"boolean"},VpcEndpointId:{},ResetPolicy:{type:"boolean"},PolicyDocument:{},AddRouteTableIds:{shape:"S22",locationName:"AddRouteTableId"},RemoveRouteTableIds:{shape:"S22",locationName:"RemoveRouteTableId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},MonitorInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"}}},output:{type:"structure",members:{InstanceMonitorings:{shape:"Shx",locationName:"instancesSet"}}},http:{}},MoveAddressToVpc:{input:{type:"structure",required:["PublicIp"],members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIp:{locationName:"publicIp"}}},output:{type:"structure",members:{AllocationId:{locationName:"allocationId"},Status:{locationName:"status"}}},http:{}},PurchaseReservedInstancesOffering:{input:{type:"structure",required:["ReservedInstancesOfferingId","InstanceCount"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ReservedInstancesOfferingId:{},InstanceCount:{type:"integer"},LimitPrice:{locationName:"limitPrice",type:"structure",members:{Amount:{locationName:"amount",type:"double"},CurrencyCode:{locationName:"currencyCode"}}}}},output:{type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"}}},http:{}},RebootInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"}}},http:{}},RegisterImage:{input:{type:"structure",required:["Name"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageLocation:{},Name:{locationName:"name"},Description:{locationName:"description"},Architecture:{locationName:"architecture"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},RootDeviceName:{locationName:"rootDeviceName"},BlockDeviceMappings:{shape:"S38",locationName:"BlockDeviceMapping"},VirtualizationType:{locationName:"virtualizationType"},SriovNetSupport:{locationName:"sriovNetSupport"}}},output:{type:"structure",members:{ImageId:{locationName:"imageId"}}},http:{}},RejectVpcPeeringConnection:{input:{type:"structure",required:["VpcPeeringConnectionId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},ReleaseAddress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIp:{},AllocationId:{}}},http:{}},ReplaceNetworkAclAssociation:{input:{type:"structure",required:["AssociationId","NetworkAclId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AssociationId:{locationName:"associationId"},NetworkAclId:{locationName:"networkAclId"}}},output:{type:"structure",members:{NewAssociationId:{locationName:"newAssociationId"}}},http:{}},ReplaceNetworkAclEntry:{input:{type:"structure",required:["NetworkAclId","RuleNumber","Protocol","RuleAction","Egress","CidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclId:{locationName:"networkAclId"},RuleNumber:{locationName:"ruleNumber",type:"integer"},Protocol:{locationName:"protocol"},RuleAction:{locationName:"ruleAction"},Egress:{locationName:"egress",type:"boolean"},CidrBlock:{locationName:"cidrBlock"},IcmpTypeCode:{shape:"S40",locationName:"Icmp"},PortRange:{shape:"S41",locationName:"portRange"}}},http:{}},ReplaceRoute:{input:{type:"structure",required:["RouteTableId","DestinationCidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"},DestinationCidrBlock:{locationName:"destinationCidrBlock"},GatewayId:{locationName:"gatewayId"},InstanceId:{locationName:"instanceId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},http:{}},ReplaceRouteTableAssociation:{input:{type:"structure",required:["AssociationId","RouteTableId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AssociationId:{locationName:"associationId"},RouteTableId:{locationName:"routeTableId"}}},output:{type:"structure",members:{NewAssociationId:{locationName:"newAssociationId"}}},http:{}},ReportInstanceStatus:{input:{type:"structure",required:["Instances","Status","ReasonCodes"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Instances:{shape:"S7x",locationName:"instanceId"},Status:{locationName:"status"},StartTime:{locationName:"startTime",type:"timestamp"},EndTime:{locationName:"endTime",type:"timestamp"},ReasonCodes:{locationName:"reasonCode",type:"list",member:{locationName:"item"}},Description:{locationName:"description"}}},http:{}},RequestSpotFleet:{input:{type:"structure",required:["SpotFleetRequestConfig"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestConfig:{shape:"Sdu",locationName:"spotFleetRequestConfig"}}},output:{type:"structure",required:["SpotFleetRequestId"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"}}},http:{}},RequestSpotInstances:{input:{type:"structure",required:["SpotPrice"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotPrice:{locationName:"spotPrice"},ClientToken:{locationName:"clientToken"},InstanceCount:{locationName:"instanceCount",type:"integer"},Type:{locationName:"type"},ValidFrom:{locationName:"validFrom",type:"timestamp"},ValidUntil:{locationName:"validUntil",type:"timestamp"},LaunchGroup:{locationName:"launchGroup"},AvailabilityZoneGroup:{locationName:"availabilityZoneGroup"},LaunchSpecification:{type:"structure",members:{ImageId:{locationName:"imageId"},KeyName:{locationName:"keyName"},SecurityGroups:{shape:"S22",locationName:"SecurityGroup"},UserData:{locationName:"userData"},AddressingType:{locationName:"addressingType"},InstanceType:{locationName:"instanceType"},Placement:{shape:"Sdx",locationName:"placement"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},BlockDeviceMappings:{shape:"S93",locationName:"blockDeviceMapping"},SubnetId:{locationName:"subnetId"},NetworkInterfaces:{shape:"Sdz",locationName:"NetworkInterface"},IamInstanceProfile:{shape:"Se1",locationName:"iamInstanceProfile"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},Monitoring:{shape:"Sea",locationName:"monitoring"},SecurityGroupIds:{shape:"S22",locationName:"SecurityGroupId"}}}}},output:{type:"structure",members:{SpotInstanceRequests:{shape:"Se4",locationName:"spotInstanceRequestSet"}}},http:{}},ResetImageAttribute:{input:{type:"structure",required:["ImageId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{},Attribute:{}}},http:{}},ResetInstanceAttribute:{input:{type:"structure",required:["InstanceId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},Attribute:{locationName:"attribute"}}},http:{}},ResetNetworkInterfaceAttribute:{input:{type:"structure",required:["NetworkInterfaceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},SourceDestCheck:{locationName:"sourceDestCheck"}}},http:{}},ResetSnapshotAttribute:{input:{type:"structure",required:["SnapshotId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotId:{},Attribute:{}}},http:{}},RestoreAddressToClassic:{input:{type:"structure",required:["PublicIp"],members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIp:{locationName:"publicIp"}}},output:{type:"structure",members:{Status:{locationName:"status"},PublicIp:{locationName:"publicIp"}}},http:{}},RevokeSecurityGroupEgress:{input:{type:"structure",required:["GroupId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupId:{locationName:"groupId"},SourceSecurityGroupName:{locationName:"sourceSecurityGroupName"},SourceSecurityGroupOwnerId:{locationName:"sourceSecurityGroupOwnerId"},IpProtocol:{locationName:"ipProtocol"},FromPort:{locationName:"fromPort",type:"integer"},ToPort:{locationName:"toPort",type:"integer"},CidrIp:{locationName:"cidrIp"},IpPermissions:{shape:"S11",locationName:"ipPermissions"}}},http:{}},RevokeSecurityGroupIngress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{},GroupId:{},SourceSecurityGroupName:{},SourceSecurityGroupOwnerId:{},IpProtocol:{},FromPort:{type:"integer"},ToPort:{type:"integer"},CidrIp:{},IpPermissions:{shape:"S11"}}},http:{}},RunInstances:{input:{type:"structure",required:["ImageId","MinCount","MaxCount"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{},MinCount:{type:"integer"},MaxCount:{type:"integer"},KeyName:{},SecurityGroups:{shape:"Sgt",locationName:"SecurityGroup"},SecurityGroupIds:{shape:"S46",locationName:"SecurityGroupId"},UserData:{},InstanceType:{},Placement:{shape:"Sao"},KernelId:{},RamdiskId:{},BlockDeviceMappings:{shape:"S38",locationName:"BlockDeviceMapping"},Monitoring:{shape:"Sea"},SubnetId:{},DisableApiTermination:{locationName:"disableApiTermination",type:"boolean"},InstanceInitiatedShutdownBehavior:{locationName:"instanceInitiatedShutdownBehavior"},PrivateIpAddress:{locationName:"privateIpAddress"},ClientToken:{locationName:"clientToken"},AdditionalInfo:{locationName:"additionalInfo"},NetworkInterfaces:{shape:"Sdz",locationName:"networkInterface"},IamInstanceProfile:{shape:"Se1",locationName:"iamInstanceProfile"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"}}},output:{shape:"Sak",locationName:"reservation"},http:{}},StartInstances:{input:{type:"structure",required:["InstanceIds"],members:{InstanceIds:{shape:"S7x",locationName:"InstanceId"},AdditionalInfo:{locationName:"additionalInfo"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{StartingInstances:{shape:"Sj2",locationName:"instancesSet"}}},http:{}},StopInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"},Force:{locationName:"force",type:"boolean"}}},output:{type:"structure",members:{StoppingInstances:{shape:"Sj2",locationName:"instancesSet"}}},http:{}},TerminateInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"}}},output:{type:"structure",members:{TerminatingInstances:{shape:"Sj2",locationName:"instancesSet"}}},http:{}},UnassignPrivateIpAddresses:{input:{type:"structure",required:["NetworkInterfaceId","PrivateIpAddresses"],members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIpAddresses:{shape:"Sg",locationName:"privateIpAddress"}}},http:{}},UnmonitorInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"}}},output:{type:"structure",members:{InstanceMonitorings:{shape:"Shx",locationName:"instancesSet"}}},http:{}}},shapes:{S5:{type:"structure",members:{AccepterVpcInfo:{shape:"S6",locationName:"accepterVpcInfo"},ExpirationTime:{locationName:"expirationTime",type:"timestamp"},RequesterVpcInfo:{shape:"S6",locationName:"requesterVpcInfo"},Status:{locationName:"status",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},Tags:{shape:"Sa",locationName:"tagSet"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},S6:{type:"structure",members:{CidrBlock:{locationName:"cidrBlock"},OwnerId:{locationName:"ownerId"},VpcId:{locationName:"vpcId"}}},Sa:{type:"list",member:{locationName:"item",type:"structure",members:{Key:{locationName:"key"},Value:{locationName:"value"}}}},Sg:{type:"list",member:{locationName:"PrivateIpAddress"}},So:{type:"list",member:{locationName:"groupId"}},Su:{type:"structure",members:{VolumeId:{locationName:"volumeId"},InstanceId:{locationName:"instanceId"},Device:{locationName:"device"},State:{locationName:"status"},AttachTime:{locationName:"attachTime",type:"timestamp"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}},Sy:{type:"structure",members:{VpcId:{locationName:"vpcId"},State:{locationName:"state"}}},S11:{type:"list",member:{locationName:"item",type:"structure",members:{IpProtocol:{locationName:"ipProtocol"},FromPort:{locationName:"fromPort",type:"integer"},ToPort:{locationName:"toPort",type:"integer"},UserIdGroupPairs:{locationName:"groups",type:"list",member:{locationName:"item",type:"structure",members:{UserId:{locationName:"userId"},GroupName:{locationName:"groupName"},GroupId:{locationName:"groupId"}}}},IpRanges:{locationName:"ipRanges",type:"list",member:{locationName:"item",type:"structure",members:{CidrIp:{locationName:"cidrIp"}}}},PrefixListIds:{locationName:"prefixListIds",type:"list",member:{locationName:"item",type:"structure",members:{PrefixListId:{locationName:"prefixListId"}}}}}}},S1b:{type:"structure",members:{S3:{type:"structure",members:{Bucket:{locationName:"bucket"},Prefix:{locationName:"prefix"},AWSAccessKeyId:{},UploadPolicy:{locationName:"uploadPolicy",type:"blob"},UploadPolicySignature:{locationName:"uploadPolicySignature"}}}}},S1f:{type:"structure",members:{InstanceId:{locationName:"instanceId"},BundleId:{locationName:"bundleId"},State:{locationName:"state"},StartTime:{locationName:"startTime",type:"timestamp"},UpdateTime:{locationName:"updateTime",type:"timestamp"},Storage:{shape:"S1b",locationName:"storage"},Progress:{locationName:"progress"},BundleTaskError:{locationName:"error",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}},S1q:{type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesListingId:{locationName:"reservedInstancesListingId"},ReservedInstancesId:{locationName:"reservedInstancesId"},CreateDate:{locationName:"createDate",type:"timestamp"},UpdateDate:{locationName:"updateDate",type:"timestamp"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},InstanceCounts:{locationName:"instanceCounts",type:"list",member:{locationName:"item",type:"structure",members:{State:{locationName:"state"},InstanceCount:{locationName:"instanceCount",type:"integer"}}}},PriceSchedules:{locationName:"priceSchedules",type:"list",member:{locationName:"item",type:"structure",members:{Term:{locationName:"term",type:"long"},Price:{locationName:"price",type:"double"},CurrencyCode:{locationName:"currencyCode"},Active:{locationName:"active",type:"boolean"}}}},Tags:{shape:"Sa",locationName:"tagSet"},ClientToken:{locationName:"clientToken"}}}},S22:{type:"list",member:{locationName:"item"}},S2c:{type:"list",member:{locationName:"SpotInstanceRequestId"}},S2q:{type:"structure",members:{CustomerGatewayId:{locationName:"customerGatewayId"},State:{locationName:"state"},Type:{locationName:"type"},IpAddress:{locationName:"ipAddress"},BgpAsn:{locationName:"bgpAsn"},Tags:{shape:"Sa",locationName:"tagSet"}}},S2v:{type:"structure",members:{DhcpOptionsId:{locationName:"dhcpOptionsId"},DhcpConfigurations:{locationName:"dhcpConfigurationSet",type:"list",member:{locationName:"item",type:"structure",members:{Key:{locationName:"key"},Values:{locationName:"valueSet",type:"list",member:{shape:"S2z",locationName:"item"}}}}},Tags:{shape:"Sa",locationName:"tagSet"}}},S2z:{type:"structure",members:{Value:{locationName:"value"}}},S34:{type:"list",member:{locationName:"item",type:"structure",required:["Error"],members:{ResourceId:{locationName:"resourceId"},Error:{locationName:"error",type:"structure",required:["Code","Message"],members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}}},S38:{type:"list",member:{shape:"S39",locationName:"BlockDeviceMapping"}},S39:{type:"structure",members:{VirtualName:{locationName:"virtualName"},DeviceName:{locationName:"deviceName"},Ebs:{locationName:"ebs",type:"structure",members:{SnapshotId:{locationName:"snapshotId"},VolumeSize:{locationName:"volumeSize",type:"integer"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"},VolumeType:{locationName:"volumeType"},Iops:{locationName:"iops",type:"integer"},Encrypted:{locationName:"encrypted",type:"boolean"}}},NoDevice:{locationName:"noDevice"}}},S3j:{type:"structure",members:{ExportTaskId:{locationName:"exportTaskId"},Description:{locationName:"description"},State:{locationName:"state"},StatusMessage:{locationName:"statusMessage"},InstanceExportDetails:{locationName:"instanceExport",type:"structure",members:{InstanceId:{locationName:"instanceId"},TargetEnvironment:{locationName:"targetEnvironment"}}},ExportToS3Task:{locationName:"exportToS3",type:"structure",members:{DiskImageFormat:{locationName:"diskImageFormat"},ContainerFormat:{locationName:"containerFormat"},S3Bucket:{locationName:"s3Bucket"},S3Key:{locationName:"s3Key"}}}}},S3p:{type:"structure",members:{InternetGatewayId:{locationName:"internetGatewayId"},Attachments:{locationName:"attachmentSet",type:"list",member:{locationName:"item",type:"structure",members:{VpcId:{locationName:"vpcId"},State:{locationName:"state"}}}},Tags:{shape:"Sa",locationName:"tagSet"}}},S3w:{type:"structure",members:{NetworkAclId:{locationName:"networkAclId"},VpcId:{locationName:"vpcId"},IsDefault:{locationName:"default",type:"boolean"},Entries:{locationName:"entrySet",type:"list",member:{locationName:"item",type:"structure",members:{RuleNumber:{locationName:"ruleNumber",type:"integer"},Protocol:{locationName:"protocol"},RuleAction:{locationName:"ruleAction"},Egress:{locationName:"egress",type:"boolean"},CidrBlock:{locationName:"cidrBlock"},IcmpTypeCode:{shape:"S40",locationName:"icmpTypeCode"},PortRange:{shape:"S41",locationName:"portRange"}}}},Associations:{locationName:"associationSet",type:"list",member:{locationName:"item",type:"structure",members:{NetworkAclAssociationId:{locationName:"networkAclAssociationId"},NetworkAclId:{locationName:"networkAclId"},SubnetId:{locationName:"subnetId"}}}},Tags:{shape:"Sa",locationName:"tagSet"}}},S40:{type:"structure",members:{Type:{locationName:"type",type:"integer"},Code:{locationName:"code",type:"integer"}}},S41:{type:"structure",members:{From:{locationName:"from",type:"integer"},To:{locationName:"to",type:"integer"}}},S46:{type:"list",member:{locationName:"SecurityGroupId"}},S47:{type:"list",member:{locationName:"item",type:"structure",required:["PrivateIpAddress"],members:{PrivateIpAddress:{locationName:"privateIpAddress"},Primary:{locationName:"primary",type:"boolean"}}}},S4a:{type:"structure",members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},SubnetId:{locationName:"subnetId"},VpcId:{locationName:"vpcId"},AvailabilityZone:{locationName:"availabilityZone"},Description:{locationName:"description"},OwnerId:{locationName:"ownerId"},RequesterId:{locationName:"requesterId"},RequesterManaged:{locationName:"requesterManaged",type:"boolean"},Status:{locationName:"status"},MacAddress:{locationName:"macAddress"},PrivateIpAddress:{locationName:"privateIpAddress"},PrivateDnsName:{locationName:"privateDnsName"},SourceDestCheck:{locationName:"sourceDestCheck",type:"boolean"},Groups:{shape:"S4c",locationName:"groupSet"},Attachment:{shape:"S4e",locationName:"attachment"},Association:{shape:"S4f",locationName:"association"},TagSet:{shape:"Sa",locationName:"tagSet"},PrivateIpAddresses:{locationName:"privateIpAddressesSet",type:"list",member:{locationName:"item",type:"structure",members:{PrivateIpAddress:{locationName:"privateIpAddress"},PrivateDnsName:{locationName:"privateDnsName"},Primary:{locationName:"primary",type:"boolean"},Association:{shape:"S4f",locationName:"association"}}}}}},S4c:{type:"list",member:{locationName:"item",type:"structure",members:{GroupName:{locationName:"groupName"},GroupId:{locationName:"groupId"}}}},S4e:{type:"structure",members:{AttachmentId:{locationName:"attachmentId"},InstanceId:{locationName:"instanceId"},InstanceOwnerId:{locationName:"instanceOwnerId"},DeviceIndex:{locationName:"deviceIndex",type:"integer"},Status:{locationName:"status"},AttachTime:{locationName:"attachTime",type:"timestamp"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}},S4f:{type:"structure",members:{PublicIp:{locationName:"publicIp"},PublicDnsName:{locationName:"publicDnsName"},IpOwnerId:{locationName:"ipOwnerId"},AllocationId:{locationName:"allocationId"},AssociationId:{locationName:"associationId"}}},S4s:{type:"structure",members:{RouteTableId:{locationName:"routeTableId"},VpcId:{locationName:"vpcId"},Routes:{locationName:"routeSet",type:"list",member:{locationName:"item",type:"structure",members:{DestinationCidrBlock:{locationName:"destinationCidrBlock"},DestinationPrefixListId:{locationName:"destinationPrefixListId"},GatewayId:{locationName:"gatewayId"},InstanceId:{locationName:"instanceId"},InstanceOwnerId:{locationName:"instanceOwnerId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"},State:{locationName:"state"},Origin:{locationName:"origin"}}}},Associations:{locationName:"associationSet",type:"list",member:{locationName:"item",type:"structure",members:{RouteTableAssociationId:{locationName:"routeTableAssociationId"},RouteTableId:{locationName:"routeTableId"},SubnetId:{locationName:"subnetId"},Main:{locationName:"main",type:"boolean"}}}},Tags:{shape:"Sa",locationName:"tagSet"},PropagatingVgws:{locationName:"propagatingVgwSet",type:"list",member:{locationName:"item",type:"structure",members:{GatewayId:{locationName:"gatewayId"}}}}}},S54:{type:"structure",members:{SnapshotId:{locationName:"snapshotId"},VolumeId:{locationName:"volumeId"},State:{locationName:"status"},StartTime:{locationName:"startTime",type:"timestamp"},Progress:{locationName:"progress"},OwnerId:{locationName:"ownerId"},Description:{locationName:"description"},VolumeSize:{locationName:"volumeSize",type:"integer"},OwnerAlias:{locationName:"ownerAlias"},Tags:{shape:"Sa",locationName:"tagSet"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{locationName:"kmsKeyId"}}},S58:{type:"structure",members:{OwnerId:{locationName:"ownerId"},Bucket:{locationName:"bucket"},Prefix:{locationName:"prefix"},State:{locationName:"state"},Fault:{shape:"S5a",locationName:"fault"}}},S5a:{type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},S5d:{type:"structure",members:{SubnetId:{locationName:"subnetId"},State:{locationName:"state"},VpcId:{locationName:"vpcId"},CidrBlock:{locationName:"cidrBlock"},AvailableIpAddressCount:{locationName:"availableIpAddressCount",type:"integer"},AvailabilityZone:{locationName:"availabilityZone"},DefaultForAz:{locationName:"defaultForAz",type:"boolean"},MapPublicIpOnLaunch:{locationName:"mapPublicIpOnLaunch",type:"boolean"},Tags:{shape:"Sa",locationName:"tagSet"}}},S5g:{type:"list",member:{}},S5i:{type:"structure",members:{VolumeId:{locationName:"volumeId"},Size:{locationName:"size",type:"integer"},SnapshotId:{locationName:"snapshotId"},AvailabilityZone:{locationName:"availabilityZone"},State:{locationName:"status"},CreateTime:{locationName:"createTime",type:"timestamp"},Attachments:{locationName:"attachmentSet",type:"list",member:{shape:"Su",locationName:"item"}},Tags:{shape:"Sa",locationName:"tagSet"},VolumeType:{locationName:"volumeType"},Iops:{locationName:"iops",type:"integer"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{locationName:"kmsKeyId"}}},S5o:{type:"structure",members:{VpcId:{locationName:"vpcId"},State:{locationName:"state"},CidrBlock:{locationName:"cidrBlock"},DhcpOptionsId:{locationName:"dhcpOptionsId"},Tags:{shape:"Sa",locationName:"tagSet"},InstanceTenancy:{locationName:"instanceTenancy"},IsDefault:{locationName:"isDefault",type:"boolean"}}},S5s:{type:"structure",members:{VpcEndpointId:{locationName:"vpcEndpointId"},VpcId:{locationName:"vpcId"},ServiceName:{locationName:"serviceName"},State:{locationName:"state"},PolicyDocument:{locationName:"policyDocument"},RouteTableIds:{shape:"S22",locationName:"routeTableIdSet"},CreationTimestamp:{locationName:"creationTimestamp",type:"timestamp"}}},S5z:{type:"structure",members:{VpnConnectionId:{locationName:"vpnConnectionId"},State:{locationName:"state"},CustomerGatewayConfiguration:{locationName:"customerGatewayConfiguration"},Type:{locationName:"type"},CustomerGatewayId:{locationName:"customerGatewayId"},VpnGatewayId:{locationName:"vpnGatewayId"},Tags:{shape:"Sa",locationName:"tagSet"},VgwTelemetry:{locationName:"vgwTelemetry",type:"list",member:{locationName:"item",type:"structure",members:{OutsideIpAddress:{locationName:"outsideIpAddress"},Status:{locationName:"status"},LastStatusChange:{locationName:"lastStatusChange",type:"timestamp"},StatusMessage:{locationName:"statusMessage"},AcceptedRouteCount:{locationName:"acceptedRouteCount",type:"integer"}}}},Options:{locationName:"options",type:"structure",members:{StaticRoutesOnly:{locationName:"staticRoutesOnly",type:"boolean"}}},Routes:{locationName:"routes",type:"list",member:{locationName:"item",type:"structure",members:{DestinationCidrBlock:{locationName:"destinationCidrBlock"},Source:{locationName:"source"},State:{locationName:"state"}}}}}},S6b:{type:"structure",members:{VpnGatewayId:{locationName:"vpnGatewayId"},State:{locationName:"state"},Type:{locationName:"type"},AvailabilityZone:{locationName:"availabilityZone"},VpcAttachments:{locationName:"attachments",type:"list",member:{shape:"Sy",locationName:"item"}},Tags:{shape:"Sa",locationName:"tagSet"}}},S7e:{type:"list",member:{locationName:"Filter",type:"structure",members:{Name:{},Values:{shape:"S22",locationName:"Value"}}}},S7x:{type:"list",member:{locationName:"InstanceId"}},S85:{type:"structure",required:["ConversionTaskId","State"],members:{ConversionTaskId:{locationName:"conversionTaskId"},ExpirationTime:{locationName:"expirationTime"},ImportInstance:{locationName:"importInstance",type:"structure",required:["Volumes"],members:{Volumes:{locationName:"volumes",type:"list",member:{locationName:"item",type:"structure",required:["BytesConverted","AvailabilityZone","Image","Volume","Status"],members:{BytesConverted:{locationName:"bytesConverted",type:"long"},AvailabilityZone:{locationName:"availabilityZone"},Image:{shape:"S89",locationName:"image"},Volume:{shape:"S8a",locationName:"volume"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},Description:{locationName:"description"}}}},InstanceId:{locationName:"instanceId"},Platform:{locationName:"platform"},Description:{locationName:"description"}}},ImportVolume:{locationName:"importVolume",type:"structure",required:["BytesConverted","AvailabilityZone","Image","Volume"],members:{BytesConverted:{locationName:"bytesConverted",type:"long"},AvailabilityZone:{locationName:"availabilityZone"},Description:{locationName:"description"},Image:{shape:"S89",locationName:"image"},Volume:{shape:"S8a",locationName:"volume"}}},State:{locationName:"state"},StatusMessage:{locationName:"statusMessage" +},Tags:{shape:"Sa",locationName:"tagSet"}}},S89:{type:"structure",required:["Format","Size","ImportManifestUrl"],members:{Format:{locationName:"format"},Size:{locationName:"size",type:"long"},ImportManifestUrl:{locationName:"importManifestUrl"},Checksum:{locationName:"checksum"}}},S8a:{type:"structure",required:["Id"],members:{Size:{locationName:"size",type:"long"},Id:{locationName:"id"}}},S8x:{type:"list",member:{locationName:"item",type:"structure",members:{UserId:{locationName:"userId"},Group:{locationName:"group"}}}},S90:{type:"list",member:{locationName:"item",type:"structure",members:{ProductCodeId:{locationName:"productCode"},ProductCodeType:{locationName:"type"}}}},S93:{type:"list",member:{shape:"S39",locationName:"item"}},S96:{type:"list",member:{locationName:"Owner"}},S9e:{type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},S9j:{type:"list",member:{locationName:"ImportTaskId"}},S9n:{type:"list",member:{locationName:"item",type:"structure",members:{DiskImageSize:{locationName:"diskImageSize",type:"double"},Description:{locationName:"description"},Format:{locationName:"format"},Url:{locationName:"url"},UserBucket:{shape:"S9p",locationName:"userBucket"},DeviceName:{locationName:"deviceName"},SnapshotId:{locationName:"snapshotId"},Progress:{locationName:"progress"},StatusMessage:{locationName:"statusMessage"},Status:{locationName:"status"}}}},S9p:{type:"structure",members:{S3Bucket:{locationName:"s3Bucket"},S3Key:{locationName:"s3Key"}}},S9u:{type:"structure",members:{DiskImageSize:{locationName:"diskImageSize",type:"double"},Description:{locationName:"description"},Format:{locationName:"format"},Url:{locationName:"url"},UserBucket:{shape:"S9p",locationName:"userBucket"},SnapshotId:{locationName:"snapshotId"},Progress:{locationName:"progress"},StatusMessage:{locationName:"statusMessage"},Status:{locationName:"status"}}},S9y:{type:"structure",members:{Value:{locationName:"value",type:"boolean"}}},S9z:{type:"list",member:{locationName:"item",type:"structure",members:{DeviceName:{locationName:"deviceName"},Ebs:{locationName:"ebs",type:"structure",members:{VolumeId:{locationName:"volumeId"},Status:{locationName:"status"},AttachTime:{locationName:"attachTime",type:"timestamp"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}}}}},Sa9:{type:"structure",members:{Code:{locationName:"code",type:"integer"},Name:{locationName:"name"}}},Sab:{type:"structure",members:{Status:{locationName:"status"},Details:{locationName:"details",type:"list",member:{locationName:"item",type:"structure",members:{Name:{locationName:"name"},Status:{locationName:"status"},ImpairedSince:{locationName:"impairedSince",type:"timestamp"}}}}}},Sak:{type:"structure",members:{ReservationId:{locationName:"reservationId"},OwnerId:{locationName:"ownerId"},RequesterId:{locationName:"requesterId"},Groups:{shape:"S4c",locationName:"groupSet"},Instances:{locationName:"instancesSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},ImageId:{locationName:"imageId"},State:{shape:"Sa9",locationName:"instanceState"},PrivateDnsName:{locationName:"privateDnsName"},PublicDnsName:{locationName:"dnsName"},StateTransitionReason:{locationName:"reason"},KeyName:{locationName:"keyName"},AmiLaunchIndex:{locationName:"amiLaunchIndex",type:"integer"},ProductCodes:{shape:"S90",locationName:"productCodes"},InstanceType:{locationName:"instanceType"},LaunchTime:{locationName:"launchTime",type:"timestamp"},Placement:{shape:"Sao",locationName:"placement"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},Platform:{locationName:"platform"},Monitoring:{shape:"Sap",locationName:"monitoring"},SubnetId:{locationName:"subnetId"},VpcId:{locationName:"vpcId"},PrivateIpAddress:{locationName:"privateIpAddress"},PublicIpAddress:{locationName:"ipAddress"},StateReason:{shape:"S9e",locationName:"stateReason"},Architecture:{locationName:"architecture"},RootDeviceType:{locationName:"rootDeviceType"},RootDeviceName:{locationName:"rootDeviceName"},BlockDeviceMappings:{shape:"S9z",locationName:"blockDeviceMapping"},VirtualizationType:{locationName:"virtualizationType"},InstanceLifecycle:{locationName:"instanceLifecycle"},SpotInstanceRequestId:{locationName:"spotInstanceRequestId"},ClientToken:{locationName:"clientToken"},Tags:{shape:"Sa",locationName:"tagSet"},SecurityGroups:{shape:"S4c",locationName:"groupSet"},SourceDestCheck:{locationName:"sourceDestCheck",type:"boolean"},Hypervisor:{locationName:"hypervisor"},NetworkInterfaces:{locationName:"networkInterfaceSet",type:"list",member:{locationName:"item",type:"structure",members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},SubnetId:{locationName:"subnetId"},VpcId:{locationName:"vpcId"},Description:{locationName:"description"},OwnerId:{locationName:"ownerId"},Status:{locationName:"status"},MacAddress:{locationName:"macAddress"},PrivateIpAddress:{locationName:"privateIpAddress"},PrivateDnsName:{locationName:"privateDnsName"},SourceDestCheck:{locationName:"sourceDestCheck",type:"boolean"},Groups:{shape:"S4c",locationName:"groupSet"},Attachment:{locationName:"attachment",type:"structure",members:{AttachmentId:{locationName:"attachmentId"},DeviceIndex:{locationName:"deviceIndex",type:"integer"},Status:{locationName:"status"},AttachTime:{locationName:"attachTime",type:"timestamp"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}},Association:{shape:"Sav",locationName:"association"},PrivateIpAddresses:{locationName:"privateIpAddressesSet",type:"list",member:{locationName:"item",type:"structure",members:{PrivateIpAddress:{locationName:"privateIpAddress"},PrivateDnsName:{locationName:"privateDnsName"},Primary:{locationName:"primary",type:"boolean"},Association:{shape:"Sav",locationName:"association"}}}}}}},IamInstanceProfile:{locationName:"iamInstanceProfile",type:"structure",members:{Arn:{locationName:"arn"},Id:{locationName:"id"}}},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},SriovNetSupport:{locationName:"sriovNetSupport"}}}}}},Sao:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},GroupName:{locationName:"groupName"},Tenancy:{locationName:"tenancy"}}},Sap:{type:"structure",members:{State:{locationName:"state"}}},Sav:{type:"structure",members:{PublicIp:{locationName:"publicIp"},PublicDnsName:{locationName:"publicDnsName"},IpOwnerId:{locationName:"ipOwnerId"}}},Sc2:{type:"list",member:{locationName:"ReservedInstancesId"}},Sca:{type:"list",member:{locationName:"item",type:"structure",members:{Frequency:{locationName:"frequency"},Amount:{locationName:"amount",type:"double"}}}},Sco:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},Platform:{locationName:"platform"},InstanceCount:{locationName:"instanceCount",type:"integer"},InstanceType:{locationName:"instanceType"}}},Sd0:{type:"list",member:{locationName:"GroupName"}},Sd7:{type:"list",member:{locationName:"item",type:"structure",members:{UserId:{locationName:"userId"},Group:{locationName:"group"}}}},Sdu:{type:"structure",required:["SpotPrice","TargetCapacity","IamFleetRole","LaunchSpecifications"],members:{ClientToken:{locationName:"clientToken"},SpotPrice:{locationName:"spotPrice"},TargetCapacity:{locationName:"targetCapacity",type:"integer"},ValidFrom:{locationName:"validFrom",type:"timestamp"},ValidUntil:{locationName:"validUntil",type:"timestamp"},TerminateInstancesWithExpiration:{locationName:"terminateInstancesWithExpiration",type:"boolean"},IamFleetRole:{locationName:"iamFleetRole"},LaunchSpecifications:{locationName:"launchSpecifications",type:"list",member:{locationName:"item",type:"structure",members:{ImageId:{locationName:"imageId"},KeyName:{locationName:"keyName"},SecurityGroups:{shape:"S4c",locationName:"groupSet"},UserData:{locationName:"userData"},AddressingType:{locationName:"addressingType"},InstanceType:{locationName:"instanceType"},Placement:{shape:"Sdx",locationName:"placement"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},BlockDeviceMappings:{shape:"S93",locationName:"blockDeviceMapping"},Monitoring:{locationName:"monitoring",type:"structure",members:{Enabled:{locationName:"enabled",type:"boolean"}}},SubnetId:{locationName:"subnetId"},NetworkInterfaces:{shape:"Sdz",locationName:"networkInterfaceSet"},IamInstanceProfile:{shape:"Se1",locationName:"iamInstanceProfile"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},WeightedCapacity:{locationName:"weightedCapacity",type:"double"},SpotPrice:{locationName:"spotPrice"}}}}}},Sdx:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},GroupName:{locationName:"groupName"}}},Sdz:{type:"list",member:{locationName:"item",type:"structure",members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},DeviceIndex:{locationName:"deviceIndex",type:"integer"},SubnetId:{locationName:"subnetId"},Description:{locationName:"description"},PrivateIpAddress:{locationName:"privateIpAddress"},Groups:{shape:"S46",locationName:"SecurityGroupId"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"},PrivateIpAddresses:{shape:"S47",locationName:"privateIpAddressesSet",queryName:"PrivateIpAddresses"},SecondaryPrivateIpAddressCount:{locationName:"secondaryPrivateIpAddressCount",type:"integer"},AssociatePublicIpAddress:{locationName:"associatePublicIpAddress",type:"boolean"}}}},Se1:{type:"structure",members:{Arn:{locationName:"arn"},Name:{locationName:"name"}}},Se4:{type:"list",member:{locationName:"item",type:"structure",members:{SpotInstanceRequestId:{locationName:"spotInstanceRequestId"},SpotPrice:{locationName:"spotPrice"},Type:{locationName:"type"},State:{locationName:"state"},Fault:{shape:"S5a",locationName:"fault"},Status:{locationName:"status",type:"structure",members:{Code:{locationName:"code"},UpdateTime:{locationName:"updateTime",type:"timestamp"},Message:{locationName:"message"}}},ValidFrom:{locationName:"validFrom",type:"timestamp"},ValidUntil:{locationName:"validUntil",type:"timestamp"},LaunchGroup:{locationName:"launchGroup"},AvailabilityZoneGroup:{locationName:"availabilityZoneGroup"},LaunchSpecification:{locationName:"launchSpecification",type:"structure",members:{ImageId:{locationName:"imageId"},KeyName:{locationName:"keyName"},SecurityGroups:{shape:"S4c",locationName:"groupSet"},UserData:{locationName:"userData"},AddressingType:{locationName:"addressingType"},InstanceType:{locationName:"instanceType"},Placement:{shape:"Sdx",locationName:"placement"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},BlockDeviceMappings:{shape:"S93",locationName:"blockDeviceMapping"},SubnetId:{locationName:"subnetId"},NetworkInterfaces:{shape:"Sdz",locationName:"networkInterfaceSet"},IamInstanceProfile:{shape:"Se1",locationName:"iamInstanceProfile"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},Monitoring:{shape:"Sea",locationName:"monitoring"}}},InstanceId:{locationName:"instanceId"},CreateTime:{locationName:"createTime",type:"timestamp"},ProductDescription:{locationName:"productDescription"},Tags:{shape:"Sa",locationName:"tagSet"},LaunchedAvailabilityZone:{locationName:"launchedAvailabilityZone"}}}},Sea:{type:"structure",required:["Enabled"],members:{Enabled:{locationName:"enabled",type:"boolean"}}},Seu:{type:"list",member:{locationName:"VolumeId"}},Sgo:{type:"structure",members:{S3Bucket:{},S3Key:{}}},Sgp:{type:"structure",members:{UploadStart:{type:"timestamp"},UploadEnd:{type:"timestamp"},UploadSize:{type:"double"},Comment:{}}},Sgt:{type:"list",member:{locationName:"SecurityGroup"}},Sgy:{type:"structure",required:["Format","Bytes","ImportManifestUrl"],members:{Format:{locationName:"format"},Bytes:{locationName:"bytes",type:"long"},ImportManifestUrl:{locationName:"importManifestUrl"}}},Sgz:{type:"structure",required:["Size"],members:{Size:{locationName:"size",type:"long"}}},Sha:{type:"list",member:{locationName:"UserId"}},Shx:{type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},Monitoring:{shape:"Sap",locationName:"monitoring"}}}},Sj2:{type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},CurrentState:{shape:"Sa9",locationName:"currentState"},PreviousState:{shape:"Sa9",locationName:"previousState"}}}}},examples:{},paginators:{DescribeAccountAttributes:{result_key:"AccountAttributes"},DescribeAddresses:{result_key:"Addresses"},DescribeAvailabilityZones:{result_key:"AvailabilityZones"},DescribeBundleTasks:{result_key:"BundleTasks"},DescribeConversionTasks:{result_key:"ConversionTasks"},DescribeCustomerGateways:{result_key:"CustomerGateways"},DescribeDhcpOptions:{result_key:"DhcpOptions"},DescribeExportTasks:{result_key:"ExportTasks"},DescribeImages:{result_key:"Images"},DescribeInstanceStatus:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"InstanceStatuses"},DescribeInstances:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"Reservations"},DescribeInternetGateways:{result_key:"InternetGateways"},DescribeKeyPairs:{result_key:"KeyPairs"},DescribeNetworkAcls:{result_key:"NetworkAcls"},DescribeNetworkInterfaces:{result_key:"NetworkInterfaces"},DescribePlacementGroups:{result_key:"PlacementGroups"},DescribeRegions:{result_key:"Regions"},DescribeReservedInstances:{result_key:"ReservedInstances"},DescribeReservedInstancesListings:{result_key:"ReservedInstancesListings"},DescribeReservedInstancesOfferings:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"ReservedInstancesOfferings"},DescribeReservedInstancesModifications:{input_token:"NextToken",output_token:"NextToken",result_key:"ReservedInstancesModifications"},DescribeRouteTables:{result_key:"RouteTables"},DescribeSecurityGroups:{result_key:"SecurityGroups"},DescribeSnapshots:{input_token:"NextToken",output_token:"NextToken",result_key:"Snapshots"},DescribeSpotInstanceRequests:{result_key:"SpotInstanceRequests"},DescribeSpotPriceHistory:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"SpotPriceHistory"},DescribeSubnets:{result_key:"Subnets"},DescribeTags:{result_key:"Tags"},DescribeVolumeStatus:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"VolumeStatuses"},DescribeVolumes:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"Volumes"},DescribeVpcs:{result_key:"Vpcs"},DescribeVpnConnections:{result_key:"VpnConnections"},DescribeVpnGateways:{result_key:"VpnGateways"}},waiters:{__default__:{interval:15,max_attempts:40,acceptor_type:"output"},__InstanceState:{operation:"DescribeInstances",acceptor_path:"Reservations[].Instances[].State.Name"},__InstanceStatus:{operation:"DescribeInstanceStatus",success_value:"ok"},SystemStatusOk:{"extends":"__InstanceStatus",acceptor_path:"InstanceStatuses[].SystemStatus.Status"},InstanceStatusOk:{"extends":"__InstanceStatus",acceptor_path:"InstanceStatuses[].InstanceStatus.Status"},ImageAvailable:{operation:"DescribeImages",acceptor_path:"Images[].State",success_value:"available",failure_value:["failed"]},InstanceRunning:{"extends":"__InstanceState",success_value:"running",failure_value:["shutting-down","terminated","stopping"]},InstanceStopped:{"extends":"__InstanceState",success_value:"stopped",failure_value:["pending","terminated"]},InstanceTerminated:{"extends":"__InstanceState",success_value:"terminated",failure_value:["pending","stopping"]},__ExportTaskState:{operation:"DescribeExportTasks",acceptor_path:"ExportTasks[].State"},ExportTaskCompleted:{"extends":"__ExportTaskState",success_value:"completed"},ExportTaskCancelled:{"extends":"__ExportTaskState",success_value:"cancelled"},SnapshotCompleted:{operation:"DescribeSnapshots",success_path:"Snapshots[].State",success_value:"completed"},SubnetAvailable:{operation:"DescribeSubnets",success_path:"Subnets[].State",success_value:"available"},__VolumeStatus:{operation:"DescribeVolumes",acceptor_path:"Volumes[].State"},VolumeAvailable:{"extends":"__VolumeStatus",success_value:"available",failure_value:["deleted"]},VolumeInUse:{"extends":"__VolumeStatus",success_value:"in-use",failure_value:["deleted"]},VolumeDeleted:{"extends":"__VolumeStatus",success_type:"error",success_value:"InvalidVolume.NotFound"},VpcAvailable:{operation:"DescribeVpcs",success_path:"Vpcs[].State",success_value:"available"},__VpnConnectionState:{operation:"DescribeVpnConnections",acceptor_path:"VpnConnections[].State"},VpnConnectionAvailable:{"extends":"__VpnConnectionState",success_value:"available",failure_value:["deleting","deleted"]},VpnConnectionDeleted:{"extends":"__VpnConnectionState",success_value:"deleted",failure_value:["pending"]},BundleTaskComplete:{operation:"DescribeBundleTasks",acceptor_path:"BundleTasks[].State",success_value:"complete",failure_value:["failed"]},__ConversionTaskState:{operation:"DescribeConversionTasks",acceptor_path:"ConversionTasks[].State"},ConversionTaskCompleted:{"extends":"__ConversionTaskState",success_value:"completed",failure_value:["cancelled","cancelling"]},ConversionTaskCancelled:{"extends":"__ConversionTaskState",success_value:"cancelled"},__CustomerGatewayState:{operation:"DescribeCustomerGateways",acceptor_path:"CustomerGateways[].State"},CustomerGatewayAvailable:{"extends":"__CustomerGatewayState",success_value:"available",failure_value:["deleted","deleting"]},ConversionTaskDeleted:{"extends":"__CustomerGatewayState",success_value:"deleted"},__SpotInstanceRequestState:{operation:"DescribeSpotInstanceRequests",acceptor_path:"SpotInstanceRequests[].Status.Code"},SpotInstanceRequestFulfilled:{"extends":"__SpotInstanceRequestState",success_value:"fulfilled",failure_value:["schedule-expired","canceled-before-fulfillment","bad-parameters","system-error"]}}};AWS.apiLoader.services["elastictranscoder"]={};AWS.ElasticTranscoder=AWS.Service.defineService("elastictranscoder",["2012-09-25"]);AWS.apiLoader.services["elastictranscoder"]["2012-09-25"]={version:"2.0",metadata:{apiVersion:"2012-09-25",endpointPrefix:"elastictranscoder",serviceFullName:"Amazon Elastic Transcoder",signatureVersion:"v4",protocol:"rest-json"},operations:{CancelJob:{http:{method:"DELETE",requestUri:"/2012-09-25/jobs/{Id}",responseCode:202},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{}}},CreateJob:{http:{requestUri:"/2012-09-25/jobs",responseCode:201},input:{type:"structure",required:["PipelineId","Input"],members:{PipelineId:{},Input:{shape:"S5"},Output:{shape:"Sk"},Outputs:{type:"list",member:{shape:"Sk"}},OutputKeyPrefix:{},Playlists:{type:"list",member:{type:"structure",members:{Name:{},Format:{},OutputKeys:{shape:"S1i"},HlsContentProtection:{shape:"S1j"},PlayReadyDrm:{shape:"S1n"}}}},UserMetadata:{shape:"S1s"}}},output:{type:"structure",members:{Job:{shape:"S1v"}}}},CreatePipeline:{http:{requestUri:"/2012-09-25/pipelines",responseCode:201},input:{type:"structure",required:["Name","InputBucket","Role"],members:{Name:{},InputBucket:{},OutputBucket:{},Role:{},AwsKmsKeyArn:{},Notifications:{shape:"S27"},ContentConfig:{shape:"S29"},ThumbnailConfig:{shape:"S29"}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"},Warnings:{shape:"S2k"}}}},CreatePreset:{http:{requestUri:"/2012-09-25/presets",responseCode:201},input:{type:"structure",required:["Name","Container"],members:{Name:{},Description:{},Container:{},Video:{shape:"S2o"},Audio:{shape:"S34"},Thumbnails:{shape:"S3f"}}},output:{type:"structure",members:{Preset:{shape:"S3j"},Warning:{}}}},DeletePipeline:{http:{method:"DELETE",requestUri:"/2012-09-25/pipelines/{Id}",responseCode:202},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{}}},DeletePreset:{http:{method:"DELETE",requestUri:"/2012-09-25/presets/{Id}",responseCode:202},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{}}},ListJobsByPipeline:{http:{method:"GET",requestUri:"/2012-09-25/jobsByPipeline/{PipelineId}"},input:{type:"structure",required:["PipelineId"],members:{PipelineId:{location:"uri",locationName:"PipelineId"},Ascending:{location:"querystring",locationName:"Ascending"},PageToken:{location:"querystring",locationName:"PageToken"}}},output:{type:"structure",members:{Jobs:{shape:"S3s"},NextPageToken:{}}}},ListJobsByStatus:{http:{method:"GET",requestUri:"/2012-09-25/jobsByStatus/{Status}"},input:{type:"structure",required:["Status"],members:{Status:{location:"uri",locationName:"Status"},Ascending:{location:"querystring",locationName:"Ascending"},PageToken:{location:"querystring",locationName:"PageToken"}}},output:{type:"structure",members:{Jobs:{shape:"S3s"},NextPageToken:{}}}},ListPipelines:{http:{method:"GET",requestUri:"/2012-09-25/pipelines"},input:{type:"structure",members:{Ascending:{location:"querystring",locationName:"Ascending"},PageToken:{location:"querystring",locationName:"PageToken"}}},output:{type:"structure",members:{Pipelines:{type:"list",member:{shape:"S2i"}},NextPageToken:{}}}},ListPresets:{http:{method:"GET",requestUri:"/2012-09-25/presets"},input:{type:"structure",members:{Ascending:{location:"querystring",locationName:"Ascending"},PageToken:{location:"querystring",locationName:"PageToken"}}},output:{type:"structure",members:{Presets:{type:"list",member:{shape:"S3j"}},NextPageToken:{}}}},ReadJob:{http:{method:"GET",requestUri:"/2012-09-25/jobs/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Job:{shape:"S1v"}}}},ReadPipeline:{http:{method:"GET",requestUri:"/2012-09-25/pipelines/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"},Warnings:{shape:"S2k"}}}},ReadPreset:{http:{method:"GET",requestUri:"/2012-09-25/presets/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Preset:{shape:"S3j"}}}},TestRole:{http:{requestUri:"/2012-09-25/roleTests",responseCode:200},input:{type:"structure",required:["Role","InputBucket","OutputBucket","Topics"],members:{Role:{},InputBucket:{},OutputBucket:{},Topics:{type:"list",member:{}}}},output:{type:"structure",members:{Success:{},Messages:{type:"list",member:{}}}}},UpdatePipeline:{http:{method:"PUT",requestUri:"/2012-09-25/pipelines/{Id}",responseCode:200},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},Name:{},InputBucket:{},Role:{},AwsKmsKeyArn:{},Notifications:{shape:"S27"},ContentConfig:{shape:"S29"},ThumbnailConfig:{shape:"S29"}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"},Warnings:{shape:"S2k"}}}},UpdatePipelineNotifications:{http:{requestUri:"/2012-09-25/pipelines/{Id}/notifications"},input:{type:"structure",required:["Id","Notifications"],members:{Id:{location:"uri",locationName:"Id"},Notifications:{shape:"S27"}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"}}}},UpdatePipelineStatus:{http:{requestUri:"/2012-09-25/pipelines/{Id}/status"},input:{type:"structure",required:["Id","Status"],members:{Id:{location:"uri",locationName:"Id"},Status:{}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"}}}}},shapes:{S5:{type:"structure",members:{Key:{},FrameRate:{},Resolution:{},AspectRatio:{},Interlaced:{},Container:{},Encryption:{shape:"Sc"},DetectedProperties:{type:"structure",members:{Width:{type:"integer"},Height:{type:"integer"},FrameRate:{},FileSize:{type:"long"},DurationMillis:{type:"long"}}}}},Sc:{type:"structure",members:{Mode:{},Key:{},KeyMd5:{},InitializationVector:{}}},Sk:{type:"structure",members:{Key:{},ThumbnailPattern:{},ThumbnailEncryption:{shape:"Sc"},Rotate:{},PresetId:{},SegmentDuration:{},Watermarks:{shape:"Sn"},AlbumArt:{shape:"Sr"},Composition:{shape:"Sz"},Captions:{shape:"S13"},Encryption:{shape:"Sc"}}},Sn:{type:"list",member:{type:"structure",members:{PresetWatermarkId:{},InputKey:{},Encryption:{shape:"Sc"}}}},Sr:{type:"structure",members:{MergePolicy:{},Artwork:{type:"list",member:{type:"structure",members:{InputKey:{},MaxWidth:{},MaxHeight:{},SizingPolicy:{},PaddingPolicy:{},AlbumArtFormat:{},Encryption:{shape:"Sc"}}}}}},Sz:{type:"list",member:{type:"structure",members:{TimeSpan:{type:"structure",members:{StartTime:{},Duration:{}}}}}},S13:{type:"structure",members:{MergePolicy:{},CaptionSources:{type:"list",member:{type:"structure",members:{Key:{},Language:{},TimeOffset:{},Label:{},Encryption:{shape:"Sc"}}}},CaptionFormats:{type:"list",member:{type:"structure",members:{Format:{},Pattern:{},Encryption:{shape:"Sc"}}}}}},S1i:{type:"list",member:{}},S1j:{type:"structure",members:{Method:{},Key:{},KeyMd5:{},InitializationVector:{},LicenseAcquisitionUrl:{},KeyStoragePolicy:{}}},S1n:{type:"structure",members:{Format:{},Key:{},KeyMd5:{},KeyId:{},InitializationVector:{},LicenseAcquisitionUrl:{}}},S1s:{type:"map",key:{},value:{}},S1v:{type:"structure",members:{Id:{},Arn:{},PipelineId:{},Input:{shape:"S5"},Output:{shape:"S1w"},Outputs:{type:"list",member:{shape:"S1w"}},OutputKeyPrefix:{},Playlists:{type:"list",member:{type:"structure",members:{Name:{},Format:{},OutputKeys:{shape:"S1i"},HlsContentProtection:{shape:"S1j"},PlayReadyDrm:{shape:"S1n"},Status:{},StatusDetail:{}}}},Status:{},UserMetadata:{shape:"S1s"},Timing:{type:"structure",members:{SubmitTimeMillis:{type:"long"},StartTimeMillis:{type:"long"},FinishTimeMillis:{type:"long"}}}}},S1w:{type:"structure",members:{Id:{},Key:{},ThumbnailPattern:{},ThumbnailEncryption:{shape:"Sc"},Rotate:{},PresetId:{},SegmentDuration:{},Status:{},StatusDetail:{},Duration:{type:"long"},Width:{type:"integer"},Height:{type:"integer"},FrameRate:{},FileSize:{type:"long"},DurationMillis:{type:"long"},Watermarks:{shape:"Sn"},AlbumArt:{shape:"Sr"},Composition:{shape:"Sz"},Captions:{shape:"S13"},Encryption:{shape:"Sc"},AppliedColorSpaceConversion:{}}},S27:{type:"structure",members:{Progressing:{},Completed:{},Warning:{},Error:{}}},S29:{type:"structure",members:{Bucket:{},StorageClass:{},Permissions:{type:"list",member:{type:"structure",members:{GranteeType:{},Grantee:{},Access:{type:"list",member:{}}}}}}},S2i:{type:"structure",members:{Id:{},Arn:{},Name:{},Status:{},InputBucket:{},OutputBucket:{},Role:{},AwsKmsKeyArn:{},Notifications:{shape:"S27"},ContentConfig:{shape:"S29"},ThumbnailConfig:{shape:"S29"}}},S2k:{type:"list",member:{type:"structure",members:{Code:{},Message:{}}}},S2o:{type:"structure",members:{Codec:{},CodecOptions:{type:"map",key:{},value:{}},KeyframesMaxDist:{},FixedGOP:{},BitRate:{},FrameRate:{},MaxFrameRate:{},Resolution:{},AspectRatio:{},MaxWidth:{},MaxHeight:{},DisplayAspectRatio:{},SizingPolicy:{},PaddingPolicy:{},Watermarks:{type:"list",member:{type:"structure",members:{Id:{},MaxWidth:{},MaxHeight:{},SizingPolicy:{},HorizontalAlign:{},HorizontalOffset:{},VerticalAlign:{},VerticalOffset:{},Opacity:{},Target:{}}}}}},S34:{type:"structure",members:{Codec:{},SampleRate:{},BitRate:{},Channels:{},AudioPackingMode:{},CodecOptions:{type:"structure",members:{Profile:{},BitDepth:{},BitOrder:{},Signed:{}}}}},S3f:{type:"structure",members:{Format:{},Interval:{},Resolution:{},AspectRatio:{},MaxWidth:{},MaxHeight:{},SizingPolicy:{},PaddingPolicy:{}}},S3j:{type:"structure",members:{Id:{},Arn:{},Name:{},Description:{},Container:{},Audio:{shape:"S34"},Video:{shape:"S2o"},Thumbnails:{shape:"S3f"},Type:{}}},S3s:{type:"list",member:{shape:"S1v"}}},paginators:{ListJobsByPipeline:{input_token:"PageToken",output_token:"NextPageToken",result_key:"Jobs"},ListJobsByStatus:{input_token:"PageToken",output_token:"NextPageToken",result_key:"Jobs"},ListPipelines:{input_token:"PageToken",output_token:"NextPageToken",result_key:"Pipelines"},ListPresets:{input_token:"PageToken",output_token:"NextPageToken",result_key:"Presets"}},waiters:{JobComplete:{operation:"ReadJob",success_type:"output",success_path:"Job.Status",interval:30,max_attempts:120,success_value:"Complete",failure_value:["Canceled","Error"]}}};AWS.apiLoader.services["kinesis"]={};AWS.Kinesis=AWS.Service.defineService("kinesis",["2013-12-02"]);AWS.apiLoader.services["kinesis"]["2013-12-02"]={version:"2.0",metadata:{apiVersion:"2013-12-02",endpointPrefix:"kinesis",jsonVersion:"1.1",serviceAbbreviation:"Kinesis",serviceFullName:"Amazon Kinesis",signatureVersion:"v4",targetPrefix:"Kinesis_20131202",protocol:"json"},operations:{AddTagsToStream:{input:{type:"structure",required:["StreamName","Tags"],members:{StreamName:{},Tags:{type:"map",key:{},value:{}}}},http:{}},CreateStream:{input:{type:"structure",required:["StreamName","ShardCount"],members:{StreamName:{},ShardCount:{type:"integer"}}},http:{}},DeleteStream:{input:{type:"structure",required:["StreamName"],members:{StreamName:{}}},http:{}},DescribeStream:{input:{type:"structure",required:["StreamName"],members:{StreamName:{},Limit:{type:"integer"},ExclusiveStartShardId:{}}},output:{type:"structure",required:["StreamDescription"],members:{StreamDescription:{type:"structure",required:["StreamName","StreamARN","StreamStatus","Shards","HasMoreShards"],members:{StreamName:{},StreamARN:{},StreamStatus:{},Shards:{type:"list",member:{type:"structure",required:["ShardId","HashKeyRange","SequenceNumberRange"],members:{ShardId:{},ParentShardId:{},AdjacentParentShardId:{},HashKeyRange:{type:"structure",required:["StartingHashKey","EndingHashKey"],members:{StartingHashKey:{},EndingHashKey:{}}},SequenceNumberRange:{type:"structure",required:["StartingSequenceNumber"],members:{StartingSequenceNumber:{},EndingSequenceNumber:{}}}}}},HasMoreShards:{type:"boolean"}}}}},http:{}},GetRecords:{input:{type:"structure",required:["ShardIterator"],members:{ShardIterator:{},Limit:{type:"integer"}}},output:{type:"structure",required:["Records"],members:{Records:{type:"list",member:{type:"structure",required:["SequenceNumber","Data","PartitionKey"],members:{SequenceNumber:{},Data:{type:"blob"},PartitionKey:{}}}},NextShardIterator:{},MillisBehindLatest:{type:"long"}}},http:{}},GetShardIterator:{input:{type:"structure",required:["StreamName","ShardId","ShardIteratorType"],members:{StreamName:{},ShardId:{},ShardIteratorType:{},StartingSequenceNumber:{}}},output:{type:"structure",members:{ShardIterator:{}}},http:{}},ListStreams:{input:{type:"structure",members:{Limit:{type:"integer"},ExclusiveStartStreamName:{}}},output:{type:"structure",required:["StreamNames","HasMoreStreams"],members:{StreamNames:{type:"list",member:{}},HasMoreStreams:{type:"boolean"}}},http:{}},ListTagsForStream:{input:{type:"structure",required:["StreamName"],members:{StreamName:{},ExclusiveStartTagKey:{},Limit:{type:"integer"}}},output:{type:"structure",required:["Tags","HasMoreTags"],members:{Tags:{type:"list",member:{type:"structure",required:["Key"],members:{Key:{},Value:{}}}},HasMoreTags:{type:"boolean"}}},http:{}},MergeShards:{input:{type:"structure",required:["StreamName","ShardToMerge","AdjacentShardToMerge"],members:{StreamName:{},ShardToMerge:{},AdjacentShardToMerge:{}}},http:{}},PutRecord:{input:{type:"structure",required:["StreamName","Data","PartitionKey"],members:{StreamName:{},Data:{type:"blob"},PartitionKey:{},ExplicitHashKey:{},SequenceNumberForOrdering:{}}},output:{type:"structure",required:["ShardId","SequenceNumber"],members:{ShardId:{},SequenceNumber:{}}},http:{}},PutRecords:{input:{type:"structure",required:["Records","StreamName"],members:{Records:{type:"list",member:{type:"structure",required:["Data","PartitionKey"],members:{Data:{type:"blob"},ExplicitHashKey:{},PartitionKey:{}}}},StreamName:{}}},output:{type:"structure",required:["Records"],members:{FailedRecordCount:{type:"integer"},Records:{type:"list",member:{type:"structure",members:{SequenceNumber:{},ShardId:{},ErrorCode:{},ErrorMessage:{}}}}}},http:{}},RemoveTagsFromStream:{input:{type:"structure",required:["StreamName","TagKeys"],members:{StreamName:{},TagKeys:{type:"list",member:{}}}},http:{} +},SplitShard:{input:{type:"structure",required:["StreamName","ShardToSplit","NewStartingHashKey"],members:{StreamName:{},ShardToSplit:{},NewStartingHashKey:{}}},http:{}}},shapes:{},paginators:{DescribeStream:{input_token:"ExclusiveStartShardId",limit_key:"Limit",more_results:"StreamDescription.HasMoreShards",output_token:"StreamDescription.Shards[-1].ShardId",result_key:"StreamDescription.Shards"},ListStreams:{input_token:"ExclusiveStartStreamName",limit_key:"Limit",more_results:"HasMoreStreams",output_token:"StreamNames[-1]",result_key:"StreamNames"}}};AWS.apiLoader.services["lambda"]={};AWS.Lambda=AWS.Service.defineService("lambda",["2014-11-11","2015-03-31"]);AWS.apiLoader.services["lambda"]["2015-03-31"]={version:"2.0",metadata:{apiVersion:"2015-03-31",endpointPrefix:"lambda",serviceFullName:"AWS Lambda",signatureVersion:"v4",protocol:"rest-json"},operations:{AddPermission:{http:{requestUri:"/2015-03-31/functions/{FunctionName}/versions/HEAD/policy",responseCode:201},input:{type:"structure",required:["FunctionName","StatementId","Action","Principal"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},StatementId:{},Action:{},Principal:{},SourceArn:{},SourceAccount:{}}},output:{type:"structure",members:{Statement:{}}}},CreateEventSourceMapping:{http:{requestUri:"/2015-03-31/event-source-mappings/",responseCode:202},input:{type:"structure",required:["EventSourceArn","FunctionName","StartingPosition"],members:{EventSourceArn:{},FunctionName:{},Enabled:{type:"boolean"},BatchSize:{type:"integer"},StartingPosition:{}}},output:{shape:"Se"}},CreateFunction:{http:{requestUri:"/2015-03-31/functions",responseCode:201},input:{type:"structure",required:["FunctionName","Runtime","Role","Handler","Code"],members:{FunctionName:{},Runtime:{},Role:{},Handler:{},Description:{},Timeout:{type:"integer"},MemorySize:{type:"integer"},Code:{type:"structure",members:{ZipFile:{type:"blob"},S3Bucket:{},S3Key:{},S3ObjectVersion:{}}}}},output:{shape:"St"}},DeleteEventSourceMapping:{http:{method:"DELETE",requestUri:"/2015-03-31/event-source-mappings/{UUID}",responseCode:202},input:{type:"structure",required:["UUID"],members:{UUID:{location:"uri",locationName:"UUID"}}},output:{shape:"Se"}},DeleteFunction:{http:{method:"DELETE",requestUri:"/2015-03-31/functions/{FunctionName}",responseCode:204},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}}},GetEventSourceMapping:{http:{method:"GET",requestUri:"/2015-03-31/event-source-mappings/{UUID}",responseCode:200},input:{type:"structure",required:["UUID"],members:{UUID:{location:"uri",locationName:"UUID"}}},output:{shape:"Se"}},GetFunction:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/versions/HEAD",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}},output:{type:"structure",members:{Configuration:{shape:"St"},Code:{type:"structure",members:{RepositoryType:{},Location:{}}}}}},GetFunctionConfiguration:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/versions/HEAD/configuration",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}},output:{shape:"St"}},GetPolicy:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/versions/HEAD/policy",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}},output:{type:"structure",members:{Policy:{}}}},Invoke:{http:{requestUri:"/2015-03-31/functions/{FunctionName}/invocations"},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},InvocationType:{location:"header",locationName:"X-Amz-Invocation-Type"},LogType:{location:"header",locationName:"X-Amz-Log-Type"},ClientContext:{location:"header",locationName:"X-Amz-Client-Context"},Payload:{type:"blob"}},payload:"Payload"},output:{type:"structure",members:{StatusCode:{location:"statusCode",type:"integer"},FunctionError:{location:"header",locationName:"X-Amz-Function-Error"},LogResult:{location:"header",locationName:"X-Amz-Log-Result"},Payload:{type:"blob"}},payload:"Payload"}},InvokeAsync:{http:{requestUri:"/2014-11-13/functions/{FunctionName}/invoke-async/",responseCode:202},input:{deprecated:true,type:"structure",required:["FunctionName","InvokeArgs"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},InvokeArgs:{type:"blob",streaming:true}},payload:"InvokeArgs"},output:{deprecated:true,type:"structure",members:{Status:{location:"statusCode",type:"integer"}}},deprecated:true},ListEventSourceMappings:{http:{method:"GET",requestUri:"/2015-03-31/event-source-mappings/",responseCode:200},input:{type:"structure",members:{EventSourceArn:{location:"querystring",locationName:"EventSourceArn"},FunctionName:{location:"querystring",locationName:"FunctionName"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},EventSourceMappings:{type:"list",member:{shape:"Se"}}}}},ListFunctions:{http:{method:"GET",requestUri:"/2015-03-31/functions/",responseCode:200},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},Functions:{type:"list",member:{shape:"St"}}}}},RemovePermission:{http:{method:"DELETE",requestUri:"/2015-03-31/functions/{FunctionName}/versions/HEAD/policy/{StatementId}",responseCode:204},input:{type:"structure",required:["FunctionName","StatementId"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},StatementId:{location:"uri",locationName:"StatementId"}}}},UpdateEventSourceMapping:{http:{method:"PUT",requestUri:"/2015-03-31/event-source-mappings/{UUID}",responseCode:202},input:{type:"structure",required:["UUID"],members:{UUID:{location:"uri",locationName:"UUID"},FunctionName:{},Enabled:{type:"boolean"},BatchSize:{type:"integer"}}},output:{shape:"Se"}},UpdateFunctionCode:{http:{method:"PUT",requestUri:"/2015-03-31/functions/{FunctionName}/versions/HEAD/code",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},ZipFile:{type:"blob"},S3Bucket:{},S3Key:{},S3ObjectVersion:{}}},output:{shape:"St"}},UpdateFunctionConfiguration:{http:{method:"PUT",requestUri:"/2015-03-31/functions/{FunctionName}/versions/HEAD/configuration",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Role:{},Handler:{},Description:{},Timeout:{type:"integer"},MemorySize:{type:"integer"}}},output:{shape:"St"}}},shapes:{Se:{type:"structure",members:{UUID:{},BatchSize:{type:"integer"},EventSourceArn:{},FunctionArn:{},LastModified:{type:"timestamp"},LastProcessingResult:{},State:{},StateTransitionReason:{}}},St:{type:"structure",members:{FunctionName:{},FunctionArn:{},Runtime:{},Role:{},Handler:{},CodeSize:{type:"long"},Description:{},Timeout:{type:"integer"},MemorySize:{type:"integer"},LastModified:{}}}},paginators:{ListEventSourceMappings:{input_token:"Marker",output_token:"NextMarker",limit_key:"MaxItems",result_key:"EventSourceMappings"},ListFunctions:{input_token:"Marker",output_token:"NextMarker",limit_key:"MaxItems",result_key:"Functions"}}};AWS.apiLoader.services["machinelearning"]={};AWS.MachineLearning=AWS.Service.defineService("machinelearning",["2014-12-12"]);require("./services/machinelearning");AWS.apiLoader.services["machinelearning"]["2014-12-12"]={version:"2.0",metadata:{apiVersion:"2014-12-12",endpointPrefix:"machinelearning",jsonVersion:"1.1",serviceFullName:"Amazon Machine Learning",signatureVersion:"v4",targetPrefix:"AmazonML_20141212",protocol:"json"},operations:{CreateBatchPrediction:{input:{type:"structure",required:["BatchPredictionId","MLModelId","BatchPredictionDataSourceId","OutputUri"],members:{BatchPredictionId:{},BatchPredictionName:{},MLModelId:{},BatchPredictionDataSourceId:{},OutputUri:{}}},output:{type:"structure",members:{BatchPredictionId:{}}},http:{}},CreateDataSourceFromRDS:{input:{type:"structure",required:["DataSourceId","RDSData","RoleARN"],members:{DataSourceId:{},DataSourceName:{},RDSData:{type:"structure",required:["DatabaseInformation","SelectSqlQuery","DatabaseCredentials","S3StagingLocation","ResourceRole","ServiceRole","SubnetId","SecurityGroupIds"],members:{DatabaseInformation:{shape:"S8"},SelectSqlQuery:{},DatabaseCredentials:{type:"structure",required:["Username","Password"],members:{Username:{},Password:{}}},S3StagingLocation:{},DataRearrangement:{},DataSchema:{},DataSchemaUri:{},ResourceRole:{},ServiceRole:{},SubnetId:{},SecurityGroupIds:{type:"list",member:{}}}},RoleARN:{},ComputeStatistics:{type:"boolean"}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},CreateDataSourceFromRedshift:{input:{type:"structure",required:["DataSourceId","DataSpec","RoleARN"],members:{DataSourceId:{},DataSourceName:{},DataSpec:{type:"structure",required:["DatabaseInformation","SelectSqlQuery","DatabaseCredentials","S3StagingLocation"],members:{DatabaseInformation:{shape:"Sr"},SelectSqlQuery:{},DatabaseCredentials:{type:"structure",required:["Username","Password"],members:{Username:{},Password:{}}},S3StagingLocation:{},DataRearrangement:{},DataSchema:{},DataSchemaUri:{}}},RoleARN:{},ComputeStatistics:{type:"boolean"}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},CreateDataSourceFromS3:{input:{type:"structure",required:["DataSourceId","DataSpec"],members:{DataSourceId:{},DataSourceName:{},DataSpec:{type:"structure",required:["DataLocationS3"],members:{DataLocationS3:{},DataRearrangement:{},DataSchema:{},DataSchemaLocationS3:{}}},ComputeStatistics:{type:"boolean"}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},CreateEvaluation:{input:{type:"structure",required:["EvaluationId","MLModelId","EvaluationDataSourceId"],members:{EvaluationId:{},EvaluationName:{},MLModelId:{},EvaluationDataSourceId:{}}},output:{type:"structure",members:{EvaluationId:{}}},http:{}},CreateMLModel:{input:{type:"structure",required:["MLModelId","MLModelType","TrainingDataSourceId"],members:{MLModelId:{},MLModelName:{},MLModelType:{},Parameters:{shape:"S16"},TrainingDataSourceId:{},Recipe:{},RecipeUri:{}}},output:{type:"structure",members:{MLModelId:{}}},http:{}},CreateRealtimeEndpoint:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{}}},output:{type:"structure",members:{MLModelId:{},RealtimeEndpointInfo:{shape:"S1c"}}},http:{}},DeleteBatchPrediction:{input:{type:"structure",required:["BatchPredictionId"],members:{BatchPredictionId:{}}},output:{type:"structure",members:{BatchPredictionId:{}}},http:{}},DeleteDataSource:{input:{type:"structure",required:["DataSourceId"],members:{DataSourceId:{}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},DeleteEvaluation:{input:{type:"structure",required:["EvaluationId"],members:{EvaluationId:{}}},output:{type:"structure",members:{EvaluationId:{}}},http:{}},DeleteMLModel:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{}}},output:{type:"structure",members:{MLModelId:{}}},http:{}},DeleteRealtimeEndpoint:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{}}},output:{type:"structure",members:{MLModelId:{},RealtimeEndpointInfo:{shape:"S1c"}}},http:{}},DescribeBatchPredictions:{input:{type:"structure",members:{FilterVariable:{},EQ:{},GT:{},LT:{},GE:{},LE:{},NE:{},Prefix:{},SortOrder:{},NextToken:{},Limit:{type:"integer"}}},output:{type:"structure",members:{Results:{type:"list",member:{type:"structure",members:{BatchPredictionId:{},MLModelId:{},BatchPredictionDataSourceId:{},InputDataLocationS3:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},OutputUri:{},Message:{}}}},NextToken:{}}},http:{}},DescribeDataSources:{input:{type:"structure",members:{FilterVariable:{},EQ:{},GT:{},LT:{},GE:{},LE:{},NE:{},Prefix:{},SortOrder:{},NextToken:{},Limit:{type:"integer"}}},output:{type:"structure",members:{Results:{type:"list",member:{type:"structure",members:{DataSourceId:{},DataLocationS3:{},DataRearrangement:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},DataSizeInBytes:{type:"long"},NumberOfFiles:{type:"long"},Name:{},Status:{},Message:{},RedshiftMetadata:{shape:"S28"},RDSMetadata:{shape:"S29"},RoleARN:{},ComputeStatistics:{type:"boolean"}}}},NextToken:{}}},http:{}},DescribeEvaluations:{input:{type:"structure",members:{FilterVariable:{},EQ:{},GT:{},LT:{},GE:{},LE:{},NE:{},Prefix:{},SortOrder:{},NextToken:{},Limit:{type:"integer"}}},output:{type:"structure",members:{Results:{type:"list",member:{type:"structure",members:{EvaluationId:{},MLModelId:{},EvaluationDataSourceId:{},InputDataLocationS3:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},PerformanceMetrics:{shape:"S2g"},Message:{}}}},NextToken:{}}},http:{}},DescribeMLModels:{input:{type:"structure",members:{FilterVariable:{},EQ:{},GT:{},LT:{},GE:{},LE:{},NE:{},Prefix:{},SortOrder:{},NextToken:{},Limit:{type:"integer"}}},output:{type:"structure",members:{Results:{type:"list",member:{type:"structure",members:{MLModelId:{},TrainingDataSourceId:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},SizeInBytes:{type:"long"},EndpointInfo:{shape:"S1c"},TrainingParameters:{shape:"S16"},InputDataLocationS3:{},Algorithm:{},MLModelType:{},ScoreThreshold:{type:"float"},ScoreThresholdLastUpdatedAt:{type:"timestamp"},Message:{}}}},NextToken:{}}},http:{}},GetBatchPrediction:{input:{type:"structure",required:["BatchPredictionId"],members:{BatchPredictionId:{}}},output:{type:"structure",members:{BatchPredictionId:{},MLModelId:{},BatchPredictionDataSourceId:{},InputDataLocationS3:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},OutputUri:{},LogUri:{},Message:{}}},http:{}},GetDataSource:{input:{type:"structure",required:["DataSourceId"],members:{DataSourceId:{},Verbose:{type:"boolean"}}},output:{type:"structure",members:{DataSourceId:{},DataLocationS3:{},DataRearrangement:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},DataSizeInBytes:{type:"long"},NumberOfFiles:{type:"long"},Name:{},Status:{},LogUri:{},Message:{},RedshiftMetadata:{shape:"S28"},RDSMetadata:{shape:"S29"},RoleARN:{},ComputeStatistics:{type:"boolean"},DataSourceSchema:{}}},http:{}},GetEvaluation:{input:{type:"structure",required:["EvaluationId"],members:{EvaluationId:{}}},output:{type:"structure",members:{EvaluationId:{},MLModelId:{},EvaluationDataSourceId:{},InputDataLocationS3:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},PerformanceMetrics:{shape:"S2g"},LogUri:{},Message:{}}},http:{}},GetMLModel:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{},Verbose:{type:"boolean"}}},output:{type:"structure",members:{MLModelId:{},TrainingDataSourceId:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},SizeInBytes:{type:"long"},EndpointInfo:{shape:"S1c"},TrainingParameters:{shape:"S16"},InputDataLocationS3:{},MLModelType:{},ScoreThreshold:{type:"float"},ScoreThresholdLastUpdatedAt:{type:"timestamp"},LogUri:{},Message:{},Recipe:{},Schema:{}}},http:{}},Predict:{input:{type:"structure",required:["MLModelId","Record","PredictEndpoint"],members:{MLModelId:{},Record:{type:"map",key:{},value:{}},PredictEndpoint:{}}},output:{type:"structure",members:{Prediction:{type:"structure",members:{predictedLabel:{},predictedValue:{type:"float"},predictedScores:{type:"map",key:{},value:{type:"float"}},details:{type:"map",key:{},value:{}}}}}},http:{}},UpdateBatchPrediction:{input:{type:"structure",required:["BatchPredictionId","BatchPredictionName"],members:{BatchPredictionId:{},BatchPredictionName:{}}},output:{type:"structure",members:{BatchPredictionId:{}}},http:{}},UpdateDataSource:{input:{type:"structure",required:["DataSourceId","DataSourceName"],members:{DataSourceId:{},DataSourceName:{}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},UpdateEvaluation:{input:{type:"structure",required:["EvaluationId","EvaluationName"],members:{EvaluationId:{},EvaluationName:{}}},output:{type:"structure",members:{EvaluationId:{}}},http:{}},UpdateMLModel:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{},MLModelName:{},ScoreThreshold:{type:"float"}}},output:{type:"structure",members:{MLModelId:{}}},http:{}}},shapes:{S8:{type:"structure",required:["InstanceIdentifier","DatabaseName"],members:{InstanceIdentifier:{},DatabaseName:{}}},Sr:{type:"structure",required:["DatabaseName","ClusterIdentifier"],members:{DatabaseName:{},ClusterIdentifier:{}}},S16:{type:"map",key:{},value:{}},S1c:{type:"structure",members:{PeakRequestsPerSecond:{type:"integer"},CreatedAt:{type:"timestamp"},EndpointUrl:{},EndpointStatus:{}}},S28:{type:"structure",members:{RedshiftDatabase:{shape:"Sr"},DatabaseUserName:{},SelectSqlQuery:{}}},S29:{type:"structure",members:{Database:{shape:"S8"},DatabaseUserName:{},SelectSqlQuery:{},ResourceRole:{},ServiceRole:{},DataPipelineId:{}}},S2g:{type:"structure",members:{Properties:{type:"map",key:{},value:{}}}}},paginators:{DescribeBatchPredictions:{limit_key:"Limit",output_token:"NextToken",input_token:"NextToken",result_key:"Results"},DescribeDataSources:{limit_key:"Limit",output_token:"NextToken",input_token:"NextToken",result_key:"Results"},DescribeEvaluations:{limit_key:"Limit",output_token:"NextToken",input_token:"NextToken",result_key:"Results"},DescribeMLModels:{limit_key:"Limit",output_token:"NextToken",input_token:"NextToken",result_key:"Results"}}};AWS.apiLoader.services["mobileanalytics"]={};AWS.MobileAnalytics=AWS.Service.defineService("mobileanalytics",["2014-06-05"]);AWS.apiLoader.services["mobileanalytics"]["2014-06-05"]={version:"2.0",metadata:{apiVersion:"2014-06-05",endpointPrefix:"mobileanalytics",serviceFullName:"Amazon Mobile Analytics",signatureVersion:"v4",protocol:"rest-json"},operations:{PutEvents:{http:{requestUri:"/2014-06-05/events",responseCode:202},input:{type:"structure",required:["events","clientContext"],members:{events:{type:"list",member:{type:"structure",required:["eventType","timestamp"],members:{eventType:{},timestamp:{},session:{type:"structure",members:{id:{},duration:{type:"long"},startTimestamp:{},stopTimestamp:{}}},version:{},attributes:{type:"map",key:{},value:{}},metrics:{type:"map",key:{},value:{type:"double"}}}}},clientContext:{location:"header",locationName:"x-amz-Client-Context"},clientContextEncoding:{location:"header",locationName:"x-amz-Client-Context-Encoding"}}}}},shapes:{}};AWS.apiLoader.services["opsworks"]={};AWS.OpsWorks=AWS.Service.defineService("opsworks",["2013-02-18"]);AWS.apiLoader.services["opsworks"]["2013-02-18"]={version:"2.0",metadata:{apiVersion:"2013-02-18",endpointPrefix:"opsworks",jsonVersion:"1.1",serviceFullName:"AWS OpsWorks",signatureVersion:"v4",targetPrefix:"OpsWorks_20130218",protocol:"json"},operations:{AssignInstance:{input:{type:"structure",required:["InstanceId","LayerIds"],members:{InstanceId:{},LayerIds:{shape:"S3"}}},http:{}},AssignVolume:{input:{type:"structure",required:["VolumeId"],members:{VolumeId:{},InstanceId:{}}},http:{}},AssociateElasticIp:{input:{type:"structure",required:["ElasticIp"],members:{ElasticIp:{},InstanceId:{}}},http:{}},AttachElasticLoadBalancer:{input:{type:"structure",required:["ElasticLoadBalancerName","LayerId"],members:{ElasticLoadBalancerName:{},LayerId:{}}},http:{}},CloneStack:{input:{type:"structure",required:["SourceStackId","ServiceRoleArn"],members:{SourceStackId:{},Name:{},Region:{},VpcId:{},Attributes:{shape:"S8"},ServiceRoleArn:{},DefaultInstanceProfileArn:{},DefaultOs:{},HostnameTheme:{},DefaultAvailabilityZone:{},DefaultSubnetId:{},CustomJson:{},ConfigurationManager:{shape:"Sa"},ChefConfiguration:{shape:"Sb"},UseCustomCookbooks:{type:"boolean"},UseOpsworksSecurityGroups:{type:"boolean"},CustomCookbooksSource:{shape:"Sd"},DefaultSshKeyName:{},ClonePermissions:{type:"boolean"},CloneAppIds:{shape:"S3"},DefaultRootDeviceType:{},AgentVersion:{}}},output:{type:"structure",members:{StackId:{}}},http:{}},CreateApp:{input:{type:"structure",required:["StackId","Name","Type"],members:{StackId:{},Shortname:{},Name:{},Description:{},DataSources:{shape:"Si"},Type:{},AppSource:{shape:"Sd"},Domains:{shape:"S3"},EnableSsl:{type:"boolean"},SslConfiguration:{shape:"Sl"},Attributes:{shape:"Sm"},Environment:{shape:"So"}}},output:{type:"structure",members:{AppId:{}}},http:{}},CreateDeployment:{input:{type:"structure",required:["StackId","Command"],members:{StackId:{},AppId:{},InstanceIds:{shape:"S3"},Command:{shape:"Ss"},Comment:{},CustomJson:{}}},output:{type:"structure",members:{DeploymentId:{}}},http:{}},CreateInstance:{input:{type:"structure",required:["StackId","LayerIds","InstanceType"],members:{StackId:{},LayerIds:{shape:"S3"},InstanceType:{},AutoScalingType:{},Hostname:{},Os:{},AmiId:{},SshKeyName:{},AvailabilityZone:{},VirtualizationType:{},SubnetId:{},Architecture:{},RootDeviceType:{},BlockDeviceMappings:{shape:"Sz"},InstallUpdatesOnBoot:{type:"boolean"},EbsOptimized:{type:"boolean"},AgentVersion:{}}},output:{type:"structure",members:{InstanceId:{}}},http:{}},CreateLayer:{input:{type:"structure",required:["StackId","Type","Name","Shortname"],members:{StackId:{},Type:{},Name:{},Shortname:{},Attributes:{shape:"S17"},CustomInstanceProfileArn:{},CustomJson:{},CustomSecurityGroupIds:{shape:"S3"},Packages:{shape:"S3"},VolumeConfigurations:{shape:"S19"},EnableAutoHealing:{type:"boolean"},AutoAssignElasticIps:{type:"boolean"},AutoAssignPublicIps:{type:"boolean"},CustomRecipes:{shape:"S1b"},InstallUpdatesOnBoot:{type:"boolean"},UseEbsOptimizedInstances:{type:"boolean"},LifecycleEventConfiguration:{shape:"S1c"}}},output:{type:"structure",members:{LayerId:{}}},http:{}},CreateStack:{input:{type:"structure",required:["Name","Region","ServiceRoleArn","DefaultInstanceProfileArn"],members:{Name:{},Region:{},VpcId:{},Attributes:{shape:"S8"},ServiceRoleArn:{},DefaultInstanceProfileArn:{},DefaultOs:{},HostnameTheme:{},DefaultAvailabilityZone:{},DefaultSubnetId:{},CustomJson:{},ConfigurationManager:{shape:"Sa"},ChefConfiguration:{shape:"Sb"},UseCustomCookbooks:{type:"boolean"},UseOpsworksSecurityGroups:{type:"boolean"},CustomCookbooksSource:{shape:"Sd"},DefaultSshKeyName:{},DefaultRootDeviceType:{},AgentVersion:{}}},output:{type:"structure",members:{StackId:{}}},http:{}},CreateUserProfile:{input:{type:"structure",required:["IamUserArn"],members:{IamUserArn:{},SshUsername:{},SshPublicKey:{},AllowSelfManagement:{type:"boolean"}}},output:{type:"structure",members:{IamUserArn:{}}},http:{}},DeleteApp:{input:{type:"structure",required:["AppId"],members:{AppId:{}}},http:{}},DeleteInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},DeleteElasticIp:{type:"boolean"},DeleteVolumes:{type:"boolean"}}},http:{}},DeleteLayer:{input:{type:"structure",required:["LayerId"],members:{LayerId:{}}},http:{}},DeleteStack:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},http:{}},DeleteUserProfile:{input:{type:"structure",required:["IamUserArn"],members:{IamUserArn:{}}},http:{}},DeregisterEcsCluster:{input:{type:"structure",required:["EcsClusterArn"],members:{EcsClusterArn:{}}},http:{}},DeregisterElasticIp:{input:{type:"structure",required:["ElasticIp"],members:{ElasticIp:{}}},http:{}},DeregisterInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},DeregisterRdsDbInstance:{input:{type:"structure",required:["RdsDbInstanceArn"],members:{RdsDbInstanceArn:{}}},http:{}},DeregisterVolume:{input:{type:"structure",required:["VolumeId"],members:{VolumeId:{}}},http:{}},DescribeAgentVersions:{input:{type:"structure",members:{StackId:{},ConfigurationManager:{shape:"Sa"}}},output:{type:"structure",members:{AgentVersions:{type:"list",member:{type:"structure",members:{Version:{},ConfigurationManager:{shape:"Sa"}}}}}},http:{}},DescribeApps:{input:{type:"structure",members:{StackId:{},AppIds:{shape:"S3"}}},output:{type:"structure",members:{Apps:{type:"list",member:{type:"structure",members:{AppId:{},StackId:{},Shortname:{},Name:{},Description:{},DataSources:{shape:"Si"},Type:{},AppSource:{shape:"Sd"},Domains:{shape:"S3"},EnableSsl:{type:"boolean"},SslConfiguration:{shape:"Sl"},Attributes:{shape:"Sm"},CreatedAt:{},Environment:{shape:"So"}}}}}},http:{}},DescribeCommands:{input:{type:"structure",members:{DeploymentId:{},InstanceId:{},CommandIds:{shape:"S3"}}},output:{type:"structure",members:{Commands:{type:"list",member:{type:"structure",members:{CommandId:{},InstanceId:{},DeploymentId:{},CreatedAt:{},AcknowledgedAt:{},CompletedAt:{},Status:{},ExitCode:{type:"integer"},LogUrl:{},Type:{}}}}}},http:{}},DescribeDeployments:{input:{type:"structure",members:{StackId:{},AppId:{},DeploymentIds:{shape:"S3"}}},output:{type:"structure",members:{Deployments:{type:"list",member:{type:"structure",members:{DeploymentId:{},StackId:{},AppId:{},CreatedAt:{},CompletedAt:{},Duration:{type:"integer"},IamUserArn:{},Comment:{},Command:{shape:"Ss"},Status:{},CustomJson:{},InstanceIds:{shape:"S3"}}}}}},http:{}},DescribeEcsClusters:{input:{type:"structure",members:{EcsClusterArns:{shape:"S3"},StackId:{},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{EcsClusters:{type:"list",member:{type:"structure",members:{EcsClusterArn:{},EcsClusterName:{},StackId:{},RegisteredAt:{}}}},NextToken:{}}},http:{}},DescribeElasticIps:{input:{type:"structure",members:{InstanceId:{},StackId:{},Ips:{shape:"S3"}}},output:{type:"structure",members:{ElasticIps:{type:"list",member:{type:"structure",members:{Ip:{},Name:{},Domain:{},Region:{},InstanceId:{}}}}}},http:{}},DescribeElasticLoadBalancers:{input:{type:"structure",members:{StackId:{},LayerIds:{shape:"S3"}}},output:{type:"structure",members:{ElasticLoadBalancers:{type:"list",member:{type:"structure",members:{ElasticLoadBalancerName:{},Region:{},DnsName:{},StackId:{},LayerId:{},VpcId:{},AvailabilityZones:{shape:"S3"},SubnetIds:{shape:"S3"},Ec2InstanceIds:{shape:"S3"}}}}}},http:{}},DescribeInstances:{input:{type:"structure",members:{StackId:{},LayerId:{},InstanceIds:{shape:"S3"}}},output:{type:"structure",members:{Instances:{type:"list",member:{type:"structure",members:{AgentVersion:{},AmiId:{},Architecture:{},AutoScalingType:{},AvailabilityZone:{},BlockDeviceMappings:{shape:"Sz"},CreatedAt:{},EbsOptimized:{type:"boolean"},Ec2InstanceId:{},EcsClusterArn:{},EcsContainerInstanceArn:{},ElasticIp:{},Hostname:{},InfrastructureClass:{},InstallUpdatesOnBoot:{type:"boolean"},InstanceId:{},InstanceProfileArn:{},InstanceType:{},LastServiceErrorId:{},LayerIds:{shape:"S3"},Os:{},Platform:{},PrivateDns:{},PrivateIp:{},PublicDns:{},PublicIp:{},RegisteredBy:{},ReportedAgentVersion:{},ReportedOs:{type:"structure",members:{Family:{},Name:{},Version:{}}},RootDeviceType:{},RootDeviceVolumeId:{},SecurityGroupIds:{shape:"S3"},SshHostDsaKeyFingerprint:{},SshHostRsaKeyFingerprint:{},SshKeyName:{},StackId:{},Status:{},SubnetId:{},VirtualizationType:{}}}}}},http:{}},DescribeLayers:{input:{type:"structure",members:{StackId:{},LayerIds:{shape:"S3"}}},output:{type:"structure",members:{Layers:{type:"list",member:{type:"structure",members:{StackId:{},LayerId:{},Type:{},Name:{},Shortname:{},Attributes:{shape:"S17"},CustomInstanceProfileArn:{},CustomJson:{},CustomSecurityGroupIds:{shape:"S3"},DefaultSecurityGroupNames:{shape:"S3"},Packages:{shape:"S3"},VolumeConfigurations:{shape:"S19"},EnableAutoHealing:{type:"boolean"},AutoAssignElasticIps:{type:"boolean"},AutoAssignPublicIps:{type:"boolean"},DefaultRecipes:{shape:"S1b"},CustomRecipes:{shape:"S1b"},CreatedAt:{},InstallUpdatesOnBoot:{type:"boolean"},UseEbsOptimizedInstances:{type:"boolean"},LifecycleEventConfiguration:{shape:"S1c"}}}}}},http:{}},DescribeLoadBasedAutoScaling:{input:{type:"structure",required:["LayerIds"],members:{LayerIds:{shape:"S3"}}},output:{type:"structure",members:{LoadBasedAutoScalingConfigurations:{type:"list",member:{type:"structure",members:{LayerId:{},Enable:{type:"boolean"},UpScaling:{shape:"S30"},DownScaling:{shape:"S30"}}}}}},http:{}},DescribeMyUserProfile:{output:{type:"structure",members:{UserProfile:{type:"structure",members:{IamUserArn:{},Name:{},SshUsername:{},SshPublicKey:{}}}}},http:{}},DescribePermissions:{input:{type:"structure",members:{IamUserArn:{},StackId:{}}},output:{type:"structure",members:{Permissions:{type:"list",member:{type:"structure",members:{StackId:{},IamUserArn:{},AllowSsh:{type:"boolean"},AllowSudo:{type:"boolean"},Level:{}}}}}},http:{}},DescribeRaidArrays:{input:{type:"structure",members:{InstanceId:{},StackId:{},RaidArrayIds:{shape:"S3"}}},output:{type:"structure",members:{RaidArrays:{type:"list",member:{type:"structure",members:{RaidArrayId:{},InstanceId:{},Name:{},RaidLevel:{type:"integer"},NumberOfDisks:{type:"integer"},Size:{type:"integer"},Device:{},MountPoint:{},AvailabilityZone:{},CreatedAt:{},StackId:{},VolumeType:{},Iops:{type:"integer"}}}}}},http:{}},DescribeRdsDbInstances:{input:{type:"structure",required:["StackId"],members:{StackId:{},RdsDbInstanceArns:{shape:"S3"}}},output:{type:"structure",members:{RdsDbInstances:{type:"list",member:{type:"structure",members:{RdsDbInstanceArn:{},DbInstanceIdentifier:{},DbUser:{},DbPassword:{},Region:{},Address:{},Engine:{},StackId:{},MissingOnRds:{type:"boolean"}}}}}},http:{}},DescribeServiceErrors:{input:{type:"structure",members:{StackId:{},InstanceId:{},ServiceErrorIds:{shape:"S3"}}},output:{type:"structure",members:{ServiceErrors:{type:"list",member:{type:"structure",members:{ServiceErrorId:{},StackId:{},InstanceId:{},Type:{},Message:{},CreatedAt:{}}}}}},http:{}},DescribeStackProvisioningParameters:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},output:{type:"structure",members:{AgentInstallerUrl:{},Parameters:{type:"map",key:{},value:{}}}},http:{}},DescribeStackSummary:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},output:{type:"structure",members:{StackSummary:{type:"structure",members:{StackId:{},Name:{},Arn:{},LayersCount:{type:"integer"},AppsCount:{type:"integer"},InstancesCount:{type:"structure",members:{Assigning:{type:"integer"},Booting:{type:"integer"},ConnectionLost:{type:"integer"},Deregistering:{type:"integer"},Online:{type:"integer"},Pending:{type:"integer"},Rebooting:{type:"integer"},Registered:{type:"integer"},Registering:{type:"integer"},Requested:{type:"integer"},RunningSetup:{type:"integer"},SetupFailed:{type:"integer"},ShuttingDown:{type:"integer"},StartFailed:{type:"integer"},Stopped:{type:"integer"},Stopping:{type:"integer"},Terminated:{type:"integer"},Terminating:{type:"integer"},Unassigning:{type:"integer"}}}}}}},http:{}},DescribeStacks:{input:{type:"structure",members:{StackIds:{shape:"S3"}}},output:{type:"structure",members:{Stacks:{type:"list",member:{type:"structure",members:{StackId:{},Name:{},Arn:{},Region:{},VpcId:{},Attributes:{shape:"S8"},ServiceRoleArn:{},DefaultInstanceProfileArn:{},DefaultOs:{},HostnameTheme:{},DefaultAvailabilityZone:{},DefaultSubnetId:{},CustomJson:{},ConfigurationManager:{shape:"Sa"},ChefConfiguration:{shape:"Sb"},UseCustomCookbooks:{type:"boolean"},UseOpsworksSecurityGroups:{type:"boolean"},CustomCookbooksSource:{shape:"Sd"},DefaultSshKeyName:{},CreatedAt:{},DefaultRootDeviceType:{},AgentVersion:{}}}}}},http:{}},DescribeTimeBasedAutoScaling:{input:{type:"structure",required:["InstanceIds"],members:{InstanceIds:{shape:"S3"}}},output:{type:"structure",members:{TimeBasedAutoScalingConfigurations:{type:"list",member:{type:"structure",members:{InstanceId:{},AutoScalingSchedule:{shape:"S40"}}}}}},http:{} +},DescribeUserProfiles:{input:{type:"structure",members:{IamUserArns:{shape:"S3"}}},output:{type:"structure",members:{UserProfiles:{type:"list",member:{type:"structure",members:{IamUserArn:{},Name:{},SshUsername:{},SshPublicKey:{},AllowSelfManagement:{type:"boolean"}}}}}},http:{}},DescribeVolumes:{input:{type:"structure",members:{InstanceId:{},StackId:{},RaidArrayId:{},VolumeIds:{shape:"S3"}}},output:{type:"structure",members:{Volumes:{type:"list",member:{type:"structure",members:{VolumeId:{},Ec2VolumeId:{},Name:{},RaidArrayId:{},InstanceId:{},Status:{},Size:{type:"integer"},Device:{},MountPoint:{},Region:{},AvailabilityZone:{},VolumeType:{},Iops:{type:"integer"}}}}}},http:{}},DetachElasticLoadBalancer:{input:{type:"structure",required:["ElasticLoadBalancerName","LayerId"],members:{ElasticLoadBalancerName:{},LayerId:{}}},http:{}},DisassociateElasticIp:{input:{type:"structure",required:["ElasticIp"],members:{ElasticIp:{}}},http:{}},GetHostnameSuggestion:{input:{type:"structure",required:["LayerId"],members:{LayerId:{}}},output:{type:"structure",members:{LayerId:{},Hostname:{}}},http:{}},GrantAccess:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},ValidForInMinutes:{type:"integer"}}},output:{type:"structure",members:{TemporaryCredential:{type:"structure",members:{Username:{},Password:{},ValidForInMinutes:{type:"integer"},InstanceId:{}}}}},http:{}},RebootInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},RegisterEcsCluster:{input:{type:"structure",required:["EcsClusterArn","StackId"],members:{EcsClusterArn:{},StackId:{}}},output:{type:"structure",members:{EcsClusterArn:{}}},http:{}},RegisterElasticIp:{input:{type:"structure",required:["ElasticIp","StackId"],members:{ElasticIp:{},StackId:{}}},output:{type:"structure",members:{ElasticIp:{}}},http:{}},RegisterInstance:{input:{type:"structure",required:["StackId"],members:{StackId:{},Hostname:{},PublicIp:{},PrivateIp:{},RsaPublicKey:{},RsaPublicKeyFingerprint:{},InstanceIdentity:{type:"structure",members:{Document:{},Signature:{}}}}},output:{type:"structure",members:{InstanceId:{}}},http:{}},RegisterRdsDbInstance:{input:{type:"structure",required:["StackId","RdsDbInstanceArn","DbUser","DbPassword"],members:{StackId:{},RdsDbInstanceArn:{},DbUser:{},DbPassword:{}}},http:{}},RegisterVolume:{input:{type:"structure",required:["StackId"],members:{Ec2VolumeId:{},StackId:{}}},output:{type:"structure",members:{VolumeId:{}}},http:{}},SetLoadBasedAutoScaling:{input:{type:"structure",required:["LayerId"],members:{LayerId:{},Enable:{type:"boolean"},UpScaling:{shape:"S30"},DownScaling:{shape:"S30"}}},http:{}},SetPermission:{input:{type:"structure",required:["StackId","IamUserArn"],members:{StackId:{},IamUserArn:{},AllowSsh:{type:"boolean"},AllowSudo:{type:"boolean"},Level:{}}},http:{}},SetTimeBasedAutoScaling:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},AutoScalingSchedule:{shape:"S40"}}},http:{}},StartInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},StartStack:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},http:{}},StopInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},StopStack:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},http:{}},UnassignInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},UnassignVolume:{input:{type:"structure",required:["VolumeId"],members:{VolumeId:{}}},http:{}},UpdateApp:{input:{type:"structure",required:["AppId"],members:{AppId:{},Name:{},Description:{},DataSources:{shape:"Si"},Type:{},AppSource:{shape:"Sd"},Domains:{shape:"S3"},EnableSsl:{type:"boolean"},SslConfiguration:{shape:"Sl"},Attributes:{shape:"Sm"},Environment:{shape:"So"}}},http:{}},UpdateElasticIp:{input:{type:"structure",required:["ElasticIp"],members:{ElasticIp:{},Name:{}}},http:{}},UpdateInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},LayerIds:{shape:"S3"},InstanceType:{},AutoScalingType:{},Hostname:{},Os:{},AmiId:{},SshKeyName:{},Architecture:{},InstallUpdatesOnBoot:{type:"boolean"},EbsOptimized:{type:"boolean"},AgentVersion:{}}},http:{}},UpdateLayer:{input:{type:"structure",required:["LayerId"],members:{LayerId:{},Name:{},Shortname:{},Attributes:{shape:"S17"},CustomInstanceProfileArn:{},CustomJson:{},CustomSecurityGroupIds:{shape:"S3"},Packages:{shape:"S3"},VolumeConfigurations:{shape:"S19"},EnableAutoHealing:{type:"boolean"},AutoAssignElasticIps:{type:"boolean"},AutoAssignPublicIps:{type:"boolean"},CustomRecipes:{shape:"S1b"},InstallUpdatesOnBoot:{type:"boolean"},UseEbsOptimizedInstances:{type:"boolean"},LifecycleEventConfiguration:{shape:"S1c"}}},http:{}},UpdateMyUserProfile:{input:{type:"structure",members:{SshPublicKey:{}}},http:{}},UpdateRdsDbInstance:{input:{type:"structure",required:["RdsDbInstanceArn"],members:{RdsDbInstanceArn:{},DbUser:{},DbPassword:{}}},http:{}},UpdateStack:{input:{type:"structure",required:["StackId"],members:{StackId:{},Name:{},Attributes:{shape:"S8"},ServiceRoleArn:{},DefaultInstanceProfileArn:{},DefaultOs:{},HostnameTheme:{},DefaultAvailabilityZone:{},DefaultSubnetId:{},CustomJson:{},ConfigurationManager:{shape:"Sa"},ChefConfiguration:{shape:"Sb"},UseCustomCookbooks:{type:"boolean"},CustomCookbooksSource:{shape:"Sd"},DefaultSshKeyName:{},DefaultRootDeviceType:{},UseOpsworksSecurityGroups:{type:"boolean"},AgentVersion:{}}},http:{}},UpdateUserProfile:{input:{type:"structure",required:["IamUserArn"],members:{IamUserArn:{},SshUsername:{},SshPublicKey:{},AllowSelfManagement:{type:"boolean"}}},http:{}},UpdateVolume:{input:{type:"structure",required:["VolumeId"],members:{VolumeId:{},Name:{},MountPoint:{}}},http:{}}},shapes:{S3:{type:"list",member:{}},S8:{type:"map",key:{},value:{}},Sa:{type:"structure",members:{Name:{},Version:{}}},Sb:{type:"structure",members:{ManageBerkshelf:{type:"boolean"},BerkshelfVersion:{}}},Sd:{type:"structure",members:{Type:{},Url:{},Username:{},Password:{},SshKey:{},Revision:{}}},Si:{type:"list",member:{type:"structure",members:{Type:{},Arn:{},DatabaseName:{}}}},Sl:{type:"structure",required:["Certificate","PrivateKey"],members:{Certificate:{},PrivateKey:{},Chain:{}}},Sm:{type:"map",key:{},value:{}},So:{type:"list",member:{type:"structure",required:["Key","Value"],members:{Key:{},Value:{},Secure:{type:"boolean"}}}},Ss:{type:"structure",required:["Name"],members:{Name:{},Args:{type:"map",key:{},value:{shape:"S3"}}}},Sz:{type:"list",member:{type:"structure",members:{DeviceName:{},NoDevice:{},VirtualName:{},Ebs:{type:"structure",members:{SnapshotId:{},Iops:{type:"integer"},VolumeSize:{type:"integer"},VolumeType:{},DeleteOnTermination:{type:"boolean"}}}}}},S17:{type:"map",key:{},value:{}},S19:{type:"list",member:{type:"structure",required:["MountPoint","NumberOfDisks","Size"],members:{MountPoint:{},RaidLevel:{type:"integer"},NumberOfDisks:{type:"integer"},Size:{type:"integer"},VolumeType:{},Iops:{type:"integer"}}}},S1b:{type:"structure",members:{Setup:{shape:"S3"},Configure:{shape:"S3"},Deploy:{shape:"S3"},Undeploy:{shape:"S3"},Shutdown:{shape:"S3"}}},S1c:{type:"structure",members:{Shutdown:{type:"structure",members:{ExecutionTimeout:{type:"integer"},DelayUntilElbConnectionsDrained:{type:"boolean"}}}}},S30:{type:"structure",members:{InstanceCount:{type:"integer"},ThresholdsWaitTime:{type:"integer"},IgnoreMetricsTime:{type:"integer"},CpuThreshold:{type:"double"},MemoryThreshold:{type:"double"},LoadThreshold:{type:"double"},Alarms:{shape:"S3"}}},S40:{type:"structure",members:{Monday:{shape:"S41"},Tuesday:{shape:"S41"},Wednesday:{shape:"S41"},Thursday:{shape:"S41"},Friday:{shape:"S41"},Saturday:{shape:"S41"},Sunday:{shape:"S41"}}},S41:{type:"map",key:{},value:{}}},examples:{},paginators:{DescribeApps:{result_key:"Apps"},DescribeCommands:{result_key:"Commands"},DescribeDeployments:{result_key:"Deployments"},DescribeEcsClusters:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"EcsClusters"},DescribeElasticIps:{result_key:"ElasticIps"},DescribeElasticLoadBalancers:{result_key:"ElasticLoadBalancers"},DescribeInstances:{result_key:"Instances"},DescribeLayers:{result_key:"Layers"},DescribeLoadBasedAutoScaling:{result_key:"LoadBasedAutoScalingConfigurations"},DescribePermissions:{result_key:"Permissions"},DescribeRaidArrays:{result_key:"RaidArrays"},DescribeServiceErrors:{result_key:"ServiceErrors"},DescribeStacks:{result_key:"Stacks"},DescribeTimeBasedAutoScaling:{result_key:"TimeBasedAutoScalingConfigurations"},DescribeUserProfiles:{result_key:"UserProfiles"},DescribeVolumes:{result_key:"Volumes"}}};AWS.apiLoader.services["s3"]={};AWS.S3=AWS.Service.defineService("s3",["2006-03-01"]);require("./services/s3");AWS.apiLoader.services["s3"]["2006-03-01"]={version:"2.0",metadata:{apiVersion:"2006-03-01",checksumFormat:"md5",endpointPrefix:"s3",globalEndpoint:"s3.amazonaws.com",serviceAbbreviation:"Amazon S3",serviceFullName:"Amazon Simple Storage Service",signatureVersion:"s3",timestampFormat:"rfc822",protocol:"rest-xml"},operations:{AbortMultipartUpload:{http:{method:"DELETE",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key","UploadId"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},UploadId:{location:"querystring",locationName:"uploadId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},CompleteMultipartUpload:{http:{requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key","UploadId"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},MultipartUpload:{locationName:"CompleteMultipartUpload",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},type:"structure",members:{Parts:{locationName:"Part",type:"list",member:{type:"structure",members:{ETag:{},PartNumber:{type:"integer"}}},flattened:true}}},UploadId:{location:"querystring",locationName:"uploadId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"MultipartUpload"},output:{type:"structure",members:{Location:{},Bucket:{},Key:{},Expiration:{location:"header",locationName:"x-amz-expiration"},ETag:{},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},VersionId:{location:"header",locationName:"x-amz-version-id"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},CopyObject:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","CopySource","Key"],members:{ACL:{location:"header",locationName:"x-amz-acl"},Bucket:{location:"uri",locationName:"Bucket"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentType:{location:"header",locationName:"Content-Type"},CopySource:{location:"header",locationName:"x-amz-copy-source"},CopySourceIfMatch:{location:"header",locationName:"x-amz-copy-source-if-match"},CopySourceIfModifiedSince:{location:"header",locationName:"x-amz-copy-source-if-modified-since",type:"timestamp"},CopySourceIfNoneMatch:{location:"header",locationName:"x-amz-copy-source-if-none-match"},CopySourceIfUnmodifiedSince:{location:"header",locationName:"x-amz-copy-source-if-unmodified-since",type:"timestamp"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"},Key:{location:"uri",locationName:"Key"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},MetadataDirective:{location:"header",locationName:"x-amz-metadata-directive"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},CopySourceSSECustomerAlgorithm:{location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-algorithm"},CopySourceSSECustomerKey:{shape:"S1b",location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-key"},CopySourceSSECustomerKeyMD5:{location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{CopyObjectResult:{type:"structure",members:{ETag:{},LastModified:{type:"timestamp"}}},Expiration:{location:"header",locationName:"x-amz-expiration"},CopySourceVersionId:{location:"header",locationName:"x-amz-copy-source-version-id"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}},payload:"CopyObjectResult"},alias:"PutObjectCopy"},CreateBucket:{http:{method:"PUT",requestUri:"/{Bucket}"},input:{type:"structure",required:["Bucket"],members:{ACL:{location:"header",locationName:"x-amz-acl"},Bucket:{location:"uri",locationName:"Bucket"},CreateBucketConfiguration:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"CreateBucketConfiguration",type:"structure",members:{LocationConstraint:{}}},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWrite:{location:"header",locationName:"x-amz-grant-write"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"}},payload:"CreateBucketConfiguration"},output:{type:"structure",members:{Location:{location:"header",locationName:"Location"}}},alias:"PutBucket"},CreateMultipartUpload:{http:{requestUri:"/{Bucket}/{Key+}?uploads"},input:{type:"structure",required:["Bucket","Key"],members:{ACL:{location:"header",locationName:"x-amz-acl"},Bucket:{location:"uri",locationName:"Bucket"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentType:{location:"header",locationName:"Content-Type"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"},Key:{location:"uri",locationName:"Key"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Bucket:{locationName:"Bucket"},Key:{},UploadId:{},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}},alias:"InitiateMultipartUpload"},DeleteBucket:{http:{method:"DELETE",requestUri:"/{Bucket}"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketCors:{http:{method:"DELETE",requestUri:"/{Bucket}?cors"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketLifecycle:{http:{method:"DELETE",requestUri:"/{Bucket}?lifecycle"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketPolicy:{http:{method:"DELETE",requestUri:"/{Bucket}?policy"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketReplication:{http:{method:"DELETE",requestUri:"/{Bucket}?replication"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketTagging:{http:{method:"DELETE",requestUri:"/{Bucket}?tagging"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketWebsite:{http:{method:"DELETE",requestUri:"/{Bucket}?website"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteObject:{http:{method:"DELETE",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},MFA:{location:"header",locationName:"x-amz-mfa"},VersionId:{location:"querystring",locationName:"versionId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{DeleteMarker:{location:"header",locationName:"x-amz-delete-marker",type:"boolean"},VersionId:{location:"header",locationName:"x-amz-version-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},DeleteObjects:{http:{requestUri:"/{Bucket}?delete"},input:{type:"structure",required:["Bucket","Delete"],members:{Bucket:{location:"uri",locationName:"Bucket"},Delete:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"Delete",type:"structure",required:["Objects"],members:{Objects:{locationName:"Object",type:"list",member:{type:"structure",required:["Key"],members:{Key:{},VersionId:{}}},flattened:true},Quiet:{type:"boolean"}}},MFA:{location:"header",locationName:"x-amz-mfa"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"Delete"},output:{type:"structure",members:{Deleted:{type:"list",member:{type:"structure",members:{Key:{},VersionId:{},DeleteMarker:{type:"boolean"},DeleteMarkerVersionId:{}}},flattened:true},RequestCharged:{location:"header",locationName:"x-amz-request-charged"},Errors:{locationName:"Error",type:"list",member:{type:"structure",members:{Key:{},VersionId:{},Code:{},Message:{}}},flattened:true}}},alias:"DeleteMultipleObjects"},GetBucketAcl:{http:{method:"GET",requestUri:"/{Bucket}?acl"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Owner:{shape:"S2f"},Grants:{shape:"S2i",locationName:"AccessControlList"}}}},GetBucketCors:{http:{method:"GET",requestUri:"/{Bucket}?cors"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{CORSRules:{shape:"S2r",locationName:"CORSRule"}}}},GetBucketLifecycle:{http:{method:"GET",requestUri:"/{Bucket}?lifecycle"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Rules:{shape:"S34",locationName:"Rule"}}}},GetBucketLocation:{http:{method:"GET",requestUri:"/{Bucket}?location"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{LocationConstraint:{}}}},GetBucketLogging:{http:{method:"GET",requestUri:"/{Bucket}?logging"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{LoggingEnabled:{shape:"S3j"}}}},GetBucketNotification:{http:{method:"GET",requestUri:"/{Bucket}?notification"},input:{shape:"S3p"},output:{shape:"S3q"},deprecated:true},GetBucketNotificationConfiguration:{http:{method:"GET",requestUri:"/{Bucket}?notification"},input:{shape:"S3p"},output:{shape:"S41"}},GetBucketPolicy:{http:{method:"GET",requestUri:"/{Bucket}?policy"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Policy:{}},payload:"Policy"}},GetBucketReplication:{http:{method:"GET",requestUri:"/{Bucket}?replication"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{ReplicationConfiguration:{shape:"S4k"}},payload:"ReplicationConfiguration"}},GetBucketRequestPayment:{http:{method:"GET",requestUri:"/{Bucket}?requestPayment"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Payer:{}}}},GetBucketTagging:{http:{method:"GET",requestUri:"/{Bucket}?tagging"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",required:["TagSet"],members:{TagSet:{shape:"S4v"}}}},GetBucketVersioning:{http:{method:"GET",requestUri:"/{Bucket}?versioning"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Status:{},MFADelete:{locationName:"MfaDelete"}}}},GetBucketWebsite:{http:{method:"GET",requestUri:"/{Bucket}?website"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{RedirectAllRequestsTo:{shape:"S54"},IndexDocument:{shape:"S57"},ErrorDocument:{shape:"S59"},RoutingRules:{shape:"S5a"}}}},GetObject:{http:{method:"GET",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},IfMatch:{location:"header",locationName:"If-Match"},IfModifiedSince:{location:"header",locationName:"If-Modified-Since",type:"timestamp"},IfNoneMatch:{location:"header",locationName:"If-None-Match"},IfUnmodifiedSince:{location:"header",locationName:"If-Unmodified-Since",type:"timestamp"},Key:{location:"uri",locationName:"Key"},Range:{location:"header",locationName:"Range"},ResponseCacheControl:{location:"querystring",locationName:"response-cache-control"},ResponseContentDisposition:{location:"querystring",locationName:"response-content-disposition"},ResponseContentEncoding:{location:"querystring",locationName:"response-content-encoding"},ResponseContentLanguage:{location:"querystring",locationName:"response-content-language"},ResponseContentType:{location:"querystring",locationName:"response-content-type"},ResponseExpires:{location:"querystring",locationName:"response-expires",type:"timestamp"},VersionId:{location:"querystring",locationName:"versionId"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Body:{streaming:true,type:"blob"},DeleteMarker:{location:"header",locationName:"x-amz-delete-marker",type:"boolean"},AcceptRanges:{location:"header",locationName:"accept-ranges"},Expiration:{location:"header",locationName:"x-amz-expiration"},Restore:{location:"header",locationName:"x-amz-restore"},LastModified:{location:"header",locationName:"Last-Modified",type:"timestamp"},ContentLength:{location:"header",locationName:"Content-Length",type:"integer"},ETag:{location:"header",locationName:"ETag"},MissingMeta:{location:"header",locationName:"x-amz-missing-meta",type:"integer"},VersionId:{location:"header",locationName:"x-amz-version-id"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentRange:{location:"header",locationName:"Content-Range"},ContentType:{location:"header",locationName:"Content-Type"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"},ReplicationStatus:{location:"header",locationName:"x-amz-replication-status"}},payload:"Body"}},GetObjectAcl:{http:{method:"GET",requestUri:"/{Bucket}/{Key+}?acl"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},VersionId:{location:"querystring",locationName:"versionId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Owner:{shape:"S2f"},Grants:{shape:"S2i",locationName:"AccessControlList"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},GetObjectTorrent:{http:{method:"GET",requestUri:"/{Bucket}/{Key+}?torrent"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Body:{streaming:true,type:"blob"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}},payload:"Body"}},HeadBucket:{http:{method:"HEAD",requestUri:"/{Bucket}"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},HeadObject:{http:{method:"HEAD",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},IfMatch:{location:"header",locationName:"If-Match"},IfModifiedSince:{location:"header",locationName:"If-Modified-Since",type:"timestamp"},IfNoneMatch:{location:"header",locationName:"If-None-Match"},IfUnmodifiedSince:{location:"header",locationName:"If-Unmodified-Since",type:"timestamp"},Key:{location:"uri",locationName:"Key"},Range:{location:"header",locationName:"Range"},VersionId:{location:"querystring",locationName:"versionId"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{DeleteMarker:{location:"header",locationName:"x-amz-delete-marker",type:"boolean"},AcceptRanges:{location:"header",locationName:"accept-ranges"},Expiration:{location:"header",locationName:"x-amz-expiration"},Restore:{location:"header",locationName:"x-amz-restore"},LastModified:{location:"header",locationName:"Last-Modified",type:"timestamp"},ContentLength:{location:"header",locationName:"Content-Length",type:"integer"},ETag:{location:"header",locationName:"ETag"},MissingMeta:{location:"header",locationName:"x-amz-missing-meta",type:"integer"},VersionId:{location:"header",locationName:"x-amz-version-id"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentType:{location:"header",locationName:"Content-Type"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"},ReplicationStatus:{location:"header",locationName:"x-amz-replication-status"}}}},ListBuckets:{http:{method:"GET"},output:{type:"structure",members:{Buckets:{type:"list",member:{locationName:"Bucket",type:"structure",members:{Name:{},CreationDate:{type:"timestamp"}}}},Owner:{shape:"S2f"}}},alias:"GetService"},ListMultipartUploads:{http:{method:"GET",requestUri:"/{Bucket}?uploads"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"},Delimiter:{location:"querystring",locationName:"delimiter"},EncodingType:{location:"querystring",locationName:"encoding-type"},KeyMarker:{location:"querystring",locationName:"key-marker"},MaxUploads:{location:"querystring",locationName:"max-uploads",type:"integer"},Prefix:{location:"querystring",locationName:"prefix"},UploadIdMarker:{location:"querystring",locationName:"upload-id-marker"}}},output:{type:"structure",members:{Bucket:{},KeyMarker:{},UploadIdMarker:{},NextKeyMarker:{},Prefix:{},Delimiter:{},NextUploadIdMarker:{},MaxUploads:{type:"integer"},IsTruncated:{type:"boolean"},Uploads:{locationName:"Upload",type:"list",member:{type:"structure",members:{UploadId:{},Key:{},Initiated:{type:"timestamp"},StorageClass:{},Owner:{shape:"S2f"},Initiator:{shape:"S6r"}}},flattened:true},CommonPrefixes:{shape:"S6s"},EncodingType:{}}}},ListObjectVersions:{http:{method:"GET",requestUri:"/{Bucket}?versions"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri", +locationName:"Bucket"},Delimiter:{location:"querystring",locationName:"delimiter"},EncodingType:{location:"querystring",locationName:"encoding-type"},KeyMarker:{location:"querystring",locationName:"key-marker"},MaxKeys:{location:"querystring",locationName:"max-keys",type:"integer"},Prefix:{location:"querystring",locationName:"prefix"},VersionIdMarker:{location:"querystring",locationName:"version-id-marker"}}},output:{type:"structure",members:{IsTruncated:{type:"boolean"},KeyMarker:{},VersionIdMarker:{},NextKeyMarker:{},NextVersionIdMarker:{},Versions:{locationName:"Version",type:"list",member:{type:"structure",members:{ETag:{},Size:{type:"integer"},StorageClass:{},Key:{},VersionId:{},IsLatest:{type:"boolean"},LastModified:{type:"timestamp"},Owner:{shape:"S2f"}}},flattened:true},DeleteMarkers:{locationName:"DeleteMarker",type:"list",member:{type:"structure",members:{Owner:{shape:"S2f"},Key:{},VersionId:{},IsLatest:{type:"boolean"},LastModified:{type:"timestamp"}}},flattened:true},Name:{},Prefix:{},Delimiter:{},MaxKeys:{type:"integer"},CommonPrefixes:{shape:"S6s"},EncodingType:{}}},alias:"GetBucketObjectVersions"},ListObjects:{http:{method:"GET",requestUri:"/{Bucket}"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"},Delimiter:{location:"querystring",locationName:"delimiter"},EncodingType:{location:"querystring",locationName:"encoding-type"},Marker:{location:"querystring",locationName:"marker"},MaxKeys:{location:"querystring",locationName:"max-keys",type:"integer"},Prefix:{location:"querystring",locationName:"prefix"}}},output:{type:"structure",members:{IsTruncated:{type:"boolean"},Marker:{},NextMarker:{},Contents:{type:"list",member:{type:"structure",members:{Key:{},LastModified:{type:"timestamp"},ETag:{},Size:{type:"integer"},StorageClass:{},Owner:{shape:"S2f"}}},flattened:true},Name:{},Prefix:{},Delimiter:{},MaxKeys:{type:"integer"},CommonPrefixes:{shape:"S6s"},EncodingType:{}}},alias:"GetBucket"},ListParts:{http:{method:"GET",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key","UploadId"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},MaxParts:{location:"querystring",locationName:"max-parts",type:"integer"},PartNumberMarker:{location:"querystring",locationName:"part-number-marker",type:"integer"},UploadId:{location:"querystring",locationName:"uploadId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Bucket:{},Key:{},UploadId:{},PartNumberMarker:{type:"integer"},NextPartNumberMarker:{type:"integer"},MaxParts:{type:"integer"},IsTruncated:{type:"boolean"},Parts:{locationName:"Part",type:"list",member:{type:"structure",members:{PartNumber:{type:"integer"},LastModified:{type:"timestamp"},ETag:{},Size:{type:"integer"}}},flattened:true},Initiator:{shape:"S6r"},Owner:{shape:"S2f"},StorageClass:{},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},PutBucketAcl:{http:{method:"PUT",requestUri:"/{Bucket}?acl"},input:{type:"structure",required:["Bucket"],members:{ACL:{location:"header",locationName:"x-amz-acl"},AccessControlPolicy:{shape:"S7l",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"AccessControlPolicy"},Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWrite:{location:"header",locationName:"x-amz-grant-write"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"}},payload:"AccessControlPolicy"}},PutBucketCors:{http:{method:"PUT",requestUri:"/{Bucket}?cors"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"},CORSConfiguration:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"CORSConfiguration",type:"structure",members:{CORSRules:{shape:"S2r",locationName:"CORSRule"}}},ContentMD5:{location:"header",locationName:"Content-MD5"}},payload:"CORSConfiguration"}},PutBucketLifecycle:{http:{method:"PUT",requestUri:"/{Bucket}?lifecycle"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},LifecycleConfiguration:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"LifecycleConfiguration",type:"structure",required:["Rules"],members:{Rules:{shape:"S34",locationName:"Rule"}}}},payload:"LifecycleConfiguration"}},PutBucketLogging:{http:{method:"PUT",requestUri:"/{Bucket}?logging"},input:{type:"structure",required:["Bucket","BucketLoggingStatus"],members:{Bucket:{location:"uri",locationName:"Bucket"},BucketLoggingStatus:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"BucketLoggingStatus",type:"structure",members:{LoggingEnabled:{shape:"S3j"}}},ContentMD5:{location:"header",locationName:"Content-MD5"}},payload:"BucketLoggingStatus"}},PutBucketNotification:{http:{method:"PUT",requestUri:"/{Bucket}?notification"},input:{type:"structure",required:["Bucket","NotificationConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},NotificationConfiguration:{shape:"S3q",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"NotificationConfiguration"}},payload:"NotificationConfiguration"},deprecated:true},PutBucketNotificationConfiguration:{http:{method:"PUT",requestUri:"/{Bucket}?notification"},input:{type:"structure",required:["Bucket","NotificationConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},NotificationConfiguration:{shape:"S41",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"NotificationConfiguration"}},payload:"NotificationConfiguration"}},PutBucketPolicy:{http:{method:"PUT",requestUri:"/{Bucket}?policy"},input:{type:"structure",required:["Bucket","Policy"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},Policy:{}},payload:"Policy"}},PutBucketReplication:{http:{method:"PUT",requestUri:"/{Bucket}?replication"},input:{type:"structure",required:["Bucket","ReplicationConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},ReplicationConfiguration:{shape:"S4k",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"ReplicationConfiguration"}},payload:"ReplicationConfiguration"}},PutBucketRequestPayment:{http:{method:"PUT",requestUri:"/{Bucket}?requestPayment"},input:{type:"structure",required:["Bucket","RequestPaymentConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},RequestPaymentConfiguration:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"RequestPaymentConfiguration",type:"structure",required:["Payer"],members:{Payer:{}}}},payload:"RequestPaymentConfiguration"}},PutBucketTagging:{http:{method:"PUT",requestUri:"/{Bucket}?tagging"},input:{type:"structure",required:["Bucket","Tagging"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},Tagging:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"Tagging",type:"structure",required:["TagSet"],members:{TagSet:{shape:"S4v"}}}},payload:"Tagging"}},PutBucketVersioning:{http:{method:"PUT",requestUri:"/{Bucket}?versioning"},input:{type:"structure",required:["Bucket","VersioningConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},MFA:{location:"header",locationName:"x-amz-mfa"},VersioningConfiguration:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"VersioningConfiguration",type:"structure",members:{MFADelete:{locationName:"MfaDelete"},Status:{}}}},payload:"VersioningConfiguration"}},PutBucketWebsite:{http:{method:"PUT",requestUri:"/{Bucket}?website"},input:{type:"structure",required:["Bucket","WebsiteConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},WebsiteConfiguration:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"WebsiteConfiguration",type:"structure",members:{ErrorDocument:{shape:"S59"},IndexDocument:{shape:"S57"},RedirectAllRequestsTo:{shape:"S54"},RoutingRules:{shape:"S5a"}}}},payload:"WebsiteConfiguration"}},PutObject:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key"],members:{ACL:{location:"header",locationName:"x-amz-acl"},Body:{streaming:true,type:"blob"},Bucket:{location:"uri",locationName:"Bucket"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentLength:{location:"header",locationName:"Content-Length",type:"integer"},ContentMD5:{location:"header",locationName:"Content-MD5"},ContentType:{location:"header",locationName:"Content-Type"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"},Key:{location:"uri",locationName:"Key"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"Body"},output:{type:"structure",members:{Expiration:{location:"header",locationName:"x-amz-expiration"},ETag:{location:"header",locationName:"ETag"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},VersionId:{location:"header",locationName:"x-amz-version-id"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},PutObjectAcl:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}?acl"},input:{type:"structure",required:["Bucket","Key"],members:{ACL:{location:"header",locationName:"x-amz-acl"},AccessControlPolicy:{shape:"S7l",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"AccessControlPolicy"},Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWrite:{location:"header",locationName:"x-amz-grant-write"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"},Key:{location:"uri",locationName:"Key"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"AccessControlPolicy"},output:{type:"structure",members:{RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},RestoreObject:{http:{requestUri:"/{Bucket}/{Key+}?restore"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},VersionId:{location:"querystring",locationName:"versionId"},RestoreRequest:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"RestoreRequest",type:"structure",required:["Days"],members:{Days:{type:"integer"}}},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"RestoreRequest"},output:{type:"structure",members:{RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}},alias:"PostObjectRestore"},UploadPart:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key","PartNumber","UploadId"],members:{Body:{streaming:true,type:"blob"},Bucket:{location:"uri",locationName:"Bucket"},ContentLength:{location:"header",locationName:"Content-Length",type:"integer"},ContentMD5:{location:"header",locationName:"Content-MD5"},Key:{location:"uri",locationName:"Key"},PartNumber:{location:"querystring",locationName:"partNumber",type:"integer"},UploadId:{location:"querystring",locationName:"uploadId"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"Body"},output:{type:"structure",members:{ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},ETag:{location:"header",locationName:"ETag"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},UploadPartCopy:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","CopySource","Key","PartNumber","UploadId"],members:{Bucket:{location:"uri",locationName:"Bucket"},CopySource:{location:"header",locationName:"x-amz-copy-source"},CopySourceIfMatch:{location:"header",locationName:"x-amz-copy-source-if-match"},CopySourceIfModifiedSince:{location:"header",locationName:"x-amz-copy-source-if-modified-since",type:"timestamp"},CopySourceIfNoneMatch:{location:"header",locationName:"x-amz-copy-source-if-none-match"},CopySourceIfUnmodifiedSince:{location:"header",locationName:"x-amz-copy-source-if-unmodified-since",type:"timestamp"},CopySourceRange:{location:"header",locationName:"x-amz-copy-source-range"},Key:{location:"uri",locationName:"Key"},PartNumber:{location:"querystring",locationName:"partNumber",type:"integer"},UploadId:{location:"querystring",locationName:"uploadId"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},CopySourceSSECustomerAlgorithm:{location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-algorithm"},CopySourceSSECustomerKey:{shape:"S1b",location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-key"},CopySourceSSECustomerKeyMD5:{location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{CopySourceVersionId:{location:"header",locationName:"x-amz-copy-source-version-id"},CopyPartResult:{type:"structure",members:{ETag:{},LastModified:{type:"timestamp"}}},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}},payload:"CopyPartResult"}}},shapes:{Sj:{type:"string",sensitive:true},S11:{type:"map",key:{},value:{}},S18:{type:"blob",sensitive:true},S1b:{type:"blob",sensitive:true},S2f:{type:"structure",members:{DisplayName:{},ID:{}}},S2i:{type:"list",member:{locationName:"Grant",type:"structure",members:{Grantee:{shape:"S2k"},Permission:{}}}},S2k:{type:"structure",required:["Type"],members:{DisplayName:{},EmailAddress:{},ID:{},Type:{xmlAttribute:true,locationName:"xsi:type"},URI:{}},xmlNamespace:{prefix:"xsi",uri:"http://www.w3.org/2001/XMLSchema-instance"}},S2r:{type:"list",member:{type:"structure",members:{AllowedHeaders:{locationName:"AllowedHeader",type:"list",member:{},flattened:true},AllowedMethods:{locationName:"AllowedMethod",type:"list",member:{},flattened:true},AllowedOrigins:{locationName:"AllowedOrigin",type:"list",member:{},flattened:true},ExposeHeaders:{locationName:"ExposeHeader",type:"list",member:{},flattened:true},MaxAgeSeconds:{type:"integer"}}},flattened:true},S34:{type:"list",member:{type:"structure",required:["Prefix","Status"],members:{Expiration:{type:"structure",members:{Date:{shape:"S37"},Days:{type:"integer"}}},ID:{},Prefix:{},Status:{},Transition:{type:"structure",members:{Date:{shape:"S37"},Days:{type:"integer"},StorageClass:{}}},NoncurrentVersionTransition:{type:"structure",members:{NoncurrentDays:{type:"integer"},StorageClass:{}}},NoncurrentVersionExpiration:{type:"structure",members:{NoncurrentDays:{type:"integer"}}}}},flattened:true},S37:{type:"timestamp",timestampFormat:"iso8601"},S3j:{type:"structure",members:{TargetBucket:{},TargetGrants:{type:"list",member:{locationName:"Grant",type:"structure",members:{Grantee:{shape:"S2k"},Permission:{}}}},TargetPrefix:{}}},S3p:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},S3q:{type:"structure",members:{TopicConfiguration:{type:"structure",members:{Id:{},Events:{shape:"S3t",locationName:"Event"},Event:{deprecated:true},Topic:{}}},QueueConfiguration:{type:"structure",members:{Id:{},Event:{deprecated:true},Events:{shape:"S3t",locationName:"Event"},Queue:{}}},CloudFunctionConfiguration:{type:"structure",members:{Id:{},Event:{deprecated:true},Events:{shape:"S3t",locationName:"Event"},CloudFunction:{},InvocationRole:{}}}}},S3t:{type:"list",member:{},flattened:true},S41:{type:"structure",members:{TopicConfigurations:{locationName:"TopicConfiguration",type:"list",member:{type:"structure",required:["TopicArn","Events"],members:{Id:{},TopicArn:{locationName:"Topic"},Events:{shape:"S3t",locationName:"Event"},Filter:{shape:"S44"}}},flattened:true},QueueConfigurations:{locationName:"QueueConfiguration",type:"list",member:{type:"structure",required:["QueueArn","Events"],members:{Id:{},QueueArn:{locationName:"Queue"},Events:{shape:"S3t",locationName:"Event"},Filter:{shape:"S44"}}},flattened:true},LambdaFunctionConfigurations:{locationName:"CloudFunctionConfiguration",type:"list",member:{type:"structure",required:["LambdaFunctionArn","Events"],members:{Id:{},LambdaFunctionArn:{locationName:"CloudFunction"},Events:{shape:"S3t",locationName:"Event"},Filter:{shape:"S44"}}},flattened:true}}},S44:{type:"structure",members:{Key:{locationName:"S3Key",type:"structure",members:{FilterRules:{locationName:"FilterRule",type:"list",member:{type:"structure",members:{Name:{},Value:{}}},flattened:true}}}}},S4k:{type:"structure",required:["Role","Rules"],members:{Role:{},Rules:{locationName:"Rule",type:"list",member:{type:"structure",required:["Prefix","Status","Destination"],members:{ID:{},Prefix:{},Status:{},Destination:{type:"structure",required:["Bucket"],members:{Bucket:{}}}}},flattened:true}}},S4v:{type:"list",member:{locationName:"Tag",type:"structure",required:["Key","Value"],members:{Key:{},Value:{}}}},S54:{type:"structure",required:["HostName"],members:{HostName:{},Protocol:{}}},S57:{type:"structure",required:["Suffix"],members:{Suffix:{}}},S59:{type:"structure",required:["Key"],members:{Key:{}}},S5a:{type:"list",member:{locationName:"RoutingRule",type:"structure",required:["Redirect"],members:{Condition:{type:"structure",members:{HttpErrorCodeReturnedEquals:{},KeyPrefixEquals:{}}},Redirect:{type:"structure",members:{HostName:{},HttpRedirectCode:{},Protocol:{},ReplaceKeyPrefixWith:{},ReplaceKeyWith:{}}}}}},S6r:{type:"structure",members:{ID:{},DisplayName:{}}},S6s:{type:"list",member:{type:"structure",members:{Prefix:{}}},flattened:true},S7l:{type:"structure",members:{Grants:{shape:"S2i",locationName:"AccessControlList"},Owner:{shape:"S2f"}}}},examples:{},paginators:{ListBuckets:{result_key:"Buckets"},ListMultipartUploads:{limit_key:"MaxUploads",more_results:"IsTruncated",output_token:["NextKeyMarker","NextUploadIdMarker"],input_token:["KeyMarker","UploadIdMarker"],result_key:["Uploads","CommonPrefixes"]},ListObjectVersions:{more_results:"IsTruncated",limit_key:"MaxKeys",output_token:["NextKeyMarker","NextVersionIdMarker"],input_token:["KeyMarker","VersionIdMarker"],result_key:["Versions","DeleteMarkers","CommonPrefixes"]},ListObjects:{more_results:"IsTruncated",limit_key:"MaxKeys",output_token:"NextMarker || Contents[-1].Key",input_token:"Marker",result_key:["Contents","CommonPrefixes"]},ListParts:{more_results:"IsTruncated",limit_key:"MaxParts",output_token:"NextPartNumberMarker",input_token:"PartNumberMarker",result_key:"Parts"}},waiters:{__default__:{interval:5,max_attempts:20},BucketExists:{operation:"HeadBucket",ignore_errors:[404],success_type:"output"},BucketNotExists:{operation:"HeadBucket",success_type:"error",success_value:404},ObjectExists:{operation:"HeadObject",ignore_errors:[404],success_type:"output"},ObjectNotExists:{operation:"HeadObject",success_type:"error",success_value:404}}};AWS.apiLoader.services["sns"]={};AWS.SNS=AWS.Service.defineService("sns",["2010-03-31"]);AWS.apiLoader.services["sns"]["2010-03-31"]={metadata:{apiVersion:"2010-03-31",endpointPrefix:"sns",serviceAbbreviation:"Amazon SNS",serviceFullName:"Amazon Simple Notification Service",signatureVersion:"v4",xmlNamespace:"http://sns.amazonaws.com/doc/2010-03-31/",protocol:"query"},operations:{AddPermission:{input:{type:"structure",required:["TopicArn","Label","AWSAccountId","ActionName"],members:{TopicArn:{},Label:{},AWSAccountId:{type:"list",member:{}},ActionName:{type:"list",member:{}}}},http:{}},ConfirmSubscription:{input:{type:"structure",required:["TopicArn","Token"],members:{TopicArn:{},Token:{},AuthenticateOnUnsubscribe:{}}},output:{resultWrapper:"ConfirmSubscriptionResult",type:"structure",members:{SubscriptionArn:{}}},http:{}},CreatePlatformApplication:{input:{type:"structure",required:["Name","Platform","Attributes"],members:{Name:{},Platform:{},Attributes:{shape:"Sf"}}},output:{resultWrapper:"CreatePlatformApplicationResult",type:"structure",members:{PlatformApplicationArn:{}}},http:{}},CreatePlatformEndpoint:{input:{type:"structure",required:["PlatformApplicationArn","Token"],members:{PlatformApplicationArn:{},Token:{},CustomUserData:{},Attributes:{shape:"Sf"}}},output:{resultWrapper:"CreatePlatformEndpointResult",type:"structure",members:{EndpointArn:{}}},http:{}},CreateTopic:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{resultWrapper:"CreateTopicResult",type:"structure",members:{TopicArn:{}}},http:{}},DeleteEndpoint:{input:{type:"structure",required:["EndpointArn"],members:{EndpointArn:{}}},http:{}},DeletePlatformApplication:{input:{type:"structure",required:["PlatformApplicationArn"],members:{PlatformApplicationArn:{}}},http:{}},DeleteTopic:{input:{type:"structure",required:["TopicArn"],members:{TopicArn:{}}},http:{}},GetEndpointAttributes:{input:{type:"structure",required:["EndpointArn"],members:{EndpointArn:{}}},output:{resultWrapper:"GetEndpointAttributesResult",type:"structure",members:{Attributes:{shape:"Sf"}}},http:{}},GetPlatformApplicationAttributes:{input:{type:"structure",required:["PlatformApplicationArn"],members:{PlatformApplicationArn:{}}},output:{resultWrapper:"GetPlatformApplicationAttributesResult",type:"structure",members:{Attributes:{shape:"Sf"}}},http:{}},GetSubscriptionAttributes:{input:{type:"structure",required:["SubscriptionArn"],members:{SubscriptionArn:{}}},output:{resultWrapper:"GetSubscriptionAttributesResult",type:"structure",members:{Attributes:{type:"map",key:{},value:{}}}},http:{}},GetTopicAttributes:{input:{type:"structure",required:["TopicArn"],members:{TopicArn:{}}},output:{resultWrapper:"GetTopicAttributesResult",type:"structure",members:{Attributes:{type:"map",key:{},value:{}}}},http:{}},ListEndpointsByPlatformApplication:{input:{type:"structure",required:["PlatformApplicationArn"],members:{PlatformApplicationArn:{},NextToken:{}}},output:{resultWrapper:"ListEndpointsByPlatformApplicationResult",type:"structure",members:{Endpoints:{type:"list",member:{type:"structure",members:{EndpointArn:{},Attributes:{shape:"Sf"}}}},NextToken:{}}},http:{}},ListPlatformApplications:{input:{type:"structure",members:{NextToken:{}}},output:{resultWrapper:"ListPlatformApplicationsResult",type:"structure",members:{PlatformApplications:{type:"list",member:{type:"structure",members:{PlatformApplicationArn:{},Attributes:{shape:"Sf"}}}},NextToken:{}}},http:{}},ListSubscriptions:{input:{type:"structure",members:{NextToken:{}}},output:{resultWrapper:"ListSubscriptionsResult",type:"structure",members:{Subscriptions:{shape:"S1c"},NextToken:{}}},http:{}},ListSubscriptionsByTopic:{input:{type:"structure",required:["TopicArn"],members:{TopicArn:{},NextToken:{}}},output:{resultWrapper:"ListSubscriptionsByTopicResult",type:"structure",members:{Subscriptions:{shape:"S1c"},NextToken:{}}},http:{}},ListTopics:{input:{type:"structure",members:{NextToken:{}}},output:{resultWrapper:"ListTopicsResult",type:"structure",members:{Topics:{type:"list",member:{type:"structure",members:{TopicArn:{}}}},NextToken:{}}},http:{}},Publish:{input:{type:"structure",required:["Message"],members:{TopicArn:{},TargetArn:{},Message:{},Subject:{},MessageStructure:{},MessageAttributes:{type:"map",key:{locationName:"Name"},value:{locationName:"Value",type:"structure",required:["DataType"],members:{DataType:{},StringValue:{},BinaryValue:{type:"blob"}}}}}},output:{resultWrapper:"PublishResult",type:"structure",members:{MessageId:{}}},http:{}},RemovePermission:{input:{type:"structure",required:["TopicArn","Label"],members:{TopicArn:{},Label:{}}},http:{}},SetEndpointAttributes:{input:{type:"structure",required:["EndpointArn","Attributes"],members:{EndpointArn:{},Attributes:{shape:"Sf"}}},http:{}},SetPlatformApplicationAttributes:{input:{type:"structure",required:["PlatformApplicationArn","Attributes"],members:{PlatformApplicationArn:{},Attributes:{shape:"Sf"}}},http:{}},SetSubscriptionAttributes:{input:{type:"structure",required:["SubscriptionArn","AttributeName"],members:{SubscriptionArn:{},AttributeName:{},AttributeValue:{}}},http:{}},SetTopicAttributes:{input:{type:"structure",required:["TopicArn","AttributeName"],members:{TopicArn:{},AttributeName:{},AttributeValue:{}}},http:{}},Subscribe:{input:{type:"structure",required:["TopicArn","Protocol"],members:{TopicArn:{},Protocol:{},Endpoint:{}}},output:{resultWrapper:"SubscribeResult",type:"structure",members:{SubscriptionArn:{}}},http:{}},Unsubscribe:{input:{type:"structure",required:["SubscriptionArn"],members:{SubscriptionArn:{}}},http:{}}},shapes:{Sf:{type:"map",key:{},value:{}},S1c:{type:"list",member:{type:"structure",members:{SubscriptionArn:{},Owner:{},Protocol:{},Endpoint:{},TopicArn:{}}}}},paginators:{ListEndpointsByPlatformApplication:{input_token:"NextToken",output_token:"NextToken",result_key:"Endpoints"},ListPlatformApplications:{input_token:"NextToken",output_token:"NextToken",result_key:"PlatformApplications"},ListSubscriptions:{input_token:"NextToken",output_token:"NextToken",result_key:"Subscriptions"},ListSubscriptionsByTopic:{input_token:"NextToken",output_token:"NextToken",result_key:"Subscriptions"},ListTopics:{input_token:"NextToken",output_token:"NextToken",result_key:"Topics"}}};AWS.apiLoader.services["sqs"]={};AWS.SQS=AWS.Service.defineService("sqs",["2012-11-05"]);require("./services/sqs");AWS.apiLoader.services["sqs"]["2012-11-05"]={metadata:{apiVersion:"2012-11-05",endpointPrefix:"sqs",serviceAbbreviation:"Amazon SQS",serviceFullName:"Amazon Simple Queue Service",signatureVersion:"v4",xmlNamespace:"http://queue.amazonaws.com/doc/2012-11-05/",protocol:"query"},operations:{AddPermission:{input:{type:"structure",required:["QueueUrl","Label","AWSAccountIds","Actions"],members:{QueueUrl:{},Label:{},AWSAccountIds:{type:"list",member:{locationName:"AWSAccountId"},flattened:true},Actions:{type:"list",member:{locationName:"ActionName"},flattened:true}}},http:{}},ChangeMessageVisibility:{input:{type:"structure",required:["QueueUrl","ReceiptHandle","VisibilityTimeout"],members:{QueueUrl:{},ReceiptHandle:{},VisibilityTimeout:{type:"integer"}}},http:{}},ChangeMessageVisibilityBatch:{input:{type:"structure",required:["QueueUrl","Entries"],members:{QueueUrl:{},Entries:{type:"list",member:{locationName:"ChangeMessageVisibilityBatchRequestEntry",type:"structure",required:["Id","ReceiptHandle"],members:{Id:{},ReceiptHandle:{},VisibilityTimeout:{type:"integer"}}},flattened:true}}},output:{resultWrapper:"ChangeMessageVisibilityBatchResult",type:"structure",required:["Successful","Failed"],members:{Successful:{type:"list",member:{locationName:"ChangeMessageVisibilityBatchResultEntry",type:"structure",required:["Id"],members:{Id:{}}},flattened:true},Failed:{shape:"Sd"}}},http:{}},CreateQueue:{input:{type:"structure",required:["QueueName"],members:{QueueName:{},Attributes:{shape:"Sh",locationName:"Attribute"}}},output:{resultWrapper:"CreateQueueResult",type:"structure",members:{QueueUrl:{}}},http:{}},DeleteMessage:{input:{type:"structure",required:["QueueUrl","ReceiptHandle"],members:{QueueUrl:{},ReceiptHandle:{}}},http:{}},DeleteMessageBatch:{input:{type:"structure",required:["QueueUrl","Entries"],members:{QueueUrl:{},Entries:{type:"list",member:{locationName:"DeleteMessageBatchRequestEntry",type:"structure",required:["Id","ReceiptHandle"],members:{Id:{},ReceiptHandle:{}}},flattened:true}}},output:{resultWrapper:"DeleteMessageBatchResult",type:"structure",required:["Successful","Failed"],members:{Successful:{type:"list",member:{locationName:"DeleteMessageBatchResultEntry",type:"structure",required:["Id"],members:{Id:{}}},flattened:true},Failed:{shape:"Sd"}}},http:{}},DeleteQueue:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{}}},http:{}},GetQueueAttributes:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{},AttributeNames:{shape:"St"}}},output:{resultWrapper:"GetQueueAttributesResult",type:"structure",members:{Attributes:{shape:"Sh",locationName:"Attribute"}}},http:{}},GetQueueUrl:{input:{type:"structure",required:["QueueName"],members:{QueueName:{},QueueOwnerAWSAccountId:{}}},output:{resultWrapper:"GetQueueUrlResult",type:"structure",members:{QueueUrl:{}}},http:{}},ListDeadLetterSourceQueues:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{}}},output:{resultWrapper:"ListDeadLetterSourceQueuesResult",type:"structure",required:["queueUrls"],members:{queueUrls:{shape:"Sz"}}},http:{}},ListQueues:{input:{type:"structure",members:{QueueNamePrefix:{}}}, +output:{resultWrapper:"ListQueuesResult",type:"structure",members:{QueueUrls:{shape:"Sz"}}},http:{}},PurgeQueue:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{}}},http:{}},ReceiveMessage:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{},AttributeNames:{shape:"St"},MessageAttributeNames:{type:"list",member:{locationName:"MessageAttributeName"},flattened:true},MaxNumberOfMessages:{type:"integer"},VisibilityTimeout:{type:"integer"},WaitTimeSeconds:{type:"integer"}}},output:{resultWrapper:"ReceiveMessageResult",type:"structure",members:{Messages:{type:"list",member:{locationName:"Message",type:"structure",members:{MessageId:{},ReceiptHandle:{},MD5OfBody:{},Body:{},Attributes:{shape:"Sh",locationName:"Attribute"},MD5OfMessageAttributes:{},MessageAttributes:{shape:"S19",locationName:"MessageAttribute"}}},flattened:true}}},http:{}},RemovePermission:{input:{type:"structure",required:["QueueUrl","Label"],members:{QueueUrl:{},Label:{}}},http:{}},SendMessage:{input:{type:"structure",required:["QueueUrl","MessageBody"],members:{QueueUrl:{},MessageBody:{},DelaySeconds:{type:"integer"},MessageAttributes:{shape:"S19",locationName:"MessageAttribute"}}},output:{resultWrapper:"SendMessageResult",type:"structure",members:{MD5OfMessageBody:{},MD5OfMessageAttributes:{},MessageId:{}}},http:{}},SendMessageBatch:{input:{type:"structure",required:["QueueUrl","Entries"],members:{QueueUrl:{},Entries:{type:"list",member:{locationName:"SendMessageBatchRequestEntry",type:"structure",required:["Id","MessageBody"],members:{Id:{},MessageBody:{},DelaySeconds:{type:"integer"},MessageAttributes:{shape:"S19",locationName:"MessageAttribute"}}},flattened:true}}},output:{resultWrapper:"SendMessageBatchResult",type:"structure",required:["Successful","Failed"],members:{Successful:{type:"list",member:{locationName:"SendMessageBatchResultEntry",type:"structure",required:["Id","MessageId","MD5OfMessageBody"],members:{Id:{},MessageId:{},MD5OfMessageBody:{},MD5OfMessageAttributes:{}}},flattened:true},Failed:{shape:"Sd"}}},http:{}},SetQueueAttributes:{input:{type:"structure",required:["QueueUrl","Attributes"],members:{QueueUrl:{},Attributes:{shape:"Sh",locationName:"Attribute"}}},http:{}}},shapes:{Sd:{type:"list",member:{locationName:"BatchResultErrorEntry",type:"structure",required:["Id","SenderFault","Code"],members:{Id:{},SenderFault:{type:"boolean"},Code:{},Message:{}}},flattened:true},Sh:{type:"map",key:{locationName:"Name"},value:{locationName:"Value"},flattened:true,locationName:"Attribute"},St:{type:"list",member:{locationName:"AttributeName"},flattened:true},Sz:{type:"list",member:{locationName:"QueueUrl"},flattened:true},S19:{type:"map",key:{locationName:"Name"},value:{locationName:"Value",type:"structure",required:["DataType"],members:{StringValue:{},BinaryValue:{type:"blob"},StringListValues:{flattened:true,locationName:"StringListValue",type:"list",member:{locationName:"StringListValue"}},BinaryListValues:{flattened:true,locationName:"BinaryListValue",type:"list",member:{locationName:"BinaryListValue",type:"blob"}},DataType:{}}},flattened:true}},paginators:{ListQueues:{result_key:"QueueUrls"}}};AWS.apiLoader.services["sts"]={};AWS.STS=AWS.Service.defineService("sts",["2011-06-15"]);require("./services/sts");AWS.apiLoader.services["sts"]["2011-06-15"]={version:"2.0",metadata:{apiVersion:"2011-06-15",endpointPrefix:"sts",globalEndpoint:"sts.amazonaws.com",serviceAbbreviation:"AWS STS",serviceFullName:"AWS Security Token Service",signatureVersion:"v4",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",protocol:"query"},operations:{AssumeRole:{input:{type:"structure",required:["RoleArn","RoleSessionName"],members:{RoleArn:{},RoleSessionName:{},Policy:{},DurationSeconds:{type:"integer"},ExternalId:{},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"AssumeRoleResult",type:"structure",members:{Credentials:{shape:"Sa"},AssumedRoleUser:{shape:"Sf"},PackedPolicySize:{type:"integer"}}},http:{}},AssumeRoleWithSAML:{input:{type:"structure",required:["RoleArn","PrincipalArn","SAMLAssertion"],members:{RoleArn:{},PrincipalArn:{},SAMLAssertion:{},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithSAMLResult",type:"structure",members:{Credentials:{shape:"Sa"},AssumedRoleUser:{shape:"Sf"},PackedPolicySize:{type:"integer"},Subject:{},SubjectType:{},Issuer:{},Audience:{},NameQualifier:{}}},http:{}},AssumeRoleWithWebIdentity:{input:{type:"structure",required:["RoleArn","RoleSessionName","WebIdentityToken"],members:{RoleArn:{},RoleSessionName:{},WebIdentityToken:{},ProviderId:{},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithWebIdentityResult",type:"structure",members:{Credentials:{shape:"Sa"},SubjectFromWebIdentityToken:{},AssumedRoleUser:{shape:"Sf"},PackedPolicySize:{type:"integer"},Provider:{},Audience:{}}},http:{}},DecodeAuthorizationMessage:{input:{type:"structure",required:["EncodedMessage"],members:{EncodedMessage:{}}},output:{resultWrapper:"DecodeAuthorizationMessageResult",type:"structure",members:{DecodedMessage:{}}},http:{}},GetFederationToken:{input:{type:"structure",required:["Name"],members:{Name:{},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"GetFederationTokenResult",type:"structure",members:{Credentials:{shape:"Sa"},FederatedUser:{type:"structure",required:["FederatedUserId","Arn"],members:{FederatedUserId:{},Arn:{}}},PackedPolicySize:{type:"integer"}}},http:{}},GetSessionToken:{input:{type:"structure",members:{DurationSeconds:{type:"integer"},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"GetSessionTokenResult",type:"structure",members:{Credentials:{shape:"Sa"}}},http:{}}},shapes:{Sa:{type:"structure",required:["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],members:{AccessKeyId:{},SecretAccessKey:{},SessionToken:{},Expiration:{type:"timestamp"}}},Sf:{type:"structure",required:["AssumedRoleId","Arn"],members:{AssumedRoleId:{},Arn:{}}}}}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/node_modules/aws-sdk/lib/browser.js","/node_modules/deep-security/node_modules/aws-sdk/lib")},{"./core":147,"./http/xhr":156,"./services/cognitoidentity":180,"./services/dynamodb":181,"./services/ec2":182,"./services/machinelearning":183,"./services/s3":184,"./services/sqs":185,"./services/sts":186,"./xml/browser_parser":196,_process:379,buffer:230}],"aws-sdk":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var AWS=require("./core");AWS.apiLoader=function(svc,version){return AWS.apiLoader.services[svc][version]};AWS.apiLoader.services={};AWS.XML.Parser=require("./xml/browser_parser");require("./http/xhr");if(typeof window!=="undefined")window.AWS=AWS;if(typeof module!=="undefined")module.exports=AWS;AWS.apiLoader.services["cloudwatch"]={};AWS.CloudWatch=AWS.Service.defineService("cloudwatch",["2010-08-01"]);AWS.apiLoader.services["cloudwatch"]["2010-08-01"]={metadata:{apiVersion:"2010-08-01",endpointPrefix:"monitoring",serviceAbbreviation:"CloudWatch",serviceFullName:"Amazon CloudWatch",signatureVersion:"v4",xmlNamespace:"http://monitoring.amazonaws.com/doc/2010-08-01/",protocol:"query"},operations:{DeleteAlarms:{input:{type:"structure",required:["AlarmNames"],members:{AlarmNames:{shape:"S2"}}},http:{}},DescribeAlarmHistory:{input:{type:"structure",members:{AlarmName:{},HistoryItemType:{},StartDate:{type:"timestamp"},EndDate:{type:"timestamp"},MaxRecords:{type:"integer"},NextToken:{}}},output:{resultWrapper:"DescribeAlarmHistoryResult",type:"structure",members:{AlarmHistoryItems:{type:"list",member:{type:"structure",members:{AlarmName:{},Timestamp:{type:"timestamp"},HistoryItemType:{},HistorySummary:{},HistoryData:{}}}},NextToken:{}}},http:{}},DescribeAlarms:{input:{type:"structure",members:{AlarmNames:{shape:"S2"},AlarmNamePrefix:{},StateValue:{},ActionPrefix:{},MaxRecords:{type:"integer"},NextToken:{}}},output:{resultWrapper:"DescribeAlarmsResult",type:"structure",members:{MetricAlarms:{shape:"Sj"},NextToken:{}}},http:{}},DescribeAlarmsForMetric:{input:{type:"structure",required:["MetricName","Namespace"],members:{MetricName:{},Namespace:{},Statistic:{},Dimensions:{shape:"Sv"},Period:{type:"integer"},Unit:{}}},output:{resultWrapper:"DescribeAlarmsForMetricResult",type:"structure",members:{MetricAlarms:{shape:"Sj"}}},http:{}},DisableAlarmActions:{input:{type:"structure",required:["AlarmNames"],members:{AlarmNames:{shape:"S2"}}},http:{}},EnableAlarmActions:{input:{type:"structure",required:["AlarmNames"],members:{AlarmNames:{shape:"S2"}}},http:{}},GetMetricStatistics:{input:{type:"structure",required:["Namespace","MetricName","StartTime","EndTime","Period","Statistics"],members:{Namespace:{},MetricName:{},Dimensions:{shape:"Sv"},StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},Period:{type:"integer"},Statistics:{type:"list",member:{}},Unit:{}}},output:{resultWrapper:"GetMetricStatisticsResult",type:"structure",members:{Label:{},Datapoints:{type:"list",member:{type:"structure",members:{Timestamp:{type:"timestamp"},SampleCount:{type:"double"},Average:{type:"double"},Sum:{type:"double"},Minimum:{type:"double"},Maximum:{type:"double"},Unit:{}},xmlOrder:["Timestamp","SampleCount","Average","Sum","Minimum","Maximum","Unit"]}}}},http:{}},ListMetrics:{input:{type:"structure",members:{Namespace:{},MetricName:{},Dimensions:{type:"list",member:{type:"structure",required:["Name"],members:{Name:{},Value:{}}}},NextToken:{}}},output:{xmlOrder:["Metrics","NextToken"],resultWrapper:"ListMetricsResult",type:"structure",members:{Metrics:{type:"list",member:{type:"structure",members:{Namespace:{},MetricName:{},Dimensions:{shape:"Sv"}},xmlOrder:["Namespace","MetricName","Dimensions"]}},NextToken:{}}},http:{}},PutMetricAlarm:{input:{type:"structure",required:["AlarmName","MetricName","Namespace","Statistic","Period","EvaluationPeriods","Threshold","ComparisonOperator"],members:{AlarmName:{},AlarmDescription:{},ActionsEnabled:{type:"boolean"},OKActions:{shape:"So"},AlarmActions:{shape:"So"},InsufficientDataActions:{shape:"So"},MetricName:{},Namespace:{},Statistic:{},Dimensions:{shape:"Sv"},Period:{type:"integer"},Unit:{},EvaluationPeriods:{type:"integer"},Threshold:{type:"double"},ComparisonOperator:{}}},http:{}},PutMetricData:{input:{type:"structure",required:["Namespace","MetricData"],members:{Namespace:{},MetricData:{type:"list",member:{type:"structure",required:["MetricName"],members:{MetricName:{},Dimensions:{shape:"Sv"},Timestamp:{type:"timestamp"},Value:{type:"double"},StatisticValues:{type:"structure",required:["SampleCount","Sum","Minimum","Maximum"],members:{SampleCount:{type:"double"},Sum:{type:"double"},Minimum:{type:"double"},Maximum:{type:"double"}}},Unit:{}}}}}},http:{}},SetAlarmState:{input:{type:"structure",required:["AlarmName","StateValue","StateReason"],members:{AlarmName:{},StateValue:{},StateReason:{},StateReasonData:{}}},http:{}}},shapes:{S2:{type:"list",member:{}},Sj:{type:"list",member:{type:"structure",members:{AlarmName:{},AlarmArn:{},AlarmDescription:{},AlarmConfigurationUpdatedTimestamp:{type:"timestamp"},ActionsEnabled:{type:"boolean"},OKActions:{shape:"So"},AlarmActions:{shape:"So"},InsufficientDataActions:{shape:"So"},StateValue:{},StateReason:{},StateReasonData:{},StateUpdatedTimestamp:{type:"timestamp"},MetricName:{},Namespace:{},Statistic:{},Dimensions:{shape:"Sv"},Period:{type:"integer"},Unit:{},EvaluationPeriods:{type:"integer"},Threshold:{type:"double"},ComparisonOperator:{}},xmlOrder:["AlarmName","AlarmArn","AlarmDescription","AlarmConfigurationUpdatedTimestamp","ActionsEnabled","OKActions","AlarmActions","InsufficientDataActions","StateValue","StateReason","StateReasonData","StateUpdatedTimestamp","MetricName","Namespace","Statistic","Dimensions","Period","Unit","EvaluationPeriods","Threshold","ComparisonOperator"]}},So:{type:"list",member:{}},Sv:{type:"list",member:{type:"structure",required:["Name","Value"],members:{Name:{},Value:{}},xmlOrder:["Name","Value"]}}},paginators:{DescribeAlarmHistory:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxRecords",result_key:"AlarmHistoryItems"},DescribeAlarms:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxRecords",result_key:"MetricAlarms"},DescribeAlarmsForMetric:{result_key:"MetricAlarms"},ListMetrics:{input_token:"NextToken",output_token:"NextToken",result_key:"Metrics"}}};AWS.apiLoader.services["cloudwatchlogs"]={};AWS.CloudWatchLogs=AWS.Service.defineService("cloudwatchlogs",["2014-03-28"]);AWS.apiLoader.services["cloudwatchlogs"]["2014-03-28"]={version:"2.0",metadata:{apiVersion:"2014-03-28",endpointPrefix:"logs",jsonVersion:"1.1",serviceFullName:"Amazon CloudWatch Logs",signatureVersion:"v4",targetPrefix:"Logs_20140328",protocol:"json"},operations:{CreateLogGroup:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{}}},http:{}},CreateLogStream:{input:{type:"structure",required:["logGroupName","logStreamName"],members:{logGroupName:{},logStreamName:{}}},http:{}},DeleteDestination:{input:{type:"structure",required:["destinationName"],members:{destinationName:{}}},http:{}},DeleteLogGroup:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{}}},http:{}},DeleteLogStream:{input:{type:"structure",required:["logGroupName","logStreamName"],members:{logGroupName:{},logStreamName:{}}},http:{}},DeleteMetricFilter:{input:{type:"structure",required:["logGroupName","filterName"],members:{logGroupName:{},filterName:{}}},http:{}},DeleteRetentionPolicy:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{}}},http:{}},DeleteSubscriptionFilter:{input:{type:"structure",required:["logGroupName","filterName"],members:{logGroupName:{},filterName:{}}},http:{}},DescribeDestinations:{input:{type:"structure",members:{DestinationNamePrefix:{},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{destinations:{type:"list",member:{shape:"Si"}},nextToken:{}}},http:{}},DescribeLogGroups:{input:{type:"structure",members:{logGroupNamePrefix:{},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{logGroups:{type:"list",member:{type:"structure",members:{logGroupName:{},creationTime:{type:"long"},retentionInDays:{type:"integer"},metricFilterCount:{type:"integer"},arn:{},storedBytes:{type:"long"}}}},nextToken:{}}},http:{}},DescribeLogStreams:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{},logStreamNamePrefix:{},orderBy:{},descending:{type:"boolean"},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{logStreams:{type:"list",member:{type:"structure",members:{logStreamName:{},creationTime:{type:"long"},firstEventTimestamp:{type:"long"},lastEventTimestamp:{type:"long"},lastIngestionTime:{type:"long"},uploadSequenceToken:{},arn:{},storedBytes:{type:"long"}}}},nextToken:{}}},http:{}},DescribeMetricFilters:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{},filterNamePrefix:{},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{metricFilters:{type:"list",member:{type:"structure",members:{filterName:{},filterPattern:{},metricTransformations:{shape:"S17"},creationTime:{type:"long"}}}},nextToken:{}}},http:{}},DescribeSubscriptionFilters:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{},filterNamePrefix:{},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{subscriptionFilters:{type:"list",member:{type:"structure",members:{filterName:{},logGroupName:{},filterPattern:{},destinationArn:{},roleArn:{},creationTime:{type:"long"}}}},nextToken:{}}},http:{}},FilterLogEvents:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{},logStreamNames:{type:"list",member:{}},startTime:{type:"long"},endTime:{type:"long"},filterPattern:{},nextToken:{},limit:{type:"integer"},interleaved:{type:"boolean"}}},output:{type:"structure",members:{events:{type:"list",member:{type:"structure",members:{logStreamName:{},timestamp:{type:"long"},message:{},ingestionTime:{type:"long"},eventId:{}}}},searchedLogStreams:{type:"list",member:{type:"structure",members:{logStreamName:{},searchedCompletely:{type:"boolean"}}}},nextToken:{}}},http:{}},GetLogEvents:{input:{type:"structure",required:["logGroupName","logStreamName"],members:{logGroupName:{},logStreamName:{},startTime:{type:"long"},endTime:{type:"long"},nextToken:{},limit:{type:"integer"},startFromHead:{type:"boolean"}}},output:{type:"structure",members:{events:{type:"list",member:{type:"structure",members:{timestamp:{type:"long"},message:{},ingestionTime:{type:"long"}}}},nextForwardToken:{},nextBackwardToken:{}}},http:{}},PutDestination:{input:{type:"structure",required:["destinationName","targetArn","roleArn"],members:{destinationName:{},targetArn:{},roleArn:{}}},output:{type:"structure",members:{destination:{shape:"Si"}}},http:{}},PutDestinationPolicy:{input:{type:"structure",required:["destinationName","accessPolicy"],members:{destinationName:{},accessPolicy:{}}},http:{}},PutLogEvents:{input:{type:"structure",required:["logGroupName","logStreamName","logEvents"],members:{logGroupName:{},logStreamName:{},logEvents:{type:"list",member:{type:"structure",required:["timestamp","message"],members:{timestamp:{type:"long"},message:{}}}},sequenceToken:{}}},output:{type:"structure",members:{nextSequenceToken:{},rejectedLogEventsInfo:{type:"structure",members:{tooNewLogEventStartIndex:{type:"integer"},tooOldLogEventEndIndex:{type:"integer"},expiredLogEventEndIndex:{type:"integer"}}}}},http:{}},PutMetricFilter:{input:{type:"structure",required:["logGroupName","filterName","filterPattern","metricTransformations"],members:{logGroupName:{},filterName:{},filterPattern:{},metricTransformations:{shape:"S17"}}},http:{}},PutRetentionPolicy:{input:{type:"structure",required:["logGroupName","retentionInDays"],members:{logGroupName:{},retentionInDays:{type:"integer"}}},http:{}},PutSubscriptionFilter:{input:{type:"structure",required:["logGroupName","filterName","filterPattern","destinationArn"],members:{logGroupName:{},filterName:{},filterPattern:{},destinationArn:{},roleArn:{}}},http:{}},TestMetricFilter:{input:{type:"structure",required:["filterPattern","logEventMessages"],members:{filterPattern:{},logEventMessages:{type:"list",member:{}}}},output:{type:"structure",members:{matches:{type:"list",member:{type:"structure",members:{eventNumber:{type:"long"},eventMessage:{},extractedValues:{type:"map",key:{},value:{}}}}}}},http:{}}},shapes:{Si:{type:"structure",members:{destinationName:{},targetArn:{},roleArn:{},accessPolicy:{},arn:{},creationTime:{type:"long"}}},S17:{type:"list",member:{type:"structure",required:["metricName","metricNamespace","metricValue"],members:{metricName:{},metricNamespace:{},metricValue:{}}}}},examples:{},paginators:{DescribeDestinations:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:"destinations"},DescribeLogGroups:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:"logGroups"},DescribeLogStreams:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:"logStreams"},DescribeMetricFilters:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:"metricFilters"},DescribeSubscriptionFilters:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:"subscriptionFilters"},FilterLogEvents:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:["events","searchedLogStreams"]},GetLogEvents:{input_token:"nextToken",output_token:"nextForwardToken",limit_key:"limit",result_key:"events"}}};AWS.apiLoader.services["cognitoidentity"]={};AWS.CognitoIdentity=AWS.Service.defineService("cognitoidentity",["2014-06-30"]);require("./services/cognitoidentity");AWS.apiLoader.services["cognitoidentity"]["2014-06-30"]={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-identity",jsonVersion:"1.1",serviceFullName:"Amazon Cognito Identity",signatureVersion:"v4",targetPrefix:"AWSCognitoIdentityService",protocol:"json"},operations:{CreateIdentityPool:{input:{type:"structure",required:["IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},SupportedLoginProviders:{shape:"S4"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S8"}}},output:{shape:"Sa"},http:{}},DeleteIdentities:{input:{type:"structure",required:["IdentityIdsToDelete"],members:{IdentityIdsToDelete:{type:"list",member:{}}}},output:{type:"structure",members:{UnprocessedIdentityIds:{type:"list",member:{type:"structure",members:{IdentityId:{},ErrorCode:{}}}}}},http:{}},DeleteIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},http:{}},DescribeIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{}}},output:{shape:"Sl"},http:{}},DescribeIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{shape:"Sa"},http:{}},GetCredentialsForIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"Sq"}}},output:{type:"structure",members:{IdentityId:{},Credentials:{type:"structure",members:{AccessKeyId:{},SecretKey:{},SessionToken:{},Expiration:{type:"timestamp"}}}}},http:{}},GetId:{input:{type:"structure",required:["IdentityPoolId"],members:{AccountId:{},IdentityPoolId:{},Logins:{shape:"Sq"}}},output:{type:"structure",members:{IdentityId:{}}},http:{}},GetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{type:"structure",members:{IdentityPoolId:{},Roles:{shape:"S12"}}},http:{}},GetOpenIdToken:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"Sq"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}},http:{}},GetOpenIdTokenForDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId","Logins"],members:{IdentityPoolId:{},IdentityId:{},Logins:{shape:"Sq"},TokenDuration:{type:"long"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}},http:{}},ListIdentities:{input:{type:"structure",required:["IdentityPoolId","MaxResults"],members:{IdentityPoolId:{},MaxResults:{type:"integer"},NextToken:{},HideDisabled:{type:"boolean"}}},output:{type:"structure",members:{IdentityPoolId:{},Identities:{type:"list",member:{shape:"Sl"}},NextToken:{}}},http:{}},ListIdentityPools:{input:{type:"structure",required:["MaxResults"],members:{MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityPools:{type:"list",member:{type:"structure",members:{IdentityPoolId:{},IdentityPoolName:{}}}},NextToken:{}}},http:{}},LookupDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{},IdentityId:{},DeveloperUserIdentifier:{},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityId:{},DeveloperUserIdentifierList:{type:"list",member:{}},NextToken:{}}},http:{}},MergeDeveloperIdentities:{input:{type:"structure",required:["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],members:{SourceUserIdentifier:{},DestinationUserIdentifier:{},DeveloperProviderName:{},IdentityPoolId:{}}},output:{type:"structure",members:{IdentityId:{}}},http:{}},SetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId","Roles"],members:{IdentityPoolId:{},Roles:{shape:"S12"}}},http:{}},UnlinkDeveloperIdentity:{input:{type:"structure",required:["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],members:{IdentityId:{},IdentityPoolId:{},DeveloperProviderName:{},DeveloperUserIdentifier:{}}},http:{}},UnlinkIdentity:{input:{type:"structure",required:["IdentityId","Logins","LoginsToRemove"],members:{IdentityId:{},Logins:{shape:"Sq"},LoginsToRemove:{shape:"Sm"}}},http:{}},UpdateIdentityPool:{input:{shape:"Sa"},output:{shape:"Sa"},http:{}}},shapes:{S4:{type:"map",key:{},value:{}},S8:{type:"list",member:{}},Sa:{type:"structure",required:["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolId:{},IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},SupportedLoginProviders:{shape:"S4"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S8"}}},Sl:{type:"structure",members:{IdentityId:{},Logins:{shape:"Sm"},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"}}},Sm:{type:"list",member:{}},Sq:{type:"map",key:{},value:{}},S12:{type:"map",key:{},value:{}}}};AWS.apiLoader.services["cognitosync"]={};AWS.CognitoSync=AWS.Service.defineService("cognitosync",["2014-06-30"]);AWS.apiLoader.services["cognitosync"]["2014-06-30"]={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-sync",jsonVersion:"1.1",serviceFullName:"Amazon Cognito Sync",signatureVersion:"v4",protocol:"rest-json"},operations:{BulkPublish:{http:{requestUri:"/identitypools/{IdentityPoolId}/bulkpublish",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{IdentityPoolId:{}}}},DeleteDataset:{http:{method:"DELETE",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"}}},output:{type:"structure",members:{Dataset:{shape:"S8"}}}},DescribeDataset:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"}}},output:{type:"structure",members:{Dataset:{shape:"S8"}}}},DescribeIdentityPoolUsage:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{IdentityPoolUsage:{shape:"Sg"}}}},DescribeIdentityUsage:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"}}},output:{type:"structure",members:{IdentityUsage:{type:"structure",members:{IdentityId:{},IdentityPoolId:{},LastModifiedDate:{type:"timestamp"},DatasetCount:{type:"integer"},DataStorage:{type:"long"}}}}}},GetBulkPublishDetails:{http:{requestUri:"/identitypools/{IdentityPoolId}/getBulkPublishDetails",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{IdentityPoolId:{},BulkPublishStartTime:{type:"timestamp"},BulkPublishCompleteTime:{type:"timestamp"},BulkPublishStatus:{},FailureMessage:{}}}},GetCognitoEvents:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/events",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{Events:{shape:"Sq"}}}},GetIdentityPoolConfiguration:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/configuration",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{IdentityPoolId:{},PushSync:{shape:"Sv"},CognitoStreams:{shape:"Sz"}}}},ListDatasets:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets",responseCode:200},input:{type:"structure",required:["IdentityId","IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},NextToken:{location:"querystring",locationName:"nextToken"},MaxResults:{location:"querystring",locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{Datasets:{type:"list",member:{shape:"S8"}},Count:{type:"integer"},NextToken:{}}}},ListIdentityPoolUsage:{http:{method:"GET",requestUri:"/identitypools",responseCode:200},input:{type:"structure",members:{NextToken:{location:"querystring",locationName:"nextToken"},MaxResults:{location:"querystring",locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{IdentityPoolUsages:{type:"list",member:{shape:"Sg"}},MaxResults:{type:"integer"},Count:{type:"integer"},NextToken:{}}}},ListRecords:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"},LastSyncCount:{location:"querystring",locationName:"lastSyncCount",type:"long"},NextToken:{location:"querystring",locationName:"nextToken"},MaxResults:{location:"querystring",locationName:"maxResults",type:"integer"},SyncSessionToken:{location:"querystring",locationName:"syncSessionToken"}}},output:{type:"structure",members:{Records:{shape:"S1c"},NextToken:{},Count:{type:"integer"},DatasetSyncCount:{type:"long"},LastModifiedBy:{},MergedDatasetNames:{type:"list",member:{}},DatasetExists:{type:"boolean"},DatasetDeletedAfterRequestedSyncCount:{type:"boolean"},SyncSessionToken:{}}}},RegisterDevice:{http:{requestUri:"/identitypools/{IdentityPoolId}/identity/{IdentityId}/device",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","Platform","Token"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},Platform:{},Token:{}}},output:{type:"structure",members:{DeviceId:{}}}},SetCognitoEvents:{http:{requestUri:"/identitypools/{IdentityPoolId}/events",responseCode:200},input:{type:"structure",required:["IdentityPoolId","Events"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},Events:{shape:"Sq"}}}},SetIdentityPoolConfiguration:{http:{requestUri:"/identitypools/{IdentityPoolId}/configuration",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},PushSync:{shape:"Sv"},CognitoStreams:{shape:"Sz"}}},output:{type:"structure",members:{IdentityPoolId:{},PushSync:{shape:"Sv"},CognitoStreams:{shape:"Sz"}}}},SubscribeToDataset:{http:{requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName","DeviceId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"},DeviceId:{location:"uri",locationName:"DeviceId"}}},output:{type:"structure",members:{}}},UnsubscribeFromDataset:{http:{method:"DELETE",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName","DeviceId"], +members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"},DeviceId:{location:"uri",locationName:"DeviceId"}}},output:{type:"structure",members:{}}},UpdateRecords:{http:{requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName","SyncSessionToken"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"},DeviceId:{},RecordPatches:{type:"list",member:{type:"structure",required:["Op","Key","SyncCount"],members:{Op:{},Key:{},Value:{},SyncCount:{type:"long"},DeviceLastModifiedDate:{type:"timestamp"}}}},SyncSessionToken:{},ClientContext:{location:"header",locationName:"x-amz-Client-Context"}}},output:{type:"structure",members:{Records:{shape:"S1c"}}}}},shapes:{S8:{type:"structure",members:{IdentityId:{},DatasetName:{},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"},LastModifiedBy:{},DataStorage:{type:"long"},NumRecords:{type:"long"}}},Sg:{type:"structure",members:{IdentityPoolId:{},SyncSessionsCount:{type:"long"},DataStorage:{type:"long"},LastModifiedDate:{type:"timestamp"}}},Sq:{type:"map",key:{},value:{}},Sv:{type:"structure",members:{ApplicationArns:{type:"list",member:{}},RoleArn:{}}},Sz:{type:"structure",members:{StreamName:{},RoleArn:{},StreamingStatus:{}}},S1c:{type:"list",member:{type:"structure",members:{Key:{},Value:{},SyncCount:{type:"long"},LastModifiedDate:{type:"timestamp"},LastModifiedBy:{},DeviceLastModifiedDate:{type:"timestamp"}}}}}};AWS.apiLoader.services["devicefarm"]={};AWS.DeviceFarm=AWS.Service.defineService("devicefarm",["2015-06-23"]);AWS.apiLoader.services["devicefarm"]["2015-06-23"]={version:"2.0",metadata:{apiVersion:"2015-06-23",endpointPrefix:"devicefarm",jsonVersion:"1.1",serviceFullName:"AWS Device Farm",signatureVersion:"v4",targetPrefix:"DeviceFarm_20150623",protocol:"json"},operations:{CreateDevicePool:{input:{type:"structure",required:["projectArn","name","rules"],members:{projectArn:{},name:{},description:{},rules:{shape:"S5"}}},output:{type:"structure",members:{devicePool:{shape:"Sb"}}},http:{}},CreateProject:{input:{type:"structure",required:["name"],members:{name:{}}},output:{type:"structure",members:{project:{shape:"Sf"}}},http:{}},CreateUpload:{input:{type:"structure",required:["projectArn","name","type"],members:{projectArn:{},name:{},type:{},contentType:{}}},output:{type:"structure",members:{upload:{shape:"Sl"}}},http:{}},GetAccountSettings:{input:{type:"structure",members:{}},output:{type:"structure",members:{accountSettings:{type:"structure",members:{awsAccountNumber:{},unmeteredDevices:{type:"map",key:{},value:{type:"integer"}}}}}},http:{}},GetDevice:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{device:{shape:"Sy"}}},http:{}},GetDevicePool:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{devicePool:{shape:"Sb"}}},http:{}},GetDevicePoolCompatibility:{input:{type:"structure",required:["devicePoolArn","appArn"],members:{devicePoolArn:{},appArn:{},testType:{}}},output:{type:"structure",members:{compatibleDevices:{shape:"S19"},incompatibleDevices:{shape:"S19"}}},http:{}},GetJob:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{job:{shape:"S1g"}}},http:{}},GetProject:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{project:{shape:"Sf"}}},http:{}},GetRun:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{run:{shape:"S1o"}}},http:{}},GetSuite:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{suite:{shape:"S1s"}}},http:{}},GetTest:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{test:{shape:"S1v"}}},http:{}},GetUpload:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{upload:{shape:"Sl"}}},http:{}},ListArtifacts:{input:{type:"structure",required:["arn","type"],members:{arn:{},type:{},nextToken:{}}},output:{type:"structure",members:{artifacts:{type:"list",member:{type:"structure",members:{arn:{},name:{},type:{},extension:{},url:{}}}},nextToken:{}}},http:{}},ListDevicePools:{input:{type:"structure",required:["arn"],members:{arn:{},type:{},nextToken:{}}},output:{type:"structure",members:{devicePools:{type:"list",member:{shape:"Sb"}},nextToken:{}}},http:{}},ListDevices:{input:{type:"structure",members:{arn:{},nextToken:{}}},output:{type:"structure",members:{devices:{type:"list",member:{shape:"Sy"}},nextToken:{}}},http:{}},ListJobs:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{jobs:{type:"list",member:{shape:"S1g"}},nextToken:{}}},http:{}},ListProjects:{input:{type:"structure",members:{arn:{},nextToken:{}}},output:{type:"structure",members:{projects:{type:"list",member:{shape:"Sf"}},nextToken:{}}},http:{}},ListRuns:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{runs:{type:"list",member:{shape:"S1o"}},nextToken:{}}},http:{}},ListSamples:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{samples:{type:"list",member:{type:"structure",members:{arn:{},type:{},url:{}}}},nextToken:{}}},http:{}},ListSuites:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{suites:{type:"list",member:{shape:"S1s"}},nextToken:{}}},http:{}},ListTests:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{tests:{type:"list",member:{shape:"S1v"}},nextToken:{}}},http:{}},ListUniqueProblems:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{uniqueProblems:{type:"map",key:{},value:{type:"list",member:{type:"structure",members:{message:{},problems:{type:"list",member:{type:"structure",members:{run:{shape:"S32"},job:{shape:"S32"},suite:{shape:"S32"},test:{shape:"S32"},device:{shape:"Sy"},result:{},message:{}}}}}}}},nextToken:{}}},http:{}},ListUploads:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{uploads:{type:"list",member:{shape:"Sl"}},nextToken:{}}},http:{}},ScheduleRun:{input:{type:"structure",required:["projectArn","appArn","devicePoolArn","test"],members:{projectArn:{},appArn:{},devicePoolArn:{},name:{},test:{type:"structure",required:["type"],members:{type:{},testPackageArn:{},filter:{},parameters:{type:"map",key:{},value:{}}}},configuration:{type:"structure",members:{extraDataPackageArn:{},networkProfileArn:{},locale:{},location:{type:"structure",required:["latitude","longitude"],members:{latitude:{type:"double"},longitude:{type:"double"}}},radios:{type:"structure",members:{wifi:{type:"boolean"},bluetooth:{type:"boolean"},nfc:{type:"boolean"},gps:{type:"boolean"}}},auxiliaryApps:{type:"list",member:{}},billingMethod:{}}}}},output:{type:"structure",members:{run:{shape:"S1o"}}},http:{}}},shapes:{S5:{type:"list",member:{type:"structure",members:{attribute:{},operator:{},value:{}}}},Sb:{type:"structure",members:{arn:{},name:{},description:{},type:{},rules:{shape:"S5"}}},Sf:{type:"structure",members:{arn:{},name:{},created:{type:"timestamp"}}},Sl:{type:"structure",members:{arn:{},name:{},created:{type:"timestamp"},type:{},status:{},url:{},metadata:{},contentType:{},message:{}}},Sy:{type:"structure",members:{arn:{},name:{},manufacturer:{},model:{},formFactor:{},platform:{},os:{},cpu:{type:"structure",members:{frequency:{},architecture:{},clock:{type:"double"}}},resolution:{type:"structure",members:{width:{type:"integer"},height:{type:"integer"}}},heapSize:{type:"long"},memory:{type:"long"},image:{},carrier:{},radio:{}}},S19:{type:"list",member:{type:"structure",members:{device:{shape:"Sy"},compatible:{type:"boolean"},incompatibilityMessages:{type:"list",member:{type:"structure",members:{message:{},type:{}}}}}}},S1g:{type:"structure",members:{arn:{},name:{},type:{},created:{type:"timestamp"},status:{},result:{},started:{type:"timestamp"},stopped:{type:"timestamp"},counters:{shape:"S1j"},message:{},device:{shape:"Sy"}}},S1j:{type:"structure",members:{total:{type:"integer"},passed:{type:"integer"},failed:{type:"integer"},warned:{type:"integer"},errored:{type:"integer"},stopped:{type:"integer"},skipped:{type:"integer"}}},S1o:{type:"structure",members:{arn:{},name:{},type:{},platform:{},created:{type:"timestamp"},status:{},result:{},started:{type:"timestamp"},stopped:{type:"timestamp"},counters:{shape:"S1j"},message:{},totalJobs:{type:"integer"},completedJobs:{type:"integer"},billingMethod:{}}},S1s:{type:"structure",members:{arn:{},name:{},type:{},created:{type:"timestamp"},status:{},result:{},started:{type:"timestamp"},stopped:{type:"timestamp"},counters:{shape:"S1j"},message:{}}},S1v:{type:"structure",members:{arn:{},name:{},type:{},created:{type:"timestamp"},status:{},result:{},started:{type:"timestamp"},stopped:{type:"timestamp"},counters:{shape:"S1j"},message:{}}},S32:{type:"structure",members:{arn:{},name:{}}}},examples:{},paginators:{ListArtifacts:{input_token:"nextToken",output_token:"nextToken",result_key:"artifacts"},ListDevicePools:{input_token:"nextToken",output_token:"nextToken",result_key:"devicePools"},ListDevices:{input_token:"nextToken",output_token:"nextToken",result_key:"devices"},ListJobs:{input_token:"nextToken",output_token:"nextToken",result_key:"jobs"},ListProjects:{input_token:"nextToken",output_token:"nextToken",result_key:"projects"},ListRuns:{input_token:"nextToken",output_token:"nextToken",result_key:"runs"},ListSamples:{input_token:"nextToken",output_token:"nextToken",result_key:"samples"},ListSuites:{input_token:"nextToken",output_token:"nextToken",result_key:"suites"},ListTests:{input_token:"nextToken",output_token:"nextToken",result_key:"tests"},ListUniqueProblems:{input_token:"nextToken",output_token:"nextToken",result_key:"uniqueProblems"},ListUploads:{input_token:"nextToken",output_token:"nextToken",result_key:"uploads"}}};AWS.apiLoader.services["dynamodb"]={};AWS.DynamoDB=AWS.Service.defineService("dynamodb",["2011-12-05","2012-08-10"]);require("./services/dynamodb");AWS.apiLoader.services["dynamodb"]["2012-08-10"]={version:"2.0",metadata:{apiVersion:"2012-08-10",endpointPrefix:"dynamodb",jsonVersion:"1.0",serviceAbbreviation:"DynamoDB",serviceFullName:"Amazon DynamoDB",signatureVersion:"v4",targetPrefix:"DynamoDB_20120810",protocol:"json"},operations:{BatchGetItem:{input:{type:"structure",required:["RequestItems"],members:{RequestItems:{shape:"S2"},ReturnConsumedCapacity:{}}},output:{type:"structure",members:{Responses:{type:"map",key:{},value:{shape:"Sr"}},UnprocessedKeys:{shape:"S2"},ConsumedCapacity:{shape:"St"}}},http:{}},BatchWriteItem:{input:{type:"structure",required:["RequestItems"],members:{RequestItems:{shape:"S10"},ReturnConsumedCapacity:{},ReturnItemCollectionMetrics:{}}},output:{type:"structure",members:{UnprocessedItems:{shape:"S10"},ItemCollectionMetrics:{type:"map",key:{},value:{type:"list",member:{shape:"S1a"}}},ConsumedCapacity:{shape:"St"}}},http:{}},CreateTable:{input:{type:"structure",required:["AttributeDefinitions","TableName","KeySchema","ProvisionedThroughput"],members:{AttributeDefinitions:{shape:"S1f"},TableName:{},KeySchema:{shape:"S1j"},LocalSecondaryIndexes:{type:"list",member:{type:"structure",required:["IndexName","KeySchema","Projection"],members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"}}}},GlobalSecondaryIndexes:{type:"list",member:{type:"structure",required:["IndexName","KeySchema","Projection","ProvisionedThroughput"],members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"},ProvisionedThroughput:{shape:"S1u"}}}},ProvisionedThroughput:{shape:"S1u"},StreamSpecification:{shape:"S1w"}}},output:{type:"structure",members:{TableDescription:{shape:"S20"}}},http:{}},DeleteItem:{input:{type:"structure",required:["TableName","Key"],members:{TableName:{},Key:{shape:"S6"},Expected:{shape:"S2e"},ConditionalOperator:{},ReturnValues:{},ReturnConsumedCapacity:{},ReturnItemCollectionMetrics:{},ConditionExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"}}},output:{type:"structure",members:{Attributes:{shape:"Ss"},ConsumedCapacity:{shape:"Su"},ItemCollectionMetrics:{shape:"S1a"}}},http:{}},DeleteTable:{input:{type:"structure",required:["TableName"],members:{TableName:{}}},output:{type:"structure",members:{TableDescription:{shape:"S20"}}},http:{}},DescribeTable:{input:{type:"structure",required:["TableName"],members:{TableName:{}}},output:{type:"structure",members:{Table:{shape:"S20"}}},http:{}},GetItem:{input:{type:"structure",required:["TableName","Key"],members:{TableName:{},Key:{shape:"S6"},AttributesToGet:{shape:"Sj"},ConsistentRead:{type:"boolean"},ReturnConsumedCapacity:{},ProjectionExpression:{},ExpressionAttributeNames:{shape:"Sm"}}},output:{type:"structure",members:{Item:{shape:"Ss"},ConsumedCapacity:{shape:"Su"}}},http:{}},ListTables:{input:{type:"structure",members:{ExclusiveStartTableName:{},Limit:{type:"integer"}}},output:{type:"structure",members:{TableNames:{type:"list",member:{}},LastEvaluatedTableName:{}}},http:{}},PutItem:{input:{type:"structure",required:["TableName","Item"],members:{TableName:{},Item:{shape:"S14"},Expected:{shape:"S2e"},ReturnValues:{},ReturnConsumedCapacity:{},ReturnItemCollectionMetrics:{},ConditionalOperator:{},ConditionExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"}}},output:{type:"structure",members:{Attributes:{shape:"Ss"},ConsumedCapacity:{shape:"Su"},ItemCollectionMetrics:{shape:"S1a"}}},http:{}},Query:{input:{type:"structure",required:["TableName"],members:{TableName:{},IndexName:{},Select:{},AttributesToGet:{shape:"Sj"},Limit:{type:"integer"},ConsistentRead:{type:"boolean"},KeyConditions:{type:"map",key:{},value:{shape:"S35"}},QueryFilter:{shape:"S36"},ConditionalOperator:{},ScanIndexForward:{type:"boolean"},ExclusiveStartKey:{shape:"S6"},ReturnConsumedCapacity:{},ProjectionExpression:{},FilterExpression:{},KeyConditionExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"}}},output:{type:"structure",members:{Items:{shape:"Sr"},Count:{type:"integer"},ScannedCount:{type:"integer"},LastEvaluatedKey:{shape:"S6"},ConsumedCapacity:{shape:"Su"}}},http:{}},Scan:{input:{type:"structure",required:["TableName"],members:{TableName:{},IndexName:{},AttributesToGet:{shape:"Sj"},Limit:{type:"integer"},Select:{},ScanFilter:{shape:"S36"},ConditionalOperator:{},ExclusiveStartKey:{shape:"S6"},ReturnConsumedCapacity:{},TotalSegments:{type:"integer"},Segment:{type:"integer"},ProjectionExpression:{},FilterExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"},ConsistentRead:{type:"boolean"}}},output:{type:"structure",members:{Items:{shape:"Sr"},Count:{type:"integer"},ScannedCount:{type:"integer"},LastEvaluatedKey:{shape:"S6"},ConsumedCapacity:{shape:"Su"}}},http:{}},UpdateItem:{input:{type:"structure",required:["TableName","Key"],members:{TableName:{},Key:{shape:"S6"},AttributeUpdates:{type:"map",key:{},value:{type:"structure",members:{Value:{shape:"S8"},Action:{}}}},Expected:{shape:"S2e"},ConditionalOperator:{},ReturnValues:{},ReturnConsumedCapacity:{},ReturnItemCollectionMetrics:{},UpdateExpression:{},ConditionExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"}}},output:{type:"structure",members:{Attributes:{shape:"Ss"},ConsumedCapacity:{shape:"Su"},ItemCollectionMetrics:{shape:"S1a"}}},http:{}},UpdateTable:{input:{type:"structure",required:["TableName"],members:{AttributeDefinitions:{shape:"S1f"},TableName:{},ProvisionedThroughput:{shape:"S1u"},GlobalSecondaryIndexUpdates:{type:"list",member:{type:"structure",members:{Update:{type:"structure",required:["IndexName","ProvisionedThroughput"],members:{IndexName:{},ProvisionedThroughput:{shape:"S1u"}}},Create:{type:"structure",required:["IndexName","KeySchema","Projection","ProvisionedThroughput"],members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"},ProvisionedThroughput:{shape:"S1u"}}},Delete:{type:"structure",required:["IndexName"],members:{IndexName:{}}}}}},StreamSpecification:{shape:"S1w"}}},output:{type:"structure",members:{TableDescription:{shape:"S20"}}},http:{}}},shapes:{S2:{type:"map",key:{},value:{type:"structure",required:["Keys"],members:{Keys:{type:"list",member:{shape:"S6"}},AttributesToGet:{shape:"Sj"},ConsistentRead:{type:"boolean"},ProjectionExpression:{},ExpressionAttributeNames:{shape:"Sm"}}}},S6:{type:"map",key:{},value:{shape:"S8"}},S8:{type:"structure",members:{S:{},N:{},B:{type:"blob"},SS:{type:"list",member:{}},NS:{type:"list",member:{}},BS:{type:"list",member:{type:"blob"}},M:{type:"map",key:{},value:{shape:"S8"}},L:{type:"list",member:{shape:"S8"}},NULL:{type:"boolean"},BOOL:{type:"boolean"}}},Sj:{type:"list",member:{}},Sm:{type:"map",key:{},value:{}},Sr:{type:"list",member:{shape:"Ss"}},Ss:{type:"map",key:{},value:{shape:"S8"}},St:{type:"list",member:{shape:"Su"}},Su:{type:"structure",members:{TableName:{},CapacityUnits:{type:"double"},Table:{shape:"Sw"},LocalSecondaryIndexes:{shape:"Sx"},GlobalSecondaryIndexes:{shape:"Sx"}}},Sw:{type:"structure",members:{CapacityUnits:{type:"double"}}},Sx:{type:"map",key:{},value:{shape:"Sw"}},S10:{type:"map",key:{},value:{type:"list",member:{type:"structure",members:{PutRequest:{type:"structure",required:["Item"],members:{Item:{shape:"S14"}}},DeleteRequest:{type:"structure",required:["Key"],members:{Key:{shape:"S6"}}}}}}},S14:{type:"map",key:{},value:{shape:"S8"}},S1a:{type:"structure",members:{ItemCollectionKey:{type:"map",key:{},value:{shape:"S8"}},SizeEstimateRangeGB:{type:"list",member:{type:"double"}}}},S1f:{type:"list",member:{type:"structure",required:["AttributeName","AttributeType"],members:{AttributeName:{},AttributeType:{}}}},S1j:{type:"list",member:{type:"structure",required:["AttributeName","KeyType"],members:{AttributeName:{},KeyType:{}}}},S1o:{type:"structure",members:{ProjectionType:{},NonKeyAttributes:{type:"list",member:{}}}},S1u:{type:"structure",required:["ReadCapacityUnits","WriteCapacityUnits"],members:{ReadCapacityUnits:{type:"long"},WriteCapacityUnits:{type:"long"}}},S1w:{type:"structure",members:{StreamEnabled:{type:"boolean"},StreamViewType:{}}},S20:{type:"structure",members:{AttributeDefinitions:{shape:"S1f"},TableName:{},KeySchema:{shape:"S1j"},TableStatus:{},CreationDateTime:{type:"timestamp"},ProvisionedThroughput:{shape:"S23"},TableSizeBytes:{type:"long"},ItemCount:{type:"long"},TableArn:{},LocalSecondaryIndexes:{type:"list",member:{type:"structure",members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"},IndexSizeBytes:{type:"long"},ItemCount:{type:"long"},IndexArn:{}}}},GlobalSecondaryIndexes:{type:"list",member:{type:"structure",members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"},IndexStatus:{},Backfilling:{type:"boolean"},ProvisionedThroughput:{shape:"S23"},IndexSizeBytes:{type:"long"},ItemCount:{type:"long"},IndexArn:{}}}},StreamSpecification:{shape:"S1w"},LatestStreamLabel:{},LatestStreamArn:{}}},S23:{type:"structure",members:{LastIncreaseDateTime:{type:"timestamp"},LastDecreaseDateTime:{type:"timestamp"},NumberOfDecreasesToday:{type:"long"},ReadCapacityUnits:{type:"long"},WriteCapacityUnits:{type:"long"}}},S2e:{type:"map",key:{},value:{type:"structure",members:{Value:{shape:"S8"},Exists:{type:"boolean"},ComparisonOperator:{},AttributeValueList:{shape:"S2i"}}}},S2i:{type:"list",member:{shape:"S8"}},S2m:{type:"map",key:{},value:{shape:"S8"}},S35:{type:"structure",required:["ComparisonOperator"],members:{AttributeValueList:{shape:"S2i"},ComparisonOperator:{}}},S36:{type:"map",key:{},value:{shape:"S35"}}},examples:{},paginators:{BatchGetItem:{input_token:"RequestItems",output_token:"UnprocessedKeys"},ListTables:{input_token:"ExclusiveStartTableName",output_token:"LastEvaluatedTableName",limit_key:"Limit",result_key:"TableNames"},Query:{input_token:"ExclusiveStartKey",output_token:"LastEvaluatedKey",limit_key:"Limit",result_key:"Items"},Scan:{input_token:"ExclusiveStartKey",output_token:"LastEvaluatedKey",limit_key:"Limit",result_key:"Items"}},waiters:{__default__:{interval:20,max_attempts:25},__TableState:{operation:"DescribeTable"},TableExists:{"extends":"__TableState",ignore_errors:["ResourceNotFoundException"],success_type:"output",success_path:"Table.TableStatus",success_value:"ACTIVE"},TableNotExists:{"extends":"__TableState",success_type:"error",success_value:"ResourceNotFoundException"}}};AWS.apiLoader.services["dynamodbstreams"]={};AWS.DynamoDBStreams=AWS.Service.defineService("dynamodbstreams",["2012-08-10"]);AWS.apiLoader.services["dynamodbstreams"]["2012-08-10"]={version:"2.0",metadata:{apiVersion:"2012-08-10",endpointPrefix:"streams.dynamodb",jsonVersion:"1.0",serviceFullName:"Amazon DynamoDB Streams",signatureVersion:"v4",signingName:"dynamodb",targetPrefix:"DynamoDBStreams_20120810",protocol:"json"},operations:{DescribeStream:{input:{type:"structure",required:["StreamArn"],members:{StreamArn:{},Limit:{type:"integer"},ExclusiveStartShardId:{}}},output:{type:"structure",members:{StreamDescription:{type:"structure",members:{StreamArn:{},StreamLabel:{},StreamStatus:{},StreamViewType:{},CreationRequestDateTime:{type:"timestamp"},TableName:{},KeySchema:{type:"list",member:{type:"structure",required:["AttributeName","KeyType"],members:{AttributeName:{},KeyType:{}}}},Shards:{type:"list",member:{type:"structure",members:{ShardId:{},SequenceNumberRange:{type:"structure",members:{StartingSequenceNumber:{},EndingSequenceNumber:{}}},ParentShardId:{}}}},LastEvaluatedShardId:{}}}}},http:{}},GetRecords:{input:{type:"structure",required:["ShardIterator"],members:{ShardIterator:{},Limit:{type:"integer"}}},output:{type:"structure",members:{Records:{type:"list",member:{type:"structure",members:{eventID:{},eventName:{},eventVersion:{},eventSource:{},awsRegion:{},dynamodb:{type:"structure",members:{Keys:{shape:"Sr"},NewImage:{shape:"Sr"},OldImage:{shape:"Sr"},SequenceNumber:{},SizeBytes:{type:"long"},StreamViewType:{}}}}}},NextShardIterator:{}}},http:{}},GetShardIterator:{input:{type:"structure",required:["StreamArn","ShardId","ShardIteratorType"],members:{StreamArn:{},ShardId:{},ShardIteratorType:{},SequenceNumber:{}}},output:{type:"structure",members:{ShardIterator:{}}},http:{}},ListStreams:{input:{type:"structure",members:{TableName:{},Limit:{type:"integer"},ExclusiveStartStreamArn:{}}},output:{type:"structure",members:{Streams:{type:"list",member:{type:"structure",members:{StreamArn:{},TableName:{},StreamLabel:{}}}},LastEvaluatedStreamArn:{}}},http:{}}},shapes:{Sr:{type:"map",key:{},value:{shape:"St"}},St:{type:"structure",members:{S:{},N:{},B:{type:"blob"},SS:{type:"list",member:{}},NS:{type:"list",member:{}},BS:{type:"list",member:{type:"blob"}},M:{type:"map",key:{},value:{shape:"St"}},L:{type:"list",member:{shape:"St"}},NULL:{type:"boolean"},BOOL:{type:"boolean"}}}},examples:{}};AWS.apiLoader.services["ec2"]={};AWS.EC2=AWS.Service.defineService("ec2",["2015-04-15"]);require("./services/ec2");AWS.apiLoader.services["ec2"]["2015-04-15"]={version:"2.0",metadata:{apiVersion:"2015-04-15",endpointPrefix:"ec2",serviceAbbreviation:"Amazon EC2",serviceFullName:"Amazon Elastic Compute Cloud",signatureVersion:"v4",xmlNamespace:"http://ec2.amazonaws.com/doc/2015-04-15",protocol:"ec2"},operations:{AcceptVpcPeeringConnection:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{VpcPeeringConnection:{shape:"S5",locationName:"vpcPeeringConnection"}}},http:{}},AllocateAddress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},Domain:{}}},output:{type:"structure",members:{PublicIp:{locationName:"publicIp"},Domain:{locationName:"domain"},AllocationId:{locationName:"allocationId"}}},http:{}},AssignPrivateIpAddresses:{input:{type:"structure",required:["NetworkInterfaceId"],members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIpAddresses:{shape:"Sg",locationName:"privateIpAddress"},SecondaryPrivateIpAddressCount:{locationName:"secondaryPrivateIpAddressCount",type:"integer"},AllowReassignment:{locationName:"allowReassignment",type:"boolean"}}},http:{}},AssociateAddress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{},PublicIp:{},AllocationId:{},NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIpAddress:{locationName:"privateIpAddress"},AllowReassociation:{locationName:"allowReassociation",type:"boolean"}}},output:{type:"structure",members:{AssociationId:{locationName:"associationId"}}},http:{}},AssociateDhcpOptions:{input:{type:"structure",required:["DhcpOptionsId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},DhcpOptionsId:{},VpcId:{}}},http:{}},AssociateRouteTable:{input:{type:"structure",required:["SubnetId","RouteTableId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SubnetId:{locationName:"subnetId"},RouteTableId:{locationName:"routeTableId"}}},output:{type:"structure",members:{AssociationId:{locationName:"associationId"}}},http:{}},AttachClassicLinkVpc:{input:{type:"structure",required:["InstanceId","VpcId","Groups"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},VpcId:{locationName:"vpcId"},Groups:{shape:"So",locationName:"SecurityGroupId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},AttachInternetGateway:{input:{type:"structure",required:["InternetGatewayId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayId:{locationName:"internetGatewayId"},VpcId:{locationName:"vpcId"}}},http:{}},AttachNetworkInterface:{input:{type:"structure",required:["NetworkInterfaceId","InstanceId","DeviceIndex"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},InstanceId:{locationName:"instanceId"},DeviceIndex:{locationName:"deviceIndex",type:"integer"}}},output:{type:"structure",members:{AttachmentId:{locationName:"attachmentId"}}},http:{}},AttachVolume:{input:{type:"structure",required:["VolumeId","InstanceId","Device"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},InstanceId:{},Device:{}}},output:{shape:"Su",locationName:"attachment"},http:{}},AttachVpnGateway:{input:{type:"structure",required:["VpnGatewayId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnGatewayId:{},VpcId:{}}},output:{type:"structure",members:{VpcAttachment:{shape:"Sy",locationName:"attachment"}}},http:{}},AuthorizeSecurityGroupEgress:{input:{type:"structure",required:["GroupId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupId:{locationName:"groupId"},SourceSecurityGroupName:{locationName:"sourceSecurityGroupName"},SourceSecurityGroupOwnerId:{locationName:"sourceSecurityGroupOwnerId"},IpProtocol:{locationName:"ipProtocol"},FromPort:{locationName:"fromPort",type:"integer"},ToPort:{locationName:"toPort",type:"integer"},CidrIp:{locationName:"cidrIp"},IpPermissions:{shape:"S11",locationName:"ipPermissions"}}},http:{}},AuthorizeSecurityGroupIngress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{},GroupId:{},SourceSecurityGroupName:{},SourceSecurityGroupOwnerId:{},IpProtocol:{},FromPort:{type:"integer"},ToPort:{type:"integer"},CidrIp:{},IpPermissions:{shape:"S11"}}},http:{}},BundleInstance:{input:{type:"structure",required:["InstanceId","Storage"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{},Storage:{shape:"S1b"}}},output:{type:"structure",members:{BundleTask:{shape:"S1f",locationName:"bundleInstanceTask"}}},http:{}},CancelBundleTask:{input:{type:"structure",required:["BundleId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},BundleId:{}}},output:{type:"structure",members:{BundleTask:{shape:"S1f",locationName:"bundleInstanceTask"}}},http:{}},CancelConversionTask:{input:{type:"structure",required:["ConversionTaskId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ConversionTaskId:{locationName:"conversionTaskId"},ReasonMessage:{locationName:"reasonMessage"}}},http:{}},CancelExportTask:{input:{type:"structure",required:["ExportTaskId"],members:{ExportTaskId:{locationName:"exportTaskId"}}},http:{}},CancelImportTask:{input:{type:"structure",members:{DryRun:{type:"boolean"},ImportTaskId:{},CancelReason:{}}},output:{type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},State:{locationName:"state"},PreviousState:{locationName:"previousState"}}},http:{}},CancelReservedInstancesListing:{input:{type:"structure",required:["ReservedInstancesListingId"],members:{ReservedInstancesListingId:{locationName:"reservedInstancesListingId"}}},output:{type:"structure",members:{ReservedInstancesListings:{shape:"S1q",locationName:"reservedInstancesListingsSet"}}},http:{}},CancelSpotFleetRequests:{input:{type:"structure",required:["SpotFleetRequestIds","TerminateInstances"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestIds:{shape:"S22",locationName:"spotFleetRequestId"},TerminateInstances:{locationName:"terminateInstances",type:"boolean"}}},output:{type:"structure",members:{UnsuccessfulFleetRequests:{locationName:"unsuccessfulFleetRequestSet",type:"list",member:{locationName:"item",type:"structure",required:["SpotFleetRequestId","Error"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},Error:{locationName:"error",type:"structure",required:["Code","Message"],members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}}},SuccessfulFleetRequests:{locationName:"successfulFleetRequestSet",type:"list",member:{locationName:"item",type:"structure",required:["SpotFleetRequestId","CurrentSpotFleetRequestState","PreviousSpotFleetRequestState"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},CurrentSpotFleetRequestState:{locationName:"currentSpotFleetRequestState"},PreviousSpotFleetRequestState:{locationName:"previousSpotFleetRequestState"}}}}}},http:{}},CancelSpotInstanceRequests:{input:{type:"structure",required:["SpotInstanceRequestIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotInstanceRequestIds:{shape:"S2c",locationName:"SpotInstanceRequestId"}}},output:{type:"structure",members:{CancelledSpotInstanceRequests:{locationName:"spotInstanceRequestSet",type:"list",member:{locationName:"item",type:"structure",members:{SpotInstanceRequestId:{locationName:"spotInstanceRequestId"},State:{locationName:"state"}}}}}},http:{}},ConfirmProductInstance:{input:{type:"structure",required:["ProductCode","InstanceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ProductCode:{},InstanceId:{}}},output:{type:"structure",members:{OwnerId:{locationName:"ownerId"},Return:{locationName:"return",type:"boolean"}}},http:{}},CopyImage:{input:{type:"structure",required:["SourceRegion","SourceImageId","Name"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SourceRegion:{},SourceImageId:{},Name:{},Description:{},ClientToken:{}}},output:{type:"structure",members:{ImageId:{locationName:"imageId"}}},http:{}},CopySnapshot:{input:{type:"structure",required:["SourceRegion","SourceSnapshotId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SourceRegion:{},SourceSnapshotId:{},Description:{},DestinationRegion:{locationName:"destinationRegion"},PresignedUrl:{locationName:"presignedUrl"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{locationName:"kmsKeyId"}}},output:{type:"structure",members:{SnapshotId:{ +locationName:"snapshotId"}}},http:{}},CreateCustomerGateway:{input:{type:"structure",required:["Type","PublicIp","BgpAsn"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Type:{},PublicIp:{locationName:"IpAddress"},BgpAsn:{type:"integer"}}},output:{type:"structure",members:{CustomerGateway:{shape:"S2q",locationName:"customerGateway"}}},http:{}},CreateDhcpOptions:{input:{type:"structure",required:["DhcpConfigurations"],members:{DryRun:{locationName:"dryRun",type:"boolean"},DhcpConfigurations:{locationName:"dhcpConfiguration",type:"list",member:{locationName:"item",type:"structure",members:{Key:{locationName:"key"},Values:{shape:"S22",locationName:"Value"}}}}}},output:{type:"structure",members:{DhcpOptions:{shape:"S2v",locationName:"dhcpOptions"}}},http:{}},CreateFlowLogs:{input:{type:"structure",required:["ResourceIds","ResourceType","TrafficType","LogGroupName","DeliverLogsPermissionArn"],members:{ResourceIds:{shape:"S22",locationName:"ResourceId"},ResourceType:{},TrafficType:{},LogGroupName:{},DeliverLogsPermissionArn:{},ClientToken:{}}},output:{type:"structure",members:{FlowLogIds:{shape:"S22",locationName:"flowLogIdSet"},ClientToken:{locationName:"clientToken"},Unsuccessful:{shape:"S34",locationName:"unsuccessful"}}},http:{}},CreateImage:{input:{type:"structure",required:["InstanceId","Name"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},Name:{locationName:"name"},Description:{locationName:"description"},NoReboot:{locationName:"noReboot",type:"boolean"},BlockDeviceMappings:{shape:"S38",locationName:"blockDeviceMapping"}}},output:{type:"structure",members:{ImageId:{locationName:"imageId"}}},http:{}},CreateInstanceExportTask:{input:{type:"structure",required:["InstanceId"],members:{Description:{locationName:"description"},InstanceId:{locationName:"instanceId"},TargetEnvironment:{locationName:"targetEnvironment"},ExportToS3Task:{locationName:"exportToS3",type:"structure",members:{DiskImageFormat:{locationName:"diskImageFormat"},ContainerFormat:{locationName:"containerFormat"},S3Bucket:{locationName:"s3Bucket"},S3Prefix:{locationName:"s3Prefix"}}}}},output:{type:"structure",members:{ExportTask:{shape:"S3j",locationName:"exportTask"}}},http:{}},CreateInternetGateway:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{InternetGateway:{shape:"S3p",locationName:"internetGateway"}}},http:{}},CreateKeyPair:{input:{type:"structure",required:["KeyName"],members:{DryRun:{locationName:"dryRun",type:"boolean"},KeyName:{}}},output:{locationName:"keyPair",type:"structure",members:{KeyName:{locationName:"keyName"},KeyFingerprint:{locationName:"keyFingerprint"},KeyMaterial:{locationName:"keyMaterial"}}},http:{}},CreateNetworkAcl:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{NetworkAcl:{shape:"S3w",locationName:"networkAcl"}}},http:{}},CreateNetworkAclEntry:{input:{type:"structure",required:["NetworkAclId","RuleNumber","Protocol","RuleAction","Egress","CidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclId:{locationName:"networkAclId"},RuleNumber:{locationName:"ruleNumber",type:"integer"},Protocol:{locationName:"protocol"},RuleAction:{locationName:"ruleAction"},Egress:{locationName:"egress",type:"boolean"},CidrBlock:{locationName:"cidrBlock"},IcmpTypeCode:{shape:"S40",locationName:"Icmp"},PortRange:{shape:"S41",locationName:"portRange"}}},http:{}},CreateNetworkInterface:{input:{type:"structure",required:["SubnetId"],members:{SubnetId:{locationName:"subnetId"},Description:{locationName:"description"},PrivateIpAddress:{locationName:"privateIpAddress"},Groups:{shape:"S46",locationName:"SecurityGroupId"},PrivateIpAddresses:{shape:"S47",locationName:"privateIpAddresses"},SecondaryPrivateIpAddressCount:{locationName:"secondaryPrivateIpAddressCount",type:"integer"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{NetworkInterface:{shape:"S4a",locationName:"networkInterface"}}},http:{}},CreatePlacementGroup:{input:{type:"structure",required:["GroupName","Strategy"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{locationName:"groupName"},Strategy:{locationName:"strategy"}}},http:{}},CreateReservedInstancesListing:{input:{type:"structure",required:["ReservedInstancesId","InstanceCount","PriceSchedules","ClientToken"],members:{ReservedInstancesId:{locationName:"reservedInstancesId"},InstanceCount:{locationName:"instanceCount",type:"integer"},PriceSchedules:{locationName:"priceSchedules",type:"list",member:{locationName:"item",type:"structure",members:{Term:{locationName:"term",type:"long"},Price:{locationName:"price",type:"double"},CurrencyCode:{locationName:"currencyCode"}}}},ClientToken:{locationName:"clientToken"}}},output:{type:"structure",members:{ReservedInstancesListings:{shape:"S1q",locationName:"reservedInstancesListingsSet"}}},http:{}},CreateRoute:{input:{type:"structure",required:["RouteTableId","DestinationCidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"},DestinationCidrBlock:{locationName:"destinationCidrBlock"},GatewayId:{locationName:"gatewayId"},InstanceId:{locationName:"instanceId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},CreateRouteTable:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{RouteTable:{shape:"S4s",locationName:"routeTable"}}},http:{}},CreateSecurityGroup:{input:{type:"structure",required:["GroupName","Description"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{},Description:{locationName:"GroupDescription"},VpcId:{}}},output:{type:"structure",members:{GroupId:{locationName:"groupId"}}},http:{}},CreateSnapshot:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},Description:{}}},output:{shape:"S54",locationName:"snapshot"},http:{}},CreateSpotDatafeedSubscription:{input:{type:"structure",required:["Bucket"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Bucket:{locationName:"bucket"},Prefix:{locationName:"prefix"}}},output:{type:"structure",members:{SpotDatafeedSubscription:{shape:"S58",locationName:"spotDatafeedSubscription"}}},http:{}},CreateSubnet:{input:{type:"structure",required:["VpcId","CidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{},CidrBlock:{},AvailabilityZone:{}}},output:{type:"structure",members:{Subnet:{shape:"S5d",locationName:"subnet"}}},http:{}},CreateTags:{input:{type:"structure",required:["Resources","Tags"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Resources:{shape:"S5g",locationName:"ResourceId"},Tags:{shape:"Sa",locationName:"Tag"}}},http:{}},CreateVolume:{input:{type:"structure",required:["AvailabilityZone"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Size:{type:"integer"},SnapshotId:{},AvailabilityZone:{},VolumeType:{},Iops:{type:"integer"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{}}},output:{shape:"S5i",locationName:"volume"},http:{}},CreateVpc:{input:{type:"structure",required:["CidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},CidrBlock:{},InstanceTenancy:{locationName:"instanceTenancy"}}},output:{type:"structure",members:{Vpc:{shape:"S5o",locationName:"vpc"}}},http:{}},CreateVpcEndpoint:{input:{type:"structure",required:["VpcId","ServiceName"],members:{DryRun:{type:"boolean"},VpcId:{},ServiceName:{},PolicyDocument:{},RouteTableIds:{shape:"S22",locationName:"RouteTableId"},ClientToken:{}}},output:{type:"structure",members:{VpcEndpoint:{shape:"S5s",locationName:"vpcEndpoint"},ClientToken:{locationName:"clientToken"}}},http:{}},CreateVpcPeeringConnection:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"},PeerVpcId:{locationName:"peerVpcId"},PeerOwnerId:{locationName:"peerOwnerId"}}},output:{type:"structure",members:{VpcPeeringConnection:{shape:"S5",locationName:"vpcPeeringConnection"}}},http:{}},CreateVpnConnection:{input:{type:"structure",required:["Type","CustomerGatewayId","VpnGatewayId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Type:{},CustomerGatewayId:{},VpnGatewayId:{},Options:{locationName:"options",type:"structure",members:{StaticRoutesOnly:{locationName:"staticRoutesOnly",type:"boolean"}}}}},output:{type:"structure",members:{VpnConnection:{shape:"S5z",locationName:"vpnConnection"}}},http:{}},CreateVpnConnectionRoute:{input:{type:"structure",required:["VpnConnectionId","DestinationCidrBlock"],members:{VpnConnectionId:{},DestinationCidrBlock:{}}},http:{}},CreateVpnGateway:{input:{type:"structure",required:["Type"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Type:{},AvailabilityZone:{}}},output:{type:"structure",members:{VpnGateway:{shape:"S6b",locationName:"vpnGateway"}}},http:{}},DeleteCustomerGateway:{input:{type:"structure",required:["CustomerGatewayId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},CustomerGatewayId:{}}},http:{}},DeleteDhcpOptions:{input:{type:"structure",required:["DhcpOptionsId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},DhcpOptionsId:{}}},http:{}},DeleteFlowLogs:{input:{type:"structure",required:["FlowLogIds"],members:{FlowLogIds:{shape:"S22",locationName:"FlowLogId"}}},output:{type:"structure",members:{Unsuccessful:{shape:"S34",locationName:"unsuccessful"}}},http:{}},DeleteInternetGateway:{input:{type:"structure",required:["InternetGatewayId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayId:{locationName:"internetGatewayId"}}},http:{}},DeleteKeyPair:{input:{type:"structure",required:["KeyName"],members:{DryRun:{locationName:"dryRun",type:"boolean"},KeyName:{}}},http:{}},DeleteNetworkAcl:{input:{type:"structure",required:["NetworkAclId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclId:{locationName:"networkAclId"}}},http:{}},DeleteNetworkAclEntry:{input:{type:"structure",required:["NetworkAclId","RuleNumber","Egress"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclId:{locationName:"networkAclId"},RuleNumber:{locationName:"ruleNumber",type:"integer"},Egress:{locationName:"egress",type:"boolean"}}},http:{}},DeleteNetworkInterface:{input:{type:"structure",required:["NetworkInterfaceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"}}},http:{}},DeletePlacementGroup:{input:{type:"structure",required:["GroupName"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{locationName:"groupName"}}},http:{}},DeleteRoute:{input:{type:"structure",required:["RouteTableId","DestinationCidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"},DestinationCidrBlock:{locationName:"destinationCidrBlock"}}},http:{}},DeleteRouteTable:{input:{type:"structure",required:["RouteTableId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"}}},http:{}},DeleteSecurityGroup:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{},GroupId:{}}},http:{}},DeleteSnapshot:{input:{type:"structure",required:["SnapshotId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotId:{}}},http:{}},DeleteSpotDatafeedSubscription:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"}}},http:{}},DeleteSubnet:{input:{type:"structure",required:["SubnetId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SubnetId:{}}},http:{}},DeleteTags:{input:{type:"structure",required:["Resources"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Resources:{shape:"S5g",locationName:"resourceId"},Tags:{shape:"Sa",locationName:"tag"}}},http:{}},DeleteVolume:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{}}},http:{}},DeleteVpc:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{}}},http:{}},DeleteVpcEndpoints:{input:{type:"structure",required:["VpcEndpointIds"],members:{DryRun:{type:"boolean"},VpcEndpointIds:{shape:"S22",locationName:"VpcEndpointId"}}},output:{type:"structure",members:{Unsuccessful:{shape:"S34",locationName:"unsuccessful"}}},http:{}},DeleteVpcPeeringConnection:{input:{type:"structure",required:["VpcPeeringConnectionId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},DeleteVpnConnection:{input:{type:"structure",required:["VpnConnectionId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnConnectionId:{}}},http:{}},DeleteVpnConnectionRoute:{input:{type:"structure",required:["VpnConnectionId","DestinationCidrBlock"],members:{VpnConnectionId:{},DestinationCidrBlock:{}}},http:{}},DeleteVpnGateway:{input:{type:"structure",required:["VpnGatewayId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnGatewayId:{}}},http:{}},DeregisterImage:{input:{type:"structure",required:["ImageId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{}}},http:{}},DescribeAccountAttributes:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},AttributeNames:{locationName:"attributeName",type:"list",member:{locationName:"attributeName"}}}},output:{type:"structure",members:{AccountAttributes:{locationName:"accountAttributeSet",type:"list",member:{locationName:"item",type:"structure",members:{AttributeName:{locationName:"attributeName"},AttributeValues:{locationName:"attributeValueSet",type:"list",member:{locationName:"item",type:"structure",members:{AttributeValue:{locationName:"attributeValue"}}}}}}}}},http:{}},DescribeAddresses:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIps:{locationName:"PublicIp",type:"list",member:{locationName:"PublicIp"}},Filters:{shape:"S7e",locationName:"Filter"},AllocationIds:{locationName:"AllocationId",type:"list",member:{locationName:"AllocationId"}}}},output:{type:"structure",members:{Addresses:{locationName:"addressesSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},PublicIp:{locationName:"publicIp"},AllocationId:{locationName:"allocationId"},AssociationId:{locationName:"associationId"},Domain:{locationName:"domain"},NetworkInterfaceId:{locationName:"networkInterfaceId"},NetworkInterfaceOwnerId:{locationName:"networkInterfaceOwnerId"},PrivateIpAddress:{locationName:"privateIpAddress"}}}}}},http:{}},DescribeAvailabilityZones:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},ZoneNames:{locationName:"ZoneName",type:"list",member:{locationName:"ZoneName"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{AvailabilityZones:{locationName:"availabilityZoneInfo",type:"list",member:{locationName:"item",type:"structure",members:{ZoneName:{locationName:"zoneName"},State:{locationName:"zoneState"},RegionName:{locationName:"regionName"},Messages:{locationName:"messageSet",type:"list",member:{locationName:"item",type:"structure",members:{Message:{locationName:"message"}}}}}}}}},http:{}},DescribeBundleTasks:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},BundleIds:{locationName:"BundleId",type:"list",member:{locationName:"BundleId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{BundleTasks:{locationName:"bundleInstanceTasksSet",type:"list",member:{shape:"S1f",locationName:"item"}}}},http:{}},DescribeClassicLinkInstances:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"},Filters:{shape:"S7e",locationName:"Filter"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{Instances:{locationName:"instancesSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},VpcId:{locationName:"vpcId"},Groups:{shape:"S4c",locationName:"groupSet"},Tags:{shape:"Sa",locationName:"tagSet"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeConversionTasks:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},Filters:{shape:"S7e",locationName:"filter"},ConversionTaskIds:{locationName:"conversionTaskId",type:"list",member:{locationName:"item"}}}},output:{type:"structure",members:{ConversionTasks:{locationName:"conversionTasks",type:"list",member:{shape:"S85",locationName:"item"}}}},http:{}},DescribeCustomerGateways:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},CustomerGatewayIds:{locationName:"CustomerGatewayId",type:"list",member:{locationName:"CustomerGatewayId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{CustomerGateways:{locationName:"customerGatewaySet",type:"list",member:{shape:"S2q",locationName:"item"}}}},http:{}},DescribeDhcpOptions:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},DhcpOptionsIds:{locationName:"DhcpOptionsId",type:"list",member:{locationName:"DhcpOptionsId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{DhcpOptions:{locationName:"dhcpOptionsSet",type:"list",member:{shape:"S2v",locationName:"item"}}}},http:{}},DescribeExportTasks:{input:{type:"structure",members:{ExportTaskIds:{locationName:"exportTaskId",type:"list",member:{locationName:"ExportTaskId"}}}},output:{type:"structure",members:{ExportTasks:{locationName:"exportTaskSet",type:"list",member:{shape:"S3j",locationName:"item"}}}},http:{}},DescribeFlowLogs:{input:{type:"structure",members:{FlowLogIds:{shape:"S22",locationName:"FlowLogId"},Filter:{shape:"S7e"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{FlowLogs:{locationName:"flowLogSet",type:"list",member:{locationName:"item",type:"structure",members:{CreationTime:{locationName:"creationTime",type:"timestamp"},FlowLogId:{locationName:"flowLogId"},FlowLogStatus:{locationName:"flowLogStatus"},ResourceId:{locationName:"resourceId"},TrafficType:{locationName:"trafficType"},LogGroupName:{locationName:"logGroupName"},DeliverLogsStatus:{locationName:"deliverLogsStatus"},DeliverLogsErrorMessage:{locationName:"deliverLogsErrorMessage"},DeliverLogsPermissionArn:{locationName:"deliverLogsPermissionArn"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeImageAttribute:{input:{type:"structure",required:["ImageId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{},Attribute:{}}},output:{locationName:"imageAttribute",type:"structure",members:{ImageId:{locationName:"imageId"},LaunchPermissions:{shape:"S8x",locationName:"launchPermission"},ProductCodes:{shape:"S90",locationName:"productCodes"},KernelId:{shape:"S2z",locationName:"kernel"},RamdiskId:{shape:"S2z",locationName:"ramdisk"},Description:{shape:"S2z",locationName:"description"},SriovNetSupport:{shape:"S2z",locationName:"sriovNetSupport"},BlockDeviceMappings:{shape:"S93",locationName:"blockDeviceMapping"}}},http:{}},DescribeImages:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageIds:{locationName:"ImageId",type:"list",member:{locationName:"ImageId"}},Owners:{shape:"S96",locationName:"Owner"},ExecutableUsers:{locationName:"ExecutableBy",type:"list",member:{locationName:"ExecutableBy"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{Images:{locationName:"imagesSet",type:"list",member:{locationName:"item",type:"structure",members:{ImageId:{locationName:"imageId"},ImageLocation:{locationName:"imageLocation"},State:{locationName:"imageState"},OwnerId:{locationName:"imageOwnerId"},CreationDate:{locationName:"creationDate"},Public:{locationName:"isPublic",type:"boolean"},ProductCodes:{shape:"S90",locationName:"productCodes"},Architecture:{locationName:"architecture"},ImageType:{locationName:"imageType"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},Platform:{locationName:"platform"},SriovNetSupport:{locationName:"sriovNetSupport"},StateReason:{shape:"S9e",locationName:"stateReason"},ImageOwnerAlias:{locationName:"imageOwnerAlias"},Name:{locationName:"name"},Description:{locationName:"description"},RootDeviceType:{locationName:"rootDeviceType"},RootDeviceName:{locationName:"rootDeviceName"},BlockDeviceMappings:{shape:"S93",locationName:"blockDeviceMapping"},VirtualizationType:{locationName:"virtualizationType"},Tags:{shape:"Sa",locationName:"tagSet"},Hypervisor:{locationName:"hypervisor"}}}}}},http:{}},DescribeImportImageTasks:{input:{type:"structure",members:{DryRun:{type:"boolean"},ImportTaskIds:{shape:"S9j",locationName:"ImportTaskId"},NextToken:{},MaxResults:{type:"integer"},Filters:{shape:"S7e"}}},output:{type:"structure",members:{ImportImageTasks:{locationName:"importImageTaskSet",type:"list",member:{locationName:"item",type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},Architecture:{locationName:"architecture"},LicenseType:{locationName:"licenseType"},Platform:{locationName:"platform"},Hypervisor:{locationName:"hypervisor"},Description:{locationName:"description"},SnapshotDetails:{shape:"S9n",locationName:"snapshotDetailSet"},ImageId:{locationName:"imageId"},Progress:{locationName:"progress"},StatusMessage:{locationName:"statusMessage"},Status:{locationName:"status"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeImportSnapshotTasks:{input:{type:"structure",members:{DryRun:{type:"boolean"},ImportTaskIds:{shape:"S9j",locationName:"ImportTaskId"},NextToken:{},MaxResults:{type:"integer"},Filters:{shape:"S7e"}}},output:{type:"structure",members:{ImportSnapshotTasks:{locationName:"importSnapshotTaskSet",type:"list",member:{locationName:"item",type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},SnapshotTaskDetail:{shape:"S9u",locationName:"snapshotTaskDetail"},Description:{locationName:"description"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeInstanceAttribute:{input:{type:"structure",required:["InstanceId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},Attribute:{locationName:"attribute"}}},output:{type:"structure",members:{InstanceId:{locationName:"instanceId"},InstanceType:{shape:"S2z",locationName:"instanceType"},KernelId:{shape:"S2z",locationName:"kernel"},RamdiskId:{shape:"S2z",locationName:"ramdisk"},UserData:{shape:"S2z",locationName:"userData"},DisableApiTermination:{shape:"S9y",locationName:"disableApiTermination"},InstanceInitiatedShutdownBehavior:{shape:"S2z",locationName:"instanceInitiatedShutdownBehavior"},RootDeviceName:{shape:"S2z",locationName:"rootDeviceName"},BlockDeviceMappings:{shape:"S9z",locationName:"blockDeviceMapping"},ProductCodes:{shape:"S90",locationName:"productCodes"},EbsOptimized:{shape:"S9y",locationName:"ebsOptimized"},SriovNetSupport:{shape:"S2z",locationName:"sriovNetSupport"},SourceDestCheck:{shape:"S9y",locationName:"sourceDestCheck"},Groups:{shape:"S4c",locationName:"groupSet"}}},http:{}},DescribeInstanceStatus:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"},Filters:{shape:"S7e",locationName:"Filter"},NextToken:{},MaxResults:{type:"integer"},IncludeAllInstances:{locationName:"includeAllInstances",type:"boolean"}}},output:{type:"structure",members:{InstanceStatuses:{locationName:"instanceStatusSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},AvailabilityZone:{locationName:"availabilityZone"},Events:{locationName:"eventsSet",type:"list",member:{locationName:"item",type:"structure",members:{Code:{locationName:"code"},Description:{locationName:"description"},NotBefore:{locationName:"notBefore",type:"timestamp"},NotAfter:{locationName:"notAfter",type:"timestamp"}}}},InstanceState:{shape:"Sa9",locationName:"instanceState"},SystemStatus:{shape:"Sab",locationName:"systemStatus"},InstanceStatus:{shape:"Sab",locationName:"instanceStatus"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeInstances:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"},Filters:{shape:"S7e",locationName:"Filter"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{Reservations:{locationName:"reservationSet",type:"list",member:{shape:"Sak",locationName:"item"}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeInternetGateways:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayIds:{shape:"S22",locationName:"internetGatewayId"},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{InternetGateways:{locationName:"internetGatewaySet",type:"list",member:{shape:"S3p",locationName:"item"}}}},http:{}},DescribeKeyPairs:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},KeyNames:{locationName:"KeyName",type:"list",member:{locationName:"KeyName"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{KeyPairs:{locationName:"keySet",type:"list",member:{locationName:"item",type:"structure",members:{KeyName:{locationName:"keyName"},KeyFingerprint:{locationName:"keyFingerprint"}}}}}},http:{}},DescribeMovingAddresses:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIps:{shape:"S22",locationName:"publicIp"},NextToken:{locationName:"nextToken"},Filters:{shape:"S7e",locationName:"filter"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{MovingAddressStatuses:{locationName:"movingAddressStatusSet",type:"list",member:{locationName:"item",type:"structure",members:{PublicIp:{locationName:"publicIp"},MoveStatus:{locationName:"moveStatus"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeNetworkAcls:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclIds:{shape:"S22",locationName:"NetworkAclId"},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{NetworkAcls:{locationName:"networkAclSet",type:"list",member:{shape:"S3w",locationName:"item"}}}},http:{}},DescribeNetworkInterfaceAttribute:{input:{type:"structure",required:["NetworkInterfaceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},Attribute:{locationName:"attribute"}}},output:{type:"structure",members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},Description:{shape:"S2z",locationName:"description"},SourceDestCheck:{shape:"S9y",locationName:"sourceDestCheck"},Groups:{shape:"S4c",locationName:"groupSet"},Attachment:{shape:"S4e",locationName:"attachment"}}},http:{}},DescribeNetworkInterfaces:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceIds:{locationName:"NetworkInterfaceId",type:"list",member:{locationName:"item"}},Filters:{shape:"S7e",locationName:"filter"}}},output:{type:"structure",members:{NetworkInterfaces:{locationName:"networkInterfaceSet",type:"list",member:{shape:"S4a",locationName:"item"}}}},http:{}},DescribePlacementGroups:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupNames:{locationName:"groupName",type:"list",member:{}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{PlacementGroups:{locationName:"placementGroupSet",type:"list",member:{locationName:"item",type:"structure",members:{GroupName:{locationName:"groupName"},Strategy:{locationName:"strategy"},State:{locationName:"state"}}}}}},http:{}},DescribePrefixLists:{input:{type:"structure",members:{DryRun:{type:"boolean"},PrefixListIds:{shape:"S22",locationName:"PrefixListId"},Filters:{shape:"S7e",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{PrefixLists:{locationName:"prefixListSet",type:"list",member:{locationName:"item",type:"structure",members:{PrefixListId:{locationName:"prefixListId"},PrefixListName:{locationName:"prefixListName"},Cidrs:{shape:"S22",locationName:"cidrSet"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeRegions:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},RegionNames:{locationName:"RegionName",type:"list",member:{locationName:"RegionName"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{Regions:{locationName:"regionInfo",type:"list",member:{locationName:"item",type:"structure",members:{RegionName:{locationName:"regionName"},Endpoint:{locationName:"regionEndpoint"}}}}}},http:{}},DescribeReservedInstances:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},ReservedInstancesIds:{shape:"Sc2",locationName:"ReservedInstancesId"},Filters:{shape:"S7e",locationName:"Filter"},OfferingType:{locationName:"offeringType"}}},output:{type:"structure",members:{ReservedInstances:{locationName:"reservedInstancesSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"},InstanceType:{locationName:"instanceType"},AvailabilityZone:{locationName:"availabilityZone"},Start:{locationName:"start",type:"timestamp"},End:{locationName:"end",type:"timestamp"},Duration:{locationName:"duration",type:"long"},UsagePrice:{locationName:"usagePrice",type:"float"},FixedPrice:{locationName:"fixedPrice",type:"float"},InstanceCount:{locationName:"instanceCount",type:"integer"},ProductDescription:{locationName:"productDescription"},State:{locationName:"state"},Tags:{shape:"Sa",locationName:"tagSet"},InstanceTenancy:{locationName:"instanceTenancy"},CurrencyCode:{locationName:"currencyCode"},OfferingType:{locationName:"offeringType"},RecurringCharges:{shape:"Sca",locationName:"recurringCharges"}}}}}},http:{}},DescribeReservedInstancesListings:{input:{type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"},ReservedInstancesListingId:{locationName:"reservedInstancesListingId"},Filters:{shape:"S7e",locationName:"filters"}}},output:{type:"structure",members:{ReservedInstancesListings:{shape:"S1q",locationName:"reservedInstancesListingsSet"}}},http:{}},DescribeReservedInstancesModifications:{input:{type:"structure",members:{ReservedInstancesModificationIds:{locationName:"ReservedInstancesModificationId",type:"list",member:{locationName:"ReservedInstancesModificationId"}},NextToken:{locationName:"nextToken"},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{ReservedInstancesModifications:{locationName:"reservedInstancesModificationsSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesModificationId:{locationName:"reservedInstancesModificationId"},ReservedInstancesIds:{locationName:"reservedInstancesSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"}}}},ModificationResults:{locationName:"modificationResultSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"},TargetConfiguration:{shape:"Sco",locationName:"targetConfiguration"}}}},CreateDate:{locationName:"createDate",type:"timestamp"},UpdateDate:{locationName:"updateDate",type:"timestamp"},EffectiveDate:{locationName:"effectiveDate",type:"timestamp" +},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},ClientToken:{locationName:"clientToken"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeReservedInstancesOfferings:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},ReservedInstancesOfferingIds:{locationName:"ReservedInstancesOfferingId",type:"list",member:{}},InstanceType:{},AvailabilityZone:{},ProductDescription:{},Filters:{shape:"S7e",locationName:"Filter"},InstanceTenancy:{locationName:"instanceTenancy"},OfferingType:{locationName:"offeringType"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"},IncludeMarketplace:{type:"boolean"},MinDuration:{type:"long"},MaxDuration:{type:"long"},MaxInstanceCount:{type:"integer"}}},output:{type:"structure",members:{ReservedInstancesOfferings:{locationName:"reservedInstancesOfferingsSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesOfferingId:{locationName:"reservedInstancesOfferingId"},InstanceType:{locationName:"instanceType"},AvailabilityZone:{locationName:"availabilityZone"},Duration:{locationName:"duration",type:"long"},UsagePrice:{locationName:"usagePrice",type:"float"},FixedPrice:{locationName:"fixedPrice",type:"float"},ProductDescription:{locationName:"productDescription"},InstanceTenancy:{locationName:"instanceTenancy"},CurrencyCode:{locationName:"currencyCode"},OfferingType:{locationName:"offeringType"},RecurringCharges:{shape:"Sca",locationName:"recurringCharges"},Marketplace:{locationName:"marketplace",type:"boolean"},PricingDetails:{locationName:"pricingDetailsSet",type:"list",member:{locationName:"item",type:"structure",members:{Price:{locationName:"price",type:"double"},Count:{locationName:"count",type:"integer"}}}}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeRouteTables:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableIds:{shape:"S22",locationName:"RouteTableId"},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{RouteTables:{locationName:"routeTableSet",type:"list",member:{shape:"S4s",locationName:"item"}}}},http:{}},DescribeSecurityGroups:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupNames:{shape:"Sd0",locationName:"GroupName"},GroupIds:{shape:"So",locationName:"GroupId"},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{SecurityGroups:{locationName:"securityGroupInfo",type:"list",member:{locationName:"item",type:"structure",members:{OwnerId:{locationName:"ownerId"},GroupName:{locationName:"groupName"},GroupId:{locationName:"groupId"},Description:{locationName:"groupDescription"},IpPermissions:{shape:"S11",locationName:"ipPermissions"},IpPermissionsEgress:{shape:"S11",locationName:"ipPermissionsEgress"},VpcId:{locationName:"vpcId"},Tags:{shape:"Sa",locationName:"tagSet"}}}}}},http:{}},DescribeSnapshotAttribute:{input:{type:"structure",required:["SnapshotId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotId:{},Attribute:{}}},output:{type:"structure",members:{SnapshotId:{locationName:"snapshotId"},CreateVolumePermissions:{shape:"Sd7",locationName:"createVolumePermission"},ProductCodes:{shape:"S90",locationName:"productCodes"}}},http:{}},DescribeSnapshots:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotIds:{locationName:"SnapshotId",type:"list",member:{locationName:"SnapshotId"}},OwnerIds:{shape:"S96",locationName:"Owner"},RestorableByUserIds:{locationName:"RestorableBy",type:"list",member:{}},Filters:{shape:"S7e",locationName:"Filter"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{Snapshots:{locationName:"snapshotSet",type:"list",member:{shape:"S54",locationName:"item"}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSpotDatafeedSubscription:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{SpotDatafeedSubscription:{shape:"S58",locationName:"spotDatafeedSubscription"}}},http:{}},DescribeSpotFleetInstances:{input:{type:"structure",required:["SpotFleetRequestId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestId:{locationName:"spotFleetRequestId"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",required:["SpotFleetRequestId","ActiveInstances"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},ActiveInstances:{locationName:"activeInstanceSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceType:{locationName:"instanceType"},InstanceId:{locationName:"instanceId"},SpotInstanceRequestId:{locationName:"spotInstanceRequestId"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSpotFleetRequestHistory:{input:{type:"structure",required:["SpotFleetRequestId","StartTime"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestId:{locationName:"spotFleetRequestId"},EventType:{locationName:"eventType"},StartTime:{locationName:"startTime",type:"timestamp"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",required:["SpotFleetRequestId","StartTime","LastEvaluatedTime","HistoryRecords"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},StartTime:{locationName:"startTime",type:"timestamp"},LastEvaluatedTime:{locationName:"lastEvaluatedTime",type:"timestamp"},HistoryRecords:{locationName:"historyRecordSet",type:"list",member:{locationName:"item",type:"structure",required:["Timestamp","EventType","EventInformation"],members:{Timestamp:{locationName:"timestamp",type:"timestamp"},EventType:{locationName:"eventType"},EventInformation:{locationName:"eventInformation",type:"structure",members:{InstanceId:{locationName:"instanceId"},EventSubType:{locationName:"eventSubType"},EventDescription:{locationName:"eventDescription"}}}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSpotFleetRequests:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestIds:{shape:"S22",locationName:"spotFleetRequestId"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",required:["SpotFleetRequestConfigs"],members:{SpotFleetRequestConfigs:{locationName:"spotFleetRequestConfigSet",type:"list",member:{locationName:"item",type:"structure",required:["SpotFleetRequestId","SpotFleetRequestState","SpotFleetRequestConfig"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},SpotFleetRequestState:{locationName:"spotFleetRequestState"},SpotFleetRequestConfig:{shape:"Sdu",locationName:"spotFleetRequestConfig"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSpotInstanceRequests:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotInstanceRequestIds:{shape:"S2c",locationName:"SpotInstanceRequestId"},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{SpotInstanceRequests:{shape:"Se4",locationName:"spotInstanceRequestSet"}}},http:{}},DescribeSpotPriceHistory:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},StartTime:{locationName:"startTime",type:"timestamp"},EndTime:{locationName:"endTime",type:"timestamp"},InstanceTypes:{locationName:"InstanceType",type:"list",member:{}},ProductDescriptions:{locationName:"ProductDescription",type:"list",member:{}},Filters:{shape:"S7e",locationName:"Filter"},AvailabilityZone:{locationName:"availabilityZone"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"}}},output:{type:"structure",members:{SpotPriceHistory:{locationName:"spotPriceHistorySet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceType:{locationName:"instanceType"},ProductDescription:{locationName:"productDescription"},SpotPrice:{locationName:"spotPrice"},Timestamp:{locationName:"timestamp",type:"timestamp"},AvailabilityZone:{locationName:"availabilityZone"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSubnets:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},SubnetIds:{locationName:"SubnetId",type:"list",member:{locationName:"SubnetId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{Subnets:{locationName:"subnetSet",type:"list",member:{shape:"S5d",locationName:"item"}}}},http:{}},DescribeTags:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},Filters:{shape:"S7e",locationName:"Filter"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"}}},output:{type:"structure",members:{Tags:{locationName:"tagSet",type:"list",member:{locationName:"item",type:"structure",members:{ResourceId:{locationName:"resourceId"},ResourceType:{locationName:"resourceType"},Key:{locationName:"key"},Value:{locationName:"value"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVolumeAttribute:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},Attribute:{}}},output:{type:"structure",members:{VolumeId:{locationName:"volumeId"},AutoEnableIO:{shape:"S9y",locationName:"autoEnableIO"},ProductCodes:{shape:"S90",locationName:"productCodes"}}},http:{}},DescribeVolumeStatus:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeIds:{shape:"Seu",locationName:"VolumeId"},Filters:{shape:"S7e",locationName:"Filter"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{VolumeStatuses:{locationName:"volumeStatusSet",type:"list",member:{locationName:"item",type:"structure",members:{VolumeId:{locationName:"volumeId"},AvailabilityZone:{locationName:"availabilityZone"},VolumeStatus:{locationName:"volumeStatus",type:"structure",members:{Status:{locationName:"status"},Details:{locationName:"details",type:"list",member:{locationName:"item",type:"structure",members:{Name:{locationName:"name"},Status:{locationName:"status"}}}}}},Events:{locationName:"eventsSet",type:"list",member:{locationName:"item",type:"structure",members:{EventType:{locationName:"eventType"},Description:{locationName:"description"},NotBefore:{locationName:"notBefore",type:"timestamp"},NotAfter:{locationName:"notAfter",type:"timestamp"},EventId:{locationName:"eventId"}}}},Actions:{locationName:"actionsSet",type:"list",member:{locationName:"item",type:"structure",members:{Code:{locationName:"code"},Description:{locationName:"description"},EventType:{locationName:"eventType"},EventId:{locationName:"eventId"}}}}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVolumes:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeIds:{shape:"Seu",locationName:"VolumeId"},Filters:{shape:"S7e",locationName:"Filter"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{Volumes:{locationName:"volumeSet",type:"list",member:{shape:"S5i",locationName:"item"}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVpcAttribute:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{},Attribute:{}}},output:{type:"structure",members:{VpcId:{locationName:"vpcId"},EnableDnsSupport:{shape:"S9y",locationName:"enableDnsSupport"},EnableDnsHostnames:{shape:"S9y",locationName:"enableDnsHostnames"}}},http:{}},DescribeVpcClassicLink:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcIds:{locationName:"VpcId",type:"list",member:{locationName:"VpcId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{Vpcs:{locationName:"vpcSet",type:"list",member:{locationName:"item",type:"structure",members:{VpcId:{locationName:"vpcId"},ClassicLinkEnabled:{locationName:"classicLinkEnabled",type:"boolean"},Tags:{shape:"Sa",locationName:"tagSet"}}}}}},http:{}},DescribeVpcEndpointServices:{input:{type:"structure",members:{DryRun:{type:"boolean"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{ServiceNames:{shape:"S22",locationName:"serviceNameSet"},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVpcEndpoints:{input:{type:"structure",members:{DryRun:{type:"boolean"},VpcEndpointIds:{shape:"S22",locationName:"VpcEndpointId"},Filters:{shape:"S7e",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{VpcEndpoints:{locationName:"vpcEndpointSet",type:"list",member:{shape:"S5s",locationName:"item"}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVpcPeeringConnections:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionIds:{shape:"S22",locationName:"VpcPeeringConnectionId"},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{VpcPeeringConnections:{locationName:"vpcPeeringConnectionSet",type:"list",member:{shape:"S5",locationName:"item"}}}},http:{}},DescribeVpcs:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcIds:{locationName:"VpcId",type:"list",member:{locationName:"VpcId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{Vpcs:{locationName:"vpcSet",type:"list",member:{shape:"S5o",locationName:"item"}}}},http:{}},DescribeVpnConnections:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnConnectionIds:{locationName:"VpnConnectionId",type:"list",member:{locationName:"VpnConnectionId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{VpnConnections:{locationName:"vpnConnectionSet",type:"list",member:{shape:"S5z",locationName:"item"}}}},http:{}},DescribeVpnGateways:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnGatewayIds:{locationName:"VpnGatewayId",type:"list",member:{locationName:"VpnGatewayId"}},Filters:{shape:"S7e",locationName:"Filter"}}},output:{type:"structure",members:{VpnGateways:{locationName:"vpnGatewaySet",type:"list",member:{shape:"S6b",locationName:"item"}}}},http:{}},DetachClassicLinkVpc:{input:{type:"structure",required:["InstanceId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},DetachInternetGateway:{input:{type:"structure",required:["InternetGatewayId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayId:{locationName:"internetGatewayId"},VpcId:{locationName:"vpcId"}}},http:{}},DetachNetworkInterface:{input:{type:"structure",required:["AttachmentId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AttachmentId:{locationName:"attachmentId"},Force:{locationName:"force",type:"boolean"}}},http:{}},DetachVolume:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},InstanceId:{},Device:{},Force:{type:"boolean"}}},output:{shape:"Su",locationName:"attachment"},http:{}},DetachVpnGateway:{input:{type:"structure",required:["VpnGatewayId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnGatewayId:{},VpcId:{}}},http:{}},DisableVgwRoutePropagation:{input:{type:"structure",required:["RouteTableId","GatewayId"],members:{RouteTableId:{},GatewayId:{}}},http:{}},DisableVpcClassicLink:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},DisassociateAddress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIp:{},AssociationId:{}}},http:{}},DisassociateRouteTable:{input:{type:"structure",required:["AssociationId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AssociationId:{locationName:"associationId"}}},http:{}},EnableVgwRoutePropagation:{input:{type:"structure",required:["RouteTableId","GatewayId"],members:{RouteTableId:{},GatewayId:{}}},http:{}},EnableVolumeIO:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{locationName:"volumeId"}}},http:{}},EnableVpcClassicLink:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},GetConsoleOutput:{input:{type:"structure",required:["InstanceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{}}},output:{type:"structure",members:{InstanceId:{locationName:"instanceId"},Timestamp:{locationName:"timestamp",type:"timestamp"},Output:{locationName:"output"}}},http:{}},GetPasswordData:{input:{type:"structure",required:["InstanceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{}}},output:{type:"structure",members:{InstanceId:{locationName:"instanceId"},Timestamp:{locationName:"timestamp",type:"timestamp"},PasswordData:{locationName:"passwordData"}}},http:{}},ImportImage:{input:{type:"structure",members:{DryRun:{type:"boolean"},Description:{},DiskContainers:{locationName:"DiskContainer",type:"list",member:{locationName:"item",type:"structure",members:{Description:{},Format:{},Url:{},UserBucket:{shape:"Sgo"},DeviceName:{},SnapshotId:{}}}},LicenseType:{},Hypervisor:{},Architecture:{},Platform:{},ClientData:{shape:"Sgp"},ClientToken:{},RoleName:{}}},output:{type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},Architecture:{locationName:"architecture"},LicenseType:{locationName:"licenseType"},Platform:{locationName:"platform"},Hypervisor:{locationName:"hypervisor"},Description:{locationName:"description"},SnapshotDetails:{shape:"S9n",locationName:"snapshotDetailSet"},ImageId:{locationName:"imageId"},Progress:{locationName:"progress"},StatusMessage:{locationName:"statusMessage"},Status:{locationName:"status"}}},http:{}},ImportInstance:{input:{type:"structure",required:["Platform"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Description:{locationName:"description"},LaunchSpecification:{locationName:"launchSpecification",type:"structure",members:{Architecture:{locationName:"architecture"},GroupNames:{shape:"Sgt",locationName:"GroupName"},GroupIds:{shape:"S46",locationName:"GroupId"},AdditionalInfo:{locationName:"additionalInfo"},UserData:{locationName:"userData",type:"structure",members:{Data:{locationName:"data"}}},InstanceType:{locationName:"instanceType"},Placement:{shape:"Sao",locationName:"placement"},Monitoring:{locationName:"monitoring",type:"boolean"},SubnetId:{locationName:"subnetId"},InstanceInitiatedShutdownBehavior:{locationName:"instanceInitiatedShutdownBehavior"},PrivateIpAddress:{locationName:"privateIpAddress"}}},DiskImages:{locationName:"diskImage",type:"list",member:{type:"structure",members:{Image:{shape:"Sgy"},Description:{},Volume:{shape:"Sgz"}}}},Platform:{locationName:"platform"}}},output:{type:"structure",members:{ConversionTask:{shape:"S85",locationName:"conversionTask"}}},http:{}},ImportKeyPair:{input:{type:"structure",required:["KeyName","PublicKeyMaterial"],members:{DryRun:{locationName:"dryRun",type:"boolean"},KeyName:{locationName:"keyName"},PublicKeyMaterial:{locationName:"publicKeyMaterial",type:"blob"}}},output:{type:"structure",members:{KeyName:{locationName:"keyName"},KeyFingerprint:{locationName:"keyFingerprint"}}},http:{}},ImportSnapshot:{input:{type:"structure",members:{DryRun:{type:"boolean"},Description:{},DiskContainer:{type:"structure",members:{Description:{},Format:{},Url:{},UserBucket:{shape:"Sgo"}}},ClientData:{shape:"Sgp"},ClientToken:{},RoleName:{}}},output:{type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},SnapshotTaskDetail:{shape:"S9u",locationName:"snapshotTaskDetail"},Description:{locationName:"description"}}},http:{}},ImportVolume:{input:{type:"structure",required:["AvailabilityZone","Image","Volume"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AvailabilityZone:{locationName:"availabilityZone"},Image:{shape:"Sgy",locationName:"image"},Description:{locationName:"description"},Volume:{shape:"Sgz",locationName:"volume"}}},output:{type:"structure",members:{ConversionTask:{shape:"S85",locationName:"conversionTask"}}},http:{}},ModifyImageAttribute:{input:{type:"structure",required:["ImageId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{},Attribute:{},OperationType:{},UserIds:{shape:"Sha",locationName:"UserId"},UserGroups:{locationName:"UserGroup",type:"list",member:{locationName:"UserGroup"}},ProductCodes:{locationName:"ProductCode",type:"list",member:{locationName:"ProductCode"}},Value:{},LaunchPermission:{type:"structure",members:{Add:{shape:"S8x"},Remove:{shape:"S8x"}}},Description:{shape:"S2z"}}},http:{}},ModifyInstanceAttribute:{input:{type:"structure",required:["InstanceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},Attribute:{locationName:"attribute"},Value:{locationName:"value"},BlockDeviceMappings:{locationName:"blockDeviceMapping",type:"list",member:{locationName:"item",type:"structure",members:{DeviceName:{locationName:"deviceName"},Ebs:{locationName:"ebs",type:"structure",members:{VolumeId:{locationName:"volumeId"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}},VirtualName:{locationName:"virtualName"},NoDevice:{locationName:"noDevice"}}}},SourceDestCheck:{shape:"S9y"},DisableApiTermination:{shape:"S9y",locationName:"disableApiTermination"},InstanceType:{shape:"S2z",locationName:"instanceType"},Kernel:{shape:"S2z",locationName:"kernel"},Ramdisk:{shape:"S2z",locationName:"ramdisk"},UserData:{locationName:"userData",type:"structure",members:{Value:{locationName:"value",type:"blob"}}},InstanceInitiatedShutdownBehavior:{shape:"S2z",locationName:"instanceInitiatedShutdownBehavior"},Groups:{shape:"So",locationName:"GroupId"},EbsOptimized:{shape:"S9y",locationName:"ebsOptimized"},SriovNetSupport:{shape:"S2z",locationName:"sriovNetSupport"}}},http:{}},ModifyNetworkInterfaceAttribute:{input:{type:"structure",required:["NetworkInterfaceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},Description:{shape:"S2z",locationName:"description"},SourceDestCheck:{shape:"S9y",locationName:"sourceDestCheck"},Groups:{shape:"S46",locationName:"SecurityGroupId"},Attachment:{locationName:"attachment",type:"structure",members:{AttachmentId:{locationName:"attachmentId"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}}}},http:{}},ModifyReservedInstances:{input:{type:"structure",required:["ReservedInstancesIds","TargetConfigurations"],members:{ClientToken:{locationName:"clientToken"},ReservedInstancesIds:{shape:"Sc2",locationName:"ReservedInstancesId"},TargetConfigurations:{locationName:"ReservedInstancesConfigurationSetItemType",type:"list",member:{shape:"Sco",locationName:"item"}}}},output:{type:"structure",members:{ReservedInstancesModificationId:{locationName:"reservedInstancesModificationId"}}},http:{}},ModifySnapshotAttribute:{input:{type:"structure",required:["SnapshotId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotId:{},Attribute:{},OperationType:{},UserIds:{shape:"Sha",locationName:"UserId"},GroupNames:{shape:"Sd0",locationName:"UserGroup"},CreateVolumePermission:{type:"structure",members:{Add:{shape:"Sd7"},Remove:{shape:"Sd7"}}}}},http:{}},ModifySubnetAttribute:{input:{type:"structure",required:["SubnetId"],members:{SubnetId:{locationName:"subnetId"},MapPublicIpOnLaunch:{shape:"S9y"}}},http:{}},ModifyVolumeAttribute:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},AutoEnableIO:{shape:"S9y"}}},http:{}},ModifyVpcAttribute:{input:{type:"structure",required:["VpcId"],members:{VpcId:{locationName:"vpcId"},EnableDnsSupport:{shape:"S9y"},EnableDnsHostnames:{shape:"S9y"}}},http:{}},ModifyVpcEndpoint:{input:{type:"structure",required:["VpcEndpointId"],members:{DryRun:{type:"boolean"},VpcEndpointId:{},ResetPolicy:{type:"boolean"},PolicyDocument:{},AddRouteTableIds:{shape:"S22",locationName:"AddRouteTableId"},RemoveRouteTableIds:{shape:"S22",locationName:"RemoveRouteTableId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},MonitorInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"}}},output:{type:"structure",members:{InstanceMonitorings:{shape:"Shx",locationName:"instancesSet"}}},http:{}},MoveAddressToVpc:{input:{type:"structure",required:["PublicIp"],members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIp:{locationName:"publicIp"}}},output:{type:"structure",members:{AllocationId:{locationName:"allocationId"},Status:{locationName:"status"}}},http:{}},PurchaseReservedInstancesOffering:{input:{type:"structure",required:["ReservedInstancesOfferingId","InstanceCount"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ReservedInstancesOfferingId:{},InstanceCount:{type:"integer"},LimitPrice:{locationName:"limitPrice",type:"structure",members:{Amount:{locationName:"amount",type:"double"},CurrencyCode:{locationName:"currencyCode"}}}}},output:{type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"}}},http:{}},RebootInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"}}},http:{}},RegisterImage:{input:{type:"structure",required:["Name"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageLocation:{},Name:{locationName:"name"},Description:{locationName:"description"},Architecture:{locationName:"architecture"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},RootDeviceName:{locationName:"rootDeviceName"},BlockDeviceMappings:{shape:"S38",locationName:"BlockDeviceMapping"},VirtualizationType:{locationName:"virtualizationType"},SriovNetSupport:{locationName:"sriovNetSupport"}}},output:{type:"structure",members:{ImageId:{locationName:"imageId"}}},http:{}},RejectVpcPeeringConnection:{input:{type:"structure",required:["VpcPeeringConnectionId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},ReleaseAddress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIp:{},AllocationId:{}}},http:{}},ReplaceNetworkAclAssociation:{input:{type:"structure",required:["AssociationId","NetworkAclId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AssociationId:{locationName:"associationId"},NetworkAclId:{locationName:"networkAclId"}}},output:{type:"structure",members:{NewAssociationId:{locationName:"newAssociationId"}}},http:{}},ReplaceNetworkAclEntry:{input:{type:"structure",required:["NetworkAclId","RuleNumber","Protocol","RuleAction","Egress","CidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclId:{locationName:"networkAclId"},RuleNumber:{locationName:"ruleNumber",type:"integer"},Protocol:{locationName:"protocol"},RuleAction:{locationName:"ruleAction"},Egress:{locationName:"egress",type:"boolean"},CidrBlock:{locationName:"cidrBlock"},IcmpTypeCode:{shape:"S40",locationName:"Icmp"},PortRange:{shape:"S41",locationName:"portRange"}}},http:{}},ReplaceRoute:{input:{type:"structure",required:["RouteTableId","DestinationCidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"},DestinationCidrBlock:{locationName:"destinationCidrBlock"},GatewayId:{locationName:"gatewayId"},InstanceId:{locationName:"instanceId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},http:{}},ReplaceRouteTableAssociation:{input:{type:"structure",required:["AssociationId","RouteTableId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AssociationId:{locationName:"associationId"},RouteTableId:{locationName:"routeTableId"}}},output:{type:"structure",members:{NewAssociationId:{locationName:"newAssociationId"}}},http:{}},ReportInstanceStatus:{input:{type:"structure",required:["Instances","Status","ReasonCodes"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Instances:{shape:"S7x",locationName:"instanceId"},Status:{locationName:"status"},StartTime:{locationName:"startTime",type:"timestamp"},EndTime:{locationName:"endTime",type:"timestamp"},ReasonCodes:{locationName:"reasonCode",type:"list",member:{locationName:"item"}},Description:{locationName:"description"}}},http:{}},RequestSpotFleet:{input:{type:"structure",required:["SpotFleetRequestConfig"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestConfig:{shape:"Sdu",locationName:"spotFleetRequestConfig"}}},output:{type:"structure",required:["SpotFleetRequestId"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"}}},http:{}},RequestSpotInstances:{input:{type:"structure",required:["SpotPrice"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotPrice:{locationName:"spotPrice"},ClientToken:{locationName:"clientToken"},InstanceCount:{locationName:"instanceCount",type:"integer"},Type:{locationName:"type"},ValidFrom:{locationName:"validFrom",type:"timestamp"},ValidUntil:{locationName:"validUntil",type:"timestamp"},LaunchGroup:{locationName:"launchGroup"},AvailabilityZoneGroup:{locationName:"availabilityZoneGroup"},LaunchSpecification:{type:"structure",members:{ImageId:{locationName:"imageId"},KeyName:{locationName:"keyName"},SecurityGroups:{shape:"S22",locationName:"SecurityGroup"},UserData:{locationName:"userData"},AddressingType:{locationName:"addressingType"},InstanceType:{locationName:"instanceType"},Placement:{shape:"Sdx",locationName:"placement"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},BlockDeviceMappings:{shape:"S93",locationName:"blockDeviceMapping"},SubnetId:{locationName:"subnetId"},NetworkInterfaces:{shape:"Sdz",locationName:"NetworkInterface"},IamInstanceProfile:{shape:"Se1",locationName:"iamInstanceProfile"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},Monitoring:{shape:"Sea",locationName:"monitoring"},SecurityGroupIds:{shape:"S22",locationName:"SecurityGroupId"}}}}},output:{type:"structure",members:{SpotInstanceRequests:{shape:"Se4",locationName:"spotInstanceRequestSet"}}},http:{}},ResetImageAttribute:{input:{type:"structure",required:["ImageId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{},Attribute:{}}},http:{}},ResetInstanceAttribute:{input:{type:"structure",required:["InstanceId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},Attribute:{locationName:"attribute"}}},http:{}},ResetNetworkInterfaceAttribute:{input:{type:"structure",required:["NetworkInterfaceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},SourceDestCheck:{locationName:"sourceDestCheck"}}},http:{}},ResetSnapshotAttribute:{input:{type:"structure",required:["SnapshotId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotId:{},Attribute:{}}},http:{}},RestoreAddressToClassic:{input:{type:"structure",required:["PublicIp"],members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIp:{locationName:"publicIp"}}},output:{type:"structure",members:{Status:{locationName:"status"},PublicIp:{locationName:"publicIp"}}},http:{}},RevokeSecurityGroupEgress:{input:{type:"structure",required:["GroupId"],members:{DryRun:{locationName:"dryRun",type:"boolean" +},GroupId:{locationName:"groupId"},SourceSecurityGroupName:{locationName:"sourceSecurityGroupName"},SourceSecurityGroupOwnerId:{locationName:"sourceSecurityGroupOwnerId"},IpProtocol:{locationName:"ipProtocol"},FromPort:{locationName:"fromPort",type:"integer"},ToPort:{locationName:"toPort",type:"integer"},CidrIp:{locationName:"cidrIp"},IpPermissions:{shape:"S11",locationName:"ipPermissions"}}},http:{}},RevokeSecurityGroupIngress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{},GroupId:{},SourceSecurityGroupName:{},SourceSecurityGroupOwnerId:{},IpProtocol:{},FromPort:{type:"integer"},ToPort:{type:"integer"},CidrIp:{},IpPermissions:{shape:"S11"}}},http:{}},RunInstances:{input:{type:"structure",required:["ImageId","MinCount","MaxCount"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{},MinCount:{type:"integer"},MaxCount:{type:"integer"},KeyName:{},SecurityGroups:{shape:"Sgt",locationName:"SecurityGroup"},SecurityGroupIds:{shape:"S46",locationName:"SecurityGroupId"},UserData:{},InstanceType:{},Placement:{shape:"Sao"},KernelId:{},RamdiskId:{},BlockDeviceMappings:{shape:"S38",locationName:"BlockDeviceMapping"},Monitoring:{shape:"Sea"},SubnetId:{},DisableApiTermination:{locationName:"disableApiTermination",type:"boolean"},InstanceInitiatedShutdownBehavior:{locationName:"instanceInitiatedShutdownBehavior"},PrivateIpAddress:{locationName:"privateIpAddress"},ClientToken:{locationName:"clientToken"},AdditionalInfo:{locationName:"additionalInfo"},NetworkInterfaces:{shape:"Sdz",locationName:"networkInterface"},IamInstanceProfile:{shape:"Se1",locationName:"iamInstanceProfile"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"}}},output:{shape:"Sak",locationName:"reservation"},http:{}},StartInstances:{input:{type:"structure",required:["InstanceIds"],members:{InstanceIds:{shape:"S7x",locationName:"InstanceId"},AdditionalInfo:{locationName:"additionalInfo"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{StartingInstances:{shape:"Sj2",locationName:"instancesSet"}}},http:{}},StopInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"},Force:{locationName:"force",type:"boolean"}}},output:{type:"structure",members:{StoppingInstances:{shape:"Sj2",locationName:"instancesSet"}}},http:{}},TerminateInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"}}},output:{type:"structure",members:{TerminatingInstances:{shape:"Sj2",locationName:"instancesSet"}}},http:{}},UnassignPrivateIpAddresses:{input:{type:"structure",required:["NetworkInterfaceId","PrivateIpAddresses"],members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIpAddresses:{shape:"Sg",locationName:"privateIpAddress"}}},http:{}},UnmonitorInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S7x",locationName:"InstanceId"}}},output:{type:"structure",members:{InstanceMonitorings:{shape:"Shx",locationName:"instancesSet"}}},http:{}}},shapes:{S5:{type:"structure",members:{AccepterVpcInfo:{shape:"S6",locationName:"accepterVpcInfo"},ExpirationTime:{locationName:"expirationTime",type:"timestamp"},RequesterVpcInfo:{shape:"S6",locationName:"requesterVpcInfo"},Status:{locationName:"status",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},Tags:{shape:"Sa",locationName:"tagSet"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},S6:{type:"structure",members:{CidrBlock:{locationName:"cidrBlock"},OwnerId:{locationName:"ownerId"},VpcId:{locationName:"vpcId"}}},Sa:{type:"list",member:{locationName:"item",type:"structure",members:{Key:{locationName:"key"},Value:{locationName:"value"}}}},Sg:{type:"list",member:{locationName:"PrivateIpAddress"}},So:{type:"list",member:{locationName:"groupId"}},Su:{type:"structure",members:{VolumeId:{locationName:"volumeId"},InstanceId:{locationName:"instanceId"},Device:{locationName:"device"},State:{locationName:"status"},AttachTime:{locationName:"attachTime",type:"timestamp"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}},Sy:{type:"structure",members:{VpcId:{locationName:"vpcId"},State:{locationName:"state"}}},S11:{type:"list",member:{locationName:"item",type:"structure",members:{IpProtocol:{locationName:"ipProtocol"},FromPort:{locationName:"fromPort",type:"integer"},ToPort:{locationName:"toPort",type:"integer"},UserIdGroupPairs:{locationName:"groups",type:"list",member:{locationName:"item",type:"structure",members:{UserId:{locationName:"userId"},GroupName:{locationName:"groupName"},GroupId:{locationName:"groupId"}}}},IpRanges:{locationName:"ipRanges",type:"list",member:{locationName:"item",type:"structure",members:{CidrIp:{locationName:"cidrIp"}}}},PrefixListIds:{locationName:"prefixListIds",type:"list",member:{locationName:"item",type:"structure",members:{PrefixListId:{locationName:"prefixListId"}}}}}}},S1b:{type:"structure",members:{S3:{type:"structure",members:{Bucket:{locationName:"bucket"},Prefix:{locationName:"prefix"},AWSAccessKeyId:{},UploadPolicy:{locationName:"uploadPolicy",type:"blob"},UploadPolicySignature:{locationName:"uploadPolicySignature"}}}}},S1f:{type:"structure",members:{InstanceId:{locationName:"instanceId"},BundleId:{locationName:"bundleId"},State:{locationName:"state"},StartTime:{locationName:"startTime",type:"timestamp"},UpdateTime:{locationName:"updateTime",type:"timestamp"},Storage:{shape:"S1b",locationName:"storage"},Progress:{locationName:"progress"},BundleTaskError:{locationName:"error",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}},S1q:{type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesListingId:{locationName:"reservedInstancesListingId"},ReservedInstancesId:{locationName:"reservedInstancesId"},CreateDate:{locationName:"createDate",type:"timestamp"},UpdateDate:{locationName:"updateDate",type:"timestamp"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},InstanceCounts:{locationName:"instanceCounts",type:"list",member:{locationName:"item",type:"structure",members:{State:{locationName:"state"},InstanceCount:{locationName:"instanceCount",type:"integer"}}}},PriceSchedules:{locationName:"priceSchedules",type:"list",member:{locationName:"item",type:"structure",members:{Term:{locationName:"term",type:"long"},Price:{locationName:"price",type:"double"},CurrencyCode:{locationName:"currencyCode"},Active:{locationName:"active",type:"boolean"}}}},Tags:{shape:"Sa",locationName:"tagSet"},ClientToken:{locationName:"clientToken"}}}},S22:{type:"list",member:{locationName:"item"}},S2c:{type:"list",member:{locationName:"SpotInstanceRequestId"}},S2q:{type:"structure",members:{CustomerGatewayId:{locationName:"customerGatewayId"},State:{locationName:"state"},Type:{locationName:"type"},IpAddress:{locationName:"ipAddress"},BgpAsn:{locationName:"bgpAsn"},Tags:{shape:"Sa",locationName:"tagSet"}}},S2v:{type:"structure",members:{DhcpOptionsId:{locationName:"dhcpOptionsId"},DhcpConfigurations:{locationName:"dhcpConfigurationSet",type:"list",member:{locationName:"item",type:"structure",members:{Key:{locationName:"key"},Values:{locationName:"valueSet",type:"list",member:{shape:"S2z",locationName:"item"}}}}},Tags:{shape:"Sa",locationName:"tagSet"}}},S2z:{type:"structure",members:{Value:{locationName:"value"}}},S34:{type:"list",member:{locationName:"item",type:"structure",required:["Error"],members:{ResourceId:{locationName:"resourceId"},Error:{locationName:"error",type:"structure",required:["Code","Message"],members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}}},S38:{type:"list",member:{shape:"S39",locationName:"BlockDeviceMapping"}},S39:{type:"structure",members:{VirtualName:{locationName:"virtualName"},DeviceName:{locationName:"deviceName"},Ebs:{locationName:"ebs",type:"structure",members:{SnapshotId:{locationName:"snapshotId"},VolumeSize:{locationName:"volumeSize",type:"integer"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"},VolumeType:{locationName:"volumeType"},Iops:{locationName:"iops",type:"integer"},Encrypted:{locationName:"encrypted",type:"boolean"}}},NoDevice:{locationName:"noDevice"}}},S3j:{type:"structure",members:{ExportTaskId:{locationName:"exportTaskId"},Description:{locationName:"description"},State:{locationName:"state"},StatusMessage:{locationName:"statusMessage"},InstanceExportDetails:{locationName:"instanceExport",type:"structure",members:{InstanceId:{locationName:"instanceId"},TargetEnvironment:{locationName:"targetEnvironment"}}},ExportToS3Task:{locationName:"exportToS3",type:"structure",members:{DiskImageFormat:{locationName:"diskImageFormat"},ContainerFormat:{locationName:"containerFormat"},S3Bucket:{locationName:"s3Bucket"},S3Key:{locationName:"s3Key"}}}}},S3p:{type:"structure",members:{InternetGatewayId:{locationName:"internetGatewayId"},Attachments:{locationName:"attachmentSet",type:"list",member:{locationName:"item",type:"structure",members:{VpcId:{locationName:"vpcId"},State:{locationName:"state"}}}},Tags:{shape:"Sa",locationName:"tagSet"}}},S3w:{type:"structure",members:{NetworkAclId:{locationName:"networkAclId"},VpcId:{locationName:"vpcId"},IsDefault:{locationName:"default",type:"boolean"},Entries:{locationName:"entrySet",type:"list",member:{locationName:"item",type:"structure",members:{RuleNumber:{locationName:"ruleNumber",type:"integer"},Protocol:{locationName:"protocol"},RuleAction:{locationName:"ruleAction"},Egress:{locationName:"egress",type:"boolean"},CidrBlock:{locationName:"cidrBlock"},IcmpTypeCode:{shape:"S40",locationName:"icmpTypeCode"},PortRange:{shape:"S41",locationName:"portRange"}}}},Associations:{locationName:"associationSet",type:"list",member:{locationName:"item",type:"structure",members:{NetworkAclAssociationId:{locationName:"networkAclAssociationId"},NetworkAclId:{locationName:"networkAclId"},SubnetId:{locationName:"subnetId"}}}},Tags:{shape:"Sa",locationName:"tagSet"}}},S40:{type:"structure",members:{Type:{locationName:"type",type:"integer"},Code:{locationName:"code",type:"integer"}}},S41:{type:"structure",members:{From:{locationName:"from",type:"integer"},To:{locationName:"to",type:"integer"}}},S46:{type:"list",member:{locationName:"SecurityGroupId"}},S47:{type:"list",member:{locationName:"item",type:"structure",required:["PrivateIpAddress"],members:{PrivateIpAddress:{locationName:"privateIpAddress"},Primary:{locationName:"primary",type:"boolean"}}}},S4a:{type:"structure",members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},SubnetId:{locationName:"subnetId"},VpcId:{locationName:"vpcId"},AvailabilityZone:{locationName:"availabilityZone"},Description:{locationName:"description"},OwnerId:{locationName:"ownerId"},RequesterId:{locationName:"requesterId"},RequesterManaged:{locationName:"requesterManaged",type:"boolean"},Status:{locationName:"status"},MacAddress:{locationName:"macAddress"},PrivateIpAddress:{locationName:"privateIpAddress"},PrivateDnsName:{locationName:"privateDnsName"},SourceDestCheck:{locationName:"sourceDestCheck",type:"boolean"},Groups:{shape:"S4c",locationName:"groupSet"},Attachment:{shape:"S4e",locationName:"attachment"},Association:{shape:"S4f",locationName:"association"},TagSet:{shape:"Sa",locationName:"tagSet"},PrivateIpAddresses:{locationName:"privateIpAddressesSet",type:"list",member:{locationName:"item",type:"structure",members:{PrivateIpAddress:{locationName:"privateIpAddress"},PrivateDnsName:{locationName:"privateDnsName"},Primary:{locationName:"primary",type:"boolean"},Association:{shape:"S4f",locationName:"association"}}}}}},S4c:{type:"list",member:{locationName:"item",type:"structure",members:{GroupName:{locationName:"groupName"},GroupId:{locationName:"groupId"}}}},S4e:{type:"structure",members:{AttachmentId:{locationName:"attachmentId"},InstanceId:{locationName:"instanceId"},InstanceOwnerId:{locationName:"instanceOwnerId"},DeviceIndex:{locationName:"deviceIndex",type:"integer"},Status:{locationName:"status"},AttachTime:{locationName:"attachTime",type:"timestamp"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}},S4f:{type:"structure",members:{PublicIp:{locationName:"publicIp"},PublicDnsName:{locationName:"publicDnsName"},IpOwnerId:{locationName:"ipOwnerId"},AllocationId:{locationName:"allocationId"},AssociationId:{locationName:"associationId"}}},S4s:{type:"structure",members:{RouteTableId:{locationName:"routeTableId"},VpcId:{locationName:"vpcId"},Routes:{locationName:"routeSet",type:"list",member:{locationName:"item",type:"structure",members:{DestinationCidrBlock:{locationName:"destinationCidrBlock"},DestinationPrefixListId:{locationName:"destinationPrefixListId"},GatewayId:{locationName:"gatewayId"},InstanceId:{locationName:"instanceId"},InstanceOwnerId:{locationName:"instanceOwnerId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"},State:{locationName:"state"},Origin:{locationName:"origin"}}}},Associations:{locationName:"associationSet",type:"list",member:{locationName:"item",type:"structure",members:{RouteTableAssociationId:{locationName:"routeTableAssociationId"},RouteTableId:{locationName:"routeTableId"},SubnetId:{locationName:"subnetId"},Main:{locationName:"main",type:"boolean"}}}},Tags:{shape:"Sa",locationName:"tagSet"},PropagatingVgws:{locationName:"propagatingVgwSet",type:"list",member:{locationName:"item",type:"structure",members:{GatewayId:{locationName:"gatewayId"}}}}}},S54:{type:"structure",members:{SnapshotId:{locationName:"snapshotId"},VolumeId:{locationName:"volumeId"},State:{locationName:"status"},StartTime:{locationName:"startTime",type:"timestamp"},Progress:{locationName:"progress"},OwnerId:{locationName:"ownerId"},Description:{locationName:"description"},VolumeSize:{locationName:"volumeSize",type:"integer"},OwnerAlias:{locationName:"ownerAlias"},Tags:{shape:"Sa",locationName:"tagSet"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{locationName:"kmsKeyId"}}},S58:{type:"structure",members:{OwnerId:{locationName:"ownerId"},Bucket:{locationName:"bucket"},Prefix:{locationName:"prefix"},State:{locationName:"state"},Fault:{shape:"S5a",locationName:"fault"}}},S5a:{type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},S5d:{type:"structure",members:{SubnetId:{locationName:"subnetId"},State:{locationName:"state"},VpcId:{locationName:"vpcId"},CidrBlock:{locationName:"cidrBlock"},AvailableIpAddressCount:{locationName:"availableIpAddressCount",type:"integer"},AvailabilityZone:{locationName:"availabilityZone"},DefaultForAz:{locationName:"defaultForAz",type:"boolean"},MapPublicIpOnLaunch:{locationName:"mapPublicIpOnLaunch",type:"boolean"},Tags:{shape:"Sa",locationName:"tagSet"}}},S5g:{type:"list",member:{}},S5i:{type:"structure",members:{VolumeId:{locationName:"volumeId"},Size:{locationName:"size",type:"integer"},SnapshotId:{locationName:"snapshotId"},AvailabilityZone:{locationName:"availabilityZone"},State:{locationName:"status"},CreateTime:{locationName:"createTime",type:"timestamp"},Attachments:{locationName:"attachmentSet",type:"list",member:{shape:"Su",locationName:"item"}},Tags:{shape:"Sa",locationName:"tagSet"},VolumeType:{locationName:"volumeType"},Iops:{locationName:"iops",type:"integer"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{locationName:"kmsKeyId"}}},S5o:{type:"structure",members:{VpcId:{locationName:"vpcId"},State:{locationName:"state"},CidrBlock:{locationName:"cidrBlock"},DhcpOptionsId:{locationName:"dhcpOptionsId"},Tags:{shape:"Sa",locationName:"tagSet"},InstanceTenancy:{locationName:"instanceTenancy"},IsDefault:{locationName:"isDefault",type:"boolean"}}},S5s:{type:"structure",members:{VpcEndpointId:{locationName:"vpcEndpointId"},VpcId:{locationName:"vpcId"},ServiceName:{locationName:"serviceName"},State:{locationName:"state"},PolicyDocument:{locationName:"policyDocument"},RouteTableIds:{shape:"S22",locationName:"routeTableIdSet"},CreationTimestamp:{locationName:"creationTimestamp",type:"timestamp"}}},S5z:{type:"structure",members:{VpnConnectionId:{locationName:"vpnConnectionId"},State:{locationName:"state"},CustomerGatewayConfiguration:{locationName:"customerGatewayConfiguration"},Type:{locationName:"type"},CustomerGatewayId:{locationName:"customerGatewayId"},VpnGatewayId:{locationName:"vpnGatewayId"},Tags:{shape:"Sa",locationName:"tagSet"},VgwTelemetry:{locationName:"vgwTelemetry",type:"list",member:{locationName:"item",type:"structure",members:{OutsideIpAddress:{locationName:"outsideIpAddress"},Status:{locationName:"status"},LastStatusChange:{locationName:"lastStatusChange",type:"timestamp"},StatusMessage:{locationName:"statusMessage"},AcceptedRouteCount:{locationName:"acceptedRouteCount",type:"integer"}}}},Options:{locationName:"options",type:"structure",members:{StaticRoutesOnly:{locationName:"staticRoutesOnly",type:"boolean"}}},Routes:{locationName:"routes",type:"list",member:{locationName:"item",type:"structure",members:{DestinationCidrBlock:{locationName:"destinationCidrBlock"},Source:{locationName:"source"},State:{locationName:"state"}}}}}},S6b:{type:"structure",members:{VpnGatewayId:{locationName:"vpnGatewayId"},State:{locationName:"state"},Type:{locationName:"type"},AvailabilityZone:{locationName:"availabilityZone"},VpcAttachments:{locationName:"attachments",type:"list",member:{shape:"Sy",locationName:"item"}},Tags:{shape:"Sa",locationName:"tagSet"}}},S7e:{type:"list",member:{locationName:"Filter",type:"structure",members:{Name:{},Values:{shape:"S22",locationName:"Value"}}}},S7x:{type:"list",member:{locationName:"InstanceId"}},S85:{type:"structure",required:["ConversionTaskId","State"],members:{ConversionTaskId:{locationName:"conversionTaskId"},ExpirationTime:{locationName:"expirationTime"},ImportInstance:{locationName:"importInstance",type:"structure",required:["Volumes"],members:{Volumes:{locationName:"volumes",type:"list",member:{locationName:"item",type:"structure",required:["BytesConverted","AvailabilityZone","Image","Volume","Status"],members:{BytesConverted:{locationName:"bytesConverted",type:"long"},AvailabilityZone:{locationName:"availabilityZone"},Image:{shape:"S89",locationName:"image"},Volume:{shape:"S8a",locationName:"volume"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},Description:{locationName:"description"}}}},InstanceId:{locationName:"instanceId"},Platform:{locationName:"platform"},Description:{locationName:"description"}}},ImportVolume:{locationName:"importVolume",type:"structure",required:["BytesConverted","AvailabilityZone","Image","Volume"],members:{BytesConverted:{locationName:"bytesConverted",type:"long"},AvailabilityZone:{locationName:"availabilityZone"},Description:{locationName:"description"},Image:{shape:"S89",locationName:"image"},Volume:{shape:"S8a",locationName:"volume"}}},State:{locationName:"state"},StatusMessage:{locationName:"statusMessage"},Tags:{shape:"Sa",locationName:"tagSet"}}},S89:{type:"structure",required:["Format","Size","ImportManifestUrl"],members:{Format:{locationName:"format"},Size:{locationName:"size",type:"long"},ImportManifestUrl:{locationName:"importManifestUrl"},Checksum:{locationName:"checksum"}}},S8a:{type:"structure",required:["Id"],members:{Size:{locationName:"size",type:"long"},Id:{locationName:"id"}}},S8x:{type:"list",member:{locationName:"item",type:"structure",members:{UserId:{locationName:"userId"},Group:{locationName:"group"}}}},S90:{type:"list",member:{locationName:"item",type:"structure",members:{ProductCodeId:{locationName:"productCode"},ProductCodeType:{locationName:"type"}}}},S93:{type:"list",member:{shape:"S39",locationName:"item"}},S96:{type:"list",member:{locationName:"Owner"}},S9e:{type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},S9j:{type:"list",member:{locationName:"ImportTaskId"}},S9n:{type:"list",member:{locationName:"item",type:"structure",members:{DiskImageSize:{locationName:"diskImageSize",type:"double"},Description:{locationName:"description"},Format:{locationName:"format"},Url:{locationName:"url"},UserBucket:{shape:"S9p",locationName:"userBucket"},DeviceName:{locationName:"deviceName"},SnapshotId:{locationName:"snapshotId"},Progress:{locationName:"progress"},StatusMessage:{locationName:"statusMessage"},Status:{locationName:"status"}}}},S9p:{type:"structure",members:{S3Bucket:{locationName:"s3Bucket"},S3Key:{locationName:"s3Key"}}},S9u:{type:"structure",members:{DiskImageSize:{locationName:"diskImageSize",type:"double"},Description:{locationName:"description"},Format:{locationName:"format"},Url:{locationName:"url"},UserBucket:{shape:"S9p",locationName:"userBucket"},SnapshotId:{locationName:"snapshotId"},Progress:{locationName:"progress"},StatusMessage:{locationName:"statusMessage"},Status:{locationName:"status"}}},S9y:{type:"structure",members:{Value:{locationName:"value",type:"boolean"}}},S9z:{type:"list",member:{locationName:"item",type:"structure",members:{DeviceName:{locationName:"deviceName"},Ebs:{locationName:"ebs",type:"structure",members:{VolumeId:{locationName:"volumeId"},Status:{locationName:"status"},AttachTime:{locationName:"attachTime",type:"timestamp"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}}}}},Sa9:{type:"structure",members:{Code:{locationName:"code",type:"integer"},Name:{locationName:"name"}}},Sab:{type:"structure",members:{Status:{locationName:"status"},Details:{locationName:"details",type:"list",member:{locationName:"item",type:"structure",members:{Name:{locationName:"name"},Status:{locationName:"status"},ImpairedSince:{locationName:"impairedSince",type:"timestamp"}}}}}},Sak:{type:"structure",members:{ReservationId:{locationName:"reservationId"},OwnerId:{locationName:"ownerId"},RequesterId:{locationName:"requesterId"},Groups:{shape:"S4c",locationName:"groupSet"},Instances:{locationName:"instancesSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},ImageId:{locationName:"imageId"},State:{shape:"Sa9",locationName:"instanceState"},PrivateDnsName:{locationName:"privateDnsName"},PublicDnsName:{locationName:"dnsName"},StateTransitionReason:{locationName:"reason"},KeyName:{locationName:"keyName"},AmiLaunchIndex:{locationName:"amiLaunchIndex",type:"integer"},ProductCodes:{shape:"S90",locationName:"productCodes"},InstanceType:{locationName:"instanceType"},LaunchTime:{locationName:"launchTime",type:"timestamp"},Placement:{shape:"Sao",locationName:"placement"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},Platform:{locationName:"platform"},Monitoring:{shape:"Sap",locationName:"monitoring"},SubnetId:{locationName:"subnetId"},VpcId:{locationName:"vpcId"},PrivateIpAddress:{locationName:"privateIpAddress"},PublicIpAddress:{locationName:"ipAddress"},StateReason:{shape:"S9e",locationName:"stateReason"},Architecture:{locationName:"architecture"},RootDeviceType:{locationName:"rootDeviceType"},RootDeviceName:{locationName:"rootDeviceName"},BlockDeviceMappings:{shape:"S9z",locationName:"blockDeviceMapping"},VirtualizationType:{locationName:"virtualizationType"},InstanceLifecycle:{locationName:"instanceLifecycle"},SpotInstanceRequestId:{locationName:"spotInstanceRequestId"},ClientToken:{locationName:"clientToken"},Tags:{shape:"Sa",locationName:"tagSet"},SecurityGroups:{shape:"S4c",locationName:"groupSet"},SourceDestCheck:{locationName:"sourceDestCheck",type:"boolean"},Hypervisor:{locationName:"hypervisor"},NetworkInterfaces:{locationName:"networkInterfaceSet",type:"list",member:{locationName:"item",type:"structure",members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},SubnetId:{locationName:"subnetId"},VpcId:{locationName:"vpcId"},Description:{locationName:"description"},OwnerId:{locationName:"ownerId"},Status:{locationName:"status"},MacAddress:{locationName:"macAddress"},PrivateIpAddress:{locationName:"privateIpAddress"},PrivateDnsName:{locationName:"privateDnsName"},SourceDestCheck:{locationName:"sourceDestCheck",type:"boolean"},Groups:{shape:"S4c",locationName:"groupSet"},Attachment:{locationName:"attachment",type:"structure",members:{AttachmentId:{locationName:"attachmentId"},DeviceIndex:{locationName:"deviceIndex",type:"integer"},Status:{locationName:"status"},AttachTime:{locationName:"attachTime",type:"timestamp"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}},Association:{shape:"Sav",locationName:"association"},PrivateIpAddresses:{locationName:"privateIpAddressesSet",type:"list",member:{locationName:"item",type:"structure",members:{PrivateIpAddress:{locationName:"privateIpAddress"},PrivateDnsName:{locationName:"privateDnsName"},Primary:{locationName:"primary",type:"boolean"},Association:{shape:"Sav",locationName:"association"}}}}}}},IamInstanceProfile:{locationName:"iamInstanceProfile",type:"structure",members:{Arn:{locationName:"arn"},Id:{locationName:"id"}}},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},SriovNetSupport:{locationName:"sriovNetSupport"}}}}}},Sao:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},GroupName:{locationName:"groupName"},Tenancy:{locationName:"tenancy"}}},Sap:{type:"structure",members:{State:{locationName:"state"}}},Sav:{type:"structure",members:{PublicIp:{locationName:"publicIp"},PublicDnsName:{locationName:"publicDnsName"},IpOwnerId:{locationName:"ipOwnerId"}}},Sc2:{type:"list",member:{locationName:"ReservedInstancesId"}},Sca:{type:"list",member:{locationName:"item",type:"structure",members:{Frequency:{locationName:"frequency"},Amount:{locationName:"amount",type:"double"}}}},Sco:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},Platform:{locationName:"platform"},InstanceCount:{locationName:"instanceCount",type:"integer"},InstanceType:{locationName:"instanceType"}}},Sd0:{type:"list",member:{locationName:"GroupName"}},Sd7:{type:"list",member:{locationName:"item",type:"structure",members:{UserId:{locationName:"userId"},Group:{locationName:"group"}}}},Sdu:{type:"structure",required:["SpotPrice","TargetCapacity","IamFleetRole","LaunchSpecifications"],members:{ClientToken:{locationName:"clientToken"},SpotPrice:{locationName:"spotPrice"},TargetCapacity:{locationName:"targetCapacity",type:"integer"},ValidFrom:{locationName:"validFrom",type:"timestamp"},ValidUntil:{locationName:"validUntil",type:"timestamp"},TerminateInstancesWithExpiration:{locationName:"terminateInstancesWithExpiration",type:"boolean"},IamFleetRole:{locationName:"iamFleetRole"},LaunchSpecifications:{locationName:"launchSpecifications",type:"list",member:{locationName:"item",type:"structure",members:{ImageId:{locationName:"imageId"},KeyName:{locationName:"keyName"},SecurityGroups:{shape:"S4c",locationName:"groupSet"},UserData:{locationName:"userData"},AddressingType:{locationName:"addressingType"},InstanceType:{locationName:"instanceType"},Placement:{shape:"Sdx",locationName:"placement"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},BlockDeviceMappings:{shape:"S93",locationName:"blockDeviceMapping"},Monitoring:{locationName:"monitoring",type:"structure",members:{Enabled:{locationName:"enabled",type:"boolean"}}},SubnetId:{locationName:"subnetId"},NetworkInterfaces:{shape:"Sdz",locationName:"networkInterfaceSet"},IamInstanceProfile:{shape:"Se1",locationName:"iamInstanceProfile"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},WeightedCapacity:{locationName:"weightedCapacity",type:"double"},SpotPrice:{locationName:"spotPrice"}}}}}},Sdx:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},GroupName:{locationName:"groupName"}}},Sdz:{type:"list",member:{locationName:"item",type:"structure",members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},DeviceIndex:{locationName:"deviceIndex",type:"integer"},SubnetId:{locationName:"subnetId"},Description:{locationName:"description"},PrivateIpAddress:{locationName:"privateIpAddress"},Groups:{shape:"S46",locationName:"SecurityGroupId"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"},PrivateIpAddresses:{shape:"S47",locationName:"privateIpAddressesSet",queryName:"PrivateIpAddresses"},SecondaryPrivateIpAddressCount:{locationName:"secondaryPrivateIpAddressCount",type:"integer"},AssociatePublicIpAddress:{locationName:"associatePublicIpAddress",type:"boolean"}}}},Se1:{type:"structure",members:{Arn:{locationName:"arn"},Name:{locationName:"name"}}},Se4:{type:"list",member:{locationName:"item",type:"structure",members:{SpotInstanceRequestId:{locationName:"spotInstanceRequestId"},SpotPrice:{locationName:"spotPrice"},Type:{locationName:"type"},State:{locationName:"state"},Fault:{shape:"S5a",locationName:"fault"},Status:{locationName:"status",type:"structure",members:{Code:{locationName:"code"},UpdateTime:{locationName:"updateTime",type:"timestamp"},Message:{locationName:"message"}}},ValidFrom:{locationName:"validFrom",type:"timestamp"},ValidUntil:{locationName:"validUntil",type:"timestamp"},LaunchGroup:{locationName:"launchGroup"},AvailabilityZoneGroup:{locationName:"availabilityZoneGroup"},LaunchSpecification:{locationName:"launchSpecification",type:"structure",members:{ImageId:{locationName:"imageId"},KeyName:{locationName:"keyName"},SecurityGroups:{shape:"S4c",locationName:"groupSet"},UserData:{locationName:"userData"},AddressingType:{locationName:"addressingType"},InstanceType:{locationName:"instanceType"},Placement:{shape:"Sdx",locationName:"placement"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},BlockDeviceMappings:{shape:"S93",locationName:"blockDeviceMapping"},SubnetId:{locationName:"subnetId"},NetworkInterfaces:{shape:"Sdz",locationName:"networkInterfaceSet"},IamInstanceProfile:{shape:"Se1",locationName:"iamInstanceProfile"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},Monitoring:{shape:"Sea",locationName:"monitoring"}}},InstanceId:{locationName:"instanceId"},CreateTime:{locationName:"createTime",type:"timestamp"},ProductDescription:{locationName:"productDescription"},Tags:{shape:"Sa",locationName:"tagSet"},LaunchedAvailabilityZone:{locationName:"launchedAvailabilityZone"}}}},Sea:{type:"structure",required:["Enabled"],members:{Enabled:{locationName:"enabled",type:"boolean"}}},Seu:{type:"list",member:{locationName:"VolumeId"}},Sgo:{type:"structure",members:{S3Bucket:{},S3Key:{}}},Sgp:{type:"structure",members:{UploadStart:{type:"timestamp"},UploadEnd:{type:"timestamp"},UploadSize:{type:"double"},Comment:{}}},Sgt:{type:"list",member:{locationName:"SecurityGroup"}},Sgy:{type:"structure",required:["Format","Bytes","ImportManifestUrl"],members:{Format:{locationName:"format"},Bytes:{locationName:"bytes",type:"long"},ImportManifestUrl:{locationName:"importManifestUrl"}}},Sgz:{type:"structure",required:["Size"],members:{Size:{locationName:"size",type:"long"}}},Sha:{type:"list",member:{locationName:"UserId"}},Shx:{type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},Monitoring:{shape:"Sap",locationName:"monitoring"}}}},Sj2:{type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},CurrentState:{shape:"Sa9",locationName:"currentState"},PreviousState:{shape:"Sa9",locationName:"previousState"}}}}},examples:{},paginators:{DescribeAccountAttributes:{result_key:"AccountAttributes"},DescribeAddresses:{result_key:"Addresses"},DescribeAvailabilityZones:{result_key:"AvailabilityZones"},DescribeBundleTasks:{result_key:"BundleTasks"},DescribeConversionTasks:{result_key:"ConversionTasks"},DescribeCustomerGateways:{result_key:"CustomerGateways"},DescribeDhcpOptions:{result_key:"DhcpOptions"},DescribeExportTasks:{result_key:"ExportTasks"},DescribeImages:{result_key:"Images"},DescribeInstanceStatus:{input_token:"NextToken",output_token:"NextToken", +limit_key:"MaxResults",result_key:"InstanceStatuses"},DescribeInstances:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"Reservations"},DescribeInternetGateways:{result_key:"InternetGateways"},DescribeKeyPairs:{result_key:"KeyPairs"},DescribeNetworkAcls:{result_key:"NetworkAcls"},DescribeNetworkInterfaces:{result_key:"NetworkInterfaces"},DescribePlacementGroups:{result_key:"PlacementGroups"},DescribeRegions:{result_key:"Regions"},DescribeReservedInstances:{result_key:"ReservedInstances"},DescribeReservedInstancesListings:{result_key:"ReservedInstancesListings"},DescribeReservedInstancesOfferings:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"ReservedInstancesOfferings"},DescribeReservedInstancesModifications:{input_token:"NextToken",output_token:"NextToken",result_key:"ReservedInstancesModifications"},DescribeRouteTables:{result_key:"RouteTables"},DescribeSecurityGroups:{result_key:"SecurityGroups"},DescribeSnapshots:{input_token:"NextToken",output_token:"NextToken",result_key:"Snapshots"},DescribeSpotInstanceRequests:{result_key:"SpotInstanceRequests"},DescribeSpotPriceHistory:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"SpotPriceHistory"},DescribeSubnets:{result_key:"Subnets"},DescribeTags:{result_key:"Tags"},DescribeVolumeStatus:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"VolumeStatuses"},DescribeVolumes:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"Volumes"},DescribeVpcs:{result_key:"Vpcs"},DescribeVpnConnections:{result_key:"VpnConnections"},DescribeVpnGateways:{result_key:"VpnGateways"}},waiters:{__default__:{interval:15,max_attempts:40,acceptor_type:"output"},__InstanceState:{operation:"DescribeInstances",acceptor_path:"Reservations[].Instances[].State.Name"},__InstanceStatus:{operation:"DescribeInstanceStatus",success_value:"ok"},SystemStatusOk:{"extends":"__InstanceStatus",acceptor_path:"InstanceStatuses[].SystemStatus.Status"},InstanceStatusOk:{"extends":"__InstanceStatus",acceptor_path:"InstanceStatuses[].InstanceStatus.Status"},ImageAvailable:{operation:"DescribeImages",acceptor_path:"Images[].State",success_value:"available",failure_value:["failed"]},InstanceRunning:{"extends":"__InstanceState",success_value:"running",failure_value:["shutting-down","terminated","stopping"]},InstanceStopped:{"extends":"__InstanceState",success_value:"stopped",failure_value:["pending","terminated"]},InstanceTerminated:{"extends":"__InstanceState",success_value:"terminated",failure_value:["pending","stopping"]},__ExportTaskState:{operation:"DescribeExportTasks",acceptor_path:"ExportTasks[].State"},ExportTaskCompleted:{"extends":"__ExportTaskState",success_value:"completed"},ExportTaskCancelled:{"extends":"__ExportTaskState",success_value:"cancelled"},SnapshotCompleted:{operation:"DescribeSnapshots",success_path:"Snapshots[].State",success_value:"completed"},SubnetAvailable:{operation:"DescribeSubnets",success_path:"Subnets[].State",success_value:"available"},__VolumeStatus:{operation:"DescribeVolumes",acceptor_path:"Volumes[].State"},VolumeAvailable:{"extends":"__VolumeStatus",success_value:"available",failure_value:["deleted"]},VolumeInUse:{"extends":"__VolumeStatus",success_value:"in-use",failure_value:["deleted"]},VolumeDeleted:{"extends":"__VolumeStatus",success_type:"error",success_value:"InvalidVolume.NotFound"},VpcAvailable:{operation:"DescribeVpcs",success_path:"Vpcs[].State",success_value:"available"},__VpnConnectionState:{operation:"DescribeVpnConnections",acceptor_path:"VpnConnections[].State"},VpnConnectionAvailable:{"extends":"__VpnConnectionState",success_value:"available",failure_value:["deleting","deleted"]},VpnConnectionDeleted:{"extends":"__VpnConnectionState",success_value:"deleted",failure_value:["pending"]},BundleTaskComplete:{operation:"DescribeBundleTasks",acceptor_path:"BundleTasks[].State",success_value:"complete",failure_value:["failed"]},__ConversionTaskState:{operation:"DescribeConversionTasks",acceptor_path:"ConversionTasks[].State"},ConversionTaskCompleted:{"extends":"__ConversionTaskState",success_value:"completed",failure_value:["cancelled","cancelling"]},ConversionTaskCancelled:{"extends":"__ConversionTaskState",success_value:"cancelled"},__CustomerGatewayState:{operation:"DescribeCustomerGateways",acceptor_path:"CustomerGateways[].State"},CustomerGatewayAvailable:{"extends":"__CustomerGatewayState",success_value:"available",failure_value:["deleted","deleting"]},ConversionTaskDeleted:{"extends":"__CustomerGatewayState",success_value:"deleted"},__SpotInstanceRequestState:{operation:"DescribeSpotInstanceRequests",acceptor_path:"SpotInstanceRequests[].Status.Code"},SpotInstanceRequestFulfilled:{"extends":"__SpotInstanceRequestState",success_value:"fulfilled",failure_value:["schedule-expired","canceled-before-fulfillment","bad-parameters","system-error"]}}};AWS.apiLoader.services["elastictranscoder"]={};AWS.ElasticTranscoder=AWS.Service.defineService("elastictranscoder",["2012-09-25"]);AWS.apiLoader.services["elastictranscoder"]["2012-09-25"]={version:"2.0",metadata:{apiVersion:"2012-09-25",endpointPrefix:"elastictranscoder",serviceFullName:"Amazon Elastic Transcoder",signatureVersion:"v4",protocol:"rest-json"},operations:{CancelJob:{http:{method:"DELETE",requestUri:"/2012-09-25/jobs/{Id}",responseCode:202},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{}}},CreateJob:{http:{requestUri:"/2012-09-25/jobs",responseCode:201},input:{type:"structure",required:["PipelineId","Input"],members:{PipelineId:{},Input:{shape:"S5"},Output:{shape:"Sk"},Outputs:{type:"list",member:{shape:"Sk"}},OutputKeyPrefix:{},Playlists:{type:"list",member:{type:"structure",members:{Name:{},Format:{},OutputKeys:{shape:"S1i"},HlsContentProtection:{shape:"S1j"},PlayReadyDrm:{shape:"S1n"}}}},UserMetadata:{shape:"S1s"}}},output:{type:"structure",members:{Job:{shape:"S1v"}}}},CreatePipeline:{http:{requestUri:"/2012-09-25/pipelines",responseCode:201},input:{type:"structure",required:["Name","InputBucket","Role"],members:{Name:{},InputBucket:{},OutputBucket:{},Role:{},AwsKmsKeyArn:{},Notifications:{shape:"S27"},ContentConfig:{shape:"S29"},ThumbnailConfig:{shape:"S29"}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"},Warnings:{shape:"S2k"}}}},CreatePreset:{http:{requestUri:"/2012-09-25/presets",responseCode:201},input:{type:"structure",required:["Name","Container"],members:{Name:{},Description:{},Container:{},Video:{shape:"S2o"},Audio:{shape:"S34"},Thumbnails:{shape:"S3f"}}},output:{type:"structure",members:{Preset:{shape:"S3j"},Warning:{}}}},DeletePipeline:{http:{method:"DELETE",requestUri:"/2012-09-25/pipelines/{Id}",responseCode:202},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{}}},DeletePreset:{http:{method:"DELETE",requestUri:"/2012-09-25/presets/{Id}",responseCode:202},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{}}},ListJobsByPipeline:{http:{method:"GET",requestUri:"/2012-09-25/jobsByPipeline/{PipelineId}"},input:{type:"structure",required:["PipelineId"],members:{PipelineId:{location:"uri",locationName:"PipelineId"},Ascending:{location:"querystring",locationName:"Ascending"},PageToken:{location:"querystring",locationName:"PageToken"}}},output:{type:"structure",members:{Jobs:{shape:"S3s"},NextPageToken:{}}}},ListJobsByStatus:{http:{method:"GET",requestUri:"/2012-09-25/jobsByStatus/{Status}"},input:{type:"structure",required:["Status"],members:{Status:{location:"uri",locationName:"Status"},Ascending:{location:"querystring",locationName:"Ascending"},PageToken:{location:"querystring",locationName:"PageToken"}}},output:{type:"structure",members:{Jobs:{shape:"S3s"},NextPageToken:{}}}},ListPipelines:{http:{method:"GET",requestUri:"/2012-09-25/pipelines"},input:{type:"structure",members:{Ascending:{location:"querystring",locationName:"Ascending"},PageToken:{location:"querystring",locationName:"PageToken"}}},output:{type:"structure",members:{Pipelines:{type:"list",member:{shape:"S2i"}},NextPageToken:{}}}},ListPresets:{http:{method:"GET",requestUri:"/2012-09-25/presets"},input:{type:"structure",members:{Ascending:{location:"querystring",locationName:"Ascending"},PageToken:{location:"querystring",locationName:"PageToken"}}},output:{type:"structure",members:{Presets:{type:"list",member:{shape:"S3j"}},NextPageToken:{}}}},ReadJob:{http:{method:"GET",requestUri:"/2012-09-25/jobs/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Job:{shape:"S1v"}}}},ReadPipeline:{http:{method:"GET",requestUri:"/2012-09-25/pipelines/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"},Warnings:{shape:"S2k"}}}},ReadPreset:{http:{method:"GET",requestUri:"/2012-09-25/presets/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Preset:{shape:"S3j"}}}},TestRole:{http:{requestUri:"/2012-09-25/roleTests",responseCode:200},input:{type:"structure",required:["Role","InputBucket","OutputBucket","Topics"],members:{Role:{},InputBucket:{},OutputBucket:{},Topics:{type:"list",member:{}}}},output:{type:"structure",members:{Success:{},Messages:{type:"list",member:{}}}}},UpdatePipeline:{http:{method:"PUT",requestUri:"/2012-09-25/pipelines/{Id}",responseCode:200},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},Name:{},InputBucket:{},Role:{},AwsKmsKeyArn:{},Notifications:{shape:"S27"},ContentConfig:{shape:"S29"},ThumbnailConfig:{shape:"S29"}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"},Warnings:{shape:"S2k"}}}},UpdatePipelineNotifications:{http:{requestUri:"/2012-09-25/pipelines/{Id}/notifications"},input:{type:"structure",required:["Id","Notifications"],members:{Id:{location:"uri",locationName:"Id"},Notifications:{shape:"S27"}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"}}}},UpdatePipelineStatus:{http:{requestUri:"/2012-09-25/pipelines/{Id}/status"},input:{type:"structure",required:["Id","Status"],members:{Id:{location:"uri",locationName:"Id"},Status:{}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"}}}}},shapes:{S5:{type:"structure",members:{Key:{},FrameRate:{},Resolution:{},AspectRatio:{},Interlaced:{},Container:{},Encryption:{shape:"Sc"},DetectedProperties:{type:"structure",members:{Width:{type:"integer"},Height:{type:"integer"},FrameRate:{},FileSize:{type:"long"},DurationMillis:{type:"long"}}}}},Sc:{type:"structure",members:{Mode:{},Key:{},KeyMd5:{},InitializationVector:{}}},Sk:{type:"structure",members:{Key:{},ThumbnailPattern:{},ThumbnailEncryption:{shape:"Sc"},Rotate:{},PresetId:{},SegmentDuration:{},Watermarks:{shape:"Sn"},AlbumArt:{shape:"Sr"},Composition:{shape:"Sz"},Captions:{shape:"S13"},Encryption:{shape:"Sc"}}},Sn:{type:"list",member:{type:"structure",members:{PresetWatermarkId:{},InputKey:{},Encryption:{shape:"Sc"}}}},Sr:{type:"structure",members:{MergePolicy:{},Artwork:{type:"list",member:{type:"structure",members:{InputKey:{},MaxWidth:{},MaxHeight:{},SizingPolicy:{},PaddingPolicy:{},AlbumArtFormat:{},Encryption:{shape:"Sc"}}}}}},Sz:{type:"list",member:{type:"structure",members:{TimeSpan:{type:"structure",members:{StartTime:{},Duration:{}}}}}},S13:{type:"structure",members:{MergePolicy:{},CaptionSources:{type:"list",member:{type:"structure",members:{Key:{},Language:{},TimeOffset:{},Label:{},Encryption:{shape:"Sc"}}}},CaptionFormats:{type:"list",member:{type:"structure",members:{Format:{},Pattern:{},Encryption:{shape:"Sc"}}}}}},S1i:{type:"list",member:{}},S1j:{type:"structure",members:{Method:{},Key:{},KeyMd5:{},InitializationVector:{},LicenseAcquisitionUrl:{},KeyStoragePolicy:{}}},S1n:{type:"structure",members:{Format:{},Key:{},KeyMd5:{},KeyId:{},InitializationVector:{},LicenseAcquisitionUrl:{}}},S1s:{type:"map",key:{},value:{}},S1v:{type:"structure",members:{Id:{},Arn:{},PipelineId:{},Input:{shape:"S5"},Output:{shape:"S1w"},Outputs:{type:"list",member:{shape:"S1w"}},OutputKeyPrefix:{},Playlists:{type:"list",member:{type:"structure",members:{Name:{},Format:{},OutputKeys:{shape:"S1i"},HlsContentProtection:{shape:"S1j"},PlayReadyDrm:{shape:"S1n"},Status:{},StatusDetail:{}}}},Status:{},UserMetadata:{shape:"S1s"},Timing:{type:"structure",members:{SubmitTimeMillis:{type:"long"},StartTimeMillis:{type:"long"},FinishTimeMillis:{type:"long"}}}}},S1w:{type:"structure",members:{Id:{},Key:{},ThumbnailPattern:{},ThumbnailEncryption:{shape:"Sc"},Rotate:{},PresetId:{},SegmentDuration:{},Status:{},StatusDetail:{},Duration:{type:"long"},Width:{type:"integer"},Height:{type:"integer"},FrameRate:{},FileSize:{type:"long"},DurationMillis:{type:"long"},Watermarks:{shape:"Sn"},AlbumArt:{shape:"Sr"},Composition:{shape:"Sz"},Captions:{shape:"S13"},Encryption:{shape:"Sc"},AppliedColorSpaceConversion:{}}},S27:{type:"structure",members:{Progressing:{},Completed:{},Warning:{},Error:{}}},S29:{type:"structure",members:{Bucket:{},StorageClass:{},Permissions:{type:"list",member:{type:"structure",members:{GranteeType:{},Grantee:{},Access:{type:"list",member:{}}}}}}},S2i:{type:"structure",members:{Id:{},Arn:{},Name:{},Status:{},InputBucket:{},OutputBucket:{},Role:{},AwsKmsKeyArn:{},Notifications:{shape:"S27"},ContentConfig:{shape:"S29"},ThumbnailConfig:{shape:"S29"}}},S2k:{type:"list",member:{type:"structure",members:{Code:{},Message:{}}}},S2o:{type:"structure",members:{Codec:{},CodecOptions:{type:"map",key:{},value:{}},KeyframesMaxDist:{},FixedGOP:{},BitRate:{},FrameRate:{},MaxFrameRate:{},Resolution:{},AspectRatio:{},MaxWidth:{},MaxHeight:{},DisplayAspectRatio:{},SizingPolicy:{},PaddingPolicy:{},Watermarks:{type:"list",member:{type:"structure",members:{Id:{},MaxWidth:{},MaxHeight:{},SizingPolicy:{},HorizontalAlign:{},HorizontalOffset:{},VerticalAlign:{},VerticalOffset:{},Opacity:{},Target:{}}}}}},S34:{type:"structure",members:{Codec:{},SampleRate:{},BitRate:{},Channels:{},AudioPackingMode:{},CodecOptions:{type:"structure",members:{Profile:{},BitDepth:{},BitOrder:{},Signed:{}}}}},S3f:{type:"structure",members:{Format:{},Interval:{},Resolution:{},AspectRatio:{},MaxWidth:{},MaxHeight:{},SizingPolicy:{},PaddingPolicy:{}}},S3j:{type:"structure",members:{Id:{},Arn:{},Name:{},Description:{},Container:{},Audio:{shape:"S34"},Video:{shape:"S2o"},Thumbnails:{shape:"S3f"},Type:{}}},S3s:{type:"list",member:{shape:"S1v"}}},paginators:{ListJobsByPipeline:{input_token:"PageToken",output_token:"NextPageToken",result_key:"Jobs"},ListJobsByStatus:{input_token:"PageToken",output_token:"NextPageToken",result_key:"Jobs"},ListPipelines:{input_token:"PageToken",output_token:"NextPageToken",result_key:"Pipelines"},ListPresets:{input_token:"PageToken",output_token:"NextPageToken",result_key:"Presets"}},waiters:{JobComplete:{operation:"ReadJob",success_type:"output",success_path:"Job.Status",interval:30,max_attempts:120,success_value:"Complete",failure_value:["Canceled","Error"]}}};AWS.apiLoader.services["kinesis"]={};AWS.Kinesis=AWS.Service.defineService("kinesis",["2013-12-02"]);AWS.apiLoader.services["kinesis"]["2013-12-02"]={version:"2.0",metadata:{apiVersion:"2013-12-02",endpointPrefix:"kinesis",jsonVersion:"1.1",serviceAbbreviation:"Kinesis",serviceFullName:"Amazon Kinesis",signatureVersion:"v4",targetPrefix:"Kinesis_20131202",protocol:"json"},operations:{AddTagsToStream:{input:{type:"structure",required:["StreamName","Tags"],members:{StreamName:{},Tags:{type:"map",key:{},value:{}}}},http:{}},CreateStream:{input:{type:"structure",required:["StreamName","ShardCount"],members:{StreamName:{},ShardCount:{type:"integer"}}},http:{}},DeleteStream:{input:{type:"structure",required:["StreamName"],members:{StreamName:{}}},http:{}},DescribeStream:{input:{type:"structure",required:["StreamName"],members:{StreamName:{},Limit:{type:"integer"},ExclusiveStartShardId:{}}},output:{type:"structure",required:["StreamDescription"],members:{StreamDescription:{type:"structure",required:["StreamName","StreamARN","StreamStatus","Shards","HasMoreShards"],members:{StreamName:{},StreamARN:{},StreamStatus:{},Shards:{type:"list",member:{type:"structure",required:["ShardId","HashKeyRange","SequenceNumberRange"],members:{ShardId:{},ParentShardId:{},AdjacentParentShardId:{},HashKeyRange:{type:"structure",required:["StartingHashKey","EndingHashKey"],members:{StartingHashKey:{},EndingHashKey:{}}},SequenceNumberRange:{type:"structure",required:["StartingSequenceNumber"],members:{StartingSequenceNumber:{},EndingSequenceNumber:{}}}}}},HasMoreShards:{type:"boolean"}}}}},http:{}},GetRecords:{input:{type:"structure",required:["ShardIterator"],members:{ShardIterator:{},Limit:{type:"integer"}}},output:{type:"structure",required:["Records"],members:{Records:{type:"list",member:{type:"structure",required:["SequenceNumber","Data","PartitionKey"],members:{SequenceNumber:{},Data:{type:"blob"},PartitionKey:{}}}},NextShardIterator:{},MillisBehindLatest:{type:"long"}}},http:{}},GetShardIterator:{input:{type:"structure",required:["StreamName","ShardId","ShardIteratorType"],members:{StreamName:{},ShardId:{},ShardIteratorType:{},StartingSequenceNumber:{}}},output:{type:"structure",members:{ShardIterator:{}}},http:{}},ListStreams:{input:{type:"structure",members:{Limit:{type:"integer"},ExclusiveStartStreamName:{}}},output:{type:"structure",required:["StreamNames","HasMoreStreams"],members:{StreamNames:{type:"list",member:{}},HasMoreStreams:{type:"boolean"}}},http:{}},ListTagsForStream:{input:{type:"structure",required:["StreamName"],members:{StreamName:{},ExclusiveStartTagKey:{},Limit:{type:"integer"}}},output:{type:"structure",required:["Tags","HasMoreTags"],members:{Tags:{type:"list",member:{type:"structure",required:["Key"],members:{Key:{},Value:{}}}},HasMoreTags:{type:"boolean"}}},http:{}},MergeShards:{input:{type:"structure",required:["StreamName","ShardToMerge","AdjacentShardToMerge"],members:{StreamName:{},ShardToMerge:{},AdjacentShardToMerge:{}}},http:{}},PutRecord:{input:{type:"structure",required:["StreamName","Data","PartitionKey"],members:{StreamName:{},Data:{type:"blob"},PartitionKey:{},ExplicitHashKey:{},SequenceNumberForOrdering:{}}},output:{type:"structure",required:["ShardId","SequenceNumber"],members:{ShardId:{},SequenceNumber:{}}},http:{}},PutRecords:{input:{type:"structure",required:["Records","StreamName"],members:{Records:{type:"list",member:{type:"structure",required:["Data","PartitionKey"],members:{Data:{type:"blob"},ExplicitHashKey:{},PartitionKey:{}}}},StreamName:{}}},output:{type:"structure",required:["Records"],members:{FailedRecordCount:{type:"integer"},Records:{type:"list",member:{type:"structure",members:{SequenceNumber:{},ShardId:{},ErrorCode:{},ErrorMessage:{}}}}}},http:{}},RemoveTagsFromStream:{input:{type:"structure",required:["StreamName","TagKeys"],members:{StreamName:{},TagKeys:{type:"list",member:{}}}},http:{}},SplitShard:{input:{type:"structure",required:["StreamName","ShardToSplit","NewStartingHashKey"],members:{StreamName:{},ShardToSplit:{},NewStartingHashKey:{}}},http:{}}},shapes:{},paginators:{DescribeStream:{input_token:"ExclusiveStartShardId",limit_key:"Limit",more_results:"StreamDescription.HasMoreShards",output_token:"StreamDescription.Shards[-1].ShardId",result_key:"StreamDescription.Shards"},ListStreams:{input_token:"ExclusiveStartStreamName",limit_key:"Limit",more_results:"HasMoreStreams",output_token:"StreamNames[-1]",result_key:"StreamNames"}}};AWS.apiLoader.services["lambda"]={};AWS.Lambda=AWS.Service.defineService("lambda",["2014-11-11","2015-03-31"]);AWS.apiLoader.services["lambda"]["2015-03-31"]={version:"2.0",metadata:{apiVersion:"2015-03-31",endpointPrefix:"lambda",serviceFullName:"AWS Lambda",signatureVersion:"v4",protocol:"rest-json"},operations:{AddPermission:{http:{requestUri:"/2015-03-31/functions/{FunctionName}/versions/HEAD/policy",responseCode:201},input:{type:"structure",required:["FunctionName","StatementId","Action","Principal"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},StatementId:{},Action:{},Principal:{},SourceArn:{},SourceAccount:{}}},output:{type:"structure",members:{Statement:{}}}},CreateEventSourceMapping:{http:{requestUri:"/2015-03-31/event-source-mappings/",responseCode:202},input:{type:"structure",required:["EventSourceArn","FunctionName","StartingPosition"],members:{EventSourceArn:{},FunctionName:{},Enabled:{type:"boolean"},BatchSize:{type:"integer"},StartingPosition:{}}},output:{shape:"Se"}},CreateFunction:{http:{requestUri:"/2015-03-31/functions",responseCode:201},input:{type:"structure",required:["FunctionName","Runtime","Role","Handler","Code"],members:{FunctionName:{},Runtime:{},Role:{},Handler:{},Description:{},Timeout:{type:"integer"},MemorySize:{type:"integer"},Code:{type:"structure",members:{ZipFile:{type:"blob"},S3Bucket:{},S3Key:{},S3ObjectVersion:{}}}}},output:{shape:"St"}},DeleteEventSourceMapping:{http:{method:"DELETE",requestUri:"/2015-03-31/event-source-mappings/{UUID}",responseCode:202},input:{type:"structure",required:["UUID"],members:{UUID:{location:"uri",locationName:"UUID"}}},output:{shape:"Se"}},DeleteFunction:{http:{method:"DELETE",requestUri:"/2015-03-31/functions/{FunctionName}",responseCode:204},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}}},GetEventSourceMapping:{http:{method:"GET",requestUri:"/2015-03-31/event-source-mappings/{UUID}",responseCode:200},input:{type:"structure",required:["UUID"],members:{UUID:{location:"uri",locationName:"UUID"}}},output:{shape:"Se"}},GetFunction:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/versions/HEAD",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}},output:{type:"structure",members:{Configuration:{shape:"St"},Code:{type:"structure",members:{RepositoryType:{},Location:{}}}}}},GetFunctionConfiguration:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/versions/HEAD/configuration",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}},output:{shape:"St"}},GetPolicy:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/versions/HEAD/policy",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}},output:{type:"structure",members:{Policy:{}}}},Invoke:{http:{requestUri:"/2015-03-31/functions/{FunctionName}/invocations"},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},InvocationType:{location:"header",locationName:"X-Amz-Invocation-Type"},LogType:{location:"header",locationName:"X-Amz-Log-Type"},ClientContext:{location:"header",locationName:"X-Amz-Client-Context"},Payload:{type:"blob"}},payload:"Payload"},output:{type:"structure",members:{StatusCode:{location:"statusCode",type:"integer"},FunctionError:{location:"header",locationName:"X-Amz-Function-Error"},LogResult:{location:"header",locationName:"X-Amz-Log-Result"},Payload:{type:"blob"}},payload:"Payload"}},InvokeAsync:{http:{requestUri:"/2014-11-13/functions/{FunctionName}/invoke-async/",responseCode:202},input:{deprecated:true,type:"structure",required:["FunctionName","InvokeArgs"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},InvokeArgs:{type:"blob",streaming:true}},payload:"InvokeArgs"},output:{deprecated:true,type:"structure",members:{Status:{location:"statusCode",type:"integer"}}},deprecated:true},ListEventSourceMappings:{http:{method:"GET",requestUri:"/2015-03-31/event-source-mappings/",responseCode:200},input:{type:"structure",members:{EventSourceArn:{location:"querystring",locationName:"EventSourceArn"},FunctionName:{location:"querystring",locationName:"FunctionName"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},EventSourceMappings:{type:"list",member:{shape:"Se"}}}}},ListFunctions:{http:{method:"GET",requestUri:"/2015-03-31/functions/",responseCode:200},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},Functions:{type:"list",member:{shape:"St"}}}}},RemovePermission:{http:{method:"DELETE",requestUri:"/2015-03-31/functions/{FunctionName}/versions/HEAD/policy/{StatementId}",responseCode:204},input:{type:"structure",required:["FunctionName","StatementId"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},StatementId:{location:"uri",locationName:"StatementId"}}}},UpdateEventSourceMapping:{http:{method:"PUT",requestUri:"/2015-03-31/event-source-mappings/{UUID}",responseCode:202},input:{type:"structure",required:["UUID"],members:{UUID:{location:"uri",locationName:"UUID"},FunctionName:{},Enabled:{type:"boolean"},BatchSize:{type:"integer"}}},output:{shape:"Se"}},UpdateFunctionCode:{http:{method:"PUT",requestUri:"/2015-03-31/functions/{FunctionName}/versions/HEAD/code",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},ZipFile:{type:"blob"},S3Bucket:{},S3Key:{},S3ObjectVersion:{}}},output:{shape:"St"}},UpdateFunctionConfiguration:{http:{method:"PUT",requestUri:"/2015-03-31/functions/{FunctionName}/versions/HEAD/configuration",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Role:{},Handler:{},Description:{},Timeout:{type:"integer"},MemorySize:{type:"integer"}}},output:{shape:"St"}}},shapes:{Se:{type:"structure",members:{UUID:{},BatchSize:{type:"integer"},EventSourceArn:{},FunctionArn:{},LastModified:{type:"timestamp"},LastProcessingResult:{},State:{},StateTransitionReason:{}}},St:{type:"structure",members:{FunctionName:{},FunctionArn:{},Runtime:{},Role:{},Handler:{},CodeSize:{type:"long"},Description:{},Timeout:{type:"integer"},MemorySize:{type:"integer"},LastModified:{}}}},paginators:{ListEventSourceMappings:{input_token:"Marker",output_token:"NextMarker",limit_key:"MaxItems",result_key:"EventSourceMappings"},ListFunctions:{input_token:"Marker",output_token:"NextMarker",limit_key:"MaxItems",result_key:"Functions"}}};AWS.apiLoader.services["machinelearning"]={};AWS.MachineLearning=AWS.Service.defineService("machinelearning",["2014-12-12"]);require("./services/machinelearning");AWS.apiLoader.services["machinelearning"]["2014-12-12"]={version:"2.0",metadata:{apiVersion:"2014-12-12",endpointPrefix:"machinelearning",jsonVersion:"1.1",serviceFullName:"Amazon Machine Learning",signatureVersion:"v4",targetPrefix:"AmazonML_20141212",protocol:"json"},operations:{CreateBatchPrediction:{input:{type:"structure",required:["BatchPredictionId","MLModelId","BatchPredictionDataSourceId","OutputUri"],members:{BatchPredictionId:{},BatchPredictionName:{},MLModelId:{},BatchPredictionDataSourceId:{},OutputUri:{}}},output:{type:"structure",members:{BatchPredictionId:{}}},http:{}},CreateDataSourceFromRDS:{input:{type:"structure",required:["DataSourceId","RDSData","RoleARN"],members:{DataSourceId:{},DataSourceName:{},RDSData:{type:"structure",required:["DatabaseInformation","SelectSqlQuery","DatabaseCredentials","S3StagingLocation","ResourceRole","ServiceRole","SubnetId","SecurityGroupIds"],members:{DatabaseInformation:{shape:"S8"},SelectSqlQuery:{},DatabaseCredentials:{type:"structure",required:["Username","Password"],members:{Username:{},Password:{}}},S3StagingLocation:{},DataRearrangement:{},DataSchema:{},DataSchemaUri:{},ResourceRole:{},ServiceRole:{},SubnetId:{},SecurityGroupIds:{type:"list",member:{}}}},RoleARN:{},ComputeStatistics:{type:"boolean"}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},CreateDataSourceFromRedshift:{input:{type:"structure",required:["DataSourceId","DataSpec","RoleARN"],members:{DataSourceId:{},DataSourceName:{},DataSpec:{type:"structure",required:["DatabaseInformation","SelectSqlQuery","DatabaseCredentials","S3StagingLocation"],members:{DatabaseInformation:{shape:"Sr"},SelectSqlQuery:{},DatabaseCredentials:{type:"structure",required:["Username","Password"],members:{Username:{},Password:{}}},S3StagingLocation:{},DataRearrangement:{},DataSchema:{},DataSchemaUri:{}}},RoleARN:{},ComputeStatistics:{type:"boolean"}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},CreateDataSourceFromS3:{input:{type:"structure",required:["DataSourceId","DataSpec"],members:{DataSourceId:{},DataSourceName:{},DataSpec:{type:"structure",required:["DataLocationS3"],members:{DataLocationS3:{},DataRearrangement:{},DataSchema:{},DataSchemaLocationS3:{}}},ComputeStatistics:{type:"boolean"}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},CreateEvaluation:{input:{type:"structure",required:["EvaluationId","MLModelId","EvaluationDataSourceId"],members:{EvaluationId:{},EvaluationName:{},MLModelId:{},EvaluationDataSourceId:{}}},output:{type:"structure",members:{EvaluationId:{}}},http:{}},CreateMLModel:{input:{type:"structure",required:["MLModelId","MLModelType","TrainingDataSourceId"],members:{MLModelId:{},MLModelName:{},MLModelType:{},Parameters:{shape:"S16"},TrainingDataSourceId:{},Recipe:{},RecipeUri:{}}},output:{type:"structure",members:{MLModelId:{}}},http:{}},CreateRealtimeEndpoint:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{}}},output:{type:"structure",members:{MLModelId:{},RealtimeEndpointInfo:{shape:"S1c"}}},http:{}},DeleteBatchPrediction:{input:{type:"structure",required:["BatchPredictionId"],members:{BatchPredictionId:{}}},output:{type:"structure",members:{BatchPredictionId:{}}},http:{}},DeleteDataSource:{input:{type:"structure",required:["DataSourceId"],members:{DataSourceId:{}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},DeleteEvaluation:{input:{type:"structure",required:["EvaluationId"],members:{EvaluationId:{}}},output:{type:"structure",members:{EvaluationId:{}}},http:{}},DeleteMLModel:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{}}},output:{type:"structure",members:{MLModelId:{}}},http:{}},DeleteRealtimeEndpoint:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{}}},output:{type:"structure",members:{MLModelId:{},RealtimeEndpointInfo:{shape:"S1c"}}},http:{}},DescribeBatchPredictions:{input:{type:"structure",members:{FilterVariable:{},EQ:{},GT:{},LT:{},GE:{},LE:{},NE:{},Prefix:{},SortOrder:{},NextToken:{},Limit:{type:"integer"}}},output:{type:"structure",members:{Results:{type:"list",member:{type:"structure",members:{BatchPredictionId:{},MLModelId:{},BatchPredictionDataSourceId:{},InputDataLocationS3:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},OutputUri:{},Message:{}}}},NextToken:{}}},http:{}},DescribeDataSources:{input:{type:"structure",members:{FilterVariable:{},EQ:{},GT:{},LT:{},GE:{},LE:{},NE:{},Prefix:{},SortOrder:{},NextToken:{},Limit:{type:"integer"}}},output:{type:"structure",members:{Results:{type:"list",member:{type:"structure",members:{DataSourceId:{},DataLocationS3:{},DataRearrangement:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},DataSizeInBytes:{type:"long"},NumberOfFiles:{type:"long"},Name:{},Status:{},Message:{},RedshiftMetadata:{shape:"S28"},RDSMetadata:{shape:"S29"},RoleARN:{},ComputeStatistics:{type:"boolean"}}}},NextToken:{}}},http:{}},DescribeEvaluations:{input:{type:"structure",members:{FilterVariable:{},EQ:{},GT:{},LT:{},GE:{},LE:{},NE:{},Prefix:{},SortOrder:{},NextToken:{},Limit:{type:"integer"}}},output:{type:"structure", +members:{Results:{type:"list",member:{type:"structure",members:{EvaluationId:{},MLModelId:{},EvaluationDataSourceId:{},InputDataLocationS3:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},PerformanceMetrics:{shape:"S2g"},Message:{}}}},NextToken:{}}},http:{}},DescribeMLModels:{input:{type:"structure",members:{FilterVariable:{},EQ:{},GT:{},LT:{},GE:{},LE:{},NE:{},Prefix:{},SortOrder:{},NextToken:{},Limit:{type:"integer"}}},output:{type:"structure",members:{Results:{type:"list",member:{type:"structure",members:{MLModelId:{},TrainingDataSourceId:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},SizeInBytes:{type:"long"},EndpointInfo:{shape:"S1c"},TrainingParameters:{shape:"S16"},InputDataLocationS3:{},Algorithm:{},MLModelType:{},ScoreThreshold:{type:"float"},ScoreThresholdLastUpdatedAt:{type:"timestamp"},Message:{}}}},NextToken:{}}},http:{}},GetBatchPrediction:{input:{type:"structure",required:["BatchPredictionId"],members:{BatchPredictionId:{}}},output:{type:"structure",members:{BatchPredictionId:{},MLModelId:{},BatchPredictionDataSourceId:{},InputDataLocationS3:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},OutputUri:{},LogUri:{},Message:{}}},http:{}},GetDataSource:{input:{type:"structure",required:["DataSourceId"],members:{DataSourceId:{},Verbose:{type:"boolean"}}},output:{type:"structure",members:{DataSourceId:{},DataLocationS3:{},DataRearrangement:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},DataSizeInBytes:{type:"long"},NumberOfFiles:{type:"long"},Name:{},Status:{},LogUri:{},Message:{},RedshiftMetadata:{shape:"S28"},RDSMetadata:{shape:"S29"},RoleARN:{},ComputeStatistics:{type:"boolean"},DataSourceSchema:{}}},http:{}},GetEvaluation:{input:{type:"structure",required:["EvaluationId"],members:{EvaluationId:{}}},output:{type:"structure",members:{EvaluationId:{},MLModelId:{},EvaluationDataSourceId:{},InputDataLocationS3:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},PerformanceMetrics:{shape:"S2g"},LogUri:{},Message:{}}},http:{}},GetMLModel:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{},Verbose:{type:"boolean"}}},output:{type:"structure",members:{MLModelId:{},TrainingDataSourceId:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},SizeInBytes:{type:"long"},EndpointInfo:{shape:"S1c"},TrainingParameters:{shape:"S16"},InputDataLocationS3:{},MLModelType:{},ScoreThreshold:{type:"float"},ScoreThresholdLastUpdatedAt:{type:"timestamp"},LogUri:{},Message:{},Recipe:{},Schema:{}}},http:{}},Predict:{input:{type:"structure",required:["MLModelId","Record","PredictEndpoint"],members:{MLModelId:{},Record:{type:"map",key:{},value:{}},PredictEndpoint:{}}},output:{type:"structure",members:{Prediction:{type:"structure",members:{predictedLabel:{},predictedValue:{type:"float"},predictedScores:{type:"map",key:{},value:{type:"float"}},details:{type:"map",key:{},value:{}}}}}},http:{}},UpdateBatchPrediction:{input:{type:"structure",required:["BatchPredictionId","BatchPredictionName"],members:{BatchPredictionId:{},BatchPredictionName:{}}},output:{type:"structure",members:{BatchPredictionId:{}}},http:{}},UpdateDataSource:{input:{type:"structure",required:["DataSourceId","DataSourceName"],members:{DataSourceId:{},DataSourceName:{}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},UpdateEvaluation:{input:{type:"structure",required:["EvaluationId","EvaluationName"],members:{EvaluationId:{},EvaluationName:{}}},output:{type:"structure",members:{EvaluationId:{}}},http:{}},UpdateMLModel:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{},MLModelName:{},ScoreThreshold:{type:"float"}}},output:{type:"structure",members:{MLModelId:{}}},http:{}}},shapes:{S8:{type:"structure",required:["InstanceIdentifier","DatabaseName"],members:{InstanceIdentifier:{},DatabaseName:{}}},Sr:{type:"structure",required:["DatabaseName","ClusterIdentifier"],members:{DatabaseName:{},ClusterIdentifier:{}}},S16:{type:"map",key:{},value:{}},S1c:{type:"structure",members:{PeakRequestsPerSecond:{type:"integer"},CreatedAt:{type:"timestamp"},EndpointUrl:{},EndpointStatus:{}}},S28:{type:"structure",members:{RedshiftDatabase:{shape:"Sr"},DatabaseUserName:{},SelectSqlQuery:{}}},S29:{type:"structure",members:{Database:{shape:"S8"},DatabaseUserName:{},SelectSqlQuery:{},ResourceRole:{},ServiceRole:{},DataPipelineId:{}}},S2g:{type:"structure",members:{Properties:{type:"map",key:{},value:{}}}}},paginators:{DescribeBatchPredictions:{limit_key:"Limit",output_token:"NextToken",input_token:"NextToken",result_key:"Results"},DescribeDataSources:{limit_key:"Limit",output_token:"NextToken",input_token:"NextToken",result_key:"Results"},DescribeEvaluations:{limit_key:"Limit",output_token:"NextToken",input_token:"NextToken",result_key:"Results"},DescribeMLModels:{limit_key:"Limit",output_token:"NextToken",input_token:"NextToken",result_key:"Results"}}};AWS.apiLoader.services["mobileanalytics"]={};AWS.MobileAnalytics=AWS.Service.defineService("mobileanalytics",["2014-06-05"]);AWS.apiLoader.services["mobileanalytics"]["2014-06-05"]={version:"2.0",metadata:{apiVersion:"2014-06-05",endpointPrefix:"mobileanalytics",serviceFullName:"Amazon Mobile Analytics",signatureVersion:"v4",protocol:"rest-json"},operations:{PutEvents:{http:{requestUri:"/2014-06-05/events",responseCode:202},input:{type:"structure",required:["events","clientContext"],members:{events:{type:"list",member:{type:"structure",required:["eventType","timestamp"],members:{eventType:{},timestamp:{},session:{type:"structure",members:{id:{},duration:{type:"long"},startTimestamp:{},stopTimestamp:{}}},version:{},attributes:{type:"map",key:{},value:{}},metrics:{type:"map",key:{},value:{type:"double"}}}}},clientContext:{location:"header",locationName:"x-amz-Client-Context"},clientContextEncoding:{location:"header",locationName:"x-amz-Client-Context-Encoding"}}}}},shapes:{}};AWS.apiLoader.services["opsworks"]={};AWS.OpsWorks=AWS.Service.defineService("opsworks",["2013-02-18"]);AWS.apiLoader.services["opsworks"]["2013-02-18"]={version:"2.0",metadata:{apiVersion:"2013-02-18",endpointPrefix:"opsworks",jsonVersion:"1.1",serviceFullName:"AWS OpsWorks",signatureVersion:"v4",targetPrefix:"OpsWorks_20130218",protocol:"json"},operations:{AssignInstance:{input:{type:"structure",required:["InstanceId","LayerIds"],members:{InstanceId:{},LayerIds:{shape:"S3"}}},http:{}},AssignVolume:{input:{type:"structure",required:["VolumeId"],members:{VolumeId:{},InstanceId:{}}},http:{}},AssociateElasticIp:{input:{type:"structure",required:["ElasticIp"],members:{ElasticIp:{},InstanceId:{}}},http:{}},AttachElasticLoadBalancer:{input:{type:"structure",required:["ElasticLoadBalancerName","LayerId"],members:{ElasticLoadBalancerName:{},LayerId:{}}},http:{}},CloneStack:{input:{type:"structure",required:["SourceStackId","ServiceRoleArn"],members:{SourceStackId:{},Name:{},Region:{},VpcId:{},Attributes:{shape:"S8"},ServiceRoleArn:{},DefaultInstanceProfileArn:{},DefaultOs:{},HostnameTheme:{},DefaultAvailabilityZone:{},DefaultSubnetId:{},CustomJson:{},ConfigurationManager:{shape:"Sa"},ChefConfiguration:{shape:"Sb"},UseCustomCookbooks:{type:"boolean"},UseOpsworksSecurityGroups:{type:"boolean"},CustomCookbooksSource:{shape:"Sd"},DefaultSshKeyName:{},ClonePermissions:{type:"boolean"},CloneAppIds:{shape:"S3"},DefaultRootDeviceType:{},AgentVersion:{}}},output:{type:"structure",members:{StackId:{}}},http:{}},CreateApp:{input:{type:"structure",required:["StackId","Name","Type"],members:{StackId:{},Shortname:{},Name:{},Description:{},DataSources:{shape:"Si"},Type:{},AppSource:{shape:"Sd"},Domains:{shape:"S3"},EnableSsl:{type:"boolean"},SslConfiguration:{shape:"Sl"},Attributes:{shape:"Sm"},Environment:{shape:"So"}}},output:{type:"structure",members:{AppId:{}}},http:{}},CreateDeployment:{input:{type:"structure",required:["StackId","Command"],members:{StackId:{},AppId:{},InstanceIds:{shape:"S3"},Command:{shape:"Ss"},Comment:{},CustomJson:{}}},output:{type:"structure",members:{DeploymentId:{}}},http:{}},CreateInstance:{input:{type:"structure",required:["StackId","LayerIds","InstanceType"],members:{StackId:{},LayerIds:{shape:"S3"},InstanceType:{},AutoScalingType:{},Hostname:{},Os:{},AmiId:{},SshKeyName:{},AvailabilityZone:{},VirtualizationType:{},SubnetId:{},Architecture:{},RootDeviceType:{},BlockDeviceMappings:{shape:"Sz"},InstallUpdatesOnBoot:{type:"boolean"},EbsOptimized:{type:"boolean"},AgentVersion:{}}},output:{type:"structure",members:{InstanceId:{}}},http:{}},CreateLayer:{input:{type:"structure",required:["StackId","Type","Name","Shortname"],members:{StackId:{},Type:{},Name:{},Shortname:{},Attributes:{shape:"S17"},CustomInstanceProfileArn:{},CustomJson:{},CustomSecurityGroupIds:{shape:"S3"},Packages:{shape:"S3"},VolumeConfigurations:{shape:"S19"},EnableAutoHealing:{type:"boolean"},AutoAssignElasticIps:{type:"boolean"},AutoAssignPublicIps:{type:"boolean"},CustomRecipes:{shape:"S1b"},InstallUpdatesOnBoot:{type:"boolean"},UseEbsOptimizedInstances:{type:"boolean"},LifecycleEventConfiguration:{shape:"S1c"}}},output:{type:"structure",members:{LayerId:{}}},http:{}},CreateStack:{input:{type:"structure",required:["Name","Region","ServiceRoleArn","DefaultInstanceProfileArn"],members:{Name:{},Region:{},VpcId:{},Attributes:{shape:"S8"},ServiceRoleArn:{},DefaultInstanceProfileArn:{},DefaultOs:{},HostnameTheme:{},DefaultAvailabilityZone:{},DefaultSubnetId:{},CustomJson:{},ConfigurationManager:{shape:"Sa"},ChefConfiguration:{shape:"Sb"},UseCustomCookbooks:{type:"boolean"},UseOpsworksSecurityGroups:{type:"boolean"},CustomCookbooksSource:{shape:"Sd"},DefaultSshKeyName:{},DefaultRootDeviceType:{},AgentVersion:{}}},output:{type:"structure",members:{StackId:{}}},http:{}},CreateUserProfile:{input:{type:"structure",required:["IamUserArn"],members:{IamUserArn:{},SshUsername:{},SshPublicKey:{},AllowSelfManagement:{type:"boolean"}}},output:{type:"structure",members:{IamUserArn:{}}},http:{}},DeleteApp:{input:{type:"structure",required:["AppId"],members:{AppId:{}}},http:{}},DeleteInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},DeleteElasticIp:{type:"boolean"},DeleteVolumes:{type:"boolean"}}},http:{}},DeleteLayer:{input:{type:"structure",required:["LayerId"],members:{LayerId:{}}},http:{}},DeleteStack:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},http:{}},DeleteUserProfile:{input:{type:"structure",required:["IamUserArn"],members:{IamUserArn:{}}},http:{}},DeregisterEcsCluster:{input:{type:"structure",required:["EcsClusterArn"],members:{EcsClusterArn:{}}},http:{}},DeregisterElasticIp:{input:{type:"structure",required:["ElasticIp"],members:{ElasticIp:{}}},http:{}},DeregisterInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},DeregisterRdsDbInstance:{input:{type:"structure",required:["RdsDbInstanceArn"],members:{RdsDbInstanceArn:{}}},http:{}},DeregisterVolume:{input:{type:"structure",required:["VolumeId"],members:{VolumeId:{}}},http:{}},DescribeAgentVersions:{input:{type:"structure",members:{StackId:{},ConfigurationManager:{shape:"Sa"}}},output:{type:"structure",members:{AgentVersions:{type:"list",member:{type:"structure",members:{Version:{},ConfigurationManager:{shape:"Sa"}}}}}},http:{}},DescribeApps:{input:{type:"structure",members:{StackId:{},AppIds:{shape:"S3"}}},output:{type:"structure",members:{Apps:{type:"list",member:{type:"structure",members:{AppId:{},StackId:{},Shortname:{},Name:{},Description:{},DataSources:{shape:"Si"},Type:{},AppSource:{shape:"Sd"},Domains:{shape:"S3"},EnableSsl:{type:"boolean"},SslConfiguration:{shape:"Sl"},Attributes:{shape:"Sm"},CreatedAt:{},Environment:{shape:"So"}}}}}},http:{}},DescribeCommands:{input:{type:"structure",members:{DeploymentId:{},InstanceId:{},CommandIds:{shape:"S3"}}},output:{type:"structure",members:{Commands:{type:"list",member:{type:"structure",members:{CommandId:{},InstanceId:{},DeploymentId:{},CreatedAt:{},AcknowledgedAt:{},CompletedAt:{},Status:{},ExitCode:{type:"integer"},LogUrl:{},Type:{}}}}}},http:{}},DescribeDeployments:{input:{type:"structure",members:{StackId:{},AppId:{},DeploymentIds:{shape:"S3"}}},output:{type:"structure",members:{Deployments:{type:"list",member:{type:"structure",members:{DeploymentId:{},StackId:{},AppId:{},CreatedAt:{},CompletedAt:{},Duration:{type:"integer"},IamUserArn:{},Comment:{},Command:{shape:"Ss"},Status:{},CustomJson:{},InstanceIds:{shape:"S3"}}}}}},http:{}},DescribeEcsClusters:{input:{type:"structure",members:{EcsClusterArns:{shape:"S3"},StackId:{},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{EcsClusters:{type:"list",member:{type:"structure",members:{EcsClusterArn:{},EcsClusterName:{},StackId:{},RegisteredAt:{}}}},NextToken:{}}},http:{}},DescribeElasticIps:{input:{type:"structure",members:{InstanceId:{},StackId:{},Ips:{shape:"S3"}}},output:{type:"structure",members:{ElasticIps:{type:"list",member:{type:"structure",members:{Ip:{},Name:{},Domain:{},Region:{},InstanceId:{}}}}}},http:{}},DescribeElasticLoadBalancers:{input:{type:"structure",members:{StackId:{},LayerIds:{shape:"S3"}}},output:{type:"structure",members:{ElasticLoadBalancers:{type:"list",member:{type:"structure",members:{ElasticLoadBalancerName:{},Region:{},DnsName:{},StackId:{},LayerId:{},VpcId:{},AvailabilityZones:{shape:"S3"},SubnetIds:{shape:"S3"},Ec2InstanceIds:{shape:"S3"}}}}}},http:{}},DescribeInstances:{input:{type:"structure",members:{StackId:{},LayerId:{},InstanceIds:{shape:"S3"}}},output:{type:"structure",members:{Instances:{type:"list",member:{type:"structure",members:{AgentVersion:{},AmiId:{},Architecture:{},AutoScalingType:{},AvailabilityZone:{},BlockDeviceMappings:{shape:"Sz"},CreatedAt:{},EbsOptimized:{type:"boolean"},Ec2InstanceId:{},EcsClusterArn:{},EcsContainerInstanceArn:{},ElasticIp:{},Hostname:{},InfrastructureClass:{},InstallUpdatesOnBoot:{type:"boolean"},InstanceId:{},InstanceProfileArn:{},InstanceType:{},LastServiceErrorId:{},LayerIds:{shape:"S3"},Os:{},Platform:{},PrivateDns:{},PrivateIp:{},PublicDns:{},PublicIp:{},RegisteredBy:{},ReportedAgentVersion:{},ReportedOs:{type:"structure",members:{Family:{},Name:{},Version:{}}},RootDeviceType:{},RootDeviceVolumeId:{},SecurityGroupIds:{shape:"S3"},SshHostDsaKeyFingerprint:{},SshHostRsaKeyFingerprint:{},SshKeyName:{},StackId:{},Status:{},SubnetId:{},VirtualizationType:{}}}}}},http:{}},DescribeLayers:{input:{type:"structure",members:{StackId:{},LayerIds:{shape:"S3"}}},output:{type:"structure",members:{Layers:{type:"list",member:{type:"structure",members:{StackId:{},LayerId:{},Type:{},Name:{},Shortname:{},Attributes:{shape:"S17"},CustomInstanceProfileArn:{},CustomJson:{},CustomSecurityGroupIds:{shape:"S3"},DefaultSecurityGroupNames:{shape:"S3"},Packages:{shape:"S3"},VolumeConfigurations:{shape:"S19"},EnableAutoHealing:{type:"boolean"},AutoAssignElasticIps:{type:"boolean"},AutoAssignPublicIps:{type:"boolean"},DefaultRecipes:{shape:"S1b"},CustomRecipes:{shape:"S1b"},CreatedAt:{},InstallUpdatesOnBoot:{type:"boolean"},UseEbsOptimizedInstances:{type:"boolean"},LifecycleEventConfiguration:{shape:"S1c"}}}}}},http:{}},DescribeLoadBasedAutoScaling:{input:{type:"structure",required:["LayerIds"],members:{LayerIds:{shape:"S3"}}},output:{type:"structure",members:{LoadBasedAutoScalingConfigurations:{type:"list",member:{type:"structure",members:{LayerId:{},Enable:{type:"boolean"},UpScaling:{shape:"S30"},DownScaling:{shape:"S30"}}}}}},http:{}},DescribeMyUserProfile:{output:{type:"structure",members:{UserProfile:{type:"structure",members:{IamUserArn:{},Name:{},SshUsername:{},SshPublicKey:{}}}}},http:{}},DescribePermissions:{input:{type:"structure",members:{IamUserArn:{},StackId:{}}},output:{type:"structure",members:{Permissions:{type:"list",member:{type:"structure",members:{StackId:{},IamUserArn:{},AllowSsh:{type:"boolean"},AllowSudo:{type:"boolean"},Level:{}}}}}},http:{}},DescribeRaidArrays:{input:{type:"structure",members:{InstanceId:{},StackId:{},RaidArrayIds:{shape:"S3"}}},output:{type:"structure",members:{RaidArrays:{type:"list",member:{type:"structure",members:{RaidArrayId:{},InstanceId:{},Name:{},RaidLevel:{type:"integer"},NumberOfDisks:{type:"integer"},Size:{type:"integer"},Device:{},MountPoint:{},AvailabilityZone:{},CreatedAt:{},StackId:{},VolumeType:{},Iops:{type:"integer"}}}}}},http:{}},DescribeRdsDbInstances:{input:{type:"structure",required:["StackId"],members:{StackId:{},RdsDbInstanceArns:{shape:"S3"}}},output:{type:"structure",members:{RdsDbInstances:{type:"list",member:{type:"structure",members:{RdsDbInstanceArn:{},DbInstanceIdentifier:{},DbUser:{},DbPassword:{},Region:{},Address:{},Engine:{},StackId:{},MissingOnRds:{type:"boolean"}}}}}},http:{}},DescribeServiceErrors:{input:{type:"structure",members:{StackId:{},InstanceId:{},ServiceErrorIds:{shape:"S3"}}},output:{type:"structure",members:{ServiceErrors:{type:"list",member:{type:"structure",members:{ServiceErrorId:{},StackId:{},InstanceId:{},Type:{},Message:{},CreatedAt:{}}}}}},http:{}},DescribeStackProvisioningParameters:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},output:{type:"structure",members:{AgentInstallerUrl:{},Parameters:{type:"map",key:{},value:{}}}},http:{}},DescribeStackSummary:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},output:{type:"structure",members:{StackSummary:{type:"structure",members:{StackId:{},Name:{},Arn:{},LayersCount:{type:"integer"},AppsCount:{type:"integer"},InstancesCount:{type:"structure",members:{Assigning:{type:"integer"},Booting:{type:"integer"},ConnectionLost:{type:"integer"},Deregistering:{type:"integer"},Online:{type:"integer"},Pending:{type:"integer"},Rebooting:{type:"integer"},Registered:{type:"integer"},Registering:{type:"integer"},Requested:{type:"integer"},RunningSetup:{type:"integer"},SetupFailed:{type:"integer"},ShuttingDown:{type:"integer"},StartFailed:{type:"integer"},Stopped:{type:"integer"},Stopping:{type:"integer"},Terminated:{type:"integer"},Terminating:{type:"integer"},Unassigning:{type:"integer"}}}}}}},http:{}},DescribeStacks:{input:{type:"structure",members:{StackIds:{shape:"S3"}}},output:{type:"structure",members:{Stacks:{type:"list",member:{type:"structure",members:{StackId:{},Name:{},Arn:{},Region:{},VpcId:{},Attributes:{shape:"S8"},ServiceRoleArn:{},DefaultInstanceProfileArn:{},DefaultOs:{},HostnameTheme:{},DefaultAvailabilityZone:{},DefaultSubnetId:{},CustomJson:{},ConfigurationManager:{shape:"Sa"},ChefConfiguration:{shape:"Sb"},UseCustomCookbooks:{type:"boolean"},UseOpsworksSecurityGroups:{type:"boolean"},CustomCookbooksSource:{shape:"Sd"},DefaultSshKeyName:{},CreatedAt:{},DefaultRootDeviceType:{},AgentVersion:{}}}}}},http:{}},DescribeTimeBasedAutoScaling:{input:{type:"structure",required:["InstanceIds"],members:{InstanceIds:{shape:"S3"}}},output:{type:"structure",members:{TimeBasedAutoScalingConfigurations:{type:"list",member:{type:"structure",members:{InstanceId:{},AutoScalingSchedule:{shape:"S40"}}}}}},http:{}},DescribeUserProfiles:{input:{type:"structure",members:{IamUserArns:{shape:"S3"}}},output:{type:"structure",members:{UserProfiles:{type:"list",member:{type:"structure",members:{IamUserArn:{},Name:{},SshUsername:{},SshPublicKey:{},AllowSelfManagement:{type:"boolean"}}}}}},http:{}},DescribeVolumes:{input:{type:"structure",members:{InstanceId:{},StackId:{},RaidArrayId:{},VolumeIds:{shape:"S3"}}},output:{type:"structure",members:{Volumes:{type:"list",member:{type:"structure",members:{VolumeId:{},Ec2VolumeId:{},Name:{},RaidArrayId:{},InstanceId:{},Status:{},Size:{type:"integer"},Device:{},MountPoint:{},Region:{},AvailabilityZone:{},VolumeType:{},Iops:{type:"integer"}}}}}},http:{}},DetachElasticLoadBalancer:{input:{type:"structure",required:["ElasticLoadBalancerName","LayerId"],members:{ElasticLoadBalancerName:{},LayerId:{}}},http:{}},DisassociateElasticIp:{input:{type:"structure",required:["ElasticIp"],members:{ElasticIp:{}}},http:{}},GetHostnameSuggestion:{input:{type:"structure",required:["LayerId"],members:{LayerId:{}}},output:{type:"structure",members:{LayerId:{},Hostname:{}}},http:{}},GrantAccess:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},ValidForInMinutes:{type:"integer"}}},output:{type:"structure",members:{TemporaryCredential:{type:"structure",members:{Username:{},Password:{},ValidForInMinutes:{type:"integer"},InstanceId:{}}}}},http:{}},RebootInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},RegisterEcsCluster:{input:{type:"structure",required:["EcsClusterArn","StackId"],members:{EcsClusterArn:{},StackId:{}}},output:{type:"structure",members:{EcsClusterArn:{}}},http:{}},RegisterElasticIp:{input:{type:"structure",required:["ElasticIp","StackId"],members:{ElasticIp:{},StackId:{}}},output:{type:"structure",members:{ElasticIp:{}}},http:{}},RegisterInstance:{input:{type:"structure",required:["StackId"],members:{StackId:{},Hostname:{},PublicIp:{},PrivateIp:{},RsaPublicKey:{},RsaPublicKeyFingerprint:{},InstanceIdentity:{type:"structure",members:{Document:{},Signature:{}}}}},output:{type:"structure",members:{InstanceId:{}}},http:{}},RegisterRdsDbInstance:{input:{type:"structure",required:["StackId","RdsDbInstanceArn","DbUser","DbPassword"],members:{StackId:{},RdsDbInstanceArn:{},DbUser:{},DbPassword:{}}},http:{}},RegisterVolume:{input:{type:"structure",required:["StackId"],members:{Ec2VolumeId:{},StackId:{}}},output:{type:"structure",members:{VolumeId:{}}},http:{}},SetLoadBasedAutoScaling:{input:{type:"structure",required:["LayerId"],members:{LayerId:{},Enable:{type:"boolean"},UpScaling:{shape:"S30"},DownScaling:{shape:"S30"}}},http:{}},SetPermission:{input:{type:"structure",required:["StackId","IamUserArn"],members:{StackId:{},IamUserArn:{},AllowSsh:{type:"boolean"},AllowSudo:{type:"boolean"},Level:{}}},http:{}},SetTimeBasedAutoScaling:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},AutoScalingSchedule:{shape:"S40"}}},http:{}},StartInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},StartStack:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},http:{}},StopInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},StopStack:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},http:{}},UnassignInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},UnassignVolume:{input:{type:"structure",required:["VolumeId"],members:{VolumeId:{}}},http:{}},UpdateApp:{input:{type:"structure",required:["AppId"],members:{AppId:{},Name:{},Description:{},DataSources:{shape:"Si"},Type:{},AppSource:{shape:"Sd"},Domains:{shape:"S3"},EnableSsl:{type:"boolean"},SslConfiguration:{shape:"Sl"},Attributes:{shape:"Sm"},Environment:{shape:"So"}}},http:{}},UpdateElasticIp:{input:{type:"structure",required:["ElasticIp"],members:{ElasticIp:{},Name:{}}},http:{}},UpdateInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},LayerIds:{shape:"S3"},InstanceType:{},AutoScalingType:{},Hostname:{},Os:{},AmiId:{},SshKeyName:{},Architecture:{},InstallUpdatesOnBoot:{type:"boolean"},EbsOptimized:{type:"boolean"},AgentVersion:{}}},http:{}},UpdateLayer:{input:{type:"structure",required:["LayerId"],members:{LayerId:{},Name:{},Shortname:{},Attributes:{shape:"S17"},CustomInstanceProfileArn:{},CustomJson:{},CustomSecurityGroupIds:{shape:"S3"},Packages:{shape:"S3"},VolumeConfigurations:{shape:"S19"},EnableAutoHealing:{type:"boolean"},AutoAssignElasticIps:{type:"boolean"},AutoAssignPublicIps:{type:"boolean"},CustomRecipes:{shape:"S1b"},InstallUpdatesOnBoot:{type:"boolean"},UseEbsOptimizedInstances:{type:"boolean"},LifecycleEventConfiguration:{shape:"S1c"}}},http:{}},UpdateMyUserProfile:{input:{type:"structure",members:{SshPublicKey:{}}},http:{}},UpdateRdsDbInstance:{input:{type:"structure",required:["RdsDbInstanceArn"],members:{RdsDbInstanceArn:{},DbUser:{},DbPassword:{}}},http:{}},UpdateStack:{input:{type:"structure",required:["StackId"],members:{StackId:{},Name:{},Attributes:{shape:"S8"},ServiceRoleArn:{},DefaultInstanceProfileArn:{},DefaultOs:{},HostnameTheme:{},DefaultAvailabilityZone:{},DefaultSubnetId:{},CustomJson:{},ConfigurationManager:{shape:"Sa"},ChefConfiguration:{shape:"Sb"},UseCustomCookbooks:{type:"boolean"},CustomCookbooksSource:{shape:"Sd"},DefaultSshKeyName:{},DefaultRootDeviceType:{},UseOpsworksSecurityGroups:{type:"boolean"},AgentVersion:{}}},http:{}},UpdateUserProfile:{input:{type:"structure",required:["IamUserArn"],members:{IamUserArn:{},SshUsername:{},SshPublicKey:{},AllowSelfManagement:{type:"boolean"}}},http:{}},UpdateVolume:{input:{type:"structure",required:["VolumeId"],members:{VolumeId:{},Name:{},MountPoint:{}}},http:{}}},shapes:{S3:{type:"list",member:{}},S8:{type:"map",key:{},value:{}},Sa:{type:"structure",members:{Name:{},Version:{}}},Sb:{type:"structure",members:{ManageBerkshelf:{type:"boolean"},BerkshelfVersion:{}}},Sd:{type:"structure",members:{Type:{},Url:{},Username:{},Password:{},SshKey:{},Revision:{}}},Si:{type:"list",member:{type:"structure",members:{Type:{},Arn:{},DatabaseName:{}}}},Sl:{type:"structure",required:["Certificate","PrivateKey"],members:{Certificate:{},PrivateKey:{},Chain:{}}},Sm:{type:"map",key:{},value:{}},So:{type:"list",member:{type:"structure",required:["Key","Value"],members:{Key:{},Value:{},Secure:{type:"boolean"}}}},Ss:{type:"structure",required:["Name"],members:{Name:{},Args:{type:"map",key:{},value:{shape:"S3"}}}},Sz:{type:"list",member:{type:"structure",members:{DeviceName:{},NoDevice:{},VirtualName:{},Ebs:{type:"structure",members:{SnapshotId:{},Iops:{type:"integer"},VolumeSize:{type:"integer"},VolumeType:{},DeleteOnTermination:{type:"boolean"}}}}}},S17:{type:"map",key:{},value:{}},S19:{type:"list",member:{type:"structure",required:["MountPoint","NumberOfDisks","Size"],members:{MountPoint:{},RaidLevel:{type:"integer"},NumberOfDisks:{type:"integer"},Size:{type:"integer"},VolumeType:{},Iops:{type:"integer"}}}},S1b:{type:"structure",members:{Setup:{shape:"S3"},Configure:{shape:"S3"},Deploy:{shape:"S3"},Undeploy:{shape:"S3"},Shutdown:{shape:"S3"}}},S1c:{type:"structure",members:{Shutdown:{type:"structure",members:{ExecutionTimeout:{type:"integer"},DelayUntilElbConnectionsDrained:{type:"boolean"}}}}},S30:{type:"structure",members:{InstanceCount:{type:"integer"},ThresholdsWaitTime:{type:"integer"},IgnoreMetricsTime:{type:"integer"},CpuThreshold:{type:"double"},MemoryThreshold:{type:"double"},LoadThreshold:{type:"double"},Alarms:{shape:"S3"}}},S40:{type:"structure",members:{Monday:{shape:"S41"},Tuesday:{shape:"S41"},Wednesday:{shape:"S41"},Thursday:{shape:"S41"},Friday:{shape:"S41"},Saturday:{shape:"S41"},Sunday:{shape:"S41"}}},S41:{type:"map",key:{},value:{}}},examples:{},paginators:{DescribeApps:{result_key:"Apps"},DescribeCommands:{result_key:"Commands"},DescribeDeployments:{result_key:"Deployments"},DescribeEcsClusters:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"EcsClusters"},DescribeElasticIps:{result_key:"ElasticIps"},DescribeElasticLoadBalancers:{result_key:"ElasticLoadBalancers"},DescribeInstances:{result_key:"Instances"},DescribeLayers:{result_key:"Layers"},DescribeLoadBasedAutoScaling:{result_key:"LoadBasedAutoScalingConfigurations"},DescribePermissions:{result_key:"Permissions"},DescribeRaidArrays:{result_key:"RaidArrays"},DescribeServiceErrors:{result_key:"ServiceErrors"},DescribeStacks:{result_key:"Stacks"},DescribeTimeBasedAutoScaling:{result_key:"TimeBasedAutoScalingConfigurations"},DescribeUserProfiles:{result_key:"UserProfiles"},DescribeVolumes:{result_key:"Volumes"}}};AWS.apiLoader.services["s3"]={};AWS.S3=AWS.Service.defineService("s3",["2006-03-01"]);require("./services/s3");AWS.apiLoader.services["s3"]["2006-03-01"]={version:"2.0",metadata:{apiVersion:"2006-03-01",checksumFormat:"md5",endpointPrefix:"s3",globalEndpoint:"s3.amazonaws.com",serviceAbbreviation:"Amazon S3",serviceFullName:"Amazon Simple Storage Service",signatureVersion:"s3",timestampFormat:"rfc822",protocol:"rest-xml"},operations:{AbortMultipartUpload:{http:{method:"DELETE",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key","UploadId"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},UploadId:{location:"querystring",locationName:"uploadId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},CompleteMultipartUpload:{http:{requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key","UploadId"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},MultipartUpload:{locationName:"CompleteMultipartUpload",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},type:"structure",members:{Parts:{locationName:"Part",type:"list",member:{type:"structure",members:{ETag:{},PartNumber:{type:"integer"}}},flattened:true}}},UploadId:{location:"querystring",locationName:"uploadId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"MultipartUpload"},output:{type:"structure",members:{Location:{},Bucket:{},Key:{},Expiration:{location:"header",locationName:"x-amz-expiration"},ETag:{},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},VersionId:{location:"header",locationName:"x-amz-version-id"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},CopyObject:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","CopySource","Key"],members:{ACL:{location:"header",locationName:"x-amz-acl"},Bucket:{location:"uri",locationName:"Bucket"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentType:{location:"header",locationName:"Content-Type"},CopySource:{location:"header",locationName:"x-amz-copy-source"},CopySourceIfMatch:{location:"header",locationName:"x-amz-copy-source-if-match"},CopySourceIfModifiedSince:{location:"header",locationName:"x-amz-copy-source-if-modified-since",type:"timestamp"},CopySourceIfNoneMatch:{location:"header",locationName:"x-amz-copy-source-if-none-match"},CopySourceIfUnmodifiedSince:{location:"header",locationName:"x-amz-copy-source-if-unmodified-since",type:"timestamp"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"},Key:{location:"uri",locationName:"Key"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},MetadataDirective:{location:"header",locationName:"x-amz-metadata-directive"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},CopySourceSSECustomerAlgorithm:{ +location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-algorithm"},CopySourceSSECustomerKey:{shape:"S1b",location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-key"},CopySourceSSECustomerKeyMD5:{location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{CopyObjectResult:{type:"structure",members:{ETag:{},LastModified:{type:"timestamp"}}},Expiration:{location:"header",locationName:"x-amz-expiration"},CopySourceVersionId:{location:"header",locationName:"x-amz-copy-source-version-id"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}},payload:"CopyObjectResult"},alias:"PutObjectCopy"},CreateBucket:{http:{method:"PUT",requestUri:"/{Bucket}"},input:{type:"structure",required:["Bucket"],members:{ACL:{location:"header",locationName:"x-amz-acl"},Bucket:{location:"uri",locationName:"Bucket"},CreateBucketConfiguration:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"CreateBucketConfiguration",type:"structure",members:{LocationConstraint:{}}},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWrite:{location:"header",locationName:"x-amz-grant-write"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"}},payload:"CreateBucketConfiguration"},output:{type:"structure",members:{Location:{location:"header",locationName:"Location"}}},alias:"PutBucket"},CreateMultipartUpload:{http:{requestUri:"/{Bucket}/{Key+}?uploads"},input:{type:"structure",required:["Bucket","Key"],members:{ACL:{location:"header",locationName:"x-amz-acl"},Bucket:{location:"uri",locationName:"Bucket"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentType:{location:"header",locationName:"Content-Type"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"},Key:{location:"uri",locationName:"Key"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Bucket:{locationName:"Bucket"},Key:{},UploadId:{},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}},alias:"InitiateMultipartUpload"},DeleteBucket:{http:{method:"DELETE",requestUri:"/{Bucket}"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketCors:{http:{method:"DELETE",requestUri:"/{Bucket}?cors"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketLifecycle:{http:{method:"DELETE",requestUri:"/{Bucket}?lifecycle"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketPolicy:{http:{method:"DELETE",requestUri:"/{Bucket}?policy"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketReplication:{http:{method:"DELETE",requestUri:"/{Bucket}?replication"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketTagging:{http:{method:"DELETE",requestUri:"/{Bucket}?tagging"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketWebsite:{http:{method:"DELETE",requestUri:"/{Bucket}?website"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteObject:{http:{method:"DELETE",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},MFA:{location:"header",locationName:"x-amz-mfa"},VersionId:{location:"querystring",locationName:"versionId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{DeleteMarker:{location:"header",locationName:"x-amz-delete-marker",type:"boolean"},VersionId:{location:"header",locationName:"x-amz-version-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},DeleteObjects:{http:{requestUri:"/{Bucket}?delete"},input:{type:"structure",required:["Bucket","Delete"],members:{Bucket:{location:"uri",locationName:"Bucket"},Delete:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"Delete",type:"structure",required:["Objects"],members:{Objects:{locationName:"Object",type:"list",member:{type:"structure",required:["Key"],members:{Key:{},VersionId:{}}},flattened:true},Quiet:{type:"boolean"}}},MFA:{location:"header",locationName:"x-amz-mfa"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"Delete"},output:{type:"structure",members:{Deleted:{type:"list",member:{type:"structure",members:{Key:{},VersionId:{},DeleteMarker:{type:"boolean"},DeleteMarkerVersionId:{}}},flattened:true},RequestCharged:{location:"header",locationName:"x-amz-request-charged"},Errors:{locationName:"Error",type:"list",member:{type:"structure",members:{Key:{},VersionId:{},Code:{},Message:{}}},flattened:true}}},alias:"DeleteMultipleObjects"},GetBucketAcl:{http:{method:"GET",requestUri:"/{Bucket}?acl"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Owner:{shape:"S2f"},Grants:{shape:"S2i",locationName:"AccessControlList"}}}},GetBucketCors:{http:{method:"GET",requestUri:"/{Bucket}?cors"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{CORSRules:{shape:"S2r",locationName:"CORSRule"}}}},GetBucketLifecycle:{http:{method:"GET",requestUri:"/{Bucket}?lifecycle"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Rules:{shape:"S34",locationName:"Rule"}}}},GetBucketLocation:{http:{method:"GET",requestUri:"/{Bucket}?location"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{LocationConstraint:{}}}},GetBucketLogging:{http:{method:"GET",requestUri:"/{Bucket}?logging"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{LoggingEnabled:{shape:"S3j"}}}},GetBucketNotification:{http:{method:"GET",requestUri:"/{Bucket}?notification"},input:{shape:"S3p"},output:{shape:"S3q"},deprecated:true},GetBucketNotificationConfiguration:{http:{method:"GET",requestUri:"/{Bucket}?notification"},input:{shape:"S3p"},output:{shape:"S41"}},GetBucketPolicy:{http:{method:"GET",requestUri:"/{Bucket}?policy"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Policy:{}},payload:"Policy"}},GetBucketReplication:{http:{method:"GET",requestUri:"/{Bucket}?replication"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{ReplicationConfiguration:{shape:"S4k"}},payload:"ReplicationConfiguration"}},GetBucketRequestPayment:{http:{method:"GET",requestUri:"/{Bucket}?requestPayment"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Payer:{}}}},GetBucketTagging:{http:{method:"GET",requestUri:"/{Bucket}?tagging"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",required:["TagSet"],members:{TagSet:{shape:"S4v"}}}},GetBucketVersioning:{http:{method:"GET",requestUri:"/{Bucket}?versioning"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Status:{},MFADelete:{locationName:"MfaDelete"}}}},GetBucketWebsite:{http:{method:"GET",requestUri:"/{Bucket}?website"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{RedirectAllRequestsTo:{shape:"S54"},IndexDocument:{shape:"S57"},ErrorDocument:{shape:"S59"},RoutingRules:{shape:"S5a"}}}},GetObject:{http:{method:"GET",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},IfMatch:{location:"header",locationName:"If-Match"},IfModifiedSince:{location:"header",locationName:"If-Modified-Since",type:"timestamp"},IfNoneMatch:{location:"header",locationName:"If-None-Match"},IfUnmodifiedSince:{location:"header",locationName:"If-Unmodified-Since",type:"timestamp"},Key:{location:"uri",locationName:"Key"},Range:{location:"header",locationName:"Range"},ResponseCacheControl:{location:"querystring",locationName:"response-cache-control"},ResponseContentDisposition:{location:"querystring",locationName:"response-content-disposition"},ResponseContentEncoding:{location:"querystring",locationName:"response-content-encoding"},ResponseContentLanguage:{location:"querystring",locationName:"response-content-language"},ResponseContentType:{location:"querystring",locationName:"response-content-type"},ResponseExpires:{location:"querystring",locationName:"response-expires",type:"timestamp"},VersionId:{location:"querystring",locationName:"versionId"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Body:{streaming:true,type:"blob"},DeleteMarker:{location:"header",locationName:"x-amz-delete-marker",type:"boolean"},AcceptRanges:{location:"header",locationName:"accept-ranges"},Expiration:{location:"header",locationName:"x-amz-expiration"},Restore:{location:"header",locationName:"x-amz-restore"},LastModified:{location:"header",locationName:"Last-Modified",type:"timestamp"},ContentLength:{location:"header",locationName:"Content-Length",type:"integer"},ETag:{location:"header",locationName:"ETag"},MissingMeta:{location:"header",locationName:"x-amz-missing-meta",type:"integer"},VersionId:{location:"header",locationName:"x-amz-version-id"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentRange:{location:"header",locationName:"Content-Range"},ContentType:{location:"header",locationName:"Content-Type"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"},ReplicationStatus:{location:"header",locationName:"x-amz-replication-status"}},payload:"Body"}},GetObjectAcl:{http:{method:"GET",requestUri:"/{Bucket}/{Key+}?acl"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},VersionId:{location:"querystring",locationName:"versionId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Owner:{shape:"S2f"},Grants:{shape:"S2i",locationName:"AccessControlList"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},GetObjectTorrent:{http:{method:"GET",requestUri:"/{Bucket}/{Key+}?torrent"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Body:{streaming:true,type:"blob"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}},payload:"Body"}},HeadBucket:{http:{method:"HEAD",requestUri:"/{Bucket}"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},HeadObject:{http:{method:"HEAD",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},IfMatch:{location:"header",locationName:"If-Match"},IfModifiedSince:{location:"header",locationName:"If-Modified-Since",type:"timestamp"},IfNoneMatch:{location:"header",locationName:"If-None-Match"},IfUnmodifiedSince:{location:"header",locationName:"If-Unmodified-Since",type:"timestamp"},Key:{location:"uri",locationName:"Key"},Range:{location:"header",locationName:"Range"},VersionId:{location:"querystring",locationName:"versionId"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{DeleteMarker:{location:"header",locationName:"x-amz-delete-marker",type:"boolean"},AcceptRanges:{location:"header",locationName:"accept-ranges"},Expiration:{location:"header",locationName:"x-amz-expiration"},Restore:{location:"header",locationName:"x-amz-restore"},LastModified:{location:"header",locationName:"Last-Modified",type:"timestamp"},ContentLength:{location:"header",locationName:"Content-Length",type:"integer"},ETag:{location:"header",locationName:"ETag"},MissingMeta:{location:"header",locationName:"x-amz-missing-meta",type:"integer"},VersionId:{location:"header",locationName:"x-amz-version-id"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentType:{location:"header",locationName:"Content-Type"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"},ReplicationStatus:{location:"header",locationName:"x-amz-replication-status"}}}},ListBuckets:{http:{method:"GET"},output:{type:"structure",members:{Buckets:{type:"list",member:{locationName:"Bucket",type:"structure",members:{Name:{},CreationDate:{type:"timestamp"}}}},Owner:{shape:"S2f"}}},alias:"GetService"},ListMultipartUploads:{http:{method:"GET",requestUri:"/{Bucket}?uploads"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"},Delimiter:{location:"querystring",locationName:"delimiter"},EncodingType:{location:"querystring",locationName:"encoding-type"},KeyMarker:{location:"querystring",locationName:"key-marker"},MaxUploads:{location:"querystring",locationName:"max-uploads",type:"integer"},Prefix:{location:"querystring",locationName:"prefix"},UploadIdMarker:{location:"querystring",locationName:"upload-id-marker"}}},output:{type:"structure",members:{Bucket:{},KeyMarker:{},UploadIdMarker:{},NextKeyMarker:{},Prefix:{},Delimiter:{},NextUploadIdMarker:{},MaxUploads:{type:"integer"},IsTruncated:{type:"boolean"},Uploads:{locationName:"Upload",type:"list",member:{type:"structure",members:{UploadId:{},Key:{},Initiated:{type:"timestamp"},StorageClass:{},Owner:{shape:"S2f"},Initiator:{shape:"S6r"}}},flattened:true},CommonPrefixes:{shape:"S6s"},EncodingType:{}}}},ListObjectVersions:{http:{method:"GET",requestUri:"/{Bucket}?versions"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"},Delimiter:{location:"querystring",locationName:"delimiter"},EncodingType:{location:"querystring",locationName:"encoding-type"},KeyMarker:{location:"querystring",locationName:"key-marker"},MaxKeys:{location:"querystring",locationName:"max-keys",type:"integer"},Prefix:{location:"querystring",locationName:"prefix"},VersionIdMarker:{location:"querystring",locationName:"version-id-marker"}}},output:{type:"structure",members:{IsTruncated:{type:"boolean"},KeyMarker:{},VersionIdMarker:{},NextKeyMarker:{},NextVersionIdMarker:{},Versions:{locationName:"Version",type:"list",member:{type:"structure",members:{ETag:{},Size:{type:"integer"},StorageClass:{},Key:{},VersionId:{},IsLatest:{type:"boolean"},LastModified:{type:"timestamp"},Owner:{shape:"S2f"}}},flattened:true},DeleteMarkers:{locationName:"DeleteMarker",type:"list",member:{type:"structure",members:{Owner:{shape:"S2f"},Key:{},VersionId:{},IsLatest:{type:"boolean"},LastModified:{type:"timestamp"}}},flattened:true},Name:{},Prefix:{},Delimiter:{},MaxKeys:{type:"integer"},CommonPrefixes:{shape:"S6s"},EncodingType:{}}},alias:"GetBucketObjectVersions"},ListObjects:{http:{method:"GET",requestUri:"/{Bucket}"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"},Delimiter:{location:"querystring",locationName:"delimiter"},EncodingType:{location:"querystring",locationName:"encoding-type"},Marker:{location:"querystring",locationName:"marker"},MaxKeys:{location:"querystring",locationName:"max-keys",type:"integer"},Prefix:{location:"querystring",locationName:"prefix"}}},output:{type:"structure",members:{IsTruncated:{type:"boolean"},Marker:{},NextMarker:{},Contents:{type:"list",member:{type:"structure",members:{Key:{},LastModified:{type:"timestamp"},ETag:{},Size:{type:"integer"},StorageClass:{},Owner:{shape:"S2f"}}},flattened:true},Name:{},Prefix:{},Delimiter:{},MaxKeys:{type:"integer"},CommonPrefixes:{shape:"S6s"},EncodingType:{}}},alias:"GetBucket"},ListParts:{http:{method:"GET",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key","UploadId"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},MaxParts:{location:"querystring",locationName:"max-parts",type:"integer"},PartNumberMarker:{location:"querystring",locationName:"part-number-marker",type:"integer"},UploadId:{location:"querystring",locationName:"uploadId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Bucket:{},Key:{},UploadId:{},PartNumberMarker:{type:"integer"},NextPartNumberMarker:{type:"integer"},MaxParts:{type:"integer"},IsTruncated:{type:"boolean"},Parts:{locationName:"Part",type:"list",member:{type:"structure",members:{PartNumber:{type:"integer"},LastModified:{type:"timestamp"},ETag:{},Size:{type:"integer"}}},flattened:true},Initiator:{shape:"S6r"},Owner:{shape:"S2f"},StorageClass:{},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},PutBucketAcl:{http:{method:"PUT",requestUri:"/{Bucket}?acl"},input:{type:"structure",required:["Bucket"],members:{ACL:{location:"header",locationName:"x-amz-acl"},AccessControlPolicy:{shape:"S7l",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"AccessControlPolicy"},Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWrite:{location:"header",locationName:"x-amz-grant-write"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"}},payload:"AccessControlPolicy"}},PutBucketCors:{http:{method:"PUT",requestUri:"/{Bucket}?cors"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"},CORSConfiguration:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"CORSConfiguration",type:"structure",members:{CORSRules:{shape:"S2r",locationName:"CORSRule"}}},ContentMD5:{location:"header",locationName:"Content-MD5"}},payload:"CORSConfiguration"}},PutBucketLifecycle:{http:{method:"PUT",requestUri:"/{Bucket}?lifecycle"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},LifecycleConfiguration:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"LifecycleConfiguration",type:"structure",required:["Rules"],members:{Rules:{shape:"S34",locationName:"Rule"}}}},payload:"LifecycleConfiguration"}},PutBucketLogging:{http:{method:"PUT",requestUri:"/{Bucket}?logging"},input:{type:"structure",required:["Bucket","BucketLoggingStatus"],members:{Bucket:{location:"uri",locationName:"Bucket"},BucketLoggingStatus:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"BucketLoggingStatus",type:"structure",members:{LoggingEnabled:{shape:"S3j"}}},ContentMD5:{location:"header",locationName:"Content-MD5"}},payload:"BucketLoggingStatus"}},PutBucketNotification:{http:{method:"PUT",requestUri:"/{Bucket}?notification"},input:{type:"structure",required:["Bucket","NotificationConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},NotificationConfiguration:{shape:"S3q",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"NotificationConfiguration"}},payload:"NotificationConfiguration"},deprecated:true},PutBucketNotificationConfiguration:{http:{method:"PUT",requestUri:"/{Bucket}?notification"},input:{type:"structure",required:["Bucket","NotificationConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},NotificationConfiguration:{shape:"S41",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"NotificationConfiguration"}},payload:"NotificationConfiguration"}},PutBucketPolicy:{http:{method:"PUT",requestUri:"/{Bucket}?policy"},input:{type:"structure",required:["Bucket","Policy"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},Policy:{}},payload:"Policy"}},PutBucketReplication:{http:{method:"PUT",requestUri:"/{Bucket}?replication"},input:{type:"structure",required:["Bucket","ReplicationConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},ReplicationConfiguration:{shape:"S4k",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"ReplicationConfiguration"}},payload:"ReplicationConfiguration"}},PutBucketRequestPayment:{http:{method:"PUT",requestUri:"/{Bucket}?requestPayment"},input:{type:"structure",required:["Bucket","RequestPaymentConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},RequestPaymentConfiguration:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"RequestPaymentConfiguration",type:"structure",required:["Payer"],members:{Payer:{}}}},payload:"RequestPaymentConfiguration"}},PutBucketTagging:{http:{method:"PUT",requestUri:"/{Bucket}?tagging"},input:{type:"structure",required:["Bucket","Tagging"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},Tagging:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"Tagging",type:"structure",required:["TagSet"],members:{TagSet:{shape:"S4v"}}}},payload:"Tagging"}},PutBucketVersioning:{http:{method:"PUT",requestUri:"/{Bucket}?versioning"},input:{type:"structure",required:["Bucket","VersioningConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},MFA:{location:"header",locationName:"x-amz-mfa"},VersioningConfiguration:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"VersioningConfiguration",type:"structure",members:{MFADelete:{locationName:"MfaDelete"},Status:{}}}},payload:"VersioningConfiguration"}},PutBucketWebsite:{http:{method:"PUT",requestUri:"/{Bucket}?website"},input:{type:"structure",required:["Bucket","WebsiteConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},WebsiteConfiguration:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"WebsiteConfiguration",type:"structure",members:{ErrorDocument:{shape:"S59"},IndexDocument:{shape:"S57"},RedirectAllRequestsTo:{shape:"S54"},RoutingRules:{shape:"S5a"}}}},payload:"WebsiteConfiguration"}},PutObject:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key"],members:{ACL:{location:"header",locationName:"x-amz-acl"},Body:{streaming:true,type:"blob"},Bucket:{location:"uri",locationName:"Bucket"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentLength:{location:"header",locationName:"Content-Length",type:"integer"},ContentMD5:{location:"header",locationName:"Content-MD5"},ContentType:{location:"header",locationName:"Content-Type"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"},Key:{location:"uri",locationName:"Key"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"Body"},output:{type:"structure",members:{Expiration:{location:"header",locationName:"x-amz-expiration"},ETag:{location:"header",locationName:"ETag"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},VersionId:{location:"header",locationName:"x-amz-version-id"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},PutObjectAcl:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}?acl"},input:{type:"structure",required:["Bucket","Key"],members:{ACL:{location:"header",locationName:"x-amz-acl"},AccessControlPolicy:{shape:"S7l",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"AccessControlPolicy"},Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWrite:{location:"header",locationName:"x-amz-grant-write"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"},Key:{location:"uri",locationName:"Key"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"AccessControlPolicy"},output:{type:"structure",members:{RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},RestoreObject:{http:{requestUri:"/{Bucket}/{Key+}?restore"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},VersionId:{location:"querystring",locationName:"versionId"},RestoreRequest:{xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},locationName:"RestoreRequest",type:"structure",required:["Days"],members:{Days:{type:"integer"}}},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"RestoreRequest"},output:{type:"structure",members:{RequestCharged:{location:"header", +locationName:"x-amz-request-charged"}}},alias:"PostObjectRestore"},UploadPart:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key","PartNumber","UploadId"],members:{Body:{streaming:true,type:"blob"},Bucket:{location:"uri",locationName:"Bucket"},ContentLength:{location:"header",locationName:"Content-Length",type:"integer"},ContentMD5:{location:"header",locationName:"Content-MD5"},Key:{location:"uri",locationName:"Key"},PartNumber:{location:"querystring",locationName:"partNumber",type:"integer"},UploadId:{location:"querystring",locationName:"uploadId"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"Body"},output:{type:"structure",members:{ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},ETag:{location:"header",locationName:"ETag"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},UploadPartCopy:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","CopySource","Key","PartNumber","UploadId"],members:{Bucket:{location:"uri",locationName:"Bucket"},CopySource:{location:"header",locationName:"x-amz-copy-source"},CopySourceIfMatch:{location:"header",locationName:"x-amz-copy-source-if-match"},CopySourceIfModifiedSince:{location:"header",locationName:"x-amz-copy-source-if-modified-since",type:"timestamp"},CopySourceIfNoneMatch:{location:"header",locationName:"x-amz-copy-source-if-none-match"},CopySourceIfUnmodifiedSince:{location:"header",locationName:"x-amz-copy-source-if-unmodified-since",type:"timestamp"},CopySourceRange:{location:"header",locationName:"x-amz-copy-source-range"},Key:{location:"uri",locationName:"Key"},PartNumber:{location:"querystring",locationName:"partNumber",type:"integer"},UploadId:{location:"querystring",locationName:"uploadId"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},CopySourceSSECustomerAlgorithm:{location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-algorithm"},CopySourceSSECustomerKey:{shape:"S1b",location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-key"},CopySourceSSECustomerKeyMD5:{location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{CopySourceVersionId:{location:"header",locationName:"x-amz-copy-source-version-id"},CopyPartResult:{type:"structure",members:{ETag:{},LastModified:{type:"timestamp"}}},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}},payload:"CopyPartResult"}}},shapes:{Sj:{type:"string",sensitive:true},S11:{type:"map",key:{},value:{}},S18:{type:"blob",sensitive:true},S1b:{type:"blob",sensitive:true},S2f:{type:"structure",members:{DisplayName:{},ID:{}}},S2i:{type:"list",member:{locationName:"Grant",type:"structure",members:{Grantee:{shape:"S2k"},Permission:{}}}},S2k:{type:"structure",required:["Type"],members:{DisplayName:{},EmailAddress:{},ID:{},Type:{xmlAttribute:true,locationName:"xsi:type"},URI:{}},xmlNamespace:{prefix:"xsi",uri:"http://www.w3.org/2001/XMLSchema-instance"}},S2r:{type:"list",member:{type:"structure",members:{AllowedHeaders:{locationName:"AllowedHeader",type:"list",member:{},flattened:true},AllowedMethods:{locationName:"AllowedMethod",type:"list",member:{},flattened:true},AllowedOrigins:{locationName:"AllowedOrigin",type:"list",member:{},flattened:true},ExposeHeaders:{locationName:"ExposeHeader",type:"list",member:{},flattened:true},MaxAgeSeconds:{type:"integer"}}},flattened:true},S34:{type:"list",member:{type:"structure",required:["Prefix","Status"],members:{Expiration:{type:"structure",members:{Date:{shape:"S37"},Days:{type:"integer"}}},ID:{},Prefix:{},Status:{},Transition:{type:"structure",members:{Date:{shape:"S37"},Days:{type:"integer"},StorageClass:{}}},NoncurrentVersionTransition:{type:"structure",members:{NoncurrentDays:{type:"integer"},StorageClass:{}}},NoncurrentVersionExpiration:{type:"structure",members:{NoncurrentDays:{type:"integer"}}}}},flattened:true},S37:{type:"timestamp",timestampFormat:"iso8601"},S3j:{type:"structure",members:{TargetBucket:{},TargetGrants:{type:"list",member:{locationName:"Grant",type:"structure",members:{Grantee:{shape:"S2k"},Permission:{}}}},TargetPrefix:{}}},S3p:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},S3q:{type:"structure",members:{TopicConfiguration:{type:"structure",members:{Id:{},Events:{shape:"S3t",locationName:"Event"},Event:{deprecated:true},Topic:{}}},QueueConfiguration:{type:"structure",members:{Id:{},Event:{deprecated:true},Events:{shape:"S3t",locationName:"Event"},Queue:{}}},CloudFunctionConfiguration:{type:"structure",members:{Id:{},Event:{deprecated:true},Events:{shape:"S3t",locationName:"Event"},CloudFunction:{},InvocationRole:{}}}}},S3t:{type:"list",member:{},flattened:true},S41:{type:"structure",members:{TopicConfigurations:{locationName:"TopicConfiguration",type:"list",member:{type:"structure",required:["TopicArn","Events"],members:{Id:{},TopicArn:{locationName:"Topic"},Events:{shape:"S3t",locationName:"Event"},Filter:{shape:"S44"}}},flattened:true},QueueConfigurations:{locationName:"QueueConfiguration",type:"list",member:{type:"structure",required:["QueueArn","Events"],members:{Id:{},QueueArn:{locationName:"Queue"},Events:{shape:"S3t",locationName:"Event"},Filter:{shape:"S44"}}},flattened:true},LambdaFunctionConfigurations:{locationName:"CloudFunctionConfiguration",type:"list",member:{type:"structure",required:["LambdaFunctionArn","Events"],members:{Id:{},LambdaFunctionArn:{locationName:"CloudFunction"},Events:{shape:"S3t",locationName:"Event"},Filter:{shape:"S44"}}},flattened:true}}},S44:{type:"structure",members:{Key:{locationName:"S3Key",type:"structure",members:{FilterRules:{locationName:"FilterRule",type:"list",member:{type:"structure",members:{Name:{},Value:{}}},flattened:true}}}}},S4k:{type:"structure",required:["Role","Rules"],members:{Role:{},Rules:{locationName:"Rule",type:"list",member:{type:"structure",required:["Prefix","Status","Destination"],members:{ID:{},Prefix:{},Status:{},Destination:{type:"structure",required:["Bucket"],members:{Bucket:{}}}}},flattened:true}}},S4v:{type:"list",member:{locationName:"Tag",type:"structure",required:["Key","Value"],members:{Key:{},Value:{}}}},S54:{type:"structure",required:["HostName"],members:{HostName:{},Protocol:{}}},S57:{type:"structure",required:["Suffix"],members:{Suffix:{}}},S59:{type:"structure",required:["Key"],members:{Key:{}}},S5a:{type:"list",member:{locationName:"RoutingRule",type:"structure",required:["Redirect"],members:{Condition:{type:"structure",members:{HttpErrorCodeReturnedEquals:{},KeyPrefixEquals:{}}},Redirect:{type:"structure",members:{HostName:{},HttpRedirectCode:{},Protocol:{},ReplaceKeyPrefixWith:{},ReplaceKeyWith:{}}}}}},S6r:{type:"structure",members:{ID:{},DisplayName:{}}},S6s:{type:"list",member:{type:"structure",members:{Prefix:{}}},flattened:true},S7l:{type:"structure",members:{Grants:{shape:"S2i",locationName:"AccessControlList"},Owner:{shape:"S2f"}}}},examples:{},paginators:{ListBuckets:{result_key:"Buckets"},ListMultipartUploads:{limit_key:"MaxUploads",more_results:"IsTruncated",output_token:["NextKeyMarker","NextUploadIdMarker"],input_token:["KeyMarker","UploadIdMarker"],result_key:["Uploads","CommonPrefixes"]},ListObjectVersions:{more_results:"IsTruncated",limit_key:"MaxKeys",output_token:["NextKeyMarker","NextVersionIdMarker"],input_token:["KeyMarker","VersionIdMarker"],result_key:["Versions","DeleteMarkers","CommonPrefixes"]},ListObjects:{more_results:"IsTruncated",limit_key:"MaxKeys",output_token:"NextMarker || Contents[-1].Key",input_token:"Marker",result_key:["Contents","CommonPrefixes"]},ListParts:{more_results:"IsTruncated",limit_key:"MaxParts",output_token:"NextPartNumberMarker",input_token:"PartNumberMarker",result_key:"Parts"}},waiters:{__default__:{interval:5,max_attempts:20},BucketExists:{operation:"HeadBucket",ignore_errors:[404],success_type:"output"},BucketNotExists:{operation:"HeadBucket",success_type:"error",success_value:404},ObjectExists:{operation:"HeadObject",ignore_errors:[404],success_type:"output"},ObjectNotExists:{operation:"HeadObject",success_type:"error",success_value:404}}};AWS.apiLoader.services["sns"]={};AWS.SNS=AWS.Service.defineService("sns",["2010-03-31"]);AWS.apiLoader.services["sns"]["2010-03-31"]={metadata:{apiVersion:"2010-03-31",endpointPrefix:"sns",serviceAbbreviation:"Amazon SNS",serviceFullName:"Amazon Simple Notification Service",signatureVersion:"v4",xmlNamespace:"http://sns.amazonaws.com/doc/2010-03-31/",protocol:"query"},operations:{AddPermission:{input:{type:"structure",required:["TopicArn","Label","AWSAccountId","ActionName"],members:{TopicArn:{},Label:{},AWSAccountId:{type:"list",member:{}},ActionName:{type:"list",member:{}}}},http:{}},ConfirmSubscription:{input:{type:"structure",required:["TopicArn","Token"],members:{TopicArn:{},Token:{},AuthenticateOnUnsubscribe:{}}},output:{resultWrapper:"ConfirmSubscriptionResult",type:"structure",members:{SubscriptionArn:{}}},http:{}},CreatePlatformApplication:{input:{type:"structure",required:["Name","Platform","Attributes"],members:{Name:{},Platform:{},Attributes:{shape:"Sf"}}},output:{resultWrapper:"CreatePlatformApplicationResult",type:"structure",members:{PlatformApplicationArn:{}}},http:{}},CreatePlatformEndpoint:{input:{type:"structure",required:["PlatformApplicationArn","Token"],members:{PlatformApplicationArn:{},Token:{},CustomUserData:{},Attributes:{shape:"Sf"}}},output:{resultWrapper:"CreatePlatformEndpointResult",type:"structure",members:{EndpointArn:{}}},http:{}},CreateTopic:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{resultWrapper:"CreateTopicResult",type:"structure",members:{TopicArn:{}}},http:{}},DeleteEndpoint:{input:{type:"structure",required:["EndpointArn"],members:{EndpointArn:{}}},http:{}},DeletePlatformApplication:{input:{type:"structure",required:["PlatformApplicationArn"],members:{PlatformApplicationArn:{}}},http:{}},DeleteTopic:{input:{type:"structure",required:["TopicArn"],members:{TopicArn:{}}},http:{}},GetEndpointAttributes:{input:{type:"structure",required:["EndpointArn"],members:{EndpointArn:{}}},output:{resultWrapper:"GetEndpointAttributesResult",type:"structure",members:{Attributes:{shape:"Sf"}}},http:{}},GetPlatformApplicationAttributes:{input:{type:"structure",required:["PlatformApplicationArn"],members:{PlatformApplicationArn:{}}},output:{resultWrapper:"GetPlatformApplicationAttributesResult",type:"structure",members:{Attributes:{shape:"Sf"}}},http:{}},GetSubscriptionAttributes:{input:{type:"structure",required:["SubscriptionArn"],members:{SubscriptionArn:{}}},output:{resultWrapper:"GetSubscriptionAttributesResult",type:"structure",members:{Attributes:{type:"map",key:{},value:{}}}},http:{}},GetTopicAttributes:{input:{type:"structure",required:["TopicArn"],members:{TopicArn:{}}},output:{resultWrapper:"GetTopicAttributesResult",type:"structure",members:{Attributes:{type:"map",key:{},value:{}}}},http:{}},ListEndpointsByPlatformApplication:{input:{type:"structure",required:["PlatformApplicationArn"],members:{PlatformApplicationArn:{},NextToken:{}}},output:{resultWrapper:"ListEndpointsByPlatformApplicationResult",type:"structure",members:{Endpoints:{type:"list",member:{type:"structure",members:{EndpointArn:{},Attributes:{shape:"Sf"}}}},NextToken:{}}},http:{}},ListPlatformApplications:{input:{type:"structure",members:{NextToken:{}}},output:{resultWrapper:"ListPlatformApplicationsResult",type:"structure",members:{PlatformApplications:{type:"list",member:{type:"structure",members:{PlatformApplicationArn:{},Attributes:{shape:"Sf"}}}},NextToken:{}}},http:{}},ListSubscriptions:{input:{type:"structure",members:{NextToken:{}}},output:{resultWrapper:"ListSubscriptionsResult",type:"structure",members:{Subscriptions:{shape:"S1c"},NextToken:{}}},http:{}},ListSubscriptionsByTopic:{input:{type:"structure",required:["TopicArn"],members:{TopicArn:{},NextToken:{}}},output:{resultWrapper:"ListSubscriptionsByTopicResult",type:"structure",members:{Subscriptions:{shape:"S1c"},NextToken:{}}},http:{}},ListTopics:{input:{type:"structure",members:{NextToken:{}}},output:{resultWrapper:"ListTopicsResult",type:"structure",members:{Topics:{type:"list",member:{type:"structure",members:{TopicArn:{}}}},NextToken:{}}},http:{}},Publish:{input:{type:"structure",required:["Message"],members:{TopicArn:{},TargetArn:{},Message:{},Subject:{},MessageStructure:{},MessageAttributes:{type:"map",key:{locationName:"Name"},value:{locationName:"Value",type:"structure",required:["DataType"],members:{DataType:{},StringValue:{},BinaryValue:{type:"blob"}}}}}},output:{resultWrapper:"PublishResult",type:"structure",members:{MessageId:{}}},http:{}},RemovePermission:{input:{type:"structure",required:["TopicArn","Label"],members:{TopicArn:{},Label:{}}},http:{}},SetEndpointAttributes:{input:{type:"structure",required:["EndpointArn","Attributes"],members:{EndpointArn:{},Attributes:{shape:"Sf"}}},http:{}},SetPlatformApplicationAttributes:{input:{type:"structure",required:["PlatformApplicationArn","Attributes"],members:{PlatformApplicationArn:{},Attributes:{shape:"Sf"}}},http:{}},SetSubscriptionAttributes:{input:{type:"structure",required:["SubscriptionArn","AttributeName"],members:{SubscriptionArn:{},AttributeName:{},AttributeValue:{}}},http:{}},SetTopicAttributes:{input:{type:"structure",required:["TopicArn","AttributeName"],members:{TopicArn:{},AttributeName:{},AttributeValue:{}}},http:{}},Subscribe:{input:{type:"structure",required:["TopicArn","Protocol"],members:{TopicArn:{},Protocol:{},Endpoint:{}}},output:{resultWrapper:"SubscribeResult",type:"structure",members:{SubscriptionArn:{}}},http:{}},Unsubscribe:{input:{type:"structure",required:["SubscriptionArn"],members:{SubscriptionArn:{}}},http:{}}},shapes:{Sf:{type:"map",key:{},value:{}},S1c:{type:"list",member:{type:"structure",members:{SubscriptionArn:{},Owner:{},Protocol:{},Endpoint:{},TopicArn:{}}}}},paginators:{ListEndpointsByPlatformApplication:{input_token:"NextToken",output_token:"NextToken",result_key:"Endpoints"},ListPlatformApplications:{input_token:"NextToken",output_token:"NextToken",result_key:"PlatformApplications"},ListSubscriptions:{input_token:"NextToken",output_token:"NextToken",result_key:"Subscriptions"},ListSubscriptionsByTopic:{input_token:"NextToken",output_token:"NextToken",result_key:"Subscriptions"},ListTopics:{input_token:"NextToken",output_token:"NextToken",result_key:"Topics"}}};AWS.apiLoader.services["sqs"]={};AWS.SQS=AWS.Service.defineService("sqs",["2012-11-05"]);require("./services/sqs");AWS.apiLoader.services["sqs"]["2012-11-05"]={metadata:{apiVersion:"2012-11-05",endpointPrefix:"sqs",serviceAbbreviation:"Amazon SQS",serviceFullName:"Amazon Simple Queue Service",signatureVersion:"v4",xmlNamespace:"http://queue.amazonaws.com/doc/2012-11-05/",protocol:"query"},operations:{AddPermission:{input:{type:"structure",required:["QueueUrl","Label","AWSAccountIds","Actions"],members:{QueueUrl:{},Label:{},AWSAccountIds:{type:"list",member:{locationName:"AWSAccountId"},flattened:true},Actions:{type:"list",member:{locationName:"ActionName"},flattened:true}}},http:{}},ChangeMessageVisibility:{input:{type:"structure",required:["QueueUrl","ReceiptHandle","VisibilityTimeout"],members:{QueueUrl:{},ReceiptHandle:{},VisibilityTimeout:{type:"integer"}}},http:{}},ChangeMessageVisibilityBatch:{input:{type:"structure",required:["QueueUrl","Entries"],members:{QueueUrl:{},Entries:{type:"list",member:{locationName:"ChangeMessageVisibilityBatchRequestEntry",type:"structure",required:["Id","ReceiptHandle"],members:{Id:{},ReceiptHandle:{},VisibilityTimeout:{type:"integer"}}},flattened:true}}},output:{resultWrapper:"ChangeMessageVisibilityBatchResult",type:"structure",required:["Successful","Failed"],members:{Successful:{type:"list",member:{locationName:"ChangeMessageVisibilityBatchResultEntry",type:"structure",required:["Id"],members:{Id:{}}},flattened:true},Failed:{shape:"Sd"}}},http:{}},CreateQueue:{input:{type:"structure",required:["QueueName"],members:{QueueName:{},Attributes:{shape:"Sh",locationName:"Attribute"}}},output:{resultWrapper:"CreateQueueResult",type:"structure",members:{QueueUrl:{}}},http:{}},DeleteMessage:{input:{type:"structure",required:["QueueUrl","ReceiptHandle"],members:{QueueUrl:{},ReceiptHandle:{}}},http:{}},DeleteMessageBatch:{input:{type:"structure",required:["QueueUrl","Entries"],members:{QueueUrl:{},Entries:{type:"list",member:{locationName:"DeleteMessageBatchRequestEntry",type:"structure",required:["Id","ReceiptHandle"],members:{Id:{},ReceiptHandle:{}}},flattened:true}}},output:{resultWrapper:"DeleteMessageBatchResult",type:"structure",required:["Successful","Failed"],members:{Successful:{type:"list",member:{locationName:"DeleteMessageBatchResultEntry",type:"structure",required:["Id"],members:{Id:{}}},flattened:true},Failed:{shape:"Sd"}}},http:{}},DeleteQueue:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{}}},http:{}},GetQueueAttributes:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{},AttributeNames:{shape:"St"}}},output:{resultWrapper:"GetQueueAttributesResult",type:"structure",members:{Attributes:{shape:"Sh",locationName:"Attribute"}}},http:{}},GetQueueUrl:{input:{type:"structure",required:["QueueName"],members:{QueueName:{},QueueOwnerAWSAccountId:{}}},output:{resultWrapper:"GetQueueUrlResult",type:"structure",members:{QueueUrl:{}}},http:{}},ListDeadLetterSourceQueues:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{}}},output:{resultWrapper:"ListDeadLetterSourceQueuesResult",type:"structure",required:["queueUrls"],members:{queueUrls:{shape:"Sz"}}},http:{}},ListQueues:{input:{type:"structure",members:{QueueNamePrefix:{}}},output:{resultWrapper:"ListQueuesResult",type:"structure",members:{QueueUrls:{shape:"Sz"}}},http:{}},PurgeQueue:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{}}},http:{}},ReceiveMessage:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{},AttributeNames:{shape:"St"},MessageAttributeNames:{type:"list",member:{locationName:"MessageAttributeName"},flattened:true},MaxNumberOfMessages:{type:"integer"},VisibilityTimeout:{type:"integer"},WaitTimeSeconds:{type:"integer"}}},output:{resultWrapper:"ReceiveMessageResult",type:"structure",members:{Messages:{type:"list",member:{locationName:"Message",type:"structure",members:{MessageId:{},ReceiptHandle:{},MD5OfBody:{},Body:{},Attributes:{shape:"Sh",locationName:"Attribute"},MD5OfMessageAttributes:{},MessageAttributes:{shape:"S19",locationName:"MessageAttribute"}}},flattened:true}}},http:{}},RemovePermission:{input:{type:"structure",required:["QueueUrl","Label"],members:{QueueUrl:{},Label:{}}},http:{}},SendMessage:{input:{type:"structure",required:["QueueUrl","MessageBody"],members:{QueueUrl:{},MessageBody:{},DelaySeconds:{type:"integer"},MessageAttributes:{shape:"S19",locationName:"MessageAttribute"}}},output:{resultWrapper:"SendMessageResult",type:"structure",members:{MD5OfMessageBody:{},MD5OfMessageAttributes:{},MessageId:{}}},http:{}},SendMessageBatch:{input:{type:"structure",required:["QueueUrl","Entries"],members:{QueueUrl:{},Entries:{type:"list",member:{locationName:"SendMessageBatchRequestEntry",type:"structure",required:["Id","MessageBody"],members:{Id:{},MessageBody:{},DelaySeconds:{type:"integer"},MessageAttributes:{shape:"S19",locationName:"MessageAttribute"}}},flattened:true}}},output:{resultWrapper:"SendMessageBatchResult",type:"structure",required:["Successful","Failed"],members:{Successful:{type:"list",member:{locationName:"SendMessageBatchResultEntry",type:"structure",required:["Id","MessageId","MD5OfMessageBody"],members:{Id:{},MessageId:{},MD5OfMessageBody:{},MD5OfMessageAttributes:{}}},flattened:true},Failed:{shape:"Sd"}}},http:{}},SetQueueAttributes:{input:{type:"structure",required:["QueueUrl","Attributes"],members:{QueueUrl:{},Attributes:{shape:"Sh",locationName:"Attribute"}}},http:{}}},shapes:{Sd:{type:"list",member:{locationName:"BatchResultErrorEntry",type:"structure",required:["Id","SenderFault","Code"],members:{Id:{},SenderFault:{type:"boolean"},Code:{},Message:{}}},flattened:true},Sh:{type:"map",key:{locationName:"Name"},value:{locationName:"Value"},flattened:true,locationName:"Attribute"},St:{type:"list",member:{locationName:"AttributeName"},flattened:true},Sz:{type:"list",member:{locationName:"QueueUrl"},flattened:true},S19:{type:"map",key:{locationName:"Name"},value:{locationName:"Value",type:"structure",required:["DataType"],members:{StringValue:{},BinaryValue:{type:"blob"},StringListValues:{flattened:true,locationName:"StringListValue",type:"list",member:{locationName:"StringListValue"}},BinaryListValues:{flattened:true,locationName:"BinaryListValue",type:"list",member:{locationName:"BinaryListValue",type:"blob"}},DataType:{}}},flattened:true}},paginators:{ListQueues:{result_key:"QueueUrls"}}};AWS.apiLoader.services["sts"]={};AWS.STS=AWS.Service.defineService("sts",["2011-06-15"]);require("./services/sts");AWS.apiLoader.services["sts"]["2011-06-15"]={version:"2.0",metadata:{apiVersion:"2011-06-15",endpointPrefix:"sts",globalEndpoint:"sts.amazonaws.com",serviceAbbreviation:"AWS STS",serviceFullName:"AWS Security Token Service",signatureVersion:"v4",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",protocol:"query"},operations:{AssumeRole:{input:{type:"structure",required:["RoleArn","RoleSessionName"],members:{RoleArn:{},RoleSessionName:{},Policy:{},DurationSeconds:{type:"integer"},ExternalId:{},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"AssumeRoleResult",type:"structure",members:{Credentials:{shape:"Sa"},AssumedRoleUser:{shape:"Sf"},PackedPolicySize:{type:"integer"}}},http:{}},AssumeRoleWithSAML:{input:{type:"structure",required:["RoleArn","PrincipalArn","SAMLAssertion"],members:{RoleArn:{},PrincipalArn:{},SAMLAssertion:{},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithSAMLResult",type:"structure",members:{Credentials:{shape:"Sa"},AssumedRoleUser:{shape:"Sf"},PackedPolicySize:{type:"integer"},Subject:{},SubjectType:{},Issuer:{},Audience:{},NameQualifier:{}}},http:{}},AssumeRoleWithWebIdentity:{input:{type:"structure",required:["RoleArn","RoleSessionName","WebIdentityToken"],members:{RoleArn:{},RoleSessionName:{},WebIdentityToken:{},ProviderId:{},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithWebIdentityResult",type:"structure",members:{Credentials:{shape:"Sa"},SubjectFromWebIdentityToken:{},AssumedRoleUser:{shape:"Sf"},PackedPolicySize:{type:"integer"},Provider:{},Audience:{}}},http:{}},DecodeAuthorizationMessage:{input:{type:"structure",required:["EncodedMessage"],members:{EncodedMessage:{}}},output:{resultWrapper:"DecodeAuthorizationMessageResult",type:"structure",members:{DecodedMessage:{}}},http:{}},GetFederationToken:{input:{type:"structure",required:["Name"],members:{Name:{},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"GetFederationTokenResult",type:"structure",members:{Credentials:{shape:"Sa"},FederatedUser:{type:"structure",required:["FederatedUserId","Arn"],members:{FederatedUserId:{},Arn:{}}},PackedPolicySize:{type:"integer"}}},http:{}},GetSessionToken:{input:{type:"structure",members:{DurationSeconds:{type:"integer"},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"GetSessionTokenResult",type:"structure",members:{Credentials:{shape:"Sa"}}},http:{}}},shapes:{Sa:{type:"structure",required:["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],members:{AccessKeyId:{},SecretAccessKey:{},SessionToken:{},Expiration:{type:"timestamp"}}},Sf:{type:"structure",required:["AssumedRoleId","Arn"],members:{AssumedRoleId:{},Arn:{}}}}}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/aws-sdk/lib/browser.js","/node_modules/deep-resource/node_modules/aws-sdk/lib")},{"./core":66,"./http/xhr":75,"./services/cognitoidentity":99,"./services/dynamodb":100,"./services/ec2":101,"./services/machinelearning":102,"./services/s3":103,"./services/sqs":104,"./services/sts":105,"./xml/browser_parser":115,_process:379,buffer:230}],aws4:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var aws4=exports,url=require("url"),querystring=require("querystring"),crypto=require("crypto"),lru=require("lru-cache"),credentialsCache=lru(1e3);function hmac(key,string,encoding){return crypto.createHmac("sha256",key).update(string,"utf8").digest(encoding)}function hash(string,encoding){return crypto.createHash("sha256").update(string,"utf8").digest(encoding)}function RequestSigner(request,credentials){if(typeof request==="string")request=url.parse(request);var headers=request.headers=request.headers||{},hostParts=this.matchHost(request.hostname||request.host||headers.Host||headers.host);this.request=request;this.credentials=credentials||this.defaultCredentials();this.service=request.service||hostParts[0]||"";this.region=request.region||hostParts[1]||"us-east-1";if(this.service==="email")this.service="ses";if(!request.method&&request.body)request.method="POST";if(!headers.Host&&!headers.host)headers.Host=request.hostname||request.host||this.createHost();if(!request.hostname&&!request.host)request.hostname=headers.Host||headers.host}RequestSigner.prototype.matchHost=function(host){var match=(host||"").match(/^([^\.]+)\.?([^\.]*)\.amazonaws\.com$/);return(match||[]).slice(1,3)};RequestSigner.prototype.isSingleRegion=function(){if(["s3","sdb"].indexOf(this.service)>=0&&this.region==="us-east-1")return true;return["cloudfront","ls","route53","iam","importexport","sts"].indexOf(this.service)>=0};RequestSigner.prototype.createHost=function(){var region=this.isSingleRegion()?"":(this.service==="s3"&&this.region!=="us-east-1"?"-":".")+this.region,service=this.service==="ses"?"email":this.service;return service+region+".amazonaws.com"};RequestSigner.prototype.sign=function(){var request=this.request,headers=request.headers,parsedUrl,query;if(request.signQuery){parsedUrl=url.parse(request.path||"/",true);query=parsedUrl.query;if(this.credentials.sessionToken)query["X-Amz-Security-Token"]=this.credentials.sessionToken;if(this.service==="s3"&&!query["X-Amz-Expires"])query["X-Amz-Expires"]=86400;if(query["X-Amz-Date"])this.datetime=query["X-Amz-Date"];else query["X-Amz-Date"]=this.getDateTime();query["X-Amz-Algorithm"]="AWS4-HMAC-SHA256";query["X-Amz-Credential"]=this.credentials.accessKeyId+"/"+this.credentialString();query["X-Amz-SignedHeaders"]=this.signedHeaders();delete parsedUrl.search;request.path=url.format(parsedUrl);request.path+="&X-Amz-Signature="+this.signature()}else{if(!request.doNotModifyHeaders){if(request.body&&!headers["Content-Type"]&&!headers["content-type"])headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8";if(request.body&&!headers["Content-Length"]&&!headers["content-length"])headers["Content-Length"]=Buffer.byteLength(request.body);if(this.credentials.sessionToken)headers["X-Amz-Security-Token"]=this.credentials.sessionToken;if(this.service==="s3")headers["X-Amz-Content-Sha256"]=hash(this.request.body||"","hex");if(headers["X-Amz-Date"])this.datetime=headers["X-Amz-Date"];else headers["X-Amz-Date"]=this.getDateTime()}delete headers.Authorization;delete headers.authorization;headers.Authorization=this.authHeader()}return request};RequestSigner.prototype.getDateTime=function(){if(!this.datetime){var headers=this.request.headers,date=new Date(headers.Date||headers.date||new Date);this.datetime=date.toISOString().replace(/[:\-]|\.\d{3}/g,"")}return this.datetime};RequestSigner.prototype.getDate=function(){return this.getDateTime().substr(0,8)};RequestSigner.prototype.authHeader=function(){return["AWS4-HMAC-SHA256 Credential="+this.credentials.accessKeyId+"/"+this.credentialString(),"SignedHeaders="+this.signedHeaders(),"Signature="+this.signature()].join(", ")};RequestSigner.prototype.signature=function(){var date=this.getDate(),cacheKey=[this.credentials.secretAccessKey,date,this.region,this.service].join(),kDate,kRegion,kService,kCredentials=credentialsCache.get(cacheKey);if(!kCredentials){kDate=hmac("AWS4"+this.credentials.secretAccessKey,date);kRegion=hmac(kDate,this.region);kService=hmac(kRegion,this.service);kCredentials=hmac(kService,"aws4_request");credentialsCache.set(cacheKey,kCredentials)}return hmac(kCredentials,this.stringToSign(),"hex")};RequestSigner.prototype.stringToSign=function(){return["AWS4-HMAC-SHA256",this.getDateTime(),this.credentialString(),hash(this.canonicalString(),"hex")].join("\n")};RequestSigner.prototype.canonicalString=function(){var pathStr=this.request.path||"/",queryIx=pathStr.indexOf("?"),queryStr="",bodyHash=this.service==="s3"&&this.request.signQuery?"UNSIGNED-PAYLOAD":hash(this.request.body||"","hex");if(queryIx>=0){var query=querystring.parse(pathStr.slice(queryIx+1));pathStr=pathStr.slice(0,queryIx);queryStr=querystring.stringify(Object.keys(query).sort().reduce(function(obj,key){obj[key]=Array.isArray(query[key])?query[key].sort():query[key];return obj},{})).replace(/[!'()*]/g,function(c){return"%"+c.charCodeAt(0).toString(16).toUpperCase()})}return[this.request.method||"GET",url.resolve("/",pathStr.replace(/\/{2,}/g,"/"))||"/",queryStr,this.canonicalHeaders()+"\n",this.signedHeaders(),bodyHash].join("\n")};RequestSigner.prototype.canonicalHeaders=function(){var headers=this.request.headers;function trimAll(header){return header.toString().trim().replace(/\s+/g," ")}return Object.keys(headers).sort(function(a,b){return a.toLowerCase()2?slice.call(arguments,2):null;var bottle=this;return factory.call(this,name,function GenericFactory(){if(deps){deps=deps.map(getNestedService,bottle.container);deps.unshift(Service);Service=Service.bind.apply(Service,deps)}return new Service})};var value=function value(name,val){var parts;parts=name.split(".");name=parts.pop();defineValue.call(parts.reduce(setValueObject,this.container),name,val);return this};var setValueObject=function setValueObject(container,name){var newContainer={};defineValue.call(container,name,newContainer);return newContainer};var defineValue=function defineValue(name,val){Object.defineProperty(this,name,{configurable:true,enumerable:true,value:val,writable:true})};var Bottle=function Bottle(name){if(!(this instanceof Bottle)){return Bottle.pop(name)}this.id=id++;this.container={$register:register.bind(this)}};Bottle.prototype={constant:constant,decorator:decorator,defer:defer,digest:digest,factory:factory,middleware:middleware,provider:provider,register:register,resolve:resolve,service:service,value:value};Bottle.pop=pop;var objectTypes={"function":true,object:true};(function exportBottle(root){var freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports;var freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports&&freeExports;var freeGlobal=objectTypes[typeof global]&&global;if(freeGlobal&&(freeGlobal.global===freeGlobal||freeGlobal.window===freeGlobal)){root=freeGlobal}if(typeof define==="function"&&typeof define.amd==="object"&&define.amd){root.Bottle=Bottle;define(function(){return Bottle})}else if(freeExports&&freeModule){if(moduleExports){(freeModule.exports=Bottle).Bottle=Bottle}else{freeExports.Bottle=Bottle}}else{root.Bottle=Bottle}})(objectTypes[typeof window]&&window||this)}).call(this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-di/node_modules/bottlejs/dist/bottle.js","/node_modules/deep-di/node_modules/bottlejs/dist")},{_process:379,buffer:230}],"combined-stream":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var util=require("util");var Stream=require("stream").Stream;var DelayedStream=require("delayed-stream");module.exports=CombinedStream;function CombinedStream(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null}util.inherits(CombinedStream,Stream);CombinedStream.create=function(options){var combinedStream=new this;options=options||{};for(var option in options){combinedStream[option]=options[option]}return combinedStream};CombinedStream.isStreamLike=function(stream){return typeof stream!=="function"&&typeof stream!=="string"&&typeof stream!=="boolean"&&typeof stream!=="number"&&!Buffer.isBuffer(stream)};CombinedStream.prototype.append=function(stream){var isStreamLike=CombinedStream.isStreamLike(stream);if(isStreamLike){if(!(stream instanceof DelayedStream)){var newStream=DelayedStream.create(stream,{maxDataSize:Infinity,pauseStream:this.pauseStreams});stream.on("data",this._checkDataSize.bind(this));stream=newStream}this._handleErrors(stream);if(this.pauseStreams){stream.pause()}}this._streams.push(stream);return this};CombinedStream.prototype.pipe=function(dest,options){Stream.prototype.pipe.call(this,dest,options);this.resume();return dest};CombinedStream.prototype._getNext=function(){this._currentStream=null;var stream=this._streams.shift();if(typeof stream=="undefined"){this.end();return}if(typeof stream!=="function"){this._pipeNext(stream);return}var getStream=stream;getStream(function(stream){var isStreamLike=CombinedStream.isStreamLike(stream);if(isStreamLike){stream.on("data",this._checkDataSize.bind(this));this._handleErrors(stream)}this._pipeNext(stream)}.bind(this))};CombinedStream.prototype._pipeNext=function(stream){this._currentStream=stream;var isStreamLike=CombinedStream.isStreamLike(stream);if(isStreamLike){stream.on("end",this._getNext.bind(this));stream.pipe(this,{end:false});return}var value=stream;this.write(value);this._getNext()};CombinedStream.prototype._handleErrors=function(stream){var self=this;stream.on("error",function(err){self._emitError(err)})};CombinedStream.prototype.write=function(data){this.emit("data",data)};CombinedStream.prototype.pause=function(){if(!this.pauseStreams){return}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};CombinedStream.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext()}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};CombinedStream.prototype.end=function(){this._reset();this.emit("end")};CombinedStream.prototype.destroy=function(){this._reset();this.emit("close")};CombinedStream.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null};CombinedStream.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return}var message="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(message))};CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var self=this;this._streams.forEach(function(stream){if(!stream.dataSize){return}self.dataSize+=stream.dataSize});if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize}};CombinedStream.prototype._emitError=function(err){this._reset();this.emit("error",err)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/superagent/node_modules/form-data/node_modules/combined-stream/lib/combined_stream.js","/node_modules/deep-resource/node_modules/superagent/node_modules/form-data/node_modules/combined-stream/lib")},{_process:379,buffer:230,"delayed-stream":"delayed-stream",stream:396,util:409}],"component-emitter":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){module.exports=Emitter;function Emitter(obj){if(obj)return mixin(obj)}function mixin(obj){for(var key in Emitter.prototype){obj[key]=Emitter.prototype[key]}return obj}Emitter.prototype.on=Emitter.prototype.addEventListener=function(event,fn){this._callbacks=this._callbacks||{};(this._callbacks[event]=this._callbacks[event]||[]).push(fn);return this};Emitter.prototype.once=function(event,fn){var self=this;this._callbacks=this._callbacks||{};function on(){self.off(event,on);fn.apply(this,arguments)}on.fn=fn;this.on(event,on);return this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(event,fn){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var callbacks=this._callbacks[event];if(!callbacks)return this;if(1==arguments.length){delete this._callbacks[event];return this}var cb;for(var i=0;i=31}exports.formatters.j=function(v){return JSON.stringify(v)};function formatArgs(){var args=arguments;var useColors=this.useColors;args[0]=(useColors?"%c":"")+this.namespace+(useColors?" %c":" ")+args[0]+(useColors?"%c ":" ")+"+"+exports.humanize(this.diff);if(!useColors)return args;var c="color: "+this.color;args=[args[0],c,"color: inherit"].concat(Array.prototype.slice.call(args,1));var index=0;var lastC=0;args[0].replace(/%[a-z%]/g,function(match){if("%%"===match)return;index++;if("%c"===match){lastC=index}});args.splice(lastC,0,c);return args}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(namespaces){try{if(null==namespaces){exports.storage.removeItem("debug")}else{exports.storage.debug=namespaces}}catch(e){}}function load(){var r;try{r=exports.storage.debug}catch(e){}return r}exports.enable(load());function localstorage(){try{return window.localStorage}catch(e){}}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/superagent/node_modules/debug/browser.js","/node_modules/deep-resource/node_modules/superagent/node_modules/debug")},{"./debug":120,_process:379,buffer:230}],"deep-asset":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var _Asset=require("./Asset");var _exports=module.exports=_Asset.Asset}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-asset/lib.compiled/bootstrap.js","/node_modules/deep-asset/lib.compiled")},{"./Asset":3,_process:379,buffer:230}],"deep-cache":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var _Cache=require("./Cache");var _exports=module.exports=_Cache.Cache}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-cache/lib.compiled/bootstrap.js","/node_modules/deep-cache/lib.compiled")},{"./Cache":4,_process:379,buffer:230}],"deep-core":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var _OOPInterface=require("./OOP/Interface");var _AWSLambdaRuntime=require("./AWS/Lambda/Runtime");var _AWSRegion=require("./AWS/Region");var _AWSService=require("./AWS/Service");var _AWSIAMPolicy=require("./AWS/IAM/Policy");var _AWSIAMFactory=require("./AWS/IAM/Factory");var _GenericObjectStorage=require("./Generic/ObjectStorage");var _GenericObjectVector=require("./Generic/ObjectVector");var _ExceptionException=require("./Exception/Exception");var _ExceptionMethodsNotImplementedException=require("./Exception/MethodsNotImplementedException");var _ExceptionInvalidArgumentException=require("./Exception/InvalidArgumentException");var _ExceptionDatabaseOperationException=require("./Exception/DatabaseOperationException");var _exports=module.exports={IS_DEV_SERVER:global.__DEEP_DEV_SERVER||false,Exception:{Exception:_ExceptionException.Exception,InvalidArgumentException:_ExceptionInvalidArgumentException.InvalidArgumentException,MethodsNotImplementedException:_ExceptionMethodsNotImplementedException.MethodsNotImplementedException,DatabaseOperationException:_ExceptionDatabaseOperationException.DatabaseOperationException},OOP:{Interface:_OOPInterface.Interface},Generic:{ObjectStorage:_GenericObjectStorage.ObjectStorage,ObjectVector:_GenericObjectVector.ObjectVector},AWS:{Region:_AWSRegion.Region,Service:_AWSService.Service,IAM:{Factory:_AWSIAMFactory.Factory,Policy:_AWSIAMPolicy.Policy},Lambda:{Runtime:_AWSLambdaRuntime.Runtime}}}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-core/lib.compiled/bootstrap.js","/node_modules/deep-core/lib.compiled")},{"./AWS/IAM/Factory":19,"./AWS/IAM/Policy":20,"./AWS/Lambda/Runtime":26,"./AWS/Region":27,"./AWS/Service":28,"./Exception/DatabaseOperationException":29,"./Exception/Exception":30,"./Exception/InvalidArgumentException":31,"./Exception/MethodsNotImplementedException":32,"./Generic/ObjectStorage":33,"./Generic/ObjectVector":34,"./OOP/Interface":35,_process:379,buffer:230}],"deep-di":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var _DI=require("./DI");var _exports=module.exports=_DI.DI}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-di/lib.compiled/bootstrap.js","/node_modules/deep-di/lib.compiled")},{"./DI":36,_process:379,buffer:230}],"deep-kernel":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var _Kernel=require("./Kernel");var _exports=module.exports=_Kernel.Kernel}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-kernel/lib.compiled/bootstrap.js","/node_modules/deep-kernel/lib.compiled")},{"./Kernel":42,_process:379,buffer:230}],"deep-log":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var _Log=require("./Log");var _exports=module.exports=_Log.Log}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-log/lib.compiled/bootstrap.js","/node_modules/deep-log/lib.compiled")},{"./Log":50,_process:379,buffer:230}],"deep-notification":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var _exports=module.exports={}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-notification/lib.compiled/bootstrap.js","/node_modules/deep-notification/lib.compiled")},{_process:379,buffer:230}],"deep-resource":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var _Resource=require("./Resource");var _exports=module.exports=_Resource.Resource}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/lib.compiled/bootstrap.js","/node_modules/deep-resource/lib.compiled")},{"./Resource":53,_process:379,buffer:230}],"deep-security":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var _Security=require("./Security");var _exports=module.exports=_Security.Security}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-security/lib.compiled/bootstrap.js","/node_modules/deep-security/lib.compiled")},{"./Security":143,_process:379,buffer:230}],"deep-validation":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){"use strict";var _Validation=require("./Validation");var _exports=module.exports=_Validation.Validation}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-validation/lib.compiled/bootstrap.js","/node_modules/deep-validation/lib.compiled")},{"./Validation":208,_process:379,buffer:230}],"delayed-stream":[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Stream=require("stream").Stream;var util=require("util");module.exports=DelayedStream;function DelayedStream(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[]}util.inherits(DelayedStream,Stream);DelayedStream.create=function(source,options){var delayedStream=new this;options=options||{};for(var option in options){delayedStream[option]=options[option]}delayedStream.source=source;var realEmit=source.emit;source.emit=function(){delayedStream._handleEmit(arguments);return realEmit.apply(source,arguments)};source.on("error",function(){});if(delayedStream.pauseStream){source.pause()}return delayedStream};DelayedStream.prototype.__defineGetter__("readable",function(){return this.source.readable});DelayedStream.prototype.resume=function(){if(!this._released){this.release()}this.source.resume()};DelayedStream.prototype.pause=function(){this.source.pause()};DelayedStream.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(args){this.emit.apply(this,args)}.bind(this));this._bufferedEvents=[]};DelayedStream.prototype.pipe=function(){var r=Stream.prototype.pipe.apply(this,arguments);this.resume();return r};DelayedStream.prototype._handleEmit=function(args){ +if(this._released){this.emit.apply(this,args);return}if(args[0]==="data"){this.dataSize+=args[1].length;this._checkIfMaxDataSizeExceeded()}this._bufferedEvents.push(args)};DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return}if(this.dataSize<=this.maxDataSize){return}this._maxDataSizeExceeded=true;var message="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(message))}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/superagent/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js","/node_modules/deep-resource/node_modules/superagent/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib")},{_process:379,buffer:230,stream:396,util:409}],extend:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var hasOwn=Object.prototype.hasOwnProperty;var toString=Object.prototype.toString;function isPlainObject(obj){if(!obj||toString.call(obj)!=="[object Object]"||obj.nodeType||obj.setInterval)return false;var has_own_constructor=hasOwn.call(obj,"constructor");var has_is_property_of_method=hasOwn.call(obj.constructor.prototype,"isPrototypeOf");if(obj.constructor&&!has_own_constructor&&!has_is_property_of_method)return false;var key;for(key in obj){}return key===undefined||hasOwn.call(obj,key)}module.exports=function extend(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2}if(typeof target!=="object"&&typeof target!=="function"){target={}}for(;i=2,"Insufficient arguments");exports.assert(typeof ref==="string"||typeof ref==="object","Reference must be string or an object");exports.assert(values.length,"Values array cannot be empty");var compare,compareFlags;if(options.deep){compare=exports.deepEqual;var hasOnly=options.hasOwnProperty("only"),hasPart=options.hasOwnProperty("part");compareFlags={prototype:hasOnly?options.only:hasPart?!options.part:false,part:hasOnly?!options.only:hasPart?options.part:true}}else{compare=function(a,b){return a===b}}var misses=false;var matches=new Array(values.length);for(var i=0,il=matches.length;i1||!options.part&&!matches[i]){return false}}if(options.only&&misses){return false}return result};exports.flatten=function(array,target){var result=target||[];for(var i=0,il=array.length;i\?@\[\]\^`\{\|\}~\"\\]*$/.test(attribute),"Bad attribute value ("+attribute+")");return attribute.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')};exports.escapeHtml=function(string){return Escape.escapeHtml(string)};exports.escapeJavaScript=function(string){return Escape.escapeJavaScript(string)};exports.nextTick=function(callback){return function(){var args=arguments;process.nextTick(function(){callback.apply(null,args)})}};exports.once=function(method){if(method._hoekOnce){return method}var once=false;var wrapped=function(){if(!once){once=true;method.apply(null,arguments)}};wrapped._hoekOnce=true;return wrapped};exports.isAbsolutePath=function(path,platform){if(!path){return false}if(Path.isAbsolute){return Path.isAbsolute(path)}platform=platform||process.platform;if(platform!=="win32"){return path[0]==="/"}return!!/^(?:[a-zA-Z]:[\\\/])|(?:[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/])/.test(path)};exports.isInteger=function(value){return typeof value==="number"&&parseFloat(value)===parseInt(value,10)&&!isNaN(value)};exports.ignore=function(){};exports.inherits=Util.inherits;exports.format=Util.format;exports.transform=function(source,transform,options){exports.assert(source===null||source===undefined||typeof source==="object"||Array.isArray(source),"Invalid source object: must be null, undefined, an object, or an array");if(Array.isArray(source)){var results=[];for(var i=0,il=source.length;i1){segment=path.shift();if(!res[segment]){res[segment]={}}res=res[segment]}segment=path.shift();res[segment]=exports.reach(source,sourcePath,options)}return result};exports.uniqueFilename=function(path,extension){if(extension){extension=extension[0]!=="."?"."+extension:extension}else{extension=""}path=Path.resolve(path);var name=[Date.now(),process.pid,Crypto.randomBytes(8).toString("hex")].join("-")+extension;return Path.join(path,name)};exports.stringify=function(){try{return JSON.stringify.apply(null,arguments)}catch(err){return"[Cannot display object: "+err.message+"]"}};exports.shallow=function(source){var target={};var keys=Object.keys(source);for(var i=0,il=keys.length;ithis._max)trim(this)},get:function(){return this._max},enumerable:true});Object.defineProperty(LRUCache.prototype,"lengthCalculator",{set:function(lC){if(typeof lC!=="function"){this._lengthCalculator=naiveLength;this._length=this._itemCount;for(var key in this._cache){this._cache[key].length=1}}else{this._lengthCalculator=lC;this._length=0;for(var key in this._cache){this._cache[key].length=this._lengthCalculator(this._cache[key].value);this._length+=this._cache[key].length}}if(this._length>this._max)trim(this)},get:function(){return this._lengthCalculator},enumerable:true});Object.defineProperty(LRUCache.prototype,"length",{get:function(){return this._length},enumerable:true});Object.defineProperty(LRUCache.prototype,"itemCount",{get:function(){return this._itemCount},enumerable:true});LRUCache.prototype.forEach=function(fn,thisp){thisp=thisp||this;var i=0;var itemCount=this._itemCount;for(var k=this._mru-1;k>=0&&i=0&&i=0&&i=0&&ithis._max){del(this,this._cache[key]);return false}if(this._dispose)this._dispose(key,this._cache[key].value);this._cache[key].now=now;this._cache[key].maxAge=maxAge;this._cache[key].value=value;this._length+=len-this._cache[key].length;this._cache[key].length=len;this.get(key);if(this._length>this._max)trim(this);return true}var hit=new Entry(key,value,this._mru++,len,now,maxAge);if(hit.length>this._max){if(this._dispose)this._dispose(key,value);return false}this._length+=hit.length;this._lruList[hit.lu]=this._cache[key]=hit;this._itemCount++;if(this._length>this._max)trim(this);return true};LRUCache.prototype.has=function(key){if(!hOP(this._cache,key))return false;var hit=this._cache[key];if(isStale(this,hit)){return false}return true};LRUCache.prototype.get=function(key){return get(this,key,true)};LRUCache.prototype.peek=function(key){return get(this,key,false)};LRUCache.prototype.pop=function(){var hit=this._lruList[this._lru];del(this,hit);return hit||null};LRUCache.prototype.del=function(key){del(this,this._cache[key])};LRUCache.prototype.load=function(arr){this.reset();var now=Date.now();for(var l=arr.length-1;l>=0;l--){var hit=arr[l];var expiresAt=hit.e||0;if(expiresAt===0){this.set(hit.k,hit.v)}else{var maxAge=expiresAt-now;if(maxAge>0)this.set(hit.k,hit.v,maxAge)}}};function get(self,key,doUse){var hit=self._cache[key];if(hit){if(isStale(self,hit)){del(self,hit);if(!self._allowStale)hit=undefined}else{if(doUse)use(self,hit)}if(hit)hit=hit.value}return hit}function isStale(self,hit){if(!hit||!hit.maxAge&&!self._maxAge)return false;var stale=false;var diff=Date.now()-hit.now;if(hit.maxAge){stale=diff>hit.maxAge}else{stale=self._maxAge&&diff>self._maxAge}return stale}function use(self,hit){shiftLU(self,hit);hit.lu=self._mru++;self._lruList[hit.lu]=hit}function trim(self){while(self._lruself._max)del(self,self._lruList[self._lru])}function shiftLU(self,hit){delete self._lruList[hit.lu];while(self._lru0){for(i in momentProperties){prop=momentProperties[i];val=from[prop];if(typeof val!=="undefined"){to[prop]=val}}}return to}var updateInProgress=false;function Moment(config){copyConfig(this,config);this._d=new Date(config._d!=null?config._d.getTime():NaN);if(updateInProgress===false){updateInProgress=true;utils_hooks__hooks.updateOffset(this);updateInProgress=false}}function isMoment(obj){return obj instanceof Moment||obj!=null&&obj._isAMomentObject!=null}function absFloor(number){if(number<0){return Math.ceil(number)}else{return Math.floor(number)}}function toInt(argumentForCoercion){var coercedNumber=+argumentForCoercion,value=0;if(coercedNumber!==0&&isFinite(coercedNumber)){value=absFloor(coercedNumber)}return value}function compareArrays(array1,array2,dontConvert){var len=Math.min(array1.length,array2.length),lengthDiff=Math.abs(array1.length-array2.length),diffs=0,i;for(i=0;i0){locale=loadLocale(split.slice(0,j).join("-"));if(locale){return locale}if(next&&next.length>=j&&compareArrays(split,next,true)>=j-1){break}j--}i++}return null}function loadLocale(name){var oldLocale=null;if(!locales[name]&&typeof module!=="undefined"&&module&&module.exports){try{oldLocale=globalLocale._abbr;require("./locale/"+name);locale_locales__getSetGlobalLocale(oldLocale)}catch(e){}}return locales[name]}function locale_locales__getSetGlobalLocale(key,values){var data;if(key){if(typeof values==="undefined"){data=locale_locales__getLocale(key)}else{data=defineLocale(key,values)}if(data){globalLocale=data}}return globalLocale._abbr}function defineLocale(name,values){if(values!==null){values.abbr=name;locales[name]=locales[name]||new Locale;locales[name].set(values);locale_locales__getSetGlobalLocale(name);return locales[name]}else{delete locales[name];return null}}function locale_locales__getLocale(key){var locale;if(key&&key._locale&&key._locale._abbr){key=key._locale._abbr}if(!key){return globalLocale}if(!isArray(key)){locale=loadLocale(key);if(locale){return locale}key=[key]}return chooseLocale(key)}var aliases={};function addUnitAlias(unit,shorthand){var lowerCase=unit.toLowerCase();aliases[lowerCase]=aliases[lowerCase+"s"]=aliases[shorthand]=unit}function normalizeUnits(units){return typeof units==="string"?aliases[units]||aliases[units.toLowerCase()]:undefined}function normalizeObjectUnits(inputObject){var normalizedInput={},normalizedProp,prop;for(prop in inputObject){if(hasOwnProp(inputObject,prop)){normalizedProp=normalizeUnits(prop);if(normalizedProp){normalizedInput[normalizedProp]=inputObject[prop]}}}return normalizedInput}function makeGetSet(unit,keepTime){return function(value){if(value!=null){get_set__set(this,unit,value);utils_hooks__hooks.updateOffset(this,keepTime);return this}else{return get_set__get(this,unit)}}}function get_set__get(mom,unit){return mom._d["get"+(mom._isUTC?"UTC":"")+unit]()}function get_set__set(mom,unit,value){return mom._d["set"+(mom._isUTC?"UTC":"")+unit](value)}function getSet(units,value){var unit;if(typeof units==="object"){for(unit in units){this.set(unit,units[unit])}}else{units=normalizeUnits(units);if(typeof this[units]==="function"){return this[units](value)}}return this}function zeroFill(number,targetLength,forceSign){var absNumber=""+Math.abs(number),zerosToFill=targetLength-absNumber.length,sign=number>=0;return(sign?forceSign?"+":"":"-")+Math.pow(10,Math.max(0,zerosToFill)).toString().substr(1)+absNumber}var formattingTokens=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;var localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;var formatFunctions={};var formatTokenFunctions={};function addFormatToken(token,padded,ordinal,callback){var func=callback;if(typeof callback==="string"){func=function(){return this[callback]()}}if(token){formatTokenFunctions[token]=func}if(padded){formatTokenFunctions[padded[0]]=function(){return zeroFill(func.apply(this,arguments),padded[1],padded[2])}}if(ordinal){formatTokenFunctions[ordinal]=function(){return this.localeData().ordinal(func.apply(this,arguments),token)}}}function removeFormattingTokens(input){if(input.match(/\[[\s\S]/)){return input.replace(/^\[|\]$/g,"")}return input.replace(/\\/g,"")}function makeFormatFunction(format){var array=format.match(formattingTokens),i,length;for(i=0,length=array.length;i=0&&localFormattingTokens.test(format)){format=format.replace(localFormattingTokens,replaceLongDateFormatTokens);localFormattingTokens.lastIndex=0;i-=1}return format}var match1=/\d/;var match2=/\d\d/;var match3=/\d{3}/;var match4=/\d{4}/;var match6=/[+-]?\d{6}/;var match1to2=/\d\d?/;var match1to3=/\d{1,3}/;var match1to4=/\d{1,4}/;var match1to6=/[+-]?\d{1,6}/;var matchUnsigned=/\d+/;var matchSigned=/[+-]?\d+/;var matchOffset=/Z|[+-]\d\d:?\d\d/gi;var matchTimestamp=/[+-]?\d+(\.\d{1,3})?/;var matchWord=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;var regexes={};function isFunction(sth){return typeof sth==="function"&&Object.prototype.toString.call(sth)==="[object Function]"}function addRegexToken(token,regex,strictRegex){regexes[token]=isFunction(regex)?regex:function(isStrict){return isStrict&&strictRegex?strictRegex:regex}}function getParseRegexForToken(token,config){if(!hasOwnProp(regexes,token)){return new RegExp(unescapeFormat(token))}return regexes[token](config._strict,config._locale)}function unescapeFormat(s){return s.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(matched,p1,p2,p3,p4){return p1||p2||p3||p4}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var tokens={};function addParseToken(token,callback){var i,func=callback;if(typeof token==="string"){token=[token]}if(typeof callback==="number"){func=function(input,array){array[callback]=toInt(input)}}for(i=0;i11?MONTH:a[DATE]<1||a[DATE]>daysInMonth(a[YEAR],a[MONTH])?DATE:a[HOUR]<0||a[HOUR]>24||a[HOUR]===24&&(a[MINUTE]!==0||a[SECOND]!==0||a[MILLISECOND]!==0)?HOUR:a[MINUTE]<0||a[MINUTE]>59?MINUTE:a[SECOND]<0||a[SECOND]>59?SECOND:a[MILLISECOND]<0||a[MILLISECOND]>999?MILLISECOND:-1;if(getParsingFlags(m)._overflowDayOfYear&&(overflowDATE)){overflow=DATE}getParsingFlags(m).overflow=overflow}return m}function warn(msg){if(utils_hooks__hooks.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+msg)}}function deprecate(msg,fn){var firstTime=true;return extend(function(){if(firstTime){warn(msg+"\n"+(new Error).stack);firstTime=false}return fn.apply(this,arguments)},fn)}var deprecations={};function deprecateSimple(name,msg){if(!deprecations[name]){warn(msg);deprecations[name]=true}}utils_hooks__hooks.suppressDeprecationWarnings=false;var from_string__isoRegex=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;var isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]];var isoTimes=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]];var aspNetJsonRegex=/^\/?Date\((\-?\d+)/i;function configFromISO(config){var i,l,string=config._i,match=from_string__isoRegex.exec(string);if(match){getParsingFlags(config).iso=true;for(i=0,l=isoDates.length;i68?1900:2e3)};var getSetYear=makeGetSet("FullYear",false);function getIsLeapYear(){return isLeapYear(this.year())}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addUnitAlias("week","w");addUnitAlias("isoWeek","W");addRegexToken("w",match1to2);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(input,week,config,token){week[token.substr(0,1)]=toInt(input)});function weekOfYear(mom,firstDayOfWeek,firstDayOfWeekOfYear){var end=firstDayOfWeekOfYear-firstDayOfWeek,daysToDayOfWeek=firstDayOfWeekOfYear-mom.day(),adjustedMoment;if(daysToDayOfWeek>end){daysToDayOfWeek-=7}if(daysToDayOfWeek0?year:year-1,dayOfYear:dayOfYear>0?dayOfYear:daysInYear(year-1)+dayOfYear}}function getSetDayOfYear(input){var dayOfYear=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return input==null?dayOfYear:this.add(input-dayOfYear,"d")}function defaults(a,b,c){if(a!=null){return a}if(b!=null){return b}return c}function currentDateArray(config){var now=new Date;if(config._useUTC){return[now.getUTCFullYear(),now.getUTCMonth(),now.getUTCDate()]}return[now.getFullYear(),now.getMonth(),now.getDate()]}function configFromArray(config){var i,date,input=[],currentDate,yearToUse;if(config._d){return}currentDate=currentDateArray(config);if(config._w&&config._a[DATE]==null&&config._a[MONTH]==null){dayOfYearFromWeekInfo(config)}if(config._dayOfYear){yearToUse=defaults(config._a[YEAR],currentDate[YEAR]);if(config._dayOfYear>daysInYear(yearToUse)){getParsingFlags(config)._overflowDayOfYear=true}date=createUTCDate(yearToUse,0,config._dayOfYear);config._a[MONTH]=date.getUTCMonth();config._a[DATE]=date.getUTCDate()}for(i=0;i<3&&config._a[i]==null;++i){config._a[i]=input[i]=currentDate[i]}for(;i<7;i++){config._a[i]=input[i]=config._a[i]==null?i===2?1:0:config._a[i]}if(config._a[HOUR]===24&&config._a[MINUTE]===0&&config._a[SECOND]===0&&config._a[MILLISECOND]===0){config._nextDay=true;config._a[HOUR]=0}config._d=(config._useUTC?createUTCDate:createDate).apply(null,input);if(config._tzm!=null){config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm)}if(config._nextDay){config._a[HOUR]=24}}function dayOfYearFromWeekInfo(config){var w,weekYear,week,weekday,dow,doy,temp;w=config._w;if(w.GG!=null||w.W!=null||w.E!=null){dow=1;doy=4;weekYear=defaults(w.GG,config._a[YEAR],weekOfYear(local__createLocal(),1,4).year);week=defaults(w.W,1);weekday=defaults(w.E,1)}else{dow=config._locale._week.dow;doy=config._locale._week.doy;weekYear=defaults(w.gg,config._a[YEAR],weekOfYear(local__createLocal(),dow,doy).year);week=defaults(w.w,1);if(w.d!=null){weekday=w.d;if(weekday0){getParsingFlags(config).unusedInput.push(skipped)}string=string.slice(string.indexOf(parsedInput)+parsedInput.length);totalParsedInputLength+=parsedInput.length}if(formatTokenFunctions[token]){if(parsedInput){getParsingFlags(config).empty=false}else{getParsingFlags(config).unusedTokens.push(token)}addTimeToArrayFromToken(token,parsedInput,config)}else if(config._strict&&!parsedInput){getParsingFlags(config).unusedTokens.push(token)}}getParsingFlags(config).charsLeftOver=stringLength-totalParsedInputLength;if(string.length>0){getParsingFlags(config).unusedInput.push(string)}if(getParsingFlags(config).bigHour===true&&config._a[HOUR]<=12&&config._a[HOUR]>0){getParsingFlags(config).bigHour=undefined}config._a[HOUR]=meridiemFixWrap(config._locale,config._a[HOUR],config._meridiem);configFromArray(config);checkOverflow(config)}function meridiemFixWrap(locale,hour,meridiem){var isPm;if(meridiem==null){return hour}if(locale.meridiemHour!=null){return locale.meridiemHour(hour,meridiem)}else if(locale.isPM!=null){isPm=locale.isPM(meridiem);if(isPm&&hour<12){hour+=12}if(!isPm&&hour===12){hour=0}return hour}else{return hour}}function configFromStringAndArray(config){var tempConfig,bestMoment,scoreToBeat,i,currentScore;if(config._f.length===0){getParsingFlags(config).invalidFormat=true;config._d=new Date(NaN);return}for(i=0;ithis?this:other});function pickBy(fn,moments){var res,i;if(moments.length===1&&isArray(moments[0])){moments=moments[0]}if(!moments.length){return local__createLocal()}res=moments[0];for(i=1;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(typeof this._isDSTShifted!=="undefined"){return this._isDSTShifted}var c={};copyConfig(c,this);c=prepareConfig(c);if(c._a){var other=c._isUTC?create_utc__createUTC(c._a):local__createLocal(c._a);this._isDSTShifted=this.isValid()&&compareArrays(c._a,other.toArray())>0}else{this._isDSTShifted=false}return this._isDSTShifted}function isLocal(){return!this._isUTC}function isUtcOffset(){return this._isUTC}function isUtc(){return this._isUTC&&this._offset===0}var aspNetRegex=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/;var create__isoRegex=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;function create__createDuration(input,key){var duration=input,match=null,sign,ret,diffRes;if(isDuration(input)){duration={ms:input._milliseconds,d:input._days,M:input._months}}else if(typeof input==="number"){duration={};if(key){duration[key]=input}else{duration.milliseconds=input}}else if(!!(match=aspNetRegex.exec(input))){sign=match[1]==="-"?-1:1;duration={y:0,d:toInt(match[DATE])*sign,h:toInt(match[HOUR])*sign,m:toInt(match[MINUTE])*sign,s:toInt(match[SECOND])*sign,ms:toInt(match[MILLISECOND])*sign}}else if(!!(match=create__isoRegex.exec(input))){sign=match[1]==="-"?-1:1;duration={y:parseIso(match[2],sign),M:parseIso(match[3],sign),d:parseIso(match[4],sign),h:parseIso(match[5],sign),m:parseIso(match[6],sign),s:parseIso(match[7],sign),w:parseIso(match[8],sign)}}else if(duration==null){duration={}}else if(typeof duration==="object"&&("from"in duration||"to"in duration)){diffRes=momentsDifference(local__createLocal(duration.from),local__createLocal(duration.to));duration={};duration.ms=diffRes.milliseconds;duration.M=diffRes.months}ret=new Duration(duration);if(isDuration(input)&&hasOwnProp(input,"_locale")){ret._locale=input._locale}return ret}create__createDuration.fn=Duration.prototype;function parseIso(inp,sign){var res=inp&&parseFloat(inp.replace(",","."));return(isNaN(res)?0:res)*sign}function positiveMomentsDifference(base,other){var res={milliseconds:0,months:0};res.months=other.month()-base.month()+(other.year()-base.year())*12;if(base.clone().add(res.months,"M").isAfter(other)){--res.months}res.milliseconds=+other-+base.clone().add(res.months,"M");return res}function momentsDifference(base,other){var res;other=cloneWithOffset(other,base);if(base.isBefore(other)){res=positiveMomentsDifference(base,other)}else{res=positiveMomentsDifference(other,base);res.milliseconds=-res.milliseconds;res.months=-res.months}return res}function createAdder(direction,name){return function(val,period){var dur,tmp;if(period!==null&&!isNaN(+period)){deprecateSimple(name,"moment()."+name+"(period, number) is deprecated. Please use moment()."+name+"(number, period).");tmp=val;val=period;period=tmp}val=typeof val==="string"?+val:val;dur=create__createDuration(val,period);add_subtract__addSubtract(this,dur,direction);return this}}function add_subtract__addSubtract(mom,duration,isAdding,updateOffset){var milliseconds=duration._milliseconds,days=duration._days,months=duration._months;updateOffset=updateOffset==null?true:updateOffset;if(milliseconds){mom._d.setTime(+mom._d+milliseconds*isAdding)}if(days){get_set__set(mom,"Date",get_set__get(mom,"Date")+days*isAdding)}if(months){setMonth(mom,get_set__get(mom,"Month")+months*isAdding)}if(updateOffset){utils_hooks__hooks.updateOffset(mom,days||months)}}var add_subtract__add=createAdder(1,"add");var add_subtract__subtract=createAdder(-1,"subtract");function moment_calendar__calendar(time,formats){var now=time||local__createLocal(),sod=cloneWithOffset(now,this).startOf("day"),diff=this.diff(sod,"days",true),format=diff<-6?"sameElse":diff<-1?"lastWeek":diff<0?"lastDay":diff<1?"sameDay":diff<2?"nextDay":diff<7?"nextWeek":"sameElse";return this.format(formats&&formats[format]||this.localeData().calendar(format,this,local__createLocal(now)))}function clone(){return new Moment(this)}function isAfter(input,units){var inputMs;units=normalizeUnits(typeof units!=="undefined"?units:"millisecond");if(units==="millisecond"){input=isMoment(input)?input:local__createLocal(input);return+this>+input}else{inputMs=isMoment(input)?+input:+local__createLocal(input);return inputMs<+this.clone().startOf(units)}}function isBefore(input,units){var inputMs;units=normalizeUnits(typeof units!=="undefined"?units:"millisecond");if(units==="millisecond"){input=isMoment(input)?input:local__createLocal(input);return+this<+input}else{inputMs=isMoment(input)?+input:+local__createLocal(input);return+this.clone().endOf(units)11){return isLower?"pm":"PM"}else{return isLower?"am":"AM"}}var getSetHour=makeGetSet("Hours",true);addFormatToken("m",["mm",2],0,"minute");addUnitAlias("minute","m");addRegexToken("m",match1to2);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",false);addFormatToken("s",["ss",2],0,"second");addUnitAlias("second","s");addRegexToken("s",match1to2);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",false);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addUnitAlias("millisecond","ms");addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token;for(token="SSSS";token.length<=9;token+="S"){addRegexToken(token,matchUnsigned)}function parseMs(input,array){array[MILLISECOND]=toInt(("0."+input)*1e3)}for(token="S";token.length<=9;token+="S"){addParseToken(token,parseMs)}var getSetMillisecond=makeGetSet("Milliseconds",false);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var momentPrototype__proto=Moment.prototype;momentPrototype__proto.add=add_subtract__add;momentPrototype__proto.calendar=moment_calendar__calendar;momentPrototype__proto.clone=clone;momentPrototype__proto.diff=diff;momentPrototype__proto.endOf=endOf;momentPrototype__proto.format=format;momentPrototype__proto.from=from;momentPrototype__proto.fromNow=fromNow;momentPrototype__proto.to=to;momentPrototype__proto.toNow=toNow;momentPrototype__proto.get=getSet;momentPrototype__proto.invalidAt=invalidAt;momentPrototype__proto.isAfter=isAfter;momentPrototype__proto.isBefore=isBefore;momentPrototype__proto.isBetween=isBetween;momentPrototype__proto.isSame=isSame;momentPrototype__proto.isValid=moment_valid__isValid;momentPrototype__proto.lang=lang;momentPrototype__proto.locale=locale;momentPrototype__proto.localeData=localeData;momentPrototype__proto.max=prototypeMax;momentPrototype__proto.min=prototypeMin;momentPrototype__proto.parsingFlags=parsingFlags;momentPrototype__proto.set=getSet;momentPrototype__proto.startOf=startOf;momentPrototype__proto.subtract=add_subtract__subtract;momentPrototype__proto.toArray=toArray;momentPrototype__proto.toObject=toObject;momentPrototype__proto.toDate=toDate;momentPrototype__proto.toISOString=moment_format__toISOString;momentPrototype__proto.toJSON=moment_format__toISOString;momentPrototype__proto.toString=toString;momentPrototype__proto.unix=unix;momentPrototype__proto.valueOf=to_type__valueOf;momentPrototype__proto.year=getSetYear;momentPrototype__proto.isLeapYear=getIsLeapYear;momentPrototype__proto.weekYear=getSetWeekYear;momentPrototype__proto.isoWeekYear=getSetISOWeekYear;momentPrototype__proto.quarter=momentPrototype__proto.quarters=getSetQuarter;momentPrototype__proto.month=getSetMonth;momentPrototype__proto.daysInMonth=getDaysInMonth;momentPrototype__proto.week=momentPrototype__proto.weeks=getSetWeek;momentPrototype__proto.isoWeek=momentPrototype__proto.isoWeeks=getSetISOWeek;momentPrototype__proto.weeksInYear=getWeeksInYear;momentPrototype__proto.isoWeeksInYear=getISOWeeksInYear;momentPrototype__proto.date=getSetDayOfMonth;momentPrototype__proto.day=momentPrototype__proto.days=getSetDayOfWeek;momentPrototype__proto.weekday=getSetLocaleDayOfWeek;momentPrototype__proto.isoWeekday=getSetISODayOfWeek;momentPrototype__proto.dayOfYear=getSetDayOfYear;momentPrototype__proto.hour=momentPrototype__proto.hours=getSetHour;momentPrototype__proto.minute=momentPrototype__proto.minutes=getSetMinute;momentPrototype__proto.second=momentPrototype__proto.seconds=getSetSecond;momentPrototype__proto.millisecond=momentPrototype__proto.milliseconds=getSetMillisecond;momentPrototype__proto.utcOffset=getSetOffset;momentPrototype__proto.utc=setOffsetToUTC;momentPrototype__proto.local=setOffsetToLocal;momentPrototype__proto.parseZone=setOffsetToParsedOffset;momentPrototype__proto.hasAlignedHourOffset=hasAlignedHourOffset;momentPrototype__proto.isDST=isDaylightSavingTime;momentPrototype__proto.isDSTShifted=isDaylightSavingTimeShifted;momentPrototype__proto.isLocal=isLocal;momentPrototype__proto.isUtcOffset=isUtcOffset;momentPrototype__proto.isUtc=isUtc;momentPrototype__proto.isUTC=isUtc;momentPrototype__proto.zoneAbbr=getZoneAbbr;momentPrototype__proto.zoneName=getZoneName;momentPrototype__proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);momentPrototype__proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth);momentPrototype__proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear);momentPrototype__proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",getSetZone);var momentPrototype=momentPrototype__proto;function moment__createUnix(input){return local__createLocal(input*1e3)}function moment__createInZone(){return local__createLocal.apply(null,arguments).parseZone()}var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function locale_calendar__calendar(key,mom,now){var output=this._calendar[key];return typeof output==="function"?output.call(mom,now):output}var defaultLongDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(key){var format=this._longDateFormat[key],formatUpper=this._longDateFormat[key.toUpperCase()];if(format||!formatUpper){return format}this._longDateFormat[key]=formatUpper.replace(/MMMM|MM|DD|dddd/g,function(val){return val.slice(1)});return this._longDateFormat[key]}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d";var defaultOrdinalParse=/\d{1,2}/;function ordinal(number){return this._ordinal.replace("%d",number)}function preParsePostFormat(string){return string}var defaultRelativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relative__relativeTime(number,withoutSuffix,string,isFuture){var output=this._relativeTime[string];return typeof output==="function"?output(number,withoutSuffix,string,isFuture):output.replace(/%d/i,number)}function pastFuture(diff,output){var format=this._relativeTime[diff>0?"future":"past"];return typeof format==="function"?format(output):format.replace(/%s/i,output)}function locale_set__set(config){var prop,i;for(i in config){prop=config[i];if(typeof prop==="function"){this[i]=prop}else{this["_"+i]=prop}}this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}var prototype__proto=Locale.prototype;prototype__proto._calendar=defaultCalendar;prototype__proto.calendar=locale_calendar__calendar;prototype__proto._longDateFormat=defaultLongDateFormat;prototype__proto.longDateFormat=longDateFormat;prototype__proto._invalidDate=defaultInvalidDate;prototype__proto.invalidDate=invalidDate;prototype__proto._ordinal=defaultOrdinal;prototype__proto.ordinal=ordinal;prototype__proto._ordinalParse=defaultOrdinalParse;prototype__proto.preparse=preParsePostFormat;prototype__proto.postformat=preParsePostFormat;prototype__proto._relativeTime=defaultRelativeTime;prototype__proto.relativeTime=relative__relativeTime;prototype__proto.pastFuture=pastFuture;prototype__proto.set=locale_set__set;prototype__proto.months=localeMonths;prototype__proto._months=defaultLocaleMonths;prototype__proto.monthsShort=localeMonthsShort;prototype__proto._monthsShort=defaultLocaleMonthsShort;prototype__proto.monthsParse=localeMonthsParse;prototype__proto.week=localeWeek;prototype__proto._week=defaultLocaleWeek;prototype__proto.firstDayOfYear=localeFirstDayOfYear;prototype__proto.firstDayOfWeek=localeFirstDayOfWeek;prototype__proto.weekdays=localeWeekdays;prototype__proto._weekdays=defaultLocaleWeekdays;prototype__proto.weekdaysMin=localeWeekdaysMin;prototype__proto._weekdaysMin=defaultLocaleWeekdaysMin;prototype__proto.weekdaysShort=localeWeekdaysShort;prototype__proto._weekdaysShort=defaultLocaleWeekdaysShort;prototype__proto.weekdaysParse=localeWeekdaysParse;prototype__proto.isPM=localeIsPM;prototype__proto._meridiemParse=defaultLocaleMeridiemParse;prototype__proto.meridiem=localeMeridiem;function lists__get(format,index,field,setter){var locale=locale_locales__getLocale();var utc=create_utc__createUTC().set(setter,index);return locale[field](utc,format)}function list(format,index,field,count,setter){if(typeof format==="number"){index=format;format=undefined}format=format||"";if(index!=null){return lists__get(format,index,field,setter)}var i;var out=[];for(i=0;i=0&&days>=0&&months>=0||milliseconds<=0&&days<=0&&months<=0)){milliseconds+=absCeil(monthsToDays(months)+days)*864e5;days=0;months=0}data.milliseconds=milliseconds%1e3;seconds=absFloor(milliseconds/1e3);data.seconds=seconds%60;minutes=absFloor(seconds/60);data.minutes=minutes%60;hours=absFloor(minutes/60);data.hours=hours%24;days+=absFloor(hours/24);monthsFromDays=absFloor(daysToMonths(days));months+=monthsFromDays;days-=absCeil(monthsToDays(monthsFromDays));years=absFloor(months/12);months%=12;data.days=days;data.months=months;data.years=years;return this}function daysToMonths(days){return days*4800/146097}function monthsToDays(months){return months*146097/4800}function as(units){var days;var months;var milliseconds=this._milliseconds;units=normalizeUnits(units);if(units==="month"||units==="year"){days=this._days+milliseconds/864e5;months=this._months+daysToMonths(days);return units==="month"?months:months/12}else{days=this._days+Math.round(monthsToDays(this._months));switch(units){case"week":return days/7+milliseconds/6048e5;case"day":return days+milliseconds/864e5;case"hour":return days*24+milliseconds/36e5;case"minute":return days*1440+milliseconds/6e4;case"second":return days*86400+milliseconds/1e3;case"millisecond":return Math.floor(days*864e5)+milliseconds;default:throw new Error("Unknown unit "+units)}}}function duration_as__valueOf(){return this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6}function makeAs(alias){return function(){return this.as(alias)}}var asMilliseconds=makeAs("ms");var asSeconds=makeAs("s");var asMinutes=makeAs("m");var asHours=makeAs("h");var asDays=makeAs("d");var asWeeks=makeAs("w");var asMonths=makeAs("M");var asYears=makeAs("y");function duration_get__get(units){units=normalizeUnits(units);return this[units+"s"]()}function makeGetter(name){return function(){return this._data[name]}}var milliseconds=makeGetter("milliseconds");var seconds=makeGetter("seconds");var minutes=makeGetter("minutes");var hours=makeGetter("hours");var days=makeGetter("days");var months=makeGetter("months");var years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round=Math.round;var thresholds={s:45,m:45,h:22,d:26,M:11};function substituteTimeAgo(string,number,withoutSuffix,isFuture,locale){return locale.relativeTime(number||1,!!withoutSuffix,string,isFuture)}function duration_humanize__relativeTime(posNegDuration,withoutSuffix,locale){var duration=create__createDuration(posNegDuration).abs();var seconds=round(duration.as("s"));var minutes=round(duration.as("m"));var hours=round(duration.as("h"));var days=round(duration.as("d"));var months=round(duration.as("M"));var years=round(duration.as("y"));var a=seconds0;a[4]=locale;return substituteTimeAgo.apply(null,a)}function duration_humanize__getSetRelativeTimeThreshold(threshold,limit){if(thresholds[threshold]===undefined){return false}if(limit===undefined){return thresholds[threshold]}thresholds[threshold]=limit;return true}function humanize(withSuffix){var locale=this.localeData();var output=duration_humanize__relativeTime(this,!withSuffix,locale);if(withSuffix){output=locale.pastFuture(+this,output)}return locale.postformat(output)}var iso_string__abs=Math.abs;function iso_string__toISOString(){var seconds=iso_string__abs(this._milliseconds)/1e3;var days=iso_string__abs(this._days);var months=iso_string__abs(this._months);var minutes,hours,years;minutes=absFloor(seconds/60);hours=absFloor(minutes/60);seconds%=60;minutes%=60;years=absFloor(months/12);months%=12;var Y=years;var M=months;var D=days;var h=hours;var m=minutes;var s=seconds;var total=this.asSeconds();if(!total){return"P0D"}return(total<0?"-":"")+"P"+(Y?Y+"Y":"")+(M?M+"M":"")+(D?D+"D":"")+(h||m||s?"T":"")+(h?h+"H":"")+(m?m+"M":"")+(s?s+"S":"")}var duration_prototype__proto=Duration.prototype;duration_prototype__proto.abs=duration_abs__abs;duration_prototype__proto.add=duration_add_subtract__add;duration_prototype__proto.subtract=duration_add_subtract__subtract;duration_prototype__proto.as=as;duration_prototype__proto.asMilliseconds=asMilliseconds;duration_prototype__proto.asSeconds=asSeconds;duration_prototype__proto.asMinutes=asMinutes;duration_prototype__proto.asHours=asHours;duration_prototype__proto.asDays=asDays;duration_prototype__proto.asWeeks=asWeeks;duration_prototype__proto.asMonths=asMonths;duration_prototype__proto.asYears=asYears;duration_prototype__proto.valueOf=duration_as__valueOf;duration_prototype__proto._bubble=bubble;duration_prototype__proto.get=duration_get__get;duration_prototype__proto.milliseconds=milliseconds;duration_prototype__proto.seconds=seconds;duration_prototype__proto.minutes=minutes;duration_prototype__proto.hours=hours;duration_prototype__proto.days=days;duration_prototype__proto.weeks=weeks;duration_prototype__proto.months=months;duration_prototype__proto.years=years;duration_prototype__proto.humanize=humanize;duration_prototype__proto.toISOString=iso_string__toISOString;duration_prototype__proto.toString=iso_string__toISOString;duration_prototype__proto.toJSON=iso_string__toISOString;duration_prototype__proto.locale=locale;duration_prototype__proto.localeData=localeData;duration_prototype__proto.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",iso_string__toISOString);duration_prototype__proto.lang=lang;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(input,array,config){config._d=new Date(parseFloat(input,10)*1e3)});addParseToken("x",function(input,array,config){config._d=new Date(toInt(input))});utils_hooks__hooks.version="2.10.6";setHookCallback(local__createLocal);utils_hooks__hooks.fn=momentPrototype;utils_hooks__hooks.min=min;utils_hooks__hooks.max=max;utils_hooks__hooks.utc=create_utc__createUTC;utils_hooks__hooks.unix=moment__createUnix;utils_hooks__hooks.months=lists__listMonths;utils_hooks__hooks.isDate=isDate;utils_hooks__hooks.locale=locale_locales__getSetGlobalLocale;utils_hooks__hooks.invalid=valid__createInvalid;utils_hooks__hooks.duration=create__createDuration;utils_hooks__hooks.isMoment=isMoment;utils_hooks__hooks.weekdays=lists__listWeekdays;utils_hooks__hooks.parseZone=moment__createInZone;utils_hooks__hooks.localeData=locale_locales__getLocale;utils_hooks__hooks.isDuration=isDuration;utils_hooks__hooks.monthsShort=lists__listMonthsShort;utils_hooks__hooks.weekdaysMin=lists__listWeekdaysMin;utils_hooks__hooks.defineLocale=defineLocale;utils_hooks__hooks.weekdaysShort=lists__listWeekdaysShort;utils_hooks__hooks.normalizeUnits=normalizeUnits;utils_hooks__hooks.relativeTimeThreshold=duration_humanize__getSetRelativeTimeThreshold;var _moment=utils_hooks__hooks;return _moment})}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-validation/node_modules/joi/node_modules/moment/moment.js","/node_modules/deep-validation/node_modules/joi/node_modules/moment")},{_process:379,buffer:230}],ms:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var s=1e3;var m=s*60;var h=m*60;var d=h*24;var y=d*365.25;module.exports=function(val,options){options=options||{};if("string"==typeof val)return parse(val);return options.long?long(val):short(val)};function parse(str){str=""+str;if(str.length>1e4)return;var match=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);if(!match)return;var n=parseFloat(match[1]);var type=(match[2]||"ms").toLowerCase();switch(type){case"years":case"year":case"yrs":case"yr":case"y":return n*y;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*h;case"minutes":case"minute":case"mins":case"min":case"m":return n*m;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}function short(ms){if(ms>=d)return Math.round(ms/d)+"d";if(ms>=h)return Math.round(ms/h)+"h";if(ms>=m)return Math.round(ms/m)+"m";if(ms>=s)return Math.round(ms/s)+"s";return ms+"ms"}function long(ms){return plural(ms,d,"day")||plural(ms,h,"hour")||plural(ms,m,"minute")||plural(ms,s,"second")||ms+" ms"}function plural(ms,n,name){if(ms=0;--i){if(handlers[i]===handler){handlers.splice(i,1)}}}function unsubscribeAll(){uninstallGlobalHandler();handlers=[]}function notifyHandlers(stack,isWindowError){var exception=null;if(isWindowError&&!TraceKit.collectWindowErrors){return}for(var i in handlers){if(hasKey(handlers,i)){try{handlers[i].apply(null,[stack].concat(_slice.call(arguments,2)))}catch(inner){exception=inner}}}if(exception){throw exception}}var _oldOnerrorHandler,_onErrorHandlerInstalled;function traceKitWindowOnError(message,url,lineNo,colNo,ex){var stack=null;if(lastExceptionStack){TraceKit.computeStackTrace.augmentStackTraceWithInitialElement(lastExceptionStack,url,lineNo,message);processLastException()}else if(ex){stack=TraceKit.computeStackTrace(ex);notifyHandlers(stack,true)}else{var location={url:url,line:lineNo,column:colNo};location.func=TraceKit.computeStackTrace.guessFunctionName(location.url,location.line);location.context=TraceKit.computeStackTrace.gatherContext(location.url,location.line);stack={message:message,url:document.location.href,stack:[location]};notifyHandlers(stack,true)}if(_oldOnerrorHandler){return _oldOnerrorHandler.apply(this,arguments)}return false}function installGlobalHandler(){if(_onErrorHandlerInstalled){return}_oldOnerrorHandler=window.onerror;window.onerror=traceKitWindowOnError;_onErrorHandlerInstalled=true}function uninstallGlobalHandler(){if(!_onErrorHandlerInstalled){return}window.onerror=_oldOnerrorHandler;_onErrorHandlerInstalled=false;_oldOnerrorHandler=undefined}function processLastException(){var _lastExceptionStack=lastExceptionStack,_lastArgs=lastArgs;lastArgs=null;lastExceptionStack=null;lastException=null;notifyHandlers.apply(null,[_lastExceptionStack,false].concat(_lastArgs))}function report(ex,rethrow){var args=_slice.call(arguments,1);if(lastExceptionStack){if(lastException===ex){return}else{processLastException()}}var stack=TraceKit.computeStackTrace(ex);lastExceptionStack=stack;lastException=ex;lastArgs=args;window.setTimeout(function(){if(lastException===ex){processLastException()}},stack.incomplete?2e3:0);if(rethrow!==false){throw ex}}report.subscribe=subscribe;report.unsubscribe=unsubscribe;report.uninstall=unsubscribeAll;return report}();TraceKit.computeStackTrace=function computeStackTraceWrapper(){var sourceCache={};function loadSource(url){if(!TraceKit.remoteFetching){return""}try{var getXHR=function(){try{return new window.XMLHttpRequest}catch(e){return new window.ActiveXObject("Microsoft.XMLHTTP")}};var request=getXHR();request.open("GET",url,false);request.send("");return request.responseText}catch(e){return""}}function getSource(url){if(!isString(url))return[];if(!hasKey(sourceCache,url)){var source="";var domain="";try{domain=document.domain}catch(e){}if(url.indexOf(domain)!==-1){source=loadSource(url)}sourceCache[url]=source?source.split("\n"):[]}return sourceCache[url]}function guessFunctionName(url,lineNo){var reFunctionArgNames=/function ([^(]*)\(([^)]*)\)/,reGuessFunction=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,line="",maxLines=10,source=getSource(url),m;if(!source.length){return UNKNOWN_FUNCTION}for(var i=0;i0?context:null}function escapeRegExp(text){return text.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function escapeCodeAsRegExpForMatchingInsideHTML(body){return escapeRegExp(body).replace("<","(?:<|<)").replace(">","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function findSourceInUrls(re,urls){var source,m;for(var i=0,j=urls.length;iline&&(m=re.exec(source[line]))){return m.index}return null}function findSourceByFunctionBody(func){var urls=[window.location.href],scripts=document.getElementsByTagName("script"),body,code=""+func,codeRE=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,eventRE=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,re,parts,result;for(var i=0;i):(\d+)(?::(\d+))?\)?\s*$/i,gecko=/^\s*(.*?)(?:\((.*?)\))?@((?:file|https?|chrome).*?):(\d+)(?::(\d+))?\s*$/i,winjs=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i,lines=ex.stack.split("\n"),stack=[],parts,element,reference=/^(.*) is undefined$/.exec(ex.message);for(var i=0,j=lines.length;i]+)>|([^\)]+))\((.*)\) in (.*):\s*$/i,lines=stacktrace.split("\n"),stack=[],parts;for(var i=0,j=lines.length;i=0){item.line=relativeLine+source.substring(0,pos).split("\n").length}}}}else if(parts=lineRE3.exec(lines[i])){var url=window.location.href.replace(/#.*$/,""),line=parts[1];var re=new RegExp(escapeCodeAsRegExpForMatchingInsideHTML(lines[i+1]));source=findSourceInUrls(re,[url]);item={url:url,line:source?source.line:line,func:""}}if(item){if(!item.func){item.func=guessFunctionName(item.url,item.line)}var context=gatherContext(item.url,item.line);var midline=context?context[Math.floor(context.length/2)]:null;if(context&&midline.replace(/^\s*/,"")===lines[i+1].replace(/^\s*/,"")){item.context=context}else{item.context=[lines[i+1]]}stack.push(item)}}if(!stack.length){return null}return{name:ex.name,message:lines[0],url:document.location.href,stack:stack}}function augmentStackTraceWithInitialElement(stackInfo,url,lineNo,message){var initial={url:url,line:lineNo};if(initial.url&&initial.line){stackInfo.incomplete=false;if(!initial.func){initial.func=guessFunctionName(initial.url,initial.line)}if(!initial.context){initial.context=gatherContext(initial.url,initial.line)}var reference=/ '([^']+)' /.exec(message);if(reference){initial.column=findSourceInLine(reference[1],initial.url,initial.line)}if(stackInfo.stack.length>0){if(stackInfo.stack[0].url===initial.url){if(stackInfo.stack[0].line===initial.line){return false}else if(!stackInfo.stack[0].line&&stackInfo.stack[0].func===initial.func){stackInfo.stack[0].line=initial.line;stackInfo.stack[0].context=initial.context;return false}}}stackInfo.stack.unshift(initial);stackInfo.partial=true;return true}else{stackInfo.incomplete=true}return false}function computeStackTraceByWalkingCallerChain(ex,depth){var functionName=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,stack=[],funcs={},recursion=false,parts,item,source;for(var curr=computeStackTraceByWalkingCallerChain.caller;curr&&!recursion;curr=curr.caller){if(curr===computeStackTrace||curr===TraceKit.report){continue}item={url:null,func:UNKNOWN_FUNCTION,line:null,column:null};if(curr.name){item.func=curr.name}else if(parts=functionName.exec(curr.toString())){item.func=parts[1]}if(typeof item.func==="undefined"){try{item.func=parts.input.substring(0,parts.input.indexOf("{"))}catch(e){}}if(source=findSourceByFunctionBody(curr)){item.url=source.url;item.line=source.line;if(item.func===UNKNOWN_FUNCTION){item.func=guessFunctionName(item.url,item.line)}var reference=/ '([^']+)' /.exec(ex.message||ex.description);if(reference){item.column=findSourceInLine(reference[1],source.url,source.line)}}if(funcs[""+curr]){recursion=true}else{funcs[""+curr]=true}stack.push(item)}if(depth){stack.splice(0,depth)}var result={name:ex.name,message:ex.message,url:document.location.href,stack:stack};augmentStackTraceWithInitialElement(result,ex.sourceURL||ex.fileName,ex.line||ex.lineNumber,ex.message||ex.description);return result}function computeStackTrace(ex,depth){var stack=null;depth=depth==null?0:+depth;try{stack=computeStackTraceFromStacktraceProp(ex);if(stack){return stack}}catch(e){if(TraceKit.debug){throw e}}try{stack=computeStackTraceFromStackProp(ex);if(stack){return stack}}catch(e){if(TraceKit.debug){throw e}}try{stack=computeStackTraceFromOperaMultiLineMessage(ex);if(stack){return stack}}catch(e){if(TraceKit.debug){throw e}}try{stack=computeStackTraceByWalkingCallerChain(ex,depth+1);if(stack){return stack}}catch(e){if(TraceKit.debug){throw e}}return{name:ex.name,message:ex.message,url:document.location.href}}computeStackTrace.augmentStackTraceWithInitialElement=augmentStackTraceWithInitialElement;computeStackTrace.computeStackTraceFromStackProp=computeStackTraceFromStackProp;computeStackTrace.guessFunctionName=guessFunctionName;computeStackTrace.gatherContext=gatherContext;return computeStackTrace}();"use strict";var _Raven=window.Raven,hasJSON=!!(typeof JSON==="object"&&JSON.stringify),lastCapturedException,lastEventId,globalServer,globalUser,globalKey,globalProject,globalOptions={logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],crossOrigin:"anonymous",collectWindowErrors:true,tags:{},maxMessageLength:100,extra:{}},isRavenInstalled=false,objectPrototype=Object.prototype,originalConsole=window.console||{},originalConsoleMethods={},startTime=now();for(var method in originalConsole){originalConsoleMethods[method]=originalConsole[method]}var Raven={VERSION:"1.1.22",debug:true,noConflict:function(){window.Raven=_Raven;return Raven},config:function(dsn,options){if(globalServer){logDebug("error","Error: Raven has already been configured");return Raven}if(!dsn)return Raven;var uri=parseDSN(dsn),lastSlash=uri.path.lastIndexOf("/"),path=uri.path.substr(1,lastSlash);if(options){each(options,function(key,value){globalOptions[key]=value})}globalOptions.ignoreErrors.push(/^Script error\.?$/);globalOptions.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/);globalOptions.ignoreErrors=joinRegExp(globalOptions.ignoreErrors);globalOptions.ignoreUrls=globalOptions.ignoreUrls.length?joinRegExp(globalOptions.ignoreUrls):false;globalOptions.whitelistUrls=globalOptions.whitelistUrls.length?joinRegExp(globalOptions.whitelistUrls):false;globalOptions.includePaths=joinRegExp(globalOptions.includePaths);globalKey=uri.user;globalProject=uri.path.substr(lastSlash+1);globalServer="//"+uri.host+(uri.port?":"+uri.port:"")+"/"+path+"api/"+globalProject+"/store/";if(uri.protocol){globalServer=uri.protocol+":"+globalServer}if(globalOptions.fetchContext){TraceKit.remoteFetching=true}if(globalOptions.linesOfContext){TraceKit.linesOfContext=globalOptions.linesOfContext}TraceKit.collectWindowErrors=!!globalOptions.collectWindowErrors;return Raven},install:function(){if(isSetup()&&!isRavenInstalled){TraceKit.report.subscribe(handleStackInfo);isRavenInstalled=true}return Raven},context:function(options,func,args){if(isFunction(options)){args=func||[];func=options;options=undefined}return Raven.wrap(options,func).apply(this,args)},wrap:function(options,func){if(isUndefined(func)&&!isFunction(options)){return options}if(isFunction(options)){func=options;options=undefined}if(!isFunction(func)){return func}if(func.__raven__){return func}function wrapped(){var args=[],i=arguments.length,deep=!options||options&&options.deep!==false;while(i--)args[i]=deep?Raven.wrap(options,arguments[i]):arguments[i];try{return func.apply(this,args)}catch(e){Raven.captureException(e,options);throw e}}for(var property in func){if(hasKey(func,property)){wrapped[property]=func[property]}}wrapped.__raven__=true;wrapped.__inner__=func;return wrapped},uninstall:function(){TraceKit.report.uninstall();isRavenInstalled=false;return Raven},captureException:function(ex,options){if(!isError(ex))return Raven.captureMessage(ex,options);lastCapturedException=ex;try{var stack=TraceKit.computeStackTrace(ex);handleStackInfo(stack,options)}catch(ex1){if(ex!==ex1){throw ex1}}return Raven},captureMessage:function(msg,options){if(!!globalOptions.ignoreErrors.test&&globalOptions.ignoreErrors.test(msg)){return}send(objectMerge({message:msg+""},options));return Raven},setUserContext:function(user){globalUser=user;return Raven},setExtraContext:function(extra){globalOptions.extra=extra||{};return Raven},setTagsContext:function(tags){globalOptions.tags=tags||{};return Raven},setReleaseContext:function(release){globalOptions.release=release;return Raven},setDataCallback:function(callback){globalOptions.dataCallback=callback;return Raven},setShouldSendCallback:function(callback){globalOptions.shouldSendCallback=callback;return Raven},lastException:function(){return lastCapturedException},lastEventId:function(){return lastEventId},isSetup:function(){return isSetup()}};Raven.setUser=Raven.setUserContext;function triggerEvent(eventType,options){var event,key;options=options||{};eventType="raven"+eventType.substr(0,1).toUpperCase()+eventType.substr(1);if(document.createEvent){event=document.createEvent("HTMLEvents");event.initEvent(eventType,true,true)}else{event=document.createEventObject();event.eventType=eventType}for(key in options)if(hasKey(options,key)){event[key]=options[key]}if(document.createEvent){document.dispatchEvent(event)}else{try{document.fireEvent("on"+event.eventType.toLowerCase(),event)}catch(e){}}}var dsnKeys="source protocol user pass host port path".split(" "),dsnPattern=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function RavenConfigError(message){this.name="RavenConfigError";this.message=message}RavenConfigError.prototype=new Error;RavenConfigError.prototype.constructor=RavenConfigError;function parseDSN(str){var m=dsnPattern.exec(str),dsn={},i=7;try{while(i--)dsn[dsnKeys[i]]=m[i]||""}catch(e){throw new RavenConfigError("Invalid DSN: "+str)}if(dsn.pass)throw new RavenConfigError("Do not specify your private key in the DSN!");return dsn}function isUndefined(what){return what===void 0}function isFunction(what){return typeof what==="function"}function isString(what){return objectPrototype.toString.call(what)==="[object String]"}function isObject(what){return typeof what==="object"&&what!==null}function isEmptyObject(what){for(var k in what)return false;return true}function isError(what){return isObject(what)&&objectPrototype.toString.call(what)==="[object Error]"||what instanceof Error}function hasKey(object,key){return objectPrototype.hasOwnProperty.call(object,key)}function each(obj,callback){var i,j;if(isUndefined(obj.length)){for(i in obj){if(hasKey(obj,i)){callback.call(null,i,obj[i])}}}else{j=obj.length;if(j){for(i=0;i300){isMinified=true;break}}if(isMinified){if(isUndefined(frame.column))return;return[[],context[pivot].substr(frame.column,50),[]]}return[context.slice(0,pivot),context[pivot],context.slice(pivot+1)]}function processException(type,message,fileurl,lineno,frames,options){var stacktrace,i,fullMessage;if(!!globalOptions.ignoreErrors.test&&globalOptions.ignoreErrors.test(message))return;message+="";message=truncate(message,globalOptions.maxMessageLength);fullMessage=type+": "+message;fullMessage=truncate(fullMessage,globalOptions.maxMessageLength);if(frames&&frames.length){fileurl=frames[0].filename||fileurl;frames.reverse();stacktrace={frames:frames}}else if(fileurl){stacktrace={frames:[{filename:fileurl,lineno:lineno,in_app:true}]}}if(!!globalOptions.ignoreUrls.test&&globalOptions.ignoreUrls.test(fileurl))return;if(!!globalOptions.whitelistUrls.test&&!globalOptions.whitelistUrls.test(fileurl))return;send(objectMerge({exception:{type:type,value:message},stacktrace:stacktrace,culprit:fileurl,message:fullMessage},options))}function objectMerge(obj1,obj2){if(!obj2){return obj1}each(obj2,function(key,value){obj1[key]=value});return obj1}function truncate(str,max){return str.length<=max?str:str.substr(0,max)+"…"}function now(){return+new Date}function getHttpData(){if(!document.location||!document.location.href){return}var http={headers:{"User-Agent":navigator.userAgent}};http.url=document.location.href;if(document.referrer){http.headers.Referer=document.referrer}return http}function send(data){var baseData={project:globalProject,logger:globalOptions.logger,platform:"javascript"};var http=getHttpData();if(http){baseData.request=http}data=objectMerge(baseData,data);data.tags=objectMerge(objectMerge({},globalOptions.tags),data.tags);data.extra=objectMerge(objectMerge({},globalOptions.extra),data.extra);data.extra=objectMerge({"session:duration":now()-startTime},data.extra);if(isEmptyObject(data.tags))delete data.tags;if(globalUser){data.user=globalUser}if(globalOptions.release)data.release=globalOptions.release;if(isFunction(globalOptions.dataCallback)){data=globalOptions.dataCallback(data)||data}if(!data||isEmptyObject(data)){return}if(isFunction(globalOptions.shouldSendCallback)&&!globalOptions.shouldSendCallback(data)){return}lastEventId=data.event_id||(data.event_id=uuid4());logDebug("debug","Raven about to send:",data);if(!isSetup())return;(globalOptions.transport||makeRequest)({url:globalServer,auth:{sentry_version:"4",sentry_client:"raven-js/"+Raven.VERSION,sentry_key:globalKey},data:data,options:globalOptions,onSuccess:function success(){triggerEvent("success",{data:data,src:globalServer})},onError:function failure(){triggerEvent("failure",{data:data,src:globalServer})}})}function makeRequest(opts){opts.auth.sentry_data=JSON.stringify(opts.data);var img=newImage(),src=opts.url+"?"+urlencode(opts.auth);if(opts.options.crossOrigin||opts.options.crossOrigin===""){img.crossOrigin=opts.options.crossOrigin}img.onload=opts.onSuccess;img.onerror=img.onabort=opts.onError;img.src=src}function newImage(){return document.createElement("img")}var ravenNotConfiguredError;function isSetup(){if(!hasJSON)return false;if(!globalServer){if(!ravenNotConfiguredError)logDebug("error","Error: Raven has not been configured.");ravenNotConfiguredError=true;return false}return true}function joinRegExp(patterns){var sources=[],i=0,len=patterns.length,pattern;for(;idocument.w=window');storageContainer.close();storageOwner=storageContainer.w.frames[0].document;storage=storageOwner.createElement("div")}catch(e){storage=doc.createElement("div");storageOwner=doc.body}var withIEStorage=function(storeFunction){return function(){var args=Array.prototype.slice.call(arguments,0);args.unshift(storage);storageOwner.appendChild(storage);storage.addBehavior("#default#userData");storage.load(localStorageName);var result=storeFunction.apply(store,args);storageOwner.removeChild(storage);return result}};var forbiddenCharsRegex=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ieKeyFix(key){return key.replace(/^d/,"___$&").replace(forbiddenCharsRegex,"___")}store.set=withIEStorage(function(storage,key,val){key=ieKeyFix(key);if(val===undefined){return store.remove(key)}storage.setAttribute(key,store.serialize(val));storage.save(localStorageName);return val});store.get=withIEStorage(function(storage,key,defaultVal){key=ieKeyFix(key);var val=store.deserialize(storage.getAttribute(key));return val===undefined?defaultVal:val});store.remove=withIEStorage(function(storage,key){key=ieKeyFix(key);storage.removeAttribute(key);storage.save(localStorageName)});store.clear=withIEStorage(function(storage){var attributes=storage.XMLDocument.documentElement.attributes;storage.load(localStorageName);for(var i=0,attr;attr=attributes[i];i++){storage.removeAttribute(attr.name)}storage.save(localStorageName)});store.getAll=function(storage){var ret={};store.forEach(function(key,val){ret[key]=val});return ret};store.forEach=withIEStorage(function(storage,callback){var attributes=storage.XMLDocument.documentElement.attributes;for(var i=0,attr;attr=attributes[i];++i){callback(attr.name,store.deserialize(storage.getAttribute(attr.name)))}})}try{var testKey="__storejs__";store.set(testKey,testKey);if(store.get(testKey)!=testKey){store.disabled=true}store.remove(testKey)}catch(e){store.disabled=true}store.enabled=!store.disabled;if(typeof module!="undefined"&&module.exports&&this.module!==module){module.exports=store}else if(typeof define==="function"&&define.amd){define(store)}else{win.store=store}})(Function("return this")())}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-cache/node_modules/store/store.js","/node_modules/deep-cache/node_modules/store")},{_process:379,buffer:230}],string_decoder:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Buffer=require("buffer").Buffer;var isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding)){throw new Error("Unknown encoding: "+encoding)}}var StringDecoder=exports.StringDecoder=function(encoding){this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,"");assertEncoding(encoding);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2;this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3;this.detectIncompleteChar=base64DetectIncompleteChar;break;default:this.write=passThroughWrite;return}this.charBuffer=new Buffer(6);this.charReceived=0;this.charLength=0};StringDecoder.prototype.write=function(buffer){var charStr="";while(this.charLength){var available=buffer.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:buffer.length;buffer.copy(this.charBuffer,this.charReceived,0,available);this.charReceived+=available;if(this.charReceived=55296&&charCode<=56319){this.charLength+=this.surrogateSize;charStr="";continue}this.charReceived=this.charLength=0;if(buffer.length===0){return charStr}break}this.detectIncompleteChar(buffer);var end=buffer.length;if(this.charLength){buffer.copy(this.charBuffer,0,buffer.length-this.charReceived,end);end-=this.charReceived}charStr+=buffer.toString(this.encoding,0,end);var end=charStr.length-1;var charCode=charStr.charCodeAt(end);if(charCode>=55296&&charCode<=56319){var size=this.surrogateSize;this.charLength+=size;this.charReceived+=size;this.charBuffer.copy(this.charBuffer,size,0,size);buffer.copy(this.charBuffer,0,0,size);return charStr.substring(0,end)}return charStr};StringDecoder.prototype.detectIncompleteChar=function(buffer){var i=buffer.length>=3?3:buffer.length;for(;i>0;i--){var c=buffer[buffer.length-i];if(i==1&&c>>5==6){this.charLength=2;break}if(i<=2&&c>>4==14){this.charLength=3;break}if(i<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=i};StringDecoder.prototype.end=function(buffer){var res="";if(buffer&&buffer.length)res=this.write(buffer);if(this.charReceived){var cr=this.charReceived;var buf=this.charBuffer;var enc=this.encoding;res+=buf.slice(0,cr).toString(enc)}return res};function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2;this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3;this.charLength=this.charReceived?3:0}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/superagent/node_modules/readable-stream/node_modules/string_decoder/index.js","/node_modules/deep-resource/node_modules/superagent/node_modules/readable-stream/node_modules/string_decoder")},{_process:379,buffer:230}],superagent:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Emitter=require("emitter");var reduce=require("reduce");var root="undefined"==typeof window?this||self:window;function noop(){}function isHost(obj){var str={}.toString.call(obj);switch(str){case"[object File]":case"[object Blob]":case"[object FormData]":return true;default:return false}}request.getXHR=function(){if(root.XMLHttpRequest&&(!root.location||"file:"!=root.location.protocol||!root.ActiveXObject)){return new XMLHttpRequest}else{try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}}return false};var trim="".trim?function(s){return s.trim()}:function(s){return s.replace(/(^\s*|\s*$)/g,"")};function isObject(obj){return obj===Object(obj)}function serialize(obj){if(!isObject(obj))return obj;var pairs=[];for(var key in obj){if(null!=obj[key]){pairs.push(encodeURIComponent(key)+"="+encodeURIComponent(obj[key]))}}return pairs.join("&")}request.serializeObject=serialize;function parseString(str){var obj={};var pairs=str.split("&");var parts;var pair;for(var i=0,len=pairs.length;i=200&&res.status<300){return self.callback(err,res)}var new_err=new Error(res.statusText||"Unsuccessful HTTP response");new_err.original=err;new_err.response=res;new_err.status=res.status;self.callback(err||new_err,res)})}Emitter(Request.prototype);Request.prototype.use=function(fn){fn(this);return this};Request.prototype.timeout=function(ms){this._timeout=ms;return this};Request.prototype.clearTimeout=function(){this._timeout=0;clearTimeout(this._timer);return this};Request.prototype.abort=function(){if(this.aborted)return;this.aborted=true;this.xhr.abort();this.clearTimeout();this.emit("abort");return this};Request.prototype.set=function(field,val){if(isObject(field)){for(var key in field){this.set(key,field[key])}return this}this._header[field.toLowerCase()]=val;this.header[field]=val;return this};Request.prototype.unset=function(field){delete this._header[field.toLowerCase()];delete this.header[field];return this};Request.prototype.getHeader=function(field){return this._header[field.toLowerCase()]};Request.prototype.type=function(type){this.set("Content-Type",request.types[type]||type);return this};Request.prototype.accept=function(type){this.set("Accept",request.types[type]||type);return this};Request.prototype.auth=function(user,pass){var str=btoa(user+":"+pass);this.set("Authorization","Basic "+str);return this};Request.prototype.query=function(val){if("string"!=typeof val)val=serialize(val);if(val)this._query.push(val);return this};Request.prototype.field=function(name,val){if(!this._formData)this._formData=new root.FormData;this._formData.append(name,val);return this};Request.prototype.attach=function(field,file,filename){if(!this._formData)this._formData=new root.FormData;this._formData.append(field,file,filename);return this};Request.prototype.send=function(data){var obj=isObject(data);var type=this.getHeader("Content-Type");if(obj&&isObject(this._data)){for(var key in data){this._data[key]=data[key]}}else if("string"==typeof data){if(!type)this.type("form");type=this.getHeader("Content-Type");if("application/x-www-form-urlencoded"==type){this._data=this._data?this._data+"&"+data:data}else{this._data=(this._data||"")+data}}else{this._data=data}if(!obj||isHost(data))return this;if(!type)this.type("json");return this};Request.prototype.callback=function(err,res){var fn=this._callback;this.clearTimeout();fn(err,res)};Request.prototype.crossDomainError=function(){var err=new Error("Origin is not allowed by Access-Control-Allow-Origin");err.crossDomain=true;this.callback(err)};Request.prototype.timeoutError=function(){var timeout=this._timeout;var err=new Error("timeout of "+timeout+"ms exceeded");err.timeout=timeout;this.callback(err)};Request.prototype.withCredentials=function(){this._withCredentials=true;return this};Request.prototype.end=function(fn){var self=this;var xhr=this.xhr=request.getXHR();var query=this._query.join("&");var timeout=this._timeout;var data=this._formData||this._data;this._callback=fn||noop;xhr.onreadystatechange=function(){if(4!=xhr.readyState)return;var status;try{status=xhr.status}catch(e){status=0}if(0==status){if(self.timedout)return self.timeoutError();if(self.aborted)return;return self.crossDomainError()}self.emit("end")};var handleProgress=function(e){if(e.total>0){e.percent=e.loaded/e.total*100}self.emit("progress",e)};if(this.hasListeners("progress")){xhr.onprogress=handleProgress}try{if(xhr.upload&&this.hasListeners("progress")){xhr.upload.onprogress=handleProgress}}catch(e){}if(timeout&&!this._timer){this._timer=setTimeout(function(){self.timedout=true;self.abort()},timeout)}if(query){query=request.serializeObject(query);this.url+=~this.url.indexOf("?")?"&"+query:"?"+query}xhr.open(this.method,this.url,true);if(this._withCredentials)xhr.withCredentials=true;if("GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof data&&!isHost(data)){var serialize=request.serialize[this.getHeader("Content-Type")];if(serialize)data=serialize(data)}for(var field in this.header){if(null==this.header[field])continue;xhr.setRequestHeader(field,this.header[field])}this.emit("request",this);xhr.send(data);return this};request.Request=Request;function request(method,url){if("function"==typeof url){return new Request("GET",method).end(url)}if(1==arguments.length){return new Request("GET",method)}return new Request(method,url)}request.get=function(url,data,fn){var req=request("GET",url);if("function"==typeof data)fn=data,data=null;if(data)req.query(data);if(fn)req.end(fn);return req};request.head=function(url,data,fn){var req=request("HEAD",url);if("function"==typeof data)fn=data,data=null;if(data)req.send(data);if(fn)req.end(fn);return req};request.del=function(url,fn){var req=request("DELETE",url);if(fn)req.end(fn);return req};request.patch=function(url,data,fn){var req=request("PATCH",url);if("function"==typeof data)fn=data,data=null;if(data)req.send(data);if(fn)req.end(fn);return req};request.post=function(url,data,fn){var req=request("POST",url);if("function"==typeof data)fn=data,data=null;if(data)req.send(data);if(fn)req.end(fn);return req};request.put=function(url,data,fn){var req=request("PUT",url);if("function"==typeof data)fn=data,data=null;if(data)req.send(data);if(fn)req.end(fn);return req};module.exports=request}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/deep-resource/node_modules/superagent/lib/client.js","/node_modules/deep-resource/node_modules/superagent/lib")},{_process:379,buffer:230,emitter:"component-emitter",reduce:"reduce-component"}],topo:[function(require,module,exports){(function(process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){var Hoek=require("hoek");var internals={};exports=module.exports=internals.Topo=function(){this._items=[];this.nodes=[]};internals.Topo.prototype.add=function(nodes,options){var self=this;options=options||{};var before=[].concat(options.before||[]);var after=[].concat(options.after||[]);var group=options.group||"?";var sort=options.sort||0;Hoek.assert(before.indexOf(group)===-1,"Item cannot come before itself:",group);Hoek.assert(before.indexOf("?")===-1,"Item cannot come before unassociated items");Hoek.assert(after.indexOf(group)===-1,"Item cannot come after itself:",group);Hoek.assert(after.indexOf("?")===-1,"Item cannot come after unassociated items");[].concat(nodes).forEach(function(node,i){var item={seq:self._items.length,sort:sort,before:before,after:after,group:group,node:node};self._items.push(item)});var error=this._sort();Hoek.assert(!error,"item",group!=="?"?"added into group "+group:"","created a dependencies error");return this.nodes};internals.Topo.prototype.merge=function(others){others=[].concat(others);for(var o=0,ol=others.length;o=0){++seenCount}}if(seenCount===shouldSeeCount){next=j;break}}}if(next!==null){next=next.toString();visited[next]=true;sorted.push(next)}}if(sorted.length!==this._items.length){return new Error("Invalid dependencies")}var seqIndex={};for(i=0,il=this._items.length;i=0.12", + "npm": ">=2.10" + }, + "os": [ + "!win32" + ], + "preferGlobal": true, + "analyze": true, + "jspm": { + "main": "browser/framework.js" + } +} diff --git a/src/deep-framework/scripts/browser_build.sh b/src/deep-framework/scripts/browser_build.sh new file mode 100755 index 00000000..8bf1cd40 --- /dev/null +++ b/src/deep-framework/scripts/browser_build.sh @@ -0,0 +1,94 @@ +#!/usr/bin/env bash + +path=$(cd $(dirname $0); pwd -P) +npm=$(which npm) +browserify=$(which browserify) +brew=$(which brew) +uglifyjs=$(which uglifyjs) +browser_build_path=${path}"/../browser" + +assure_brew() { + if [ -z ${brew} ]; then + echo "You may install Homebrew first!" + exit 1 + fi +} + +assure_uglifyjs() { + if [ -z ${uglifyjs} ]; then + assure_npm + + echo "Installing uglify-js..." + ${npm} install -g uglify-js + + uglifyjs=$(which uglifyjs) + fi +} + + +assure_npm() { + if [ -z ${npm} ]; then + assure_brew + + echo "Installing nodejs..." + ${brew} install nodejs + + npm=$(which npm) + fi +} + +assure_browserify() { + if [ -z ${browserify} ]; then + assure_npm + + echo "Installing browserify..." + ${npm} install -g browserify + + browserify=$(which browserify) + fi +} + +assure_npm +assure_browserify +assure_uglifyjs + +echo "- assure build directory" + +mkdir -p ${browser_build_path} + +echo "- execute prepare hooks" + +# @todo: move this into another script? +cd ${path}/../node_modules/deep-log && \ + ${npm} run prepare-browserify + +echo "- lookup for node modules to require" + +# used to require/exclude modules +NPM_REGEX='(src/deep-framework|.*((deep\-(fs|db|event))|lsmod|ioredis|vogels|chai|sinon|mocha|raven(?!-js)).*)$' + +# require +browserify_require="" +npm_modules=($(${path}/npm_modules_lookup.js ${path}/../ "($NPM_REGEX)" 'raven-js:raven')) +for module_entry_point in ${npm_modules[@]}; do + browserify_require=${browserify_require}' -r '${module_entry_point}' ' +done + +echo "" +echo ${browserify_require} +echo "" + +echo "- start transpiling" + +__FW=${browser_build_path}"/framework.js" + +cd ${path}/../ +${npm} run prepare-browserify +echo '/** Built on '$(date) > ${__FW} +${npm} ls --long=false --global=false --depth=0 --production=true | sed 's/ \/.*//' | grep deep- >> ${__FW} +echo '*/' >> ${__FW} +${browserify} --insert-globals -d ${browserify_require} lib.compiled/browser-framework.js | uglifyjs >> ${__FW} + +echo "" +echo "Completed!" +echo "" diff --git a/src/deep-framework/scripts/npm_modules_lookup.js b/src/deep-framework/scripts/npm_modules_lookup.js new file mode 100755 index 00000000..68a6e5d3 --- /dev/null +++ b/src/deep-framework/scripts/npm_modules_lookup.js @@ -0,0 +1,82 @@ +#!/usr/bin/env node +/** + * Created by AlexanderC on 8/14/15. + */ + +'use strict'; + +var os = require('os'); +var path = require('path'); +var exec = require('child_process').exec; +var args = process.argv; +var filter = function (module) { + return true; +}; +var replacements = {}; + +if (args.length < 3) { + console.error('Missing npm root'); + process.exit(1); +} + +if (args.length >= 4) { + filter = function (module) { + var modulePath = module.replace(/:[^:]+$/, ''); + + return !modulePath.match(new RegExp(args[3])); + }; +} + +if (args.length >= 5) { + var rawReplacements = args[4]; + + var replacementsRawVector = rawReplacements.split(','); + + for (var i = 0; i < replacementsRawVector.length; i++) { + var rawReplacement = replacementsRawVector[i]; + var replacementList = rawReplacement.split(':'); + + if (replacementList.length !== 2) { + console.error('Invalid replacement part ' + rawReplacement); + process.exit(1); + } + + replacements[replacementList[0]] = replacementList[1]; + } +} + +var npmRoot = args[2]; + +if (npmRoot.indexOf('/') !== 0) { + npmRoot = path.join(process.cwd(), npmRoot); +} + +exec('cd ' + npmRoot + ' && npm ls --parseable --silent --long', function (error, stdout, stderr) { + var modulesRawList = stdout.split(os.EOL); + + for (var line in modulesRawList) { + if (!modulesRawList.hasOwnProperty(line)) { + continue; + } + + var moduleRawLine = modulesRawList[line]; + var module = moduleRawLine.replace(/@[^@]+:?$/i, ''); + var moduleList = module.split(':'); + + if (module) { + if (moduleList.length !== 2) { + console.error('Invalid module path ' + module); + process.exit(1); + } + + if (filter(module)) { + var nameReplacement = replacements[moduleList[1]]; + var moduleOutput = nameReplacement + ? module.replace(new RegExp(':' + moduleList[1] + '$'), ':' + nameReplacement) + : module; + + console.log(moduleOutput); + } + } + } +}); diff --git a/src/deep-framework/test/.gitkeep b/src/deep-framework/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-fs/.gitignore b/src/deep-fs/.gitignore new file mode 100644 index 00000000..278bf823 --- /dev/null +++ b/src/deep-fs/.gitignore @@ -0,0 +1,105 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log diff --git a/src/deep-fs/.npmignore b/src/deep-fs/.npmignore new file mode 100644 index 00000000..8219039a --- /dev/null +++ b/src/deep-fs/.npmignore @@ -0,0 +1,4 @@ +test +tests +/lib +.gitignore \ No newline at end of file diff --git a/src/deep-fs/README.md b/src/deep-fs/README.md new file mode 100644 index 00000000..09e0e396 --- /dev/null +++ b/src/deep-fs/README.md @@ -0,0 +1,83 @@ +deep-fs +======= + +[![NPM Version](https://img.shields.io/npm/v/deep-fs.svg)](https://npmjs.org/package/deep-fs) +[![Build Status](https://travis-ci.org/MitocGroup/deep-framework.svg)](https://travis-ci.org/MitocGroup/deep-framework) +[![Coverage Status](https://coveralls.io/repos/MitocGroup/deep-framework/badge.svg?service=github&t=3QEkFa)](https://coveralls.io/github/MitocGroup/deep-framework) +[![Codacy Badge](https://api.codacy.com/project/badge/630b5f0024334dc09fd0299b1a8a0ed5)](https://www.codacy.com/app/MitocGroup/deep-framework) +[![API Docs](http://docs.deep.mg/deep-s.svg)](http://docs.deep.mg/deep-fs/) + +[deep-fs](https://www.npmjs.com/package/deep-fs) is a node.js library, part of [DEEP Framework](https://github.com/MitocGroup/deep-framework). + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-ecosystem.png) + +Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less. + +## DEEP for Businesses [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### User Guide Documentation (to be updated later) + +DEEP is enabling small and medium businesses, as well as enterprises to: +- Rent applications on a monthly basis by needed functionality from [DEEP Marketplace](https://www.deep.mg) +- Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS +- Pay only for subscribed applications and stop paying when unsubscribing and not using anymore +- Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences +- Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP for Developers [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### [API Guide Documentation](http://docs.deep.mg) +#### [Developer Guide Documentation](https://github.com/MitocGroup/deep-framework/blob/master/docs/index.md) + +DEEP is enabling developers and architects to: +- Design microservices architecture on top of serverless environments from cloud providers like AWS +- Build distributed software that combines and manages hardware and software in the same microservice +- Use the framework's abstracted approach to build applications that could be cloud agnostic +- Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) +- Run in the cloud the software that was built by distributed teams and served self-service in large organizations +- Monetize their work of art by uploading microservices to [DEEP Marketplace](https://www.deep.mg) + +> [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with [DEEP Microservices HelloWorld](https://github.com/MitocGroup/deep-microservices-helloworld) or [DEEP Microservices ToDo App](https://github.com/MitocGroup/deep-microservices-todo-app), as well as [DEEP CLI](https://www.npmjs.com/package/deepify) (aka `deepify`). + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP Architecture on AWS [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-architecture.png) + +DEEP is using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries: + +DEEP Abstracted Library | Description | AWS Abstracted Service(s) +-------------|---------------------|-------------------------- +[deep-asset](http://docs.deep.mg/deep-asset) | Assets Management Library | Amazon S3 +[deep-cache](http://docs.deep.mg/deep-cache) | Cache Management Library | Amazon ElastiCache +[deep-core](http://docs.deep.mg/deep-core) | Core Management Library | - +[deep-db](http://docs.deep.mg/deep-db) | Database Management Library | Amazon DynamoDB, Amazon SQS +[deep-di](http://docs.deep.mg/deep-di) | Dependency Injection Management Library | - +[deep-event](http://docs.deep.mg/deep-event) | Events Management Library | Amazon Kinesis +[deep-fs](http://docs.deep.mg/deep-fs) | File System Management Library | Amazon S3 +[deep-kernel](http://docs.deep.mg/deep-kernel) | Kernel Management Library | - +[deep-log](http://docs.deep.mg/deep-log) | Logs Management Library | Amazon CloudWatch Logs +[deep-notification](http://docs.deep.mg/deep-notification) | Notifications Management Library | Amazon SNS +[deep-resource](http://docs.deep.mg/deep-resource) | Resouces Management Library | AWS Lambda, Amazon API Gateway +[deep-security](http://docs.deep.mg/deep-security) | Security Management Library | AWS IAM, Amazon Cognito +[deep-validation](http://docs.deep.mg/deep-validation) | Validation Management Library | - + +## Feedback + +We are eager to get your feedback, so please use whatever communication channel you prefer: +- [github issues](https://github.com/MitocGroup/deep-framework/issues) +- [gitter chat room](https://gitter.im/MitocGroup/deep-framework) +- [deep email address](mailto:feedback@deep.mg) + +## License + +This repository can be used under the MIT license. +> See [LICENSE](https://github.com/MitocGroup/deep-framework/blob/master/LICENSE) for more details. + +## Sponsors + +This repository is being sponsored by: +> [Mitoc Group](http://www.mitocgroup.com) diff --git a/src/deep-fs/lib/Exception/Exception.js b/src/deep-fs/lib/Exception/Exception.js new file mode 100644 index 00000000..90ade1cd --- /dev/null +++ b/src/deep-fs/lib/Exception/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Core from 'deep-core'; + +/** + * Thrown when any exception occurs + */ +export class Exception extends Core.Exception.Exception { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-fs/lib/Exception/UnknownFolderException.js b/src/deep-fs/lib/Exception/UnknownFolderException.js new file mode 100644 index 00000000..a9cadbc9 --- /dev/null +++ b/src/deep-fs/lib/Exception/UnknownFolderException.js @@ -0,0 +1,20 @@ +/** + * Created by mgoria on 6/10/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when unknown FS folder is requested + */ +export class UnknownFolderException extends Exception { + /** + * @param {String} folderName + * @param {Array} folders + */ + constructor(folderName, folders) { + super(`Unknown folder "${folderName}". Defined folders are "${folders.join(', ')}"`); + } +} diff --git a/src/deep-fs/lib/FS.js b/src/deep-fs/lib/FS.js new file mode 100644 index 00000000..7f75e167 --- /dev/null +++ b/src/deep-fs/lib/FS.js @@ -0,0 +1,160 @@ +/** + * Created by mgoria on 5/28/15. + */ + +'use strict'; + +import S3FS from 's3fs'; +import Kernel from 'deep-kernel'; +import {UnknownFolderException} from './Exception/UnknownFolderException'; +import OS from 'os'; +import Path from 'path'; + +/** + * Deep FS implementation + */ +export class FS extends Kernel.ContainerAware { + /** + * Defines all class private properties + * + * @param {String} tmpFsBucket + * @param {String} publicFsBucket + * @param {String} systemFsBucket + */ + constructor(tmpFsBucket = null, publicFsBucket = null, systemFsBucket = null) { + super(); + + this._mountedFolders = {}; + this._buckets = {}; + + this._buckets[FS.TMP] = tmpFsBucket; + this._buckets[FS.PUBLIC] = publicFsBucket; + this._buckets[FS.SYSTEM] = systemFsBucket; + } + + /** + * @returns {string} + */ + static get TMP() { + return 'temp'; + } + + /** + * @returns {string} + */ + static get PUBLIC() { + return 'public'; + } + + /** + * @returns {string} + */ + static get SYSTEM() { + return 'system'; + } + + /** + * @returns {Array} + */ + static get FOLDERS() { + return [ + FS.TMP, + FS.PUBLIC, + FS.SYSTEM, + ]; + } + + /** + * Booting a certain service + * + * @param {Kernel} kernel + * @param {Function} callback + */ + boot(kernel, callback) { + let bucketsConfig = kernel.config.buckets; + + for (let folderKey in FS.FOLDERS) { + if (!FS.FOLDERS.hasOwnProperty(folderKey)) { + continue; + } + + let folder = FS.FOLDERS[folderKey]; + + this._buckets[folder] = `${bucketsConfig[folder].name}/${kernel.microservice().identifier}`; + } + + callback(); + } + + /** + * Returns mounted file system folder (tmp, public or system) + * + * @param name + * @returns {*} + */ + getFolder(name) { + if (FS.FOLDERS.indexOf(name) === -1) { + throw new UnknownFolderException(name, FS.FOLDERS); + } + + if (typeof this._mountedFolders[name] === 'undefined') { + if (this._localBackend) { + let rootFolder = FS._getTmpDir(this._buckets[name]); + + this._mountedFolders[name] = require('relative-fs').relativeTo(rootFolder); + + this._mountedFolders[name]._rootFolder = rootFolder; + } else { + let options = { + params: { + Bucket: this._buckets[name], + }, + }; + + this._mountedFolders[name] = new S3FS(this._buckets[name], options); + } + } + + return this._mountedFolders[name]; + } + + /** + * @param {String} subpath + * @returns {String} + * @private + */ + static _getTmpDir(subpath) { + let dir = Path.join(OS.tmpdir(), subpath); + + require('fs-extra').mkdirpSync(dir); + + return dir; + } + + /** + * Returns mounted tmp folder + * + * @returns {*} + */ + get tmp() { + return this.getFolder(FS.TMP); + } + + /** + * Returns mounted public folder + * + * @returns {*} + */ + get public() { + return this.getFolder(FS.PUBLIC); + } + + /** + * Returns mounted sys folder + * + * @returns {*} + */ + get system() { + return this.getFolder(FS.SYSTEM); + } +} diff --git a/src/deep-fs/lib/bootstrap.js b/src/deep-fs/lib/bootstrap.js new file mode 100644 index 00000000..e9089679 --- /dev/null +++ b/src/deep-fs/lib/bootstrap.js @@ -0,0 +1,9 @@ +/** + * Created by mgoria on 5/28/2015 + */ + +'use strict'; + +import {FS} from './FS'; + +let exports = module.exports = FS; diff --git a/src/deep-fs/package.json b/src/deep-fs/package.json new file mode 100644 index 00000000..30033008 --- /dev/null +++ b/src/deep-fs/package.json @@ -0,0 +1,69 @@ +{ + "name": "deep-fs", + "version": "1.0.1", + "description": "DEEP File System Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "FS", + "File System", + "Storage" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "1.0.*", + "deep-core": "1.0.*", + "s3fs": "2.0.*" + }, + "devDependencies": { + "relative-fs": "0.0.*", + "fs-extra": "0.23.*", + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/src/deep-fs/test/.gitkeep b/src/deep-fs/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-fs/test/FS.js b/src/deep-fs/test/FS.js new file mode 100644 index 00000000..c31bd660 --- /dev/null +++ b/src/deep-fs/test/FS.js @@ -0,0 +1,133 @@ +'use strict'; + +import chai from 'chai'; +import sinon from 'sinon'; +import sinonChai from 'sinon-chai'; +import {FS} from '../lib.compiled/FS'; +import {UnknownFolderException} from '../lib.compiled/Exception/UnknownFolderException'; +import Kernel from 'deep-kernel'; +chai.use(sinonChai); + +suite('FS', function() { + let fs = new FS('tempBucket', 'publicBucket', 'systemBucket'); + + test('Class FS exists in FS', function() { + chai.expect(typeof FS).to.equal('function'); + }); + + test('Check TMP static getter returns \'temp\'', function() { + chai.expect(FS.TMP).to.be.equal('temp'); + }); + + test('Check PUBLIC static getter returns \'public\'', function() { + chai.expect(FS.PUBLIC).to.be.equal('public'); + }); + + test('Check SYSTEM static getter returns \'system\'', function() { + chai.expect(FS.SYSTEM).to.be.equal('system'); + }); + + test('Check FOLDERS static getter returns array of levels', function() { + chai.expect(FS.FOLDERS.length).to.be.equal(3); + chai.expect(FS.FOLDERS).to.be.include(FS.TMP); + chai.expect(FS.FOLDERS).to.be.include(FS.PUBLIC); + chai.expect(FS.FOLDERS).to.be.include(FS.SYSTEM); + }); + + test('Check getFolder() method throws \'UnknownFolderException\' exception for invalid value', function() { + let error = null; + try { + fs.getFolder('invalidPath'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(UnknownFolderException); + }); + + test('Check getFolder() method returns valid value', function() { + let error = null; + let actualResult = null; + try { + actualResult = fs.getFolder(FS.TMP); + } catch (e) { + error = e; + } + + //todo - bucket issue here + //chai.expect(error).to.be.equal(null); + //chai.expect(actualResult).to.be.an.contains(FS.TMP); + }); + + test('Check _getTmpDir() static method returns valid value', function() { + let error = null; + let actualResult = null; + try { + actualResult = FS._getTmpDir(FS.TMP); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(actualResult).to.be.an.contains(FS.TMP); + + }); + + test('Check tmp() getter returns valid mounted tmp folder', function() { + let error = null; + let actualResult = null; + try { + actualResult = fs.tmp; + } catch (e) { + error = e; + } + + // todo - AssertionError: expected [Error: bucket is required] to equal null + //chai.expect(error).to.be.equal(null); + //chai.expect(actualResult).to.be.an.contains(FS.TMP); + }); + + test('Check public() getter returns valid mounted tmp folder', function() { + let error = null; + let actualResult = null; + try { + actualResult = fs.public; + } catch (e) { + error = e; + } + + // todo - AssertionError: expected [Error: bucket is required] to equal null + //chai.expect(error).to.be.equal(null); + //chai.expect(actualResult).to.be.an.contains(FS.PUBLIC); + }); + + test('Check system() getter returns valid mounted tmp folder', function() { + let error = null; + let actualResult = null; + try { + actualResult = fs.system; + } catch (e) { + error = e; + } + + // todo - AssertionError: expected [Error: bucket is required] to equal null + //chai.expect(error).to.be.equal(null); + //chai.expect(actualResult).to.be.an.contains(FS.SYSTEM); + }); + + test('Check boot() method boots a certain service', function() { + let error = null; + let actualResult = null; + let deepServices = {serviceKey: 'ServiceName'}; + let spyCallback = sinon.spy(); + let kernel = null; + try { + kernel = new Kernel(deepServices, Kernel.FRONTEND_CONTEXT); + kernel.config.buckets = fs._buckets; + actualResult = fs.boot(kernel, spyCallback); + } catch (e) { + error = e; + } + }); +}); diff --git a/src/deep-kernel/.gitignore b/src/deep-kernel/.gitignore new file mode 100644 index 00000000..278bf823 --- /dev/null +++ b/src/deep-kernel/.gitignore @@ -0,0 +1,105 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log diff --git a/src/deep-kernel/.npmignore b/src/deep-kernel/.npmignore new file mode 100644 index 00000000..8219039a --- /dev/null +++ b/src/deep-kernel/.npmignore @@ -0,0 +1,4 @@ +test +tests +/lib +.gitignore \ No newline at end of file diff --git a/src/deep-kernel/README.md b/src/deep-kernel/README.md new file mode 100644 index 00000000..ba58e777 --- /dev/null +++ b/src/deep-kernel/README.md @@ -0,0 +1,83 @@ +deep-kernel +=========== + +[![NPM Version](https://img.shields.io/npm/v/deep-kernel.svg)](https://npmjs.org/package/deep-kernel) +[![Build Status](https://travis-ci.org/MitocGroup/deep-framework.svg)](https://travis-ci.org/MitocGroup/deep-framework) +[![Coverage Status](https://coveralls.io/repos/MitocGroup/deep-framework/badge.svg?service=github&t=3QEkFa)](https://coveralls.io/github/MitocGroup/deep-framework) +[![Codacy Badge](https://api.codacy.com/project/badge/630b5f0024334dc09fd0299b1a8a0ed5)](https://www.codacy.com/app/MitocGroup/deep-framework) +[![API Docs](http://docs.deep.mg/deep-kernel/badge.svg)](http://docs.deep.mg/deep-kernel/) + +[deep-kernel](https://www.npmjs.com/package/deep-kernel) is a node.js library, part of [DEEP Framework](https://github.com/MitocGroup/deep-framework). + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-ecosystem.png) + +Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less. + +## DEEP for Businesses [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### User Guide Documentation (to be updated later) + +DEEP is enabling small and medium businesses, as well as enterprises to: +- Rent applications on a monthly basis by needed functionality from [DEEP Marketplace](https://www.deep.mg) +- Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS +- Pay only for subscribed applications and stop paying when unsubscribing and not using anymore +- Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences +- Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP for Developers [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### [API Guide Documentation](http://docs.deep.mg) +#### [Developer Guide Documentation](https://github.com/MitocGroup/deep-framework/blob/master/docs/index.md) + +DEEP is enabling developers and architects to: +- Design microservices architecture on top of serverless environments from cloud providers like AWS +- Build distributed software that combines and manages hardware and software in the same microservice +- Use the framework's abstracted approach to build applications that could be cloud agnostic +- Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) +- Run in the cloud the software that was built by distributed teams and served self-service in large organizations +- Monetize their work of art by uploading microservices to [DEEP Marketplace](https://www.deep.mg) + +> [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with [DEEP Microservices HelloWorld](https://github.com/MitocGroup/deep-microservices-helloworld) or [DEEP Microservices ToDo App](https://github.com/MitocGroup/deep-microservices-todo-app), as well as [DEEP CLI](https://www.npmjs.com/package/deepify) (aka `deepify`). + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP Architecture on AWS [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-architecture.png) + +DEEP is using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries: + +DEEP Abstracted Library | Description | AWS Abstracted Service(s) +-------------|---------------------|-------------------------- +[deep-asset](http://docs.deep.mg/deep-asset) | Assets Management Library | Amazon S3 +[deep-cache](http://docs.deep.mg/deep-cache) | Cache Management Library | Amazon ElastiCache +[deep-core](http://docs.deep.mg/deep-core) | Core Management Library | - +[deep-db](http://docs.deep.mg/deep-db) | Database Management Library | Amazon DynamoDB, Amazon SQS +[deep-di](http://docs.deep.mg/deep-di) | Dependency Injection Management Library | - +[deep-event](http://docs.deep.mg/deep-event) | Events Management Library | Amazon Kinesis +[deep-fs](http://docs.deep.mg/deep-fs) | File System Management Library | Amazon S3 +[deep-kernel](http://docs.deep.mg/deep-kernel) | Kernel Management Library | - +[deep-log](http://docs.deep.mg/deep-log) | Logs Management Library | Amazon CloudWatch Logs +[deep-notification](http://docs.deep.mg/deep-notification) | Notifications Management Library | Amazon SNS +[deep-resource](http://docs.deep.mg/deep-resource) | Resouces Management Library | AWS Lambda, Amazon API Gateway +[deep-security](http://docs.deep.mg/deep-security) | Security Management Library | AWS IAM, Amazon Cognito +[deep-validation](http://docs.deep.mg/deep-validation) | Validation Management Library | - + +## Feedback + +We are eager to get your feedback, so please use whatever communication channel you prefer: +- [github issues](https://github.com/MitocGroup/deep-framework/issues) +- [gitter chat room](https://gitter.im/MitocGroup/deep-framework) +- [deep email address](mailto:feedback@deep.mg) + +## License + +This repository can be used under the MIT license. +> See [LICENSE](https://github.com/MitocGroup/deep-framework/blob/master/LICENSE) for more details. + +## Sponsors + +This repository is being sponsored by: +> [Mitoc Group](http://www.mitocgroup.com) diff --git a/src/deep-kernel/lib/ContainerAware.js b/src/deep-kernel/lib/ContainerAware.js new file mode 100644 index 00000000..ac0e90e1 --- /dev/null +++ b/src/deep-kernel/lib/ContainerAware.js @@ -0,0 +1,113 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import {Injectable as MicroserviceInjectable} from './Microservice/Injectable'; +import {Kernel} from './Kernel'; + +/** + * Container aware instance + */ +export class ContainerAware extends MicroserviceInjectable { + constructor() { + super(); + + this._container = null; + this._localBackend = false; + } + + /** + * @returns {Boolean} + */ + get localBackend() { + return this._localBackend; + } + + /** + * @param {Boolean} state + */ + set localBackend(state) { + this._localBackend = state; + } + + /** + * @returns {String} + */ + get name() { + return this.constructor.name.toLowerCase(); + } + + /** + * @returns {Object} + */ + get service() { + return this; + } + + /** + * Booting a certain service + * + * @param {Kernel} kernel + * @param {Function} callback + */ + boot(kernel, callback) { + // @todo: override in child service + callback(); + } + + /** + * @param {Instance} microservice + * @returns {Injectable} + */ + bind(microservice) { + // @todo: find more smart way of doing this... + if (typeof microservice === 'string') { + microservice = this._container.get(Kernel.KERNEL).microservice(microservice); + } + + return super.bind(microservice); + } + + /** + * @param {String} object + * @returns {String} + * @private + */ + _resolvePath(object) { + if (typeof object === 'string' && object.indexOf('@') === 0) { + let parts = object.match(/^@\s*([^:]+)\s*:\s*([^\s]+)\s*$/); + + if (parts.length === 3) { + this.bind(parts[1]); + + return parts[2]; + } + } + + return object; + } + + /** + * @param {DI} container + */ + set container(container) { + this._container = container; + } + + /** + * @returns {DI} + */ + get container() { + return this._container; + } + + /** + * @param {Array} args + * @returns {*} + */ + get(...args) { + return this._container.get(...args); + } +} diff --git a/src/deep-kernel/lib/Exception/Exception.js b/src/deep-kernel/lib/Exception/Exception.js new file mode 100644 index 00000000..b2108fc6 --- /dev/null +++ b/src/deep-kernel/lib/Exception/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Core from 'deep-core'; + +/** + * Thrown when any kernel exception occurs + */ +export class Exception extends Core.Exception.Exception { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-kernel/lib/Exception/MissingMicroserviceException.js b/src/deep-kernel/lib/Exception/MissingMicroserviceException.js new file mode 100644 index 00000000..4a601540 --- /dev/null +++ b/src/deep-kernel/lib/Exception/MissingMicroserviceException.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when missing requested microservice + */ +export class MissingMicroserviceException extends Exception { + /** + * @param {String} microserviceIdentifier + */ + constructor(microserviceIdentifier) { + super(`Missing microservice ${microserviceIdentifier} in Kernel container`); + } +} diff --git a/src/deep-kernel/lib/Kernel.js b/src/deep-kernel/lib/Kernel.js new file mode 100644 index 00000000..098c589a --- /dev/null +++ b/src/deep-kernel/lib/Kernel.js @@ -0,0 +1,369 @@ +/** + * Created by mgoria on 5/26/15. + */ + +'use strict'; + +import Core from 'deep-core'; +import DI from 'deep-di'; +import {Exception} from './Exception/Exception'; +import {Instance as Microservice} from './Microservice/Instance'; +import {MissingMicroserviceException} from './Exception/MissingMicroserviceException'; +import {Injectable as MicroserviceInjectable} from './Microservice/Injectable'; +import {ContainerAware} from './ContainerAware'; +import FileSystem from 'fs'; +import WaitUntil from 'wait-until'; + +/** + * Deep application kernel + */ +export class Kernel { + /** + * @param {Array} deepServices + * @param {String} context + */ + constructor(deepServices, context) { + if (Kernel.ALL_CONTEXTS.indexOf(context) === -1) { + throw new Exception(`Undefined context "${context}"`); + } + + this._config = {}; + this._services = deepServices; + this._context = context; + this._env = null; + this._container = new DI(); + this._isLoaded = false; + } + + /** + * @returns {Boolean} + */ + get isLoaded() { + return this._isLoaded; + } + + /** + * @param {String} identifier + * @returns {Microservice} + */ + microservice(identifier) { + if (typeof identifier === 'undefined') { + identifier = this._config.microserviceIdentifier; + } + + for (let microserviceKey in this.microservices) { + if (!this.microservices.hasOwnProperty(microserviceKey)) { + continue; + } + + let microservice = this.microservices[microserviceKey]; + + if (microservice.identifier === identifier) { + return microservice; + } + } + + throw new MissingMicroserviceException(identifier); + } + + /** + * @param {String} jsonFile + * @param {Function} callback + * @returns {Kernel} + */ + loadFromFile(jsonFile, callback) { + // @todo: remove AWS changes the way the things run + // This is used because of AWS Lambda + // context sharing after a cold start + if (this._isLoaded) { + callback(this); + return this; + } + + if (this.isBackend) { + FileSystem.readFile(jsonFile, 'utf8', function(error, data) { + if (error) { + throw new Exception(`Failed to load kernel config from ${jsonFile} (${error})`); + } + + this.load(JSON.parse(data), callback); + }.bind(this)); + } else { // @todo: get rid of native code... + var client = new XMLHttpRequest(); + + client.open('GET', jsonFile); + client.onreadystatechange = function(event) { + if (client.readyState === 4) { + if (client.status !== 200) { + throw new Exception(`Failed to load kernel config from ${jsonFile}`); + } + + this.load(JSON.parse(client.responseText), callback); + } + }.bind(this); + + client.send(); + } + + return this; + } + + /** + * Loads all Kernel dependencies + * + * @param {Object} globalConfig + * @param {Function} callback + */ + load(globalConfig, callback) { + // @todo: remove AWS changes the way the things run + // This is used because of AWS Lambda + // context sharing after a cold start + if (this._isLoaded) { + callback(this); + return this; + } + + let originalCallback = callback; + + callback = function(kernel) { + this._isLoaded = true; + + originalCallback(kernel); + }.bind(this); + + this._config = globalConfig; + + this._buildContainer(callback); + + return this; + } + + /** + * @param {Array} args + * @returns {*} + */ + get(...args) { + return this._container.get(...args); + } + + /** + * @returns {Array} + */ + get services() { + return this._services; + } + + /** + * @returns {DI} + */ + get container() { + return this._container; + } + + /** + * @returns {Boolean} + */ + get isFrontend() { + return this._context === Kernel.FRONTEND_CONTEXT; + } + + /** + * @returns {Boolean} + */ + get isLocalhost() { + return this.isFrontend + && [ + 'localhost', '127.0.0.1', + '0.0.0.0', '::1', + ].indexOf(window.location.hostname) !== -1; + } + + /** + * @returns {Boolean} + */ + get isBackend() { + return this._context === Kernel.BACKEND_CONTEXT; + } + + /** + * @returns {String} + */ + get buildId() { + return this._config.deployId || ''; + } + + /** + * @returns {String} + */ + get context() { + return this._context; + } + + /** + * @returns {String} + */ + get env() { + return this._env; + } + + /** + * @returns {Object} + */ + get config() { + // @todo - create a class DeepConfig or smth, that will hold global config and expose shortcuts to different options + return this._config; + } + + /** + * @returns {Microservice[]} + */ + get microservices() { + return this._container.get(Kernel.MICROSERVICES); + } + + /** + * Loads all parameters and services into DI container + * + * @param {Function} callback + */ + _buildContainer(callback) { + this._env = this._config.env; + + this._container.addParameter( + Kernel.KERNEL, + this + ); + + this._container.addParameter( + Kernel.CONTEXT, + { + environment: this._env, + isFrontend: this.isFrontend, + isBackend: this.isBackend, + } + ); + + this._container.addParameter( + Kernel.MICROSERVICES, + Microservice.createVector(this._config) + ); + + this._container.addParameter( + Kernel.CONFIG, + this._config + ); + + let bootingServices = 0; + + for (let serviceKey in this._services) { + if (!this._services.hasOwnProperty(serviceKey)) { + continue; + } + + let serviceInstance = new this._services[serviceKey](); + + if (!serviceInstance instanceof ContainerAware) { + let serviceType = typeof serviceInstance; + + throw new Exception(`Service ${serviceType} must be Kernel.ContainerAware instance`); + } + + bootingServices++; + + serviceInstance.container = this._container; + serviceInstance.localBackend = Core.IS_DEV_SERVER; + serviceInstance.boot(this, function() { + bootingServices--; + }.bind(this)); + + this._container.addService( + serviceInstance.name, + serviceInstance.service + ); + } + + WaitUntil() + .interval(5) + .times(999999) // @todo: get rid of magic here... + .condition(function(cb) { + process.nextTick(function() { + cb(bootingServices <= 0); + }.bind(this)); + }).done(function() { + callback(this); + }.bind(this)); + } + + /** + * @returns {MicroserviceInjectable} + */ + static get MicroserviceInjectable() { + return MicroserviceInjectable; + } + + /** + * @returns {ContainerAware} + */ + static get ContainerAware() { + return ContainerAware; + } + + /** + * @returns {String} + */ + static get FRONTEND_BOOTSTRAP_VECTOR() { + return 'deep_frontend_bootstrap_vector'; + } + + /** + * @returns {String} + */ + static get CONFIG() { + return 'deep_config'; + } + + /** + * @returns {String} + */ + static get KERNEL() { + return 'deep_kernel'; + } + + /** + * @returns {String} + */ + static get CONTEXT() { + return 'deep_context'; + } + + /** + * @returns {String} + */ + static get MICROSERVICES() { + return 'deep_microservices'; + } + + /** + * @returns {String} + */ + static get FRONTEND_CONTEXT() { + return 'frontend-ctx'; + } + + /** + * @returns {String} + */ + static get BACKEND_CONTEXT() { + return 'backend-ctx'; + } + + /** + * @returns {Array} + */ + static get ALL_CONTEXTS() { + return [ + Kernel.FRONTEND_CONTEXT, + Kernel.BACKEND_CONTEXT, + ]; + } +} diff --git a/src/deep-kernel/lib/Microservice/Exception/MissingWorkingMicroserviceException.js b/src/deep-kernel/lib/Microservice/Exception/MissingWorkingMicroserviceException.js new file mode 100644 index 00000000..c45ad7f1 --- /dev/null +++ b/src/deep-kernel/lib/Microservice/Exception/MissingWorkingMicroserviceException.js @@ -0,0 +1,16 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import {Exception} from '../../Exception/Exception'; + +/** + * Thrown when no working microservice set + */ +export class MissingWorkingMicroserviceException extends Exception { + constructor() { + super('Missing working microservice from Kernel.MicroserviceInjectable'); + } +} diff --git a/src/deep-kernel/lib/Microservice/Injectable.js b/src/deep-kernel/lib/Microservice/Injectable.js new file mode 100644 index 00000000..58f4b049 --- /dev/null +++ b/src/deep-kernel/lib/Microservice/Injectable.js @@ -0,0 +1,50 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import {Instance} from './Instance'; +import Core from 'deep-core'; +import {MissingWorkingMicroserviceException} from './Exception/MissingWorkingMicroserviceException'; + +/** + * Microservice injectable object + */ +export class Injectable { + constructor() { + this._microservice = null; + } + + /** + * @param {Instance} microservice + * @returns {Injectable} + */ + bind(microservice) { + this.microservice = microservice; + + return this; + } + + /** + * @returns {Instance} + */ + get microservice() { + if (this._microservice === null) { + throw new MissingWorkingMicroserviceException(); + } + + return this._microservice; + } + + /** + * @param {Instance} instance + */ + set microservice(instance) { + if (!(instance instanceof Instance)) { + throw new Core.Exception.InvalidArgumentException(microservice, 'Microservice'); + } + + this._microservice = instance; + } +} diff --git a/src/deep-kernel/lib/Microservice/Instance.js b/src/deep-kernel/lib/Microservice/Instance.js new file mode 100644 index 00000000..34bc1038 --- /dev/null +++ b/src/deep-kernel/lib/Microservice/Instance.js @@ -0,0 +1,95 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Core from 'deep-core'; +import {Injectable} from './Injectable'; + +/** + * Microservice instance class + */ +export class Instance { + /** + * @param {String} identifier + * @param {Object} rawResources + */ + constructor(identifier, rawResources) { + this._isRoot = false; + this._rawResources = rawResources; + this._identifier = identifier; + } + + /** + * @param {Object} globalConfig + * @returns {Instance[]} + */ + static createVector(globalConfig) { + let vector = []; + + for (let identifier in globalConfig.microservices) { + if (!globalConfig.microservices.hasOwnProperty(identifier)) { + continue; + } + + let microservice = globalConfig.microservices[identifier]; + + let microserviceObject = new Instance(identifier, microservice.resources); + microserviceObject.isRoot = microservice.isRoot; + + vector.push(microserviceObject); + } + + return vector; + } + + /** + * @param {Object} objectInstance + * @return {Object} + */ + inject(objectInstance) { + if (!(objectInstance instanceof Injectable)) { + throw new Core.Exception.InvalidArgumentException(objectInstance, 'deep-kernel.Injectable'); + } + + objectInstance.microservice = this; + + return objectInstance; + } + + /** + * @returns {String} + */ + toString() { + return this._identifier; + } + + /** + * @returns {Object} + */ + get rawResources() { + return this._rawResources; + } + + /** + * @returns {String} + */ + get identifier() { + return this._identifier; + } + + /** + * @param {Boolean} state + */ + set isRoot(state) { + this._isRoot = state; + } + + /** + * @returns {Boolean} + */ + get isRoot() { + return this._isRoot; + } +} diff --git a/src/deep-kernel/lib/bootstrap.js b/src/deep-kernel/lib/bootstrap.js new file mode 100644 index 00000000..0356d42b --- /dev/null +++ b/src/deep-kernel/lib/bootstrap.js @@ -0,0 +1,11 @@ +/** + * Created by AlexanderC on 5/22/15. + * + * Bootstrap file loaded by npm as main + */ + +'use strict'; + +import {Kernel} from './Kernel'; + +let exports = module.exports = Kernel; diff --git a/src/deep-kernel/package.json b/src/deep-kernel/package.json new file mode 100644 index 00000000..28b520ee --- /dev/null +++ b/src/deep-kernel/package.json @@ -0,0 +1,69 @@ +{ + "name": "deep-kernel", + "version": "1.0.1", + "description": "DEEP Kernel Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Kernel" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Veaceslav Cotruta", + "email": "vcotruta@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-di": "1.0.*", + "deep-core": "1.0.*", + "wait-until": "0.0.*" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/src/deep-kernel/test/.gitkeep b/src/deep-kernel/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-kernel/test/ContainerAware.js b/src/deep-kernel/test/ContainerAware.js new file mode 100644 index 00000000..2df24bc5 --- /dev/null +++ b/src/deep-kernel/test/ContainerAware.js @@ -0,0 +1,99 @@ +'use strict'; + +import chai from 'chai'; +import sinon from 'sinon'; +import sinonChai from 'sinon-chai'; +import {ContainerAware} from '../lib.compiled/ContainerAware'; + +chai.use(sinonChai); + +suite('ContainerAware', function() { + + let containerAware = new ContainerAware(); + + test('Class ContainerAware exists in ContainerAware', function() { + chai.expect(typeof ContainerAware).to.equal('function'); + }); + + test('Check localBackend getter returns valid default value [false]', function() { + chai.assert.isFalse(containerAware.localBackend); + }); + + test('Check container getter returns valid default value [null]', function() { + chai.assert.isNull(containerAware.container); + }); + + test('Check service getter returns valid value [this]', function() { + chai.expect(containerAware.service).to.equal(containerAware); + }); + + test('Check localBackend setter sets value correctly', function() { + containerAware.localBackend = true; + chai.assert.isTrue(containerAware.localBackend); + }); + + test('Check _localBackend setter sets object correctly', function() { + let _localBackend = {LocalBackend: true}; + containerAware.localBackend = _localBackend; + chai.expect(containerAware.localBackend).to.equal(_localBackend); + }); + + test('Check name() method returns lower case class name', function() { + chai.expect(containerAware.name).to.equal('containeraware'); + }); + + test('Check boot() method executes callback', function() { + var spyCallback = sinon.spy(); + containerAware.boot('kernel', spyCallback); + chai.expect(spyCallback).to.have.been.calledWith(); + }); + + test('Check _resolvePath() method for string', function() { + let inputData = '@mitocgroup.test:resource'; + let error = null; + let actualResult = null; + try { + actualResult = containerAware._resolvePath(inputData); + } catch (e) { + error = e; + } + }); + + test('Check _resolvePath() method for object', function() { + let inputData = {testKey: 'testValue'}; + let error = null; + let actualResult = null; + try { + actualResult = containerAware._resolvePath(inputData); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(actualResult).to.be.eql(inputData); + }); + + test('Check container setter sets object correctly', function() { + let container = { + _bottle: { + container: { + }, + id: 0, + }, + testKey: 'test', + }; + containerAware.container = container; + chai.expect(containerAware.container).to.eql(container); + }); + + test('Check bind() method executes super.bind()', function() { + let inputData = 'testMicroservice'; + let error = null; + let actualResult = null; + try { + actualResult = containerAware.bind(inputData); + } catch (e) { + error = e; + } + }); +}); \ No newline at end of file diff --git a/src/deep-kernel/test/Kernel.js b/src/deep-kernel/test/Kernel.js new file mode 100644 index 00000000..f64c5025 --- /dev/null +++ b/src/deep-kernel/test/Kernel.js @@ -0,0 +1,244 @@ +'use strict'; + +import chai from 'chai'; +import sinon from 'sinon'; +import sinonChai from 'sinon-chai'; +import {Kernel} from '../lib.compiled/Kernel'; +import {Exception} from '../lib.compiled/Exception/Exception'; +import {MissingMicroserviceException} from '../lib.compiled/Exception/MissingMicroserviceException'; +import DI from 'deep-di'; + +chai.use(sinonChai); + +suite('Kernel', function() { + let deepServices = { serviceName: function() { return 'testService'; }, }; + let kernel = null; + + test('Class Kernel exists in Kernel', function() { + chai.expect(typeof Kernel).to.equal('function'); + }); + + test('Check constructor of Kernel throws \'Exception\' exception for invalid context', function() { + let error = null; + let context = 'invalid context'; + try { + kernel = new Kernel(deepServices, context); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(Exception); + chai.expect(error.message).to.be.equal(`Undefined context "${context}"`); + }); + + test('Check instance of Kernel was created successfully', function() { + let error = null; + try { + kernel = new Kernel(deepServices, Kernel.FRONTEND_CONTEXT); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(kernel).to.be.an.instanceof(Kernel); + chai.assert.instanceOf(kernel, Kernel, 'kernel is an instance of Kernel'); + }); + + test('Check constructor sets _config', function() { + chai.expect(kernel.config).to.be.eql({}); + }); + + test('Check constructor sets _services', function() { + chai.expect(kernel.services).to.be.eql(deepServices); + }); + + test('Check constructor sets _context', function() { + chai.expect(kernel.context).to.be.equal(Kernel.FRONTEND_CONTEXT); + }); + + test('Check constructor sets _env', function() { + chai.expect(kernel.env).to.be.equal(null); + }); + + test('Check constructor sets _isLoaded', function() { + chai.expect(kernel.isLoaded).to.be.equal(false); + }); + + test('Check constructor sets _container', function() { + chai.expect(typeof kernel.container).to.be.equal('object'); + chai.assert.instanceOf(kernel.container, DI, 'kernel is an instance of DI'); + }); + + test('Check isBackend getter returns false', function() { + chai.expect(kernel.isBackend).to.be.equal(false); + }); + + test('Check isFrontend getter returns true', function() { + chai.expect(kernel.isFrontend).to.be.equal(true); + }); + + test('Check isLocalhost getter returns valid object', function() { + //todo - ReferenceError: window is not defined + //chai.expect(kernel.isLocalhost).to.be.eql({}); + }); + + test('Check FRONTEND_BOOTSTRAP_VECTOR static getter returns value \'deep_frontend_bootstrap_vector\'', function() { + chai.expect(Kernel.FRONTEND_BOOTSTRAP_VECTOR).to.be.equal('deep_frontend_bootstrap_vector'); + }); + + test('Check CONFIG static getter returns value \'deep_config\'', function() { + chai.expect(Kernel.CONFIG).to.be.equal('deep_config'); + }); + + test('Check KERNEL static getter returns value \'deep_kernel\'', function() { + chai.expect(Kernel.KERNEL).to.be.equal('deep_kernel'); + }); + + test('Check CONTEXT static getter returns value \'deep_context\'', function() { + chai.expect(Kernel.CONTEXT).to.be.equal('deep_context'); + }); + + test('Check MICROSERVICES static getter returns value \'deep_microservices\'', function() { + chai.expect(Kernel.MICROSERVICES).to.be.equal('deep_microservices'); + }); + + test('Check FRONTEND_CONTEXT static getter returns value \'frontend-ctx\'', function() { + chai.expect(Kernel.FRONTEND_CONTEXT).to.be.equal('frontend-ctx'); + }); + + test('Check BACKEND_CONTEXT static getter returns value \'backend-ctx\'', function() { + chai.expect(Kernel.BACKEND_CONTEXT).to.be.equal('backend-ctx'); + }); + + test('Check ALL_CONTEXTS static getter returns valid array', function() { + chai.expect(Kernel.ALL_CONTEXTS.length).to.be.equal(2); + chai.expect(Kernel.ALL_CONTEXTS).to.be.contains(Kernel.FRONTEND_CONTEXT); + chai.expect(Kernel.ALL_CONTEXTS).to.be.contains(Kernel.BACKEND_CONTEXT); + }); + + test('Check buildId getter returns value \'\'', function() { + chai.expect(kernel.buildId).to.be.equal(''); + }); + + test('Check MicroserviceInjectable static getter return MicroserviceInjectable class', function() { + chai.expect(typeof Kernel.MicroserviceInjectable).to.be.equal('function'); + }); + + test('Check ContainerAware static getter return ContainerAware class', function() { + chai.expect(typeof Kernel.ContainerAware).to.be.equal('function'); + }); + + test('Check load() _isLoaded=true', function() { + let error = null; + let spyCallback = sinon.spy(); + kernel._isLoaded = true; + + try { + kernel.load({}, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.calledWith(kernel); + }); + + test('Check load() !_isLoaded', function() { + let configData = { + microservices: { + deepRoot: 'CoreRoot', + deepAuth: 'Auth', + deepBilling: 'Billing', + }, + env: 'dev', + }; + let error = null; + let spyCallback = sinon.spy(); + kernel._isLoaded = false; + + try { + kernel.load(configData, spyCallback); + } catch (e) { + error = e; + } + }); + + test('Check microservice() method throws \'MissingMicroserviceException\'exception for invalid identifier', function() { + let error = null; + try { + kernel.microservice(); + } catch (e) { + error = e; + } + + //todo - TBD + chai.expect(error).to.be.not.equal(null); + //chai.expect(error).to.be.an.instanceof(MissingMicroserviceException); + //chai.expect(error.message).to.be.equal(`Undefined context`); + }); + + test('Check get() method returns valid statement', function() { + let error = null; + let actualResult = null; + try { + actualResult = kernel.get(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(actualResult).to.be.not.eql({}); + }); + + test('Check _buildContainer() method returns valid statement', function() { + let error = null; + let actualResult = null; + let expectedResult = {}; + let spyCallback = sinon.spy(); + try { + actualResult = kernel._buildContainer(spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(actualResult).to.be.not.eql(expectedResult); + }); + + test('Check loadFromFile() _isLoaded=true', function() { + let error = null; + let spyCallback = sinon.spy(); + kernel._isLoaded = true; + chai.expect(kernel._isLoaded).to.be.equal(true); + + try { + kernel.loadFromFile('no file', spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.calledWith(kernel); + }); + + + test('Check loadFromFile() !_isLoaded', function() { + let error = null; + let spyCallback = sinon.spy(); + kernel._isLoaded = false; + chai.expect(kernel._isLoaded).to.be.equal(false); + try { + kernel.loadFromFile('no file', spyCallback); + } catch (e) { + error = e; + } + + //todo - TBD + // AssertionError: expected [ReferenceError: XMLHttpRequest is not defined] to equal null + //chai.expect(error).to.be.equal(null); + //chai.expect(spyCallback).to.have.been.called; + //chai.expect(error).to.be.an.instanceof(MissingMicroserviceException); + //chai.expect(error.message).to.be.equal(`Undefined context`); + }); +}); \ No newline at end of file diff --git a/src/deep-kernel/test/Microservice/Injectable.js b/src/deep-kernel/test/Microservice/Injectable.js new file mode 100644 index 00000000..a2614372 --- /dev/null +++ b/src/deep-kernel/test/Microservice/Injectable.js @@ -0,0 +1,74 @@ +'use strict'; + +import chai from 'chai'; +import {Injectable} from '../../lib.compiled/Microservice/Injectable'; +import {Instance} from '../../lib.compiled/Microservice/Instance'; +import {MissingWorkingMicroserviceException} from '../../lib.compiled/Microservice/Exception/MissingWorkingMicroserviceException'; +import Core from 'deep-core'; + +suite('Microservice/Injectable', function() { + let injectable = new Injectable(); + + test('Class Injectable exists in Microservice/Injectable', function() { + chai.expect(typeof Injectable).to.equal('function'); + }); + + test('Check constructor sets _config', function() { + chai.expect(injectable._microservice).to.be.equal(null); + }); + + test('Check microservice getter throws \'MissingWorkingMicroserviceException\' ' + + 'exception for _microservice === null', function() { + let error = null; + let actualResult = null; + try { + actualResult = injectable.microservice; + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(MissingWorkingMicroserviceException); + chai.expect(error.message).to.be.equal('Missing working microservice from Kernel.MicroserviceInjectable'); + }); + + test('Check microservice setter throws \'Core.Exception.InvalidArgumentException\' exception', function() { + let error = null; + let instance = 'invalidInstance'; + try { + injectable.microservice = instance; + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check microservice setter sets _microservice', function() { + let error = null; + let instance = null; + try { + instance = new Instance(); + injectable.microservice = instance; + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(injectable.microservice).to.be.equal(instance); + }); + + test('Check bind() method sets _microservice', function() { + let error = null; + let instance = null; + try { + instance = new Instance('identifier', 'rawResources'); + injectable.bind(instance); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(injectable.microservice).to.be.equal(instance); + }); +}); diff --git a/src/deep-kernel/test/Microservice/Instance.js b/src/deep-kernel/test/Microservice/Instance.js new file mode 100644 index 00000000..46ce0bd7 --- /dev/null +++ b/src/deep-kernel/test/Microservice/Instance.js @@ -0,0 +1,86 @@ +'use strict'; + +import chai from 'chai'; +import {Instance} from '../../lib.compiled/Microservice/Instance'; +import {Injectable} from '../../lib.compiled/Microservice/Injectable'; +import Core from 'deep-core'; + +suite('Microservice/Instance', function() { + let rawResources = 'rawResources'; + let identifier = 'identifier'; + let instance = new Instance(identifier, rawResources); + + test('Class Instance exists in Microservice/Instance', function() { + chai.expect(typeof Instance).to.equal('function'); + }); + + test('Check constructor sets _isRoot=false', function() { + chai.expect(instance.isRoot).to.be.equal(false); + }); + + test('Check constructor sets _identifier', function() { + chai.expect(instance.identifier).to.be.equal(identifier); + }); + + test('Check constructor sets _rawResources', function() { + chai.expect(instance.rawResources).to.be.equal(rawResources); + }); + + test('Check toString() method returns _identifier', function() { + chai.expect(instance.toString()).to.be.equal(instance.identifier); + }); + + test('Check isRoot getter/setter', function() { + chai.expect(instance.isRoot).to.be.equal(false); + instance.isRoot = true; + chai.expect(instance.isRoot).to.be.equal(true); + instance.isRoot = false; + chai.expect(instance.isRoot).to.be.equal(false); + }); + + test('Check createVector() static method returns valid vector', function() { + let globalConfig = { + microservices: { + deepRoot: 'CoreRoot', + deepAuth: 'Auth', + deepBilling: 'Billing', + }, + }; + let actualResult = Instance.createVector(globalConfig); + + //check if all items are objects of Instance + chai.expect(actualResult.length).to.be.equal(3); + for (let result of actualResult) { + chai.assert.instanceOf(result, Instance, ' is an instance of Instance'); + } + }); + + test('Check inject() method throws \'Core.Exception.InvalidArgumentException\' exception', function() { + let error = null; + let invalidInstance = 'invalidInstance'; + try { + instance.inject(invalidInstance); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(Core.Exception.InvalidArgumentException); + chai.expect(error.message).to.be.contains('Invalid argument'); + }); + + test('Check inject() method returns valid object', function() { + let error = null; + let validInstance = new Injectable(); + let actualResult = null; + try { + actualResult = instance.inject(validInstance); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.assert.instanceOf(actualResult, Injectable, 'is an instance of Injectable'); + chai.assert.instanceOf(actualResult.microservice, Instance, 'is an instance of Instance'); + }); +}); \ No newline at end of file diff --git a/src/deep-log/.gitignore b/src/deep-log/.gitignore new file mode 100644 index 00000000..278bf823 --- /dev/null +++ b/src/deep-log/.gitignore @@ -0,0 +1,105 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log diff --git a/src/deep-log/.npmignore b/src/deep-log/.npmignore new file mode 100644 index 00000000..8219039a --- /dev/null +++ b/src/deep-log/.npmignore @@ -0,0 +1,4 @@ +test +tests +/lib +.gitignore \ No newline at end of file diff --git a/src/deep-log/README.md b/src/deep-log/README.md new file mode 100644 index 00000000..7fcbe11b --- /dev/null +++ b/src/deep-log/README.md @@ -0,0 +1,83 @@ +deep-log +======== + +[![NPM Version](https://img.shields.io/npm/v/deep-log.svg)](https://npmjs.org/package/deep-log) +[![Build Status](https://travis-ci.org/MitocGroup/deep-framework.svg)](https://travis-ci.org/MitocGroup/deep-framework) +[![Coverage Status](https://coveralls.io/repos/MitocGroup/deep-framework/badge.svg?service=github&t=3QEkFa)](https://coveralls.io/github/MitocGroup/deep-framework) +[![Codacy Badge](https://api.codacy.com/project/badge/630b5f0024334dc09fd0299b1a8a0ed5)](https://www.codacy.com/app/MitocGroup/deep-framework) +[![API Docs](http://docs.deep.mg/deep-log/badge.svg)](http://docs.deep.mg/deep-log/) + +[deep-log](https://www.npmjs.com/package/deep-log) is a node.js library, part of [DEEP Framework](https://github.com/MitocGroup/deep-framework). + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-ecosystem.png) + +Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less. + +## DEEP for Businesses [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### User Guide Documentation (to be updated later) + +DEEP is enabling small and medium businesses, as well as enterprises to: +- Rent applications on a monthly basis by needed functionality from [DEEP Marketplace](https://www.deep.mg) +- Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS +- Pay only for subscribed applications and stop paying when unsubscribing and not using anymore +- Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences +- Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP for Developers [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### [API Guide Documentation](http://docs.deep.mg) +#### [Developer Guide Documentation](https://github.com/MitocGroup/deep-framework/blob/master/docs/index.md) + +DEEP is enabling developers and architects to: +- Design microservices architecture on top of serverless environments from cloud providers like AWS +- Build distributed software that combines and manages hardware and software in the same microservice +- Use the framework's abstracted approach to build applications that could be cloud agnostic +- Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) +- Run in the cloud the software that was built by distributed teams and served self-service in large organizations +- Monetize their work of art by uploading microservices to [DEEP Marketplace](https://www.deep.mg) + +> [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with [DEEP Microservices HelloWorld](https://github.com/MitocGroup/deep-microservices-helloworld) or [DEEP Microservices ToDo App](https://github.com/MitocGroup/deep-microservices-todo-app), as well as [DEEP CLI](https://www.npmjs.com/package/deepify) (aka `deepify`). + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP Architecture on AWS [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-architecture.png) + +DEEP is using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries: + +DEEP Abstracted Library | Description | AWS Abstracted Service(s) +-------------|---------------------|-------------------------- +[deep-asset](http://docs.deep.mg/deep-asset) | Assets Management Library | Amazon S3 +[deep-cache](http://docs.deep.mg/deep-cache) | Cache Management Library | Amazon ElastiCache +[deep-core](http://docs.deep.mg/deep-core) | Core Management Library | - +[deep-db](http://docs.deep.mg/deep-db) | Database Management Library | Amazon DynamoDB, Amazon SQS +[deep-di](http://docs.deep.mg/deep-di) | Dependency Injection Management Library | - +[deep-event](http://docs.deep.mg/deep-event) | Events Management Library | Amazon Kinesis +[deep-fs](http://docs.deep.mg/deep-fs) | File System Management Library | Amazon S3 +[deep-kernel](http://docs.deep.mg/deep-kernel) | Kernel Management Library | - +[deep-log](http://docs.deep.mg/deep-log) | Logs Management Library | Amazon CloudWatch Logs +[deep-notification](http://docs.deep.mg/deep-notification) | Notifications Management Library | Amazon SNS +[deep-resource](http://docs.deep.mg/deep-resource) | Resouces Management Library | AWS Lambda, Amazon API Gateway +[deep-security](http://docs.deep.mg/deep-security) | Security Management Library | AWS IAM, Amazon Cognito +[deep-validation](http://docs.deep.mg/deep-validation) | Validation Management Library | - + +## Feedback + +We are eager to get your feedback, so please use whatever communication channel you prefer: +- [github issues](https://github.com/MitocGroup/deep-framework/issues) +- [gitter chat room](https://gitter.im/MitocGroup/deep-framework) +- [deep email address](mailto:feedback@deep.mg) + +## License + +This repository can be used under the MIT license. +> See [LICENSE](https://github.com/MitocGroup/deep-framework/blob/master/LICENSE) for more details. + +## Sponsors + +This repository is being sponsored by: +> [Mitoc Group](http://www.mitocgroup.com) diff --git a/src/deep-log/lib/Driver/AbstractDriver.js b/src/deep-log/lib/Driver/AbstractDriver.js new file mode 100644 index 00000000..543411d6 --- /dev/null +++ b/src/deep-log/lib/Driver/AbstractDriver.js @@ -0,0 +1,42 @@ +/** + * Created by AlexanderC on 6/15/15. + */ + +'use strict'; + +import Core from 'deep-core'; + +/** + * Abstract log driver + */ +export class AbstractDriver extends Core.OOP.Interface { + constructor() { + super(['log']); + } + + /** + * @param {*} context + * @returns {String} + */ + static plainifyContext(context) { + let type = typeof context; + var plainContext; + + if (type === 'object') { + plainContext = JSON.stringify(context); + } else if (context instanceof Object) { + plainContext = `${type}: ${context.toString()}`; + } else { + plainContext = context.toString(); + } + + return plainContext; + } + + /** + * @returns {String} + */ + static get datetime() { + return new Date().toISOString(); + } +} diff --git a/src/deep-log/lib/Driver/ConsoleDriver.js b/src/deep-log/lib/Driver/ConsoleDriver.js new file mode 100644 index 00000000..bf810065 --- /dev/null +++ b/src/deep-log/lib/Driver/ConsoleDriver.js @@ -0,0 +1,27 @@ +/** + * Created by AlexanderC on 6/15/15. + */ + +'use strict'; + +import {AbstractDriver} from './AbstractDriver'; + +/** + * Console native logging + */ +export class ConsoleDriver extends AbstractDriver { + constructor() { + super(); + } + + /** + * @param {String} msg + * @param {String} level + * @param {*} context + */ + log(msg, level, context) { + var datetime = AbstractDriver.datetime; + + console.log(`${level.toUpperCase()} on ${datetime}: `, msg, context); + } +} diff --git a/src/deep-log/lib/Driver/RavenBrowserDriver.js b/src/deep-log/lib/Driver/RavenBrowserDriver.js new file mode 100644 index 00000000..7538edf6 --- /dev/null +++ b/src/deep-log/lib/Driver/RavenBrowserDriver.js @@ -0,0 +1,90 @@ +/** + * Created by AlexanderC on 6/15/15. + */ + +'use strict'; + +import {AbstractDriver} from './AbstractDriver'; +import {Log} from '../Log'; +import Raven from 'raven'; +import url from 'url'; + +/** + * Raven/Sentry logging for browser + * + * @todo replace it on compile time rather than runtime! + */ +export class RavenBrowserDriver extends AbstractDriver { + /** + * @param {String} dsn + */ + constructor(dsn) { + super(); + + Raven.config(RavenBrowserDriver._prepareDsn(dsn)).install(); + } + + /** + * @todo: tmp hook, remove it before persisting frontend config + * + * Remove password from url to not expose it into browser + * + * @param {String} dsn + * @returns {String} + */ + static _prepareDsn(dsn) { + let parsedDsn = url.parse(dsn); + parsedDsn.auth = parsedDsn.auth.split(':')[0]; + + return url.format(parsedDsn); + } + + /** + * @param {String} msg + * @param {String} level + * @param {*} context + */ + log(msg, level, context) { + let nativeLevel = RavenBrowserDriver._mapLevel(level); + + Raven.captureMessage(msg, { + level: nativeLevel, + extra: context, + tags: { + originalLevel: level, + }, + }); + } + + /** + * @param {String} level + * @returns {string} + * @private + */ + static _mapLevel(level) { + let nativeLevel = 'info'; + + switch (level) { + case Log.EMERGENCY: + case Log.CRITICAL: + nativeLevel = 'fatal'; + break; + case Log.ALERT: + case Log.WARNING: + case Log.NOTICE: + nativeLevel = 'warning'; + break; + case Log.ERROR: + nativeLevel = 'error'; + break; + case Log.INFO: + nativeLevel = 'info'; + break; + case Log.DEBUG: + nativeLevel = 'debug'; + break; + } + + return nativeLevel; + } +} diff --git a/src/deep-log/lib/Driver/RavenDriver.js b/src/deep-log/lib/Driver/RavenDriver.js new file mode 100644 index 00000000..a4cca999 --- /dev/null +++ b/src/deep-log/lib/Driver/RavenDriver.js @@ -0,0 +1,92 @@ +/** + * Created by AlexanderC on 6/15/15. + */ + +'use strict'; + +import {AbstractDriver} from './AbstractDriver'; +import {Log} from '../Log'; +import Raven from 'raven'; + +/** + * Raven/Sentry logging + */ +export class RavenDriver extends AbstractDriver { + /** + * @param {String} dsn + */ + constructor(dsn) { + super(); + + this._clients = {}; + + for (let levelKey in Log.LEVELS) { + if (!Log.LEVELS.hasOwnProperty(levelKey)) { + continue; + } + + let level = Log.LEVELS[levelKey]; + + let nativeLevel = RavenDriver._mapLevel(level); + + this._clients[nativeLevel] = new Raven.Client(dsn, { + level: nativeLevel, + }); + } + } + + /** + * @returns {Raven.Client[]} + */ + get clients() { + return this._clients; + } + + /** + * @param {String} msg + * @param {String} level + * @param {*} context + */ + log(msg, level, context) { + let nativeLevel = RavenDriver._mapLevel(level); + + this._clients[nativeLevel].captureMessage(msg, { + extra: context, + tags: { + originalLevel: level, + }, + }); + } + + /** + * @param {String} level + * @returns {string} + * @private + */ + static _mapLevel(level) { + let nativeLevel = 'info'; + + switch (level) { + case Log.EMERGENCY: + case Log.CRITICAL: + nativeLevel = 'fatal'; + break; + case Log.ALERT: + case Log.WARNING: + case Log.NOTICE: + nativeLevel = 'warning'; + break; + case Log.ERROR: + nativeLevel = 'error'; + break; + case Log.INFO: + nativeLevel = 'info'; + break; + case Log.DEBUG: + nativeLevel = 'debug'; + break; + } + + return nativeLevel; + } +} diff --git a/src/deep-log/lib/Exception/Exception.js b/src/deep-log/lib/Exception/Exception.js new file mode 100644 index 00000000..90ade1cd --- /dev/null +++ b/src/deep-log/lib/Exception/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Core from 'deep-core'; + +/** + * Thrown when any exception occurs + */ +export class Exception extends Core.Exception.Exception { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-log/lib/Log.js b/src/deep-log/lib/Log.js new file mode 100644 index 00000000..bbd2b31a --- /dev/null +++ b/src/deep-log/lib/Log.js @@ -0,0 +1,206 @@ +/** + * Created by AlexanderC on 6/15/15. + */ + +'use strict'; + +import Kernel from 'deep-kernel'; +import Core from 'deep-core'; +import {ConsoleDriver} from './Driver/ConsoleDriver'; +import {RavenDriver} from './Driver/RavenDriver'; +import {RavenBrowserDriver} from './Driver/RavenBrowserDriver'; +import {AbstractDriver} from './Driver/AbstractDriver'; + +/** + * Logging manager + */ +export class Log extends Kernel.ContainerAware { + /** + * @param {Object} drivers + */ + constructor(drivers = {}) { + super(); + + this._drivers = new Core.Generic.ObjectStorage(); + + for (let driverName in drivers) { + if (!drivers.hasOwnProperty(driverName)) { + continue; + } + + this.register(driverName, drivers[driverName]); + } + } + + /** + * Booting a certain service + * + * @param {Kernel} kernel + * @param {Function} callback + */ + boot(kernel, callback) { + // @todo: remove this compatibility hook + let globals = kernel.config.globals || kernel.config; + + let drivers = globals.logDrivers; + + for (let driverName in drivers) { + if (!drivers.hasOwnProperty(driverName)) { + continue; + } + + this.register(driverName, drivers[driverName]); + } + + callback(); + } + + /** + * + * @param {String} type + * @param {Array} args + * @returns {AbstractDriver} + */ + create(type, ...args) { + var driver; + + switch (type.toLowerCase()) { + case 'console': + driver = new ConsoleDriver(...args); + break; + case 'raven': + case 'sentry': + let DriverPrototype = this.container.get(Kernel.CONTEXT).isFrontend ? RavenBrowserDriver : RavenDriver; + + driver = new DriverPrototype(args[0].dsn); + break; + default: + throw new Core.Exception.InvalidArgumentException( + type, + '[Console, Raven, Sentry]' + ); + } + + return driver; + } + + /** + * @param {AbstractDriver|String} driver + * @param {Array} args + * @returns {Log} + */ + register(driver, ...args) { + if (typeof driver === 'string') { + driver = this.create(driver, ...args); + } + + if (!(driver instanceof AbstractDriver)) { + throw new Core.Exception.InvalidArgumentException(driver, 'AbstractDriver'); + } + + this._drivers.add(driver); + + return this; + } + + /** + * @returns {Core.Generic.ObjectStorage} + */ + get drivers() { + return this._drivers; + } + + /** + * @param {String} msg + * @param {String} level + * @param {*} context + * @returns Log + */ + log(msg, level = Log.INFO, context = {}) { + let driversArr = this.drivers.iterator; + + for (let driverKey in driversArr) { + if (!driversArr.hasOwnProperty(driverKey)) { + continue; + } + + let driver = driversArr[driverKey]; + + driver.log(msg, level, context); + } + + return this; + } + + /** + * @returns {Array} + */ + static get LEVELS() { + return [ + Log.EMERGENCY, + Log.ALERT, + Log.CRITICAL, + Log.ERROR, + Log.WARNING, + Log.NOTICE, + Log.INFO, + Log.DEBUG, + ]; + } + + /** + * @returns {String} + */ + static get EMERGENCY() { + return 'emergency'; + } + + /** + * @returns {String} + */ + static get ALERT() { + return 'alert'; + } + + /** + * @returns {String} + */ + static get CRITICAL() { + return 'critical'; + } + + /** + * @returns {String} + */ + static get ERROR() { + return 'error'; + } + + /** + * @returns {String} + */ + static get WARNING() { + return 'warning'; + } + + /** + * @returns {String} + */ + static get NOTICE() { + return 'notice'; + } + + /** + * @returns {String} + */ + static get INFO() { + return 'info'; + } + + /** + * @returns {String} + */ + static get DEBUG() { + return 'debug'; + } +} diff --git a/src/deep-log/lib/bootstrap.js b/src/deep-log/lib/bootstrap.js new file mode 100644 index 00000000..ded172bd --- /dev/null +++ b/src/deep-log/lib/bootstrap.js @@ -0,0 +1,11 @@ +/** + * Created by AlexanderC on 5/22/15. + * + * Bootstrap file loaded by npm as main + */ + +'use strict'; + +import {Log} from './Log'; + +let exports = module.exports = Log; diff --git a/src/deep-log/package.json b/src/deep-log/package.json new file mode 100644 index 00000000..2b27714c --- /dev/null +++ b/src/deep-log/package.json @@ -0,0 +1,66 @@ +{ + "name": "deep-log", + "version": "1.0.1", + "description": "DEEP Log Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Log" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "prepare-browserify": "npm install raven-js@1.1.*", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "1.0.*", + "deep-core": "1.0.*", + "raven": "0.7.*" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/src/deep-log/test/.gitkeep b/src/deep-log/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-log/test/Driver/AbstractDriver.js b/src/deep-log/test/Driver/AbstractDriver.js new file mode 100644 index 00000000..0101172d --- /dev/null +++ b/src/deep-log/test/Driver/AbstractDriver.js @@ -0,0 +1,66 @@ +'use strict'; + +import chai from 'chai'; +import {AbstractDriver} from '../../lib.compiled/Driver/AbstractDriver'; + +class AbstractDriverTest extends AbstractDriver { + constructor() { + super(); + } + + /** + * @param {String} msg + * @param {String} level + * @param {*} context + */ + log(msg, level, context) { + var log = { + context: context, + level: level, + msg: msg, + }; + + return log; + } +} + +suite('Driver/AbstractDriver', function() { + let abstractDriver = new AbstractDriverTest(); + + test('Class AbstractDriver exists in Driver/AbstractDriver', function() { + chai.expect(typeof AbstractDriver).to.equal('function'); + }); + + test('Check that instance was created successfully for inherit classes', function() { + chai.assert.typeOf(abstractDriver, 'object', 'created abstractDriver object'); + chai.assert.instanceOf(abstractDriver, AbstractDriver, 'abstractDriver is instance of AbstractDriver'); + }); + + test('Check datetime static getter returns Date object', function() { + chai.assert.typeOf(AbstractDriver.datetime, 'string', 'datetime returns an ISOString'); + }); + + test('Check plainifyContext() static method returns valid plainContext for object', function() { + let context = { + firstKey: 'testValue1', + secondKey: 'testValue2', + }; + let actualResult = AbstractDriver.plainifyContext(context); + chai.expect(actualResult).to.equal(JSON.stringify(context)); + }); + + test('Check plainifyContext() static method returns valid plainContext for instance of Object', function() { + let context = () => { + return 'context'; + }; + let type = typeof context; + let actualResult = AbstractDriver.plainifyContext(context); + chai.expect(actualResult).to.equal(`${type}: ${context.toString()}`); + }); + + test('Check plainifyContext() static method returns valid plainContext for string', function() { + let context = 'context'; + let actualResult = AbstractDriver.plainifyContext(context); + chai.expect(actualResult).to.equal(context); + }); +}); \ No newline at end of file diff --git a/src/deep-log/test/Driver/ConsoleDriver.js b/src/deep-log/test/Driver/ConsoleDriver.js new file mode 100644 index 00000000..294c887f --- /dev/null +++ b/src/deep-log/test/Driver/ConsoleDriver.js @@ -0,0 +1,28 @@ +'use strict'; + +import chai from 'chai'; +import {ConsoleDriver} from '../../lib.compiled/Driver/ConsoleDriver'; + +suite('Driver/ConsoleDriver', function() { + let consoleDriver = new ConsoleDriver(); + + test('Class ConsoleDriver exists in Driver/ConsoleDriver', function() { + chai.expect(typeof ConsoleDriver).to.equal('function'); + }); + + test('Check that instance was created successfully for inherit classes', function() { + chai.assert.typeOf(consoleDriver, 'object', 'created abstractDriver object'); + chai.assert.instanceOf(consoleDriver, ConsoleDriver, 'abstractDriver is instance of AbstractDriver'); + }); + + test('Check log() method runs without exception', function() { + let error = null; + try { + consoleDriver.log('test log() from ConsoleDriver', 'debug', 'context'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + }); +}); \ No newline at end of file diff --git a/src/deep-log/test/Driver/RavenBrowserDriver.js b/src/deep-log/test/Driver/RavenBrowserDriver.js new file mode 100644 index 00000000..55209763 --- /dev/null +++ b/src/deep-log/test/Driver/RavenBrowserDriver.js @@ -0,0 +1,10 @@ +'use strict'; + +import chai from 'chai'; +import {RavenBrowserDriver} from '../../lib.compiled/Driver/RavenBrowserDriver'; + +suite('Driver/RavenBrowserDriver', function() { + test('Class RavenBrowserDriver exists in Driver/RavenBrowserDriver', function() { + chai.expect(typeof RavenBrowserDriver).to.equal('function'); + }); +}); diff --git a/src/deep-log/test/Driver/RavenDriver.js b/src/deep-log/test/Driver/RavenDriver.js new file mode 100644 index 00000000..c31ae1db --- /dev/null +++ b/src/deep-log/test/Driver/RavenDriver.js @@ -0,0 +1,27 @@ +'use strict'; + +import chai from 'chai'; +import {RavenDriver} from '../../lib.compiled/Driver/RavenDriver'; + +suite('Driver/RavenDriver', function() { + let ravenDriver = new RavenDriver(); + + test('Class RavenDriver exists in Driver/RavenDriver', function() { + chai.expect(typeof RavenDriver).to.equal('function'); + }); + + test('Check constructor sets _clients by default', function() { + chai.expect(typeof ravenDriver.clients).to.be.equal('object'); + }); + + test('Check log() method runs without exception', function() { + let error = null; + try { + ravenDriver.log('test log() from RavenDriver', 'debug', 'context'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + }); +}); diff --git a/src/deep-log/test/Log.js b/src/deep-log/test/Log.js new file mode 100644 index 00000000..d479e2e6 --- /dev/null +++ b/src/deep-log/test/Log.js @@ -0,0 +1,149 @@ +'use strict'; + +import chai from 'chai'; +import {Log} from '../lib.compiled/Log'; +import {ConsoleDriver} from '../lib.compiled/Driver/ConsoleDriver'; +import Core from 'deep-core'; +import Kernel from 'deep-kernel'; + +suite('Log', function() { + let log = new Log(); + + test('Class Log exists in Log', function() { + chai.expect(typeof Log).to.equal('function'); + }); + + test('Check EMERGENCY static getter returns \'emergency\'', function() { + chai.expect(Log.EMERGENCY).to.be.equal('emergency'); + }); + + test('Check ALERT static getter returns \'alert\'', function() { + chai.expect(Log.ALERT).to.be.equal('alert'); + }); + + test('Check CRITICAL static getter returns \'critical\'', function() { + chai.expect(Log.CRITICAL).to.be.equal('critical'); + }); + + test('Check ERROR static getter returns \'error\'', function() { + chai.expect(Log.ERROR).to.be.equal('error'); + }); + + test('Check WARNING static getter returns \'warning\'', function() { + chai.expect(Log.WARNING).to.be.equal('warning'); + }); + + test('Check NOTICE static getter returns \'notice\'', function() { + chai.expect(Log.NOTICE).to.be.equal('notice'); + }); + + test('Check INFO static getter returns \'info\'', function() { + chai.expect(Log.INFO).to.be.equal('info'); + }); + + test('Check DEBUG static getter returns \'debug\'', function() { + chai.expect(Log.DEBUG).to.be.equal('debug'); + }); + + test('Check LEVELS static getter returns array of levels', function() { + chai.expect(Log.LEVELS.length).to.be.equal(8); + chai.expect(Log.LEVELS).to.be.include(Log.EMERGENCY); + chai.expect(Log.LEVELS).to.be.include(Log.ALERT); + chai.expect(Log.LEVELS).to.be.include(Log.CRITICAL); + chai.expect(Log.LEVELS).to.be.include(Log.ERROR); + chai.expect(Log.LEVELS).to.be.include(Log.WARNING); + chai.expect(Log.LEVELS).to.be.include(Log.NOTICE); + chai.expect(Log.LEVELS).to.be.include(Log.INFO); + chai.expect(Log.LEVELS).to.be.include(Log.DEBUG); + }); + + test('Check log() method runs without exception', function() { + let error = null; + try { + log.log('test log() from ConsoleDriver', 'debug', 'context'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + }); + + test('Check create() method throws \'Core.Exception.InvalidArgumentException\' exception for invalid driver type', function() { + let error = null; + try { + log.create('test'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(Core.Exception.InvalidArgumentException); + }); + + test('Check create() method returns log driver for console', function() { + let error = null; + let actualResult = null; + try { + actualResult = log.create('console'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.assert.instanceOf(actualResult, ConsoleDriver, 'create() method returns an instance of ConsoleDriver'); + }); + + test('Check create() method returns log driver for sentry/raven', function() { + let error = null; + let actualResult = null; + try { + actualResult = log.create('sentry'); + } catch (e) { + error = e; + } + }); + + test('Check boot() method register service', function() { + let error = null; + let actualResult = null; + let deepServices = { serviceName: 'serviceName' }; + let kernel = new Kernel(deepServices, Kernel.FRONTEND_CONTEXT); + let callback = () => { + return 'callback called'; + }; + + try { + actualResult = log.boot(kernel, callback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + }); + + test('Check register() method throws \'Core.Exception.InvalidArgumentException\' exception for invalid driver', function() { + let error = null; + try { + log.register({key: 'value'}); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(Core.Exception.InvalidArgumentException); + }); + + test('Check register() method register driver for console', function() { + let error = null; + let actualResult = null; + try { + actualResult = log.register('console'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.assert.instanceOf(actualResult, Log, 'register() method registers driver ' + + 'and returns an instance of ConsoleDriver'); + }); +}); diff --git a/src/deep-notification/.gitignore b/src/deep-notification/.gitignore new file mode 100644 index 00000000..439877b8 --- /dev/null +++ b/src/deep-notification/.gitignore @@ -0,0 +1,105 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log \ No newline at end of file diff --git a/src/deep-notification/.npmignore b/src/deep-notification/.npmignore new file mode 100644 index 00000000..8219039a --- /dev/null +++ b/src/deep-notification/.npmignore @@ -0,0 +1,4 @@ +test +tests +/lib +.gitignore \ No newline at end of file diff --git a/src/deep-notification/README.md b/src/deep-notification/README.md new file mode 100644 index 00000000..35268bc5 --- /dev/null +++ b/src/deep-notification/README.md @@ -0,0 +1,83 @@ +deep-notification +================= + +[![NPM Version](https://img.shields.io/npm/v/deep-notification.svg)](https://npmjs.org/package/deep-notification) +[![Build Status](https://travis-ci.org/MitocGroup/deep-framework.svg)](https://travis-ci.org/MitocGroup/deep-framework) +[![Coverage Status](https://coveralls.io/repos/MitocGroup/deep-framework/badge.svg?service=github&t=3QEkFa)](https://coveralls.io/github/MitocGroup/deep-framework) +[![Codacy Badge](https://api.codacy.com/project/badge/630b5f0024334dc09fd0299b1a8a0ed5)](https://www.codacy.com/app/MitocGroup/deep-framework) +[![API Docs](http://docs.deep.mg/deep-notification/badge.svg)](http://docs.deep.mg/deep-notification/) + +[deep-notification](https://www.npmjs.com/package/deep-notification) is a node.js library, part of [DEEP Framework](https://github.com/MitocGroup/deep-framework). + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-ecosystem.png) + +Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less. + +## DEEP for Businesses [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### User Guide Documentation (to be updated later) + +DEEP is enabling small and medium businesses, as well as enterprises to: +- Rent applications on a monthly basis by needed functionality from [DEEP Marketplace](https://www.deep.mg) +- Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS +- Pay only for subscribed applications and stop paying when unsubscribing and not using anymore +- Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences +- Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP for Developers [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### [API Guide Documentation](http://docs.deep.mg) +#### [Developer Guide Documentation](https://github.com/MitocGroup/deep-framework/blob/master/docs/index.md) + +DEEP is enabling developers and architects to: +- Design microservices architecture on top of serverless environments from cloud providers like AWS +- Build distributed software that combines and manages hardware and software in the same microservice +- Use the framework's abstracted approach to build applications that could be cloud agnostic +- Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) +- Run in the cloud the software that was built by distributed teams and served self-service in large organizations +- Monetize their work of art by uploading microservices to [DEEP Marketplace](https://www.deep.mg) + +> [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with [DEEP Microservices HelloWorld](https://github.com/MitocGroup/deep-microservices-helloworld) or [DEEP Microservices ToDo App](https://github.com/MitocGroup/deep-microservices-todo-app), as well as [DEEP CLI](https://www.npmjs.com/package/deepify) (aka `deepify`). + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP Architecture on AWS [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-architecture.png) + +DEEP is using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries: + +DEEP Abstracted Library | Description | AWS Abstracted Service(s) +-------------|---------------------|-------------------------- +[deep-asset](http://docs.deep.mg/deep-asset) | Assets Management Library | Amazon S3 +[deep-cache](http://docs.deep.mg/deep-cache) | Cache Management Library | Amazon ElastiCache +[deep-core](http://docs.deep.mg/deep-core) | Core Management Library | - +[deep-db](http://docs.deep.mg/deep-db) | Database Management Library | Amazon DynamoDB, Amazon SQS +[deep-di](http://docs.deep.mg/deep-di) | Dependency Injection Management Library | - +[deep-event](http://docs.deep.mg/deep-event) | Events Management Library | Amazon Kinesis +[deep-fs](http://docs.deep.mg/deep-fs) | File System Management Library | Amazon S3 +[deep-kernel](http://docs.deep.mg/deep-kernel) | Kernel Management Library | - +[deep-log](http://docs.deep.mg/deep-log) | Logs Management Library | Amazon CloudWatch Logs +[deep-notification](http://docs.deep.mg/deep-notification) | Notifications Management Library | Amazon SNS +[deep-resource](http://docs.deep.mg/deep-resource) | Resouces Management Library | AWS Lambda, Amazon API Gateway +[deep-security](http://docs.deep.mg/deep-security) | Security Management Library | AWS IAM, Amazon Cognito +[deep-validation](http://docs.deep.mg/deep-validation) | Validation Management Library | - + +## Feedback + +We are eager to get your feedback, so please use whatever communication channel you prefer: +- [github issues](https://github.com/MitocGroup/deep-framework/issues) +- [gitter chat room](https://gitter.im/MitocGroup/deep-framework) +- [deep email address](mailto:feedback@deep.mg) + +## License + +This repository can be used under the MIT license. +> See [LICENSE](https://github.com/MitocGroup/deep-framework/blob/master/LICENSE) for more details. + +## Sponsors + +This repository is being sponsored by: +> [Mitoc Group](http://www.mitocgroup.com) diff --git a/src/deep-notification/lib/Exception/Exception.js b/src/deep-notification/lib/Exception/Exception.js new file mode 100644 index 00000000..90ade1cd --- /dev/null +++ b/src/deep-notification/lib/Exception/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Core from 'deep-core'; + +/** + * Thrown when any exception occurs + */ +export class Exception extends Core.Exception.Exception { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-notification/lib/bootstrap.js b/src/deep-notification/lib/bootstrap.js new file mode 100644 index 00000000..756a637e --- /dev/null +++ b/src/deep-notification/lib/bootstrap.js @@ -0,0 +1,9 @@ +/** + * Created by AlexanderC on 5/22/15. + * + * Bootstrap file loaded by npm as main + */ + +'use strict'; + +let exports = module.exports = {}; diff --git a/src/deep-notification/package.json b/src/deep-notification/package.json new file mode 100644 index 00000000..905426a2 --- /dev/null +++ b/src/deep-notification/package.json @@ -0,0 +1,64 @@ +{ + "name": "deep-notification", + "version": "1.0.1", + "description": "DEEP Notification Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Notification" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcovonly _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "1.0.*", + "deep-core": "1.0.*" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/src/deep-notification/test/.gitkeep b/src/deep-notification/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-resource/.gitignore b/src/deep-resource/.gitignore new file mode 100644 index 00000000..439877b8 --- /dev/null +++ b/src/deep-resource/.gitignore @@ -0,0 +1,105 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log \ No newline at end of file diff --git a/src/deep-resource/.npmignore b/src/deep-resource/.npmignore new file mode 100644 index 00000000..8219039a --- /dev/null +++ b/src/deep-resource/.npmignore @@ -0,0 +1,4 @@ +test +tests +/lib +.gitignore \ No newline at end of file diff --git a/src/deep-resource/README.md b/src/deep-resource/README.md new file mode 100644 index 00000000..5e4a1add --- /dev/null +++ b/src/deep-resource/README.md @@ -0,0 +1,83 @@ +deep-resource +============= + +[![NPM Version](https://img.shields.io/npm/v/deep-resource.svg)](https://npmjs.org/package/deep-resource) +[![Build Status](https://travis-ci.org/MitocGroup/deep-framework.svg)](https://travis-ci.org/MitocGroup/deep-framework) +[![Coverage Status](https://coveralls.io/repos/MitocGroup/deep-framework/badge.svg?service=github&t=3QEkFa)](https://coveralls.io/github/MitocGroup/deep-framework) +[![Codacy Badge](https://api.codacy.com/project/badge/630b5f0024334dc09fd0299b1a8a0ed5)](https://www.codacy.com/app/MitocGroup/deep-framework) +[![API Docs](http://docs.deep.mg/deep-resource/badge.svg)](http://docs.deep.mg/deep-resource/) + +[deep-resource](https://www.npmjs.com/package/deep-resource) is a node.js library, part of [DEEP Framework](https://github.com/MitocGroup/deep-framework). + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-ecosystem.png) + +Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less. + +## DEEP for Businesses [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### User Guide Documentation (to be updated later) + +DEEP is enabling small and medium businesses, as well as enterprises to: +- Rent applications on a monthly basis by needed functionality from [DEEP Marketplace](https://www.deep.mg) +- Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS +- Pay only for subscribed applications and stop paying when unsubscribing and not using anymore +- Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences +- Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP for Developers [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### [API Guide Documentation](http://docs.deep.mg) +#### [Developer Guide Documentation](https://github.com/MitocGroup/deep-framework/blob/master/docs/index.md) + +DEEP is enabling developers and architects to: +- Design microservices architecture on top of serverless environments from cloud providers like AWS +- Build distributed software that combines and manages hardware and software in the same microservice +- Use the framework's abstracted approach to build applications that could be cloud agnostic +- Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) +- Run in the cloud the software that was built by distributed teams and served self-service in large organizations +- Monetize their work of art by uploading microservices to [DEEP Marketplace](https://www.deep.mg) + +> [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with [DEEP Microservices HelloWorld](https://github.com/MitocGroup/deep-microservices-helloworld) or [DEEP Microservices ToDo App](https://github.com/MitocGroup/deep-microservices-todo-app), as well as [DEEP CLI](https://www.npmjs.com/package/deepify) (aka `deepify`). + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP Architecture on AWS [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-architecture.png) + +DEEP is using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries: + +DEEP Abstracted Library | Description | AWS Abstracted Service(s) +-------------|---------------------|-------------------------- +[deep-asset](http://docs.deep.mg/deep-asset) | Assets Management Library | Amazon S3 +[deep-cache](http://docs.deep.mg/deep-cache) | Cache Management Library | Amazon ElastiCache +[deep-core](http://docs.deep.mg/deep-core) | Core Management Library | - +[deep-db](http://docs.deep.mg/deep-db) | Database Management Library | Amazon DynamoDB, Amazon SQS +[deep-di](http://docs.deep.mg/deep-di) | Dependency Injection Management Library | - +[deep-event](http://docs.deep.mg/deep-event) | Events Management Library | Amazon Kinesis +[deep-fs](http://docs.deep.mg/deep-fs) | File System Management Library | Amazon S3 +[deep-kernel](http://docs.deep.mg/deep-kernel) | Kernel Management Library | - +[deep-log](http://docs.deep.mg/deep-log) | Logs Management Library | Amazon CloudWatch Logs +[deep-notification](http://docs.deep.mg/deep-notification) | Notifications Management Library | Amazon SNS +[deep-resource](http://docs.deep.mg/deep-resource) | Resouces Management Library | AWS Lambda, Amazon API Gateway +[deep-security](http://docs.deep.mg/deep-security) | Security Management Library | AWS IAM, Amazon Cognito +[deep-validation](http://docs.deep.mg/deep-validation) | Validation Management Library | - + +## Feedback + +We are eager to get your feedback, so please use whatever communication channel you prefer: +- [github issues](https://github.com/MitocGroup/deep-framework/issues) +- [gitter chat room](https://gitter.im/MitocGroup/deep-framework) +- [deep email address](mailto:feedback@deep.mg) + +## License + +This repository can be used under the MIT license. +> See [LICENSE](https://github.com/MitocGroup/deep-framework/blob/master/LICENSE) for more details. + +## Sponsors + +This repository is being sponsored by: +> [Mitoc Group](http://www.mitocgroup.com) diff --git a/src/deep-resource/lib/Exception/Exception.js b/src/deep-resource/lib/Exception/Exception.js new file mode 100644 index 00000000..90ade1cd --- /dev/null +++ b/src/deep-resource/lib/Exception/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Core from 'deep-core'; + +/** + * Thrown when any exception occurs + */ +export class Exception extends Core.Exception.Exception { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-resource/lib/Exception/MissingResourceException.js b/src/deep-resource/lib/Exception/MissingResourceException.js new file mode 100644 index 00000000..30fb95e9 --- /dev/null +++ b/src/deep-resource/lib/Exception/MissingResourceException.js @@ -0,0 +1,20 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when requested resource not found + */ +export class MissingResourceException extends Exception { + /** + * @param {String} microserviceIdentifier + * @param {String} resourceIdentifier + */ + constructor(microserviceIdentifier, resourceIdentifier) { + super(`Missing resource ${resourceIdentifier} in ${microserviceIdentifier}`); + } +} diff --git a/src/deep-resource/lib/Resource.js b/src/deep-resource/lib/Resource.js new file mode 100644 index 00000000..cd301071 --- /dev/null +++ b/src/deep-resource/lib/Resource.js @@ -0,0 +1,121 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Kernel from 'deep-kernel'; +import {Instance as ResourceInstance} from './Resource/Instance'; +import {MissingResourceException} from './Exception/MissingResourceException'; + +/** + * Bundle resource + */ +export class Resource extends Kernel.ContainerAware { + /** + * @param {Object} resources + */ + constructor(resources = {}) { + super(); + + this._resources = resources; + } + + /** + * @param {String} identifier + * @returns {Boolean} + */ + has(identifier) { + return this._resources[this.microservice.identifier].hasOwnProperty(identifier); + } + + /** + * @param {String} identifier + * @returns {ResourceInstance} + */ + get(identifier) { + identifier = this._resolvePath(identifier); + + let microserviceIdentifier = this.microservice.identifier; + + if (!this.has(identifier)) { + throw new MissingResourceException(microserviceIdentifier, identifier); + } + + return this._resources[microserviceIdentifier][identifier]; + } + + /** + * @returns {Object} + */ + get list() { + let map = {}; + + for (let microservice in this._resources) { + if (!this._resources.hasOwnProperty(microservice)) { + continue; + } + + map[microservice] = Object.keys(this._resources[microservice]); + } + + return map; + } + + /** + * Booting a certain service + * + * @param {Kernel} kernel + * @param {Function} callback + */ + boot(kernel, callback) { + let cache = kernel.container.get('cache'); + let security = kernel.container.get('security'); + + let resourcesVector = []; + + for (let microserviceKey in kernel.microservices) { + if (!kernel.microservices.hasOwnProperty(microserviceKey)) { + continue; + } + + let microservice = kernel.microservices[microserviceKey]; + + this._resources[microservice.identifier] = {}; + + for (let resourceName in microservice.rawResources) { + if (!microservice.rawResources.hasOwnProperty(resourceName)) { + continue; + } + + let resource = new ResourceInstance( + resourceName, + microservice.rawResources[resourceName] + ); + + resource.cache = cache; + resource.localBackend = this._localBackend; + + this._resources[microservice.identifier][resourceName] = resource; + + resourcesVector.push(resource); + } + } + + security.onTokenAvailable((token) => { + let credentials = token.credentials; + + for (let resourceKey in resourcesVector) { + if (!resourcesVector.hasOwnProperty(resourceKey)) { + continue; + } + + let resource = resourcesVector[resourceKey]; + + resource.securityCredentials = credentials; + } + }); + + callback(); + } +} diff --git a/src/deep-resource/lib/Resource/Action.js b/src/deep-resource/lib/Resource/Action.js new file mode 100644 index 00000000..8a9b6ac4 --- /dev/null +++ b/src/deep-resource/lib/Resource/Action.js @@ -0,0 +1,115 @@ +/** + * Created by mgoria on 8/4/15. + */ + +'use strict'; + +import {UnknownMethodException} from './Exception/UnknownMethodException'; +import {Request} from './Request'; +import {LocalRequest} from './LocalRequest'; + +/** + * Resource action + */ +export class Action { + /** + * @param {Instance} resource + * @param {String} name + * @param {String} type + * @param {Array} methods + * @param {String} source + * @param {String} region + */ + constructor(resource, name, type, methods, source, region) { + this._resource = resource; + this._name = name; + this._type = type; + this._methods = methods; + this._source = source; + this._region = region; + } + + /** + * @param {Object} payload + * @param {String} method + */ + request(payload = {}, method = null) { + method = method || (this._methods.length > 0 ? this._methods[0] : Instance.HTTP_VERBS[0]); + + if (this._methods.length > 0 && this._methods.indexOf(method) === -1) { + throw new UnknownMethodException(method, this._methods); + } + + let RequestImplementation = this._resource.localBackend ? LocalRequest : Request; + let requestObject = new RequestImplementation(this, payload, method); + + if (this._resource.cache) { + requestObject.cacheImpl = this._resource.cache; + } + + return requestObject; + } + + /** + * @returns {Instance} + */ + get resource() { + return this._resource; + } + + /** + * @returns {String} + */ + get name() { + return this._name; + } + + /** + * @returns {String} + */ + get type() { + return this._type; + } + + /** + * @returns {Array} + */ + get methods() { + return this._methods; + } + + /** + * @returns {String} + */ + get source() { + return this._source; + } + + /** + * @returns {String} + */ + get region() { + return this._region; + } + + /** + * @returns {Array} + */ + static get HTTP_VERBS() { + return ['GET', 'POST', 'DELETE', 'HEAD', 'PUT', 'OPTIONS', 'PATCH']; + } + + /** + * @returns {String} + */ + static get LAMBDA() { + return 'lambda'; + } + + /** + * @returns {String} + */ + static get EXTERNAL() { + return 'external'; + } +} diff --git a/src/deep-resource/lib/Resource/Exception/CachedRequestException.js b/src/deep-resource/lib/Resource/Exception/CachedRequestException.js new file mode 100644 index 00000000..8955c298 --- /dev/null +++ b/src/deep-resource/lib/Resource/Exception/CachedRequestException.js @@ -0,0 +1,16 @@ +/** + * Created by AlexanderC on 8/21/15. + */ + +'use strict'; + +import {Exception} from '../../Exception/Exception'; + +export class CachedRequestException extends Exception { + /** + * @param {String} exception + */ + constructor(exception) { + super(`Error while working with cached response: ${exception}`); + } +} diff --git a/src/deep-resource/lib/Resource/Exception/MissingActionException.js b/src/deep-resource/lib/Resource/Exception/MissingActionException.js new file mode 100644 index 00000000..0773d71f --- /dev/null +++ b/src/deep-resource/lib/Resource/Exception/MissingActionException.js @@ -0,0 +1,20 @@ +/** + * Created by mgoria on 8/04/15. + */ + +'use strict'; + +import {Exception} from '../../Exception/Exception'; + +/** + * Thrown when requested resource action not found + */ +export class MissingActionException extends Exception { + /** + * @param {String} resourceName + * @param {String} actionName + */ + constructor(resourceName, actionName) { + super(`Missing action ${actionName} in ${resourceName} resource.`); + } +} diff --git a/src/deep-resource/lib/Resource/Exception/MissingCacheImplementationException.js b/src/deep-resource/lib/Resource/Exception/MissingCacheImplementationException.js new file mode 100644 index 00000000..ca3c43bd --- /dev/null +++ b/src/deep-resource/lib/Resource/Exception/MissingCacheImplementationException.js @@ -0,0 +1,13 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import {Exception} from '../../Exception/Exception'; + +export class MissingCacheImplementationException extends Exception { + constructor() { + super(`Missing cache implementation in Request object`); + } +} diff --git a/src/deep-resource/lib/Resource/Exception/UnknownMethodException.js b/src/deep-resource/lib/Resource/Exception/UnknownMethodException.js new file mode 100644 index 00000000..8b78a8e8 --- /dev/null +++ b/src/deep-resource/lib/Resource/Exception/UnknownMethodException.js @@ -0,0 +1,22 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import {Exception} from '../../Exception/Exception'; + +/** + * Thrown when requested method is missing from allowed vector + */ +export class UnknownMethodException extends Exception { + /** + * @param {String} requestedMethod + * @param {Array} availableMethods + */ + constructor(requestedMethod, availableMethods) { + let availableList = availableMethods.join(', '); + + super(`Requested method ${requestedMethod} must be one of ${availableList}`); + } +} diff --git a/src/deep-resource/lib/Resource/Instance.js b/src/deep-resource/lib/Resource/Instance.js new file mode 100644 index 00000000..bb0fcf91 --- /dev/null +++ b/src/deep-resource/lib/Resource/Instance.js @@ -0,0 +1,136 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import {MissingActionException} from './Exception/MissingActionException'; +import {Action} from './Action'; + +/** + * Resource instance + */ +export class Instance { + /** + * @param {String} name + * @param {Object} rawActions + */ + constructor(name, rawActions) { + this._name = name; + this._rawActions = rawActions; + this._actions = null; + this._localBackend = false; + this._cache = null; + + this._securityCredentials = { + accessKeyId: null, + secretAccessKey: null, + sessionToken: null, + }; + } + + /** + * @returns {Object} + */ + get securityCredentials() { + return this._securityCredentials; + } + + /** + * @param {Object} credentials + */ + set securityCredentials(credentials) { + this._securityCredentials = credentials; + } + + /** + * @returns {String} + */ + get name() { + return this._name; + } + + /** + * @returns {Object} + */ + get cache() { + return this._cache; + } + + /** + * @param {Object} cache + */ + set cache(cache) { + this._cache = cache; + } + + /** + * @returns {Boolean} + */ + get localBackend() { + return this._localBackend; + } + + /** + * @param {Boolean} state + */ + set localBackend(state) { + this._localBackend = state; + } + + /** + * @returns {Object} + */ + get actions() { + if (this._actions === null) { + this._actions = {}; + + for (let actionName in this._rawActions) { + if (!this._rawActions.hasOwnProperty(actionName)) { + continue; + } + + let actionMetadata = this._rawActions[actionName]; + + this._actions[actionName] = new Action( + this, + actionName, + actionMetadata.type, + actionMetadata.methods, + actionMetadata.source, + actionMetadata.region + ); + } + } + + return this._actions; + } + + /** + * @param {String} actionName + * @returns {boolean} + */ + has(actionName) { + return this.actions.hasOwnProperty(actionName); + } + + /** + * @param actionName + * @returns {Action} + */ + action(actionName) { + if (!this.has(actionName)) { + throw new MissingActionException(this.name, actionName); + } + + return this.actions[actionName]; + } + + /** + * @param {String} actionName + * @param {*} args + */ + request(actionName, ...args) { + return this.action(actionName).request(...args); + } +} diff --git a/src/deep-resource/lib/Resource/LambdaResponse.js b/src/deep-resource/lib/Resource/LambdaResponse.js new file mode 100644 index 00000000..3f91d35f --- /dev/null +++ b/src/deep-resource/lib/Resource/LambdaResponse.js @@ -0,0 +1,98 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import {Response} from './Response'; + +/** + * Response object + */ +export class LambdaResponse extends Response { + /** + * @param {Request} request + * @param {Object} data + * @param {String} error + */ + constructor(request, data, error) { + super(...arguments); + + this._errorType = null; + } + + /** + * @returns {Object} + */ + get data() { + if (this._data) { + return this._data; + } + + if (this._rawData) { + var response = JSON.parse(this._rawData.Payload); + if (response && typeof response.errorMessage === 'undefined') { + this._data = response; + } + } + + return this._data; + } + + /** + * @returns {String} + */ + get error() { + if (this._error) { + return this._error; + } + + if (this._rawError) { + this._error = this._rawError; + } else { + var response = JSON.parse(this._rawData.Payload); + if (response && typeof response.errorMessage !== 'undefined') { + this._error = response.errorMessage; + } + } + + return this._error; + } + + /** + * @returns {String} + */ + get errorType() { + if (this._errorType) { + return this._errorType; + } + + if (this._rawError) { + this._errorType = (this._rawError && this._rawError.name) ? this._rawError.name : 'Error'; + } else { + var response = JSON.parse(this._rawData.Payload); + if (response && typeof response.errorType !== 'undefined') { + this._errorType = response.errorType; + } else { + this._errorType = 'Error'; + } + } + + return this._errorType; + } + + /** + * @returns {String} + */ + get statusCode() { + if (this._statusCode) { + return this._statusCode; + } + + if (this._rawData) { + this._statusCode = this._rawData.StatusCode; + } + + return this._statusCode; + } +} diff --git a/src/deep-resource/lib/Resource/LocalRequest.js b/src/deep-resource/lib/Resource/LocalRequest.js new file mode 100644 index 00000000..c3546f73 --- /dev/null +++ b/src/deep-resource/lib/Resource/LocalRequest.js @@ -0,0 +1,52 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import {SuperagentResponse} from './SuperagentResponse'; +import {Request} from './Request'; +import {Action} from './Action'; +import Http from 'superagent'; + +/** + * Resource request instance + */ +export class LocalRequest extends Request { + constructor(...args) { + super(...args); + } + + /** + * @param {Function} callback + * @returns {LocalRequest|*} + */ + _send(callback = null) { + let actionType = this._action.type; + + if (actionType === Action.LAMBDA) { + let data = { + lambda: this._action.source.original, + payload: this.payload, + method: this._method, + }; + + Http.post(LocalRequest.LOCAL_LAMBDA_ENDPOINT) + .send(data) + .end(function(error, response) { + callback && callback(new SuperagentResponse(this, response, error)); + }.bind(this)); + } else { + return this.prototype.useNative()._send(...arguments); + } + + return this; + } + + /** + * @returns {String} + */ + static get LOCAL_LAMBDA_ENDPOINT() { + return '/_/lambda'; + } +} diff --git a/src/deep-resource/lib/Resource/Request.js b/src/deep-resource/lib/Resource/Request.js new file mode 100644 index 00000000..59f56e4d --- /dev/null +++ b/src/deep-resource/lib/Resource/Request.js @@ -0,0 +1,401 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import {SuperagentResponse} from './SuperagentResponse'; +import {LambdaResponse} from './LambdaResponse'; +import {Response} from './Response'; +import {Exception} from '../Exception/Exception'; +import {Action} from './Action'; +import Http from 'superagent'; +import AWS from 'aws-sdk'; +import {MissingCacheImplementationException} from './Exception/MissingCacheImplementationException'; +import {CachedRequestException} from './Exception/CachedRequestException'; +import aws4 from 'aws4'; +import parseUrl from 'parse-url'; + +/** + * Action request instance + */ +export class Request { + /** + * @param {Action} action + * @param {Object} payload + * @param {String} method + */ + constructor(action, payload, method) { + this._action = action; + this._payload = payload; + this._method = method; + this._lambda = null; + + this._cacheImpl = null; + this._cacheTtl = Request.TTL_FOREVER; + this._cached = false; + + this._native = true; // @todo: change to false on an stable API Gateway version + } + + /** + * @returns {Boolean} + */ + get native() { + return this._native; + } + + /** + * @returns {Request} + */ + useDirectCall() { + this._native = true; + return this; + } + + /** + * @returns {Boolean} + */ + get isCached() { + return this._cacheImpl && this._cached; + } + + /** + * @returns {Request} + */ + enableCache() { + this._cached = true; + return this; + } + + /** + * @returns {Request} + */ + disableCache() { + this._cached = false; + return this; + } + + /** + * @param {Number} ttl + * @returns {Request} + */ + cache(ttl = Request.TTL_FOREVER) { + if (!this._cacheImpl) { + throw new MissingCacheImplementationException(); + } + + this._cacheTtl = ttl; + this.enableCache(); + + return this; + } + + /** + * @returns {Number} + */ + get cacheTtl() { + return this._cacheTtl; + } + + /** + * @param {Number} ttl + */ + set cacheTtl(ttl) { + this._cacheTtl = ttl; + } + + /** + * @returns {Object} + */ + get cacheImpl() { + return this._cacheImpl; + } + + /** + * @param {Object} cache + */ + set cacheImpl(cache) { + this._cacheImpl = cache; + + // @todo: do we really have to force it? + this.cache(Request.TTL_DEFAULT); + } + + /** + * @returns {String} + * @private + */ + _buildCacheKey() { + let payload = JSON.stringify(this._payload); + + return `${this._method}:${this._action.type}:${this._action.source}#${payload}`; + } + + /** + * @param {Response} response + * @returns {String} + * @private + */ + static _stringifyResponse(response) { + return JSON.stringify({ + _class: response.constructor.name, + data: response.rawData, + error: response.rawError, + }); + } + + /** + * @param {String} rawData + * @returns {Response} + * @private + */ + _rebuildResponse(rawData) { + let response = JSON.parse(rawData); + + if (!response) { + throw new CachedRequestException(`Unable to unpack cached JSON object from ${rawData}`); + } + + let ResponseImpl = Request._chooseResponseImpl(response._class); + + if (!ResponseImpl) { + throw new Exception(`Unknown Response implementation ${response._class}`); + } + + return new ResponseImpl(this, response.data, response.error); + } + + /** + * @param {String} className + * @returns {*} + * @private + */ + static _chooseResponseImpl(className) { + let implMap = {}; + + implMap[Response.name] = Response; + implMap[LambdaResponse.name] = LambdaResponse; + implMap[SuperagentResponse.name] = SuperagentResponse; + + return implMap[className]; + } + + /** + * @param {Function} callback + */ + invalidateCache(callback = null) { + if (!this.isCached) { + callback && callback(true); + + return this; + } + + let cache = this._cacheImpl; + let cacheKey = this._buildCacheKey(); + + cache.has(cacheKey, function(error, result) { + if (error) { + throw new CachedRequestException(error); + } + + if (result) { + cache.invalidate(cacheKey, 0, function(error, result) { + if (error) { + throw new CachedRequestException(error); + } + + callback && callback(result); + }.bind(this)); + + return; + } + + callback && callback(true); + }.bind(this)); + + return this; + } + + /** + * @param {Function} callback + */ + send(callback = null) { + if (!this.isCached) { + return this._send(callback); + } + + let cache = this._cacheImpl; + let invalidateCache = this._cacheTtl === Request.TTL_INVALIDATE; + let cacheKey = this._buildCacheKey(); + + cache.has(cacheKey, function(error, result) { + if (error) { + throw new CachedRequestException(error); + } + + if (result && !invalidateCache) { + cache.get(cacheKey, function(error, result) { + if (error) { + throw new CachedRequestException(error); + } + + callback && callback(this._rebuildResponse(result)); + }.bind(this)); + + return; + } + + this._send(function(response) { + cache.set(cacheKey, Request._stringifyResponse(response), this._cacheTtl, function(error, result) { + if (!result) { + error = `Unable to persist request cache under key ${cacheKey}`; + } + + if (error) { + throw new CachedRequestException(error); + } + }.bind(this)); + + // @todo: do it synchronous? + callback && callback(response); + }.bind(this)); + }.bind(this)); + + return this; + } + + /** + * @param {Function} callback + * @returns {Request} + */ + _send(callback = () => null) { + if (!this._native) { + return this._sendThroughApi(callback); + } + + switch (this._action.type) { + case Action.LAMBDA: + this._sendLambda(callback); + break; + case Action.EXTERNAL: + this._sendExternal(callback); + break; + default: throw new Exception(`Request of type ${this._action.type} is not implemented`); + } + + return this; + } + + /** + * @param {Function} callback + * @returns {Request} + * @private + */ + _sendThroughApi(callback = () => null) { + let urlParts = parseUrl(this._action.source.api); + + let apiHost = urlParts.resource; + let apiPath = urlParts.pathname ? urlParts.pathname : '/'; + let apiQueryString = urlParts.search ? `?${urlParts.search}` : ''; + + let signature = aws4.sign({ + host: apiHost, + path: `${apiPath}${apiQueryString}`, + }, this._action.resource.securityCredentials); + + Http[this._method.toLowerCase()](this._action.source.api) + .set('Host', signature.headers.Host) + .set('X-Amz-Date', signature.headers['X-Amz-Date']) + .set('Authorization', signature.headers.Authorization) + .send(this.payload) + .end(function(error, response) { + callback(new SuperagentResponse(this, response, error)); + }.bind(this)); + + return this; + } + + /** + * @param {Function} callback + * @returns {Request} + * @private + */ + _sendLambda(callback = () => null) { + // @todo: set retries in a smarter way... + AWS.config.maxRetries = 3; + + this._lambda = new AWS.Lambda({ + region: this._action.region, + }); + + let invocationParameters = { + FunctionName: this._action.source.original, + Payload: JSON.stringify(this.payload), + }; + + this._lambda.invoke(invocationParameters, function(error, data) { + callback(new LambdaResponse(this, data, error)); + }.bind(this)); + + return this; + } + + /** + * @param {Function} callback + * @returns {Request} + * @private + */ + _sendExternal(callback = () => null) { + Http[this._method.toLowerCase()](this._action.source.original) + .send(this.payload) + .end(function(error, response) { + callback(new SuperagentResponse(this, response, error)); + }.bind(this)); + + return this; + } + + /** + * @returns {Action} + */ + get action() { + return this._action; + } + + /** + * @returns {Object} + */ + get payload() { + return this._payload; + } + + /** + * @returns {String} + */ + get method() { + return this._method; + } + + /** + * @returns {Number} + * @constructor + */ + static get TTL_DEFAULT() { + return 10; + } + + /** + * @returns {Number} + */ + static get TTL_INVALIDATE() { + return -1; + } + + /** + * @returns {Number} + */ + static get TTL_FOREVER() { + return 0; + } +} diff --git a/src/deep-resource/lib/Resource/Response.js b/src/deep-resource/lib/Resource/Response.js new file mode 100644 index 00000000..b5ae70ff --- /dev/null +++ b/src/deep-resource/lib/Resource/Response.js @@ -0,0 +1,107 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +/** + * Response object + */ +export class Response { + /** + * @param {Request} request + * @param {Object} data + * @param {String} error + */ + constructor(request, data, error) { + this._request = request; + + this._rawError = error; + this._rawData = data; + + this._statusCode = null; + this._data = null; + this._error = null; + } + + /** + * @returns {*} + */ + get rawData() { + return this._rawData; + } + + /** + * @returns {*} + */ + get rawError() { + return this._rawError; + } + + /** + * @returns {Request} + */ + get request() { + return this._request; + } + + /** + * @returns {Object} + */ + get data() { + if (this._data) { + return this._data; + } + + if (this._rawData) { + var response = JSON.parse(this._rawData.Payload); + if (response && typeof response.errorMessage === 'undefined') { + this._data = response; + } + } + + return this._data; + } + + /** + * @returns {Boolean} + */ + get isError() { + return typeof this.error === 'string'; + } + + /** + * @returns {String} + */ + get error() { + if (this._error) { + return this._error; + } + + if (this._rawError) { + this._error = this._rawError; + } else { + var response = JSON.parse(this._rawData.Payload); + if (response && typeof response.errorMessage !== 'undefined') { + this._error = response.errorMessage; + } + } + + return this._error; + } + + /** + * @returns {String} + */ + get statusCode() { + if (this._statusCode) { + return this._statusCode; + } + + if (this._rawData) { + this._statusCode = this._rawData.StatusCode; + } + + return this._statusCode; + } +} diff --git a/src/deep-resource/lib/Resource/SuperagentResponse.js b/src/deep-resource/lib/Resource/SuperagentResponse.js new file mode 100644 index 00000000..93d435e9 --- /dev/null +++ b/src/deep-resource/lib/Resource/SuperagentResponse.js @@ -0,0 +1,66 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import {Response} from './Response'; + +export class SuperagentResponse extends Response { + /** + * @param {Request} request + * @param {Object} data + * @param {String} error + */ + constructor(request, data, error) { + super(...arguments); + + this._data = this._parseResponse(data); + this._error = error; + } + + /** + * Parse response given by superagent library + * + * @param {Object} response + * @returns {Object} + * @private + */ + _parseResponse(response) { + if (response.error) { + this._error = response.error; + } + + this._statusCode = response.status; + + return response.body; + } + + /** + * @returns {Object} + */ + get data() { + return this._data; + } + + /** + * @returns {Boolean} + */ + get isError() { + return !!this._error; + } + + /** + * @returns {String} + */ + get error() { + return this._error; + } + + /** + * @returns {String} + */ + get statusCode() { + return this._statusCode; + } +} diff --git a/src/deep-resource/lib/bootstrap.js b/src/deep-resource/lib/bootstrap.js new file mode 100644 index 00000000..2640c64b --- /dev/null +++ b/src/deep-resource/lib/bootstrap.js @@ -0,0 +1,11 @@ +/** + * Created by AlexanderC on 5/22/15. + * + * Bootstrap file loaded by npm as main + */ + +'use strict'; + +import {Resource} from './Resource'; + +let exports = module.exports = Resource; diff --git a/src/deep-resource/package.json b/src/deep-resource/package.json new file mode 100644 index 00000000..152a70a6 --- /dev/null +++ b/src/deep-resource/package.json @@ -0,0 +1,78 @@ +{ + "name": "deep-resource", + "version": "1.0.1", + "description": "DEEP Resource Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Resource", + "Backend", + "REST" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Veaceslav Cotruta", + "email": "vcotruta@mitocgroup.com" + }, + { + "name": "Dragos Palade", + "email": "dpalade@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "1.0.*", + "deep-core": "1.0.*", + "superagent": "1.2.*", + "aws4": "1.0.*", + "parse-url": "1.0.*" + }, + "devDependencies": { + "aws-sdk": "2.1.*", + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/src/deep-resource/test/.gitkeep b/src/deep-resource/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-resource/test/Resource.js b/src/deep-resource/test/Resource.js new file mode 100644 index 00000000..41ea0564 --- /dev/null +++ b/src/deep-resource/test/Resource.js @@ -0,0 +1,75 @@ +'use strict'; + +import chai from 'chai'; +import {Resource} from '../lib.compiled/Resource'; +import {MissingResourceException} from '../lib.compiled/Exception/MissingResourceException'; +import Kernel from 'deep-kernel'; + +suite('Resource', function() { + let resourceInput = {resourceKey: 'resourceObject'}; + let resource = new Resource(resourceInput); + + test('Class Resource exists in Resource', function() { + chai.expect(typeof Resource).to.equal('function'); + }); + + test('Check constructor sets _resources', function() { + chai.expect(resource._resources).to.be.eql(resourceInput); + }); + + test('Check has() method returns valid object', function() { + let error = null; + let actualResult = null; + try { + actualResult = resource.has('identifier'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check get() method returns valid object', function() { + let error = null; + let actualResult = null; + try { + actualResult = resource.get('identifier'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check list() getter returns', function() { + let error = null; + let actualResult = null; + try { + actualResult = resource.list(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); + + test('Check boot() method', function() { + let error = null; + let actualResult = null; + let deepServices = { + serviceName: [ + {firstServiceKey: 'ServiceValue'}, + {secondServiceKey: 'ServiceValue'}, + ], + }; + let kernel = new Kernel(deepServices, Kernel.FRONTEND_CONTEXT); + let callback = () => ''; + try { + actualResult = resource.boot(kernel, callback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + }); +}); diff --git a/src/deep-resource/test/Resource/Action.js b/src/deep-resource/test/Resource/Action.js new file mode 100644 index 00000000..40d8062f --- /dev/null +++ b/src/deep-resource/test/Resource/Action.js @@ -0,0 +1,109 @@ +'use strict'; + +import chai from 'chai'; +import {Action} from '../../lib.compiled/Resource/Action'; +import {UnknownMethodException} from '../../lib.compiled/Resource/Exception/UnknownMethodException'; + +suite('Resource/Action', function() { + let actionName = 'UpdateTest'; + let resource = 'resourceTest'; + let type = 'typeTest'; + let methods = ['GET', 'POST']; + let source = 'sourceTest'; + let region = 'us-west-2'; + let action = new Action(resource, actionName, type, methods, source, region); + + test('Class Action exists in Resource/Action', function() { + chai.expect(typeof Action).to.equal('function'); + }); + + test('Check constructor sets _resource', function() { + chai.expect(action._resource).to.be.equal(resource); + }); + + test('Check constructor sets _name', function() { + chai.expect(action.name).to.be.equal(actionName); + }); + + test('Check constructor sets _type', function() { + chai.expect(action.type).to.be.equal(type); + }); + + test('Check constructor sets _methods', function() { + chai.expect(action.methods).to.be.eql(methods); + }); + + test('Check constructor sets _source', function() { + chai.expect(action.source).to.be.eql(source); + }); + + test('Check constructor sets _region', function() { + chai.expect(action.region).to.be.eql(region); + }); + + test('Check LAMBDA static getter return \'lambda\'', function() { + chai.expect(Action.LAMBDA).to.be.equal('lambda'); + }); + + test('Check EXTERNAL static getter return \'external\'', function() { + chai.expect(Action.EXTERNAL).to.be.equal('external'); + }); + + test('Check HTTP_VERBS static getter', function() { + chai.expect(Action.HTTP_VERBS.length).to.be.equal(7); + chai.expect(Action.HTTP_VERBS).to.be.contains('GET'); + chai.expect(Action.HTTP_VERBS).to.be.contains('POST'); + chai.expect(Action.HTTP_VERBS).to.be.contains('DELETE'); + chai.expect(Action.HTTP_VERBS).to.be.contains('HEAD'); + chai.expect(Action.HTTP_VERBS).to.be.contains('PUT'); + chai.expect(Action.HTTP_VERBS).to.be.contains('OPTIONS'); + chai.expect(Action.HTTP_VERBS).to.be.contains('PATCH'); + }); + + test('Check request method throws \'UnknownMethodException\' ' + + 'exception for unknow method', function() { + let error = null; + try { + action.request({}, 'THROW'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(UnknownMethodException); + }); + + test('Check request() method return valid object', function() { + let error = null; + let actualResult = null; + let expectedResult = { + _action: { + _methods: [ + 'GET', + 'POST', + ], + _name: 'UpdateTest', + _region: 'us-west-2', + _resource: 'resourceTest', + _source: 'sourceTest', + _type: 'typeTest', + }, + _cacheImpl: null, + _cacheTtl: 0, + _cached: false, + _native: true, + _lambda: null, + _method: 'GET', + _payload: {}, + }; + + try { + actualResult = action.request({}, 'GET'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(actualResult).to.be.eql(expectedResult); + }); +}); \ No newline at end of file diff --git a/src/deep-resource/test/Resource/Instance.js b/src/deep-resource/test/Resource/Instance.js new file mode 100644 index 00000000..0db5fd2b --- /dev/null +++ b/src/deep-resource/test/Resource/Instance.js @@ -0,0 +1,48 @@ +'use strict'; + +import chai from 'chai'; +import {Instance} from '../../lib.compiled/Resource/Instance'; + +suite('Resource/Instance', function() { + let actionName = 'UpdateData'; + let rawActions = ['find', 'update']; + let instance = new Instance(actionName, rawActions); + + test('Class Instance exists in Resource/Instance', function() { + chai.expect(typeof Instance).to.equal('function'); + }); + + test('Check constructor sets _name', function() { + chai.expect(instance.name).to.be.equal(actionName); + }); + + test('Check constructor sets _rawActions', function() { + chai.expect(instance._rawActions).to.be.equal(rawActions); + }); + + test('Check constructor sets _actions=null', function() { + chai.expect(Object.keys(instance.actions).length).to.be.equal(2); + }); + + test('Check constructor sets _localBackend=false', function() { + chai.expect(instance.localBackend).to.be.equal(false); + }); + + test('Check constructor sets _cache=null', function() { + chai.expect(instance.cache).to.be.equal(null); + }); + + test('Check cache() setter sets _cache={}', function() { + instance.cache = null; + chai.expect(instance.cache).to.be.equal(null); + instance.cache = {}; + chai.expect(instance.cache).to.be.eql({}); + }); + + test('Check localBackend() setter sets _cache={}', function() { + instance.cache = false; + chai.expect(instance.localBackend).to.be.equal(false); + instance.cache = true; + chai.expect(instance.cache).to.be.equal(true); + }); +}); \ No newline at end of file diff --git a/src/deep-resource/test/Resource/LambdaResponse.js b/src/deep-resource/test/Resource/LambdaResponse.js new file mode 100644 index 00000000..49ed2253 --- /dev/null +++ b/src/deep-resource/test/Resource/LambdaResponse.js @@ -0,0 +1,83 @@ +'use strict'; + +import chai from 'chai'; +import {LambdaResponse} from '../../lib.compiled/Resource/LambdaResponse'; + +suite('Resource/LambdaResponse', function() { + let request = 'requestTest'; + let rawData = {Payload: '{"dataKey":"testValue"}', StatusCode:201}; + let rawError = '{"message":"errorMessage", "name":"RuntimeException"}'; + + let lambdaResponse = new LambdaResponse(request, rawData, rawError); + + test('Class LambdaResponse exists in Resource/LambdaResponse', function() { + chai.expect(typeof LambdaResponse).to.equal('function'); + }); + + test('Check constructor sets valid value for _actions=null', function() { + chai.expect(lambdaResponse.actions).to.be.equal(undefined); + }); + + test('Check constructor sets valid value for _localBackend=false', function() { + chai.expect(lambdaResponse.localBackend).to.be.equal(undefined); + }); + + test('Check constructor sets valid value for _cache=null', function() { + chai.expect(lambdaResponse.cache).to.be.equal(undefined); + }); + + test('Check data getter returns valid object', function() { + //check when this._rawData + let expectedResult = JSON.parse(rawData.Payload); + chai.expect(lambdaResponse.data).to.be.eql(expectedResult); + + //check when this._data + chai.expect(lambdaResponse.data).to.be.eql(expectedResult); + }); + + test(`Check statusCode getter returns: ${rawData.StatusCode}`, function() { + //check when this._rawData + chai.expect(lambdaResponse.statusCode).to.be.equal(rawData.StatusCode); + + //check when this._statusCode + chai.expect(lambdaResponse.statusCode).to.be.equal(rawData.StatusCode); + }); + + test('Check error getter returns valid error', function() { + //check when this._rawError + chai.expect(lambdaResponse.error).to.be.eql(rawError); + + //check when this._error + chai.expect(lambdaResponse.error).to.be.eql(rawError); + }); + + test('Check error getter returns valid error from rawData with errorMessage', function() { + let rawDataWithError = {Payload: '{"dataKey":"testValue","errorMessage":"Internal error"}', StatusCode: 500}; + let emptyRawError = null; + let lambdaResponseWithError = new LambdaResponse(request, rawDataWithError, emptyRawError); + chai.expect(lambdaResponseWithError.error).to.be.equal('Internal error'); + }); + + test('Check errorType getter returns valid error', function() { + //check when this._rawError + chai.expect(lambdaResponse.errorType).to.be.equal('Error'); + + //check when this._errorType + chai.expect(lambdaResponse.errorType).to.be.equal('Error'); + }); + + test('Check errorType getter returns valid error from rawData with errotType', function() { + let rawDataWithError = {Payload: '{"dataKey":"testValue","errorMessage":"Internal error",' + + '"errorType":"RuntimeException"}', StatusCode: 500}; + let emptyRawError = null; + let lambdaResponseWithError = new LambdaResponse(request, rawDataWithError, emptyRawError); + chai.expect(lambdaResponseWithError.errorType).to.be.equal('RuntimeException'); + }); + + test('Check errorType getter returns valid error from rawData without errotType', function() { + let rawDataWithError = {Payload: '{"dataKey":"testValue","errorMessage":"Internal error"}', StatusCode: 500}; + let emptyRawError = null; + let lambdaResponseWithError = new LambdaResponse(request, rawDataWithError, emptyRawError); + chai.expect(lambdaResponseWithError.errorType).to.be.equal('Error'); + }); +}); diff --git a/src/deep-resource/test/Resource/LocalRequest.js b/src/deep-resource/test/Resource/LocalRequest.js new file mode 100644 index 00000000..c6b51365 --- /dev/null +++ b/src/deep-resource/test/Resource/LocalRequest.js @@ -0,0 +1,19 @@ +'use strict'; + +import chai from 'chai'; +import {LocalRequest} from '../../lib.compiled/Resource/LocalRequest'; + +suite('Resource/LocalRequest', function() { + let action = { type:'lambda', source: 'testLambda'}; + let payload = '{"body":"bodyData"}'; + let method = 'method'; + let request = new LocalRequest(action, payload, method); + + test('Class LocalRequest exists in Resource/LocalRequest', function() { + chai.expect(typeof LocalRequest).to.equal('function'); + }); + + test('Check LOCAL_LAMBDA_ENDPOINT static getter return \'/_/lambda\'', function() { + chai.expect(LocalRequest.LOCAL_LAMBDA_ENDPOINT).to.be.equal('/_/lambda'); + }); +}); diff --git a/src/deep-resource/test/Resource/Request.js b/src/deep-resource/test/Resource/Request.js new file mode 100644 index 00000000..23a5ed47 --- /dev/null +++ b/src/deep-resource/test/Resource/Request.js @@ -0,0 +1,224 @@ +'use strict'; + +import chai from 'chai'; +import {Request} from '../../lib.compiled/Resource/Request'; +import {Response} from '../../lib.compiled/Resource/Response'; +import {MissingCacheImplementationException} from '../../lib.compiled/Resource/Exception/MissingCacheImplementationException'; +import {Exception} from '../../lib.compiled/Exception/Exception'; +import {CachedRequestException} from '../../lib.compiled/Resource/Exception/CachedRequestException'; + + +suite('Resource/Request', function() { + let action = { type:'lambda', source: 'testLambda'}; + let payload = '{"body":"bodyData"}'; + let method = 'method'; + let request = new Request(action, payload, method); + + test('Class Request exists in Resource/Request', function() { + chai.expect(typeof Request).to.equal('function'); + }); + + test('Check constructor sets valid value for _method', function() { + chai.expect(request.method).to.be.equal(method); + }); + + test('Check constructor sets valid value for _action', function() { + chai.expect(request.action).to.be.equal(action); + }); + + test('Check constructor sets valid value for _payload', function() { + chai.expect(request.payload).to.be.equal(payload); + }); + + test('Check constructor sets valid value for _lambda=null', function() { + chai.expect(request._lambda).to.be.equal(null); + }); + + test('Check constructor sets valid value for _cacheImpl=null', function() { + chai.expect(request.cacheImpl).to.be.equal(null); + }); + + test('Check constructor sets valid value for _cacheImpl=null', function() { + chai.expect(request.cacheTtl).to.be.equal(Request.TTL_FOREVER); + }); + + test('Check cache method throws \'MissingCacheImplementationException\' exception for !_cacheImpl', function() { + let error = null; + try { + request.cache(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(MissingCacheImplementationException); + }); + + test('Check constructor sets valid value for _cached=false', function() { + chai.expect(request._cached).to.be.equal(false); + }); + + test('Check isCached getter returns false', function() { + chai.expect(request.isCached).to.be.equal(null); + }); + + test('Check cacheTtl setter sets value', function() { + let cacheTtl = 120; + request.cacheTtl = cacheTtl; + chai.expect(request.cacheTtl).to.be.equal(cacheTtl); + }); + + test('Check enableCache/disableCache methods', function() { + request.disableCache(); + chai.expect(request._cached).to.be.equal(false); + request.enableCache(); + chai.expect(request._cached).to.be.equal(true); + }); + + test('Check TTL_DEFAULT static getter returns value above -1', function() { + chai.expect(Request.TTL_DEFAULT).to.be.above(0); + }); + + test('Check TTL_INVALIDATE static getter returns value -1', function() { + chai.expect(Request.TTL_INVALIDATE).to.be.equal(-1); + }); + + test('Check TTL_FOREVER static getter returns value above -1', function() { + chai.expect(Request.TTL_FOREVER).to.be.above(-1); + }); + + test('Check _rebuildResponse method throws CachedRequestException exception for invalid rawData', function() { + let error = null; + let rawData = 'null'; + try { + request._rebuildResponse(rawData); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(CachedRequestException); + }); + + test('Check _stringifyResponse() method', function() { + let requestData = 'responseTest'; + let rawData = {Payload: '{"dataKey":"testResponseValue"}', StatusCode:201}; + let rawError = null; + let error = null; + let actualResult = null; + let response = null; + + try { + response = new Response(requestData, rawData, rawError); + actualResult = JSON.parse(Request._stringifyResponse(response)); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(actualResult._class).to.be.equal('Response'); + chai.expect(actualResult.data).to.be.eql(rawData); + chai.expect(actualResult.error).to.be.equal(rawError); + + }); + + test(`Check _buildCacheKey() method returns ${method}:${action.type}:${action.source}#${payload}`, function() { + let actualResult = request._buildCacheKey(); + let expectedResult = `${method}:${action.type}:${action.source}#${JSON.stringify(payload)}`; + chai.expect(actualResult).to.be.equal(expectedResult); + }); + + test('Check cacheImpl() setter sets valid value', function() { + let cache = {cacheIml: 'cacheImlTest'}; + request.cacheImpl = cache; + chai.expect(request.cacheImpl).to.be.equal(cache); + chai.expect(request.cacheTtl).to.be.equal(Request.TTL_DEFAULT); + }); + + test('Check _chooseResponseImpl() return valid object', function() { + let error = null; + let actualResult = null; + try { + actualResult = Request._chooseResponseImpl('TestClass'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + }); + + test('Check _rebuildResponse() throws \'Exception\'', function() { + let rawData = '{ "_class":"TestResponseMessage"}'; + + let error = null; + let actualResult = null; + try { + actualResult = request._rebuildResponse(rawData); + } catch (e) { + error = e; + } + + chai.assert.instanceOf(error, Exception, 'result is an instance of Exception'); + chai.expect(error.message).to.be.equal('Unknown Response implementation TestResponseMessage'); + }); + + test('Check _send() for lambda', function() { + let error = null; + try { + request._send(); + } catch (e) { + error = e; + } + }); + + test('Check _send() for external', function() { + let externalAction = { type:'external', source: 'testLambda'}; + let externalPayload = '{"body":"bodyData"}'; + let externalMethod = 'method'; + let externalRequest = new Request(externalAction, externalPayload, externalMethod); + let error = null; + try { + externalRequest._send(); + } catch (e) { + error = e; + } + }); + + test('Check _send() throws \'Exception\'', function() { + let invalidAction = { type:'invalidAction', source: 'testLambda'}; + let payload = '{"body":"bodyData"}'; + let method = 'method'; + let invalidRequest = new Request(invalidAction, payload, method); + let error = null; + try { + invalidRequest._send(); + } catch (e) { + error = e; + } + + chai.assert.instanceOf(error, Exception, 'result is an instance of Exception'); + chai.expect(error.message).to.be.equal('Request of type invalidAction is not implemented'); + }); + + test('Check send() !isCached', function() { + let error = null; + request.disableCache(); + chai.expect(request.isCached).to.be.equal(false); + try { + request.send(); + } catch (e) { + error = e; + } + }); + + test('Check send() isCached', function() { + let error = null; + request.enableCache(); + chai.expect(request.isCached).to.be.equal(true); + try { + request.send(); + } catch (e) { + error = e; + } + }); +}); diff --git a/src/deep-resource/test/Resource/Response.js b/src/deep-resource/test/Resource/Response.js new file mode 100644 index 00000000..d136bb9e --- /dev/null +++ b/src/deep-resource/test/Resource/Response.js @@ -0,0 +1,59 @@ +'use strict'; + +import chai from 'chai'; +import {Response} from '../../lib.compiled/Resource/Response'; + +suite('Resource/Response', function() { + let request = 'requestTest'; + let rawData = {Payload: '{"dataKey":"testValue"}', StatusCode:201}; + let rawError = '{ "message":"errorMessage"}'; + let response = new Response(request, rawData, rawError); + + test('Class Response exists in Resource/Response', function() { + chai.expect(typeof Response).to.equal('function'); + }); + + test('Check constructor sets _request', function() { + chai.expect(response.request).to.be.equal(request); + }); + + test('Check constructor sets _rawError', function() { + chai.expect(response.rawError).to.be.equal(rawError); + }); + + test('Check constructor sets _rawData', function() { + chai.expect(response.rawData).to.be.equal(rawData); + }); + + test(`Check statusCode getter returns: ${rawData.StatusCode}`, function() { + //check when this._rawData + chai.expect(response.statusCode).to.be.equal(rawData.StatusCode); + + //check when this._statusCode + chai.expect(response.statusCode).to.be.equal(rawData.StatusCode); + }); + + test('Check data getter returns valid object', function() { + //check when this._rawData + let expectedResult = JSON.parse(rawData.Payload); + chai.expect(response.data).to.be.eql(expectedResult); + + //check when this._data + chai.expect(response.data).to.be.eql(expectedResult); + }); + + test('Check error getter returns valid error', function() { + chai.expect(response.error).to.be.eql(rawError); + }); + + test('Check isError getter returns true', function() { + chai.expect(response.isError).to.be.equal(true); + }); + + test('Check error getter returns valid error from rawData', function() { + let rawDataWithError = {Payload: '{"dataKey":"testValue","errorMessage":"Internal error"}', StatusCode:500}; + let emptyRawError = null; + let responseWithError = new Response(request, rawDataWithError, emptyRawError); + chai.expect(responseWithError.error).to.be.equal('Internal error'); + }); +}); diff --git a/src/deep-resource/test/Resource/SuperagentResponse.js b/src/deep-resource/test/Resource/SuperagentResponse.js new file mode 100644 index 00000000..bb9e2af7 --- /dev/null +++ b/src/deep-resource/test/Resource/SuperagentResponse.js @@ -0,0 +1,32 @@ +'use strict'; + +import chai from 'chai'; +import {SuperagentResponse} from '../../lib.compiled/Resource/SuperagentResponse'; + +suite('Resource/SuperagentResponse', function () { + let request = 'requestTest'; + let rawData = {status: 201, body: 'bodyTest', error: 'errorMessage',}; + let rawError = {message: 'errorMessage'}; + + let superagentResponse = new SuperagentResponse(request, rawData, rawError); + + test('Class SuperagentResponse exists in Resource/SuperagentResponse', function() { + chai.expect(typeof SuperagentResponse).to.equal('function'); + }); + + test('Check constructor sets _data', function() { + chai.expect(superagentResponse.data).to.be.equal(rawData.body); + }); + + test('Check constructor sets _error', function() { + chai.expect(superagentResponse.error).to.be.eql(rawError); + }); + + test('Check isError getter returns true', function() { + chai.expect(superagentResponse.isError).to.be.equal(true); + }); + + test(`Check statusCode getter returns ${rawData.status}`, function() { + chai.expect(superagentResponse.statusCode).to.be.equal(rawData.status); + }); +}); diff --git a/src/deep-security/.gitignore b/src/deep-security/.gitignore new file mode 100644 index 00000000..439877b8 --- /dev/null +++ b/src/deep-security/.gitignore @@ -0,0 +1,105 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log \ No newline at end of file diff --git a/src/deep-security/.npmignore b/src/deep-security/.npmignore new file mode 100644 index 00000000..8219039a --- /dev/null +++ b/src/deep-security/.npmignore @@ -0,0 +1,4 @@ +test +tests +/lib +.gitignore \ No newline at end of file diff --git a/src/deep-security/README.md b/src/deep-security/README.md new file mode 100644 index 00000000..fe0f7d61 --- /dev/null +++ b/src/deep-security/README.md @@ -0,0 +1,83 @@ +deep-security +============= + +[![NPM Version](https://img.shields.io/npm/v/deep-security.svg)](https://npmjs.org/package/deep-security) +[![Build Status](https://travis-ci.org/MitocGroup/deep-framework.svg)](https://travis-ci.org/MitocGroup/deep-framework) +[![Coverage Status](https://coveralls.io/repos/MitocGroup/deep-framework/badge.svg?service=github&t=3QEkFa)](https://coveralls.io/github/MitocGroup/deep-framework) +[![Codacy Badge](https://api.codacy.com/project/badge/630b5f0024334dc09fd0299b1a8a0ed5)](https://www.codacy.com/app/MitocGroup/deep-framework) +[![API Docs](http://docs.deep.mg/deep-security/badge.svg)](http://docs.deep.mg/deep-sercurity/) + +[deep-security](https://www.npmjs.com/package/deep-security) is a node.js library, part of [DEEP Framework](https://github.com/MitocGroup/deep-framework). + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-ecosystem.png) + +Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less. + +## DEEP for Businesses [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### User Guide Documentation (to be updated later) + +DEEP is enabling small and medium businesses, as well as enterprises to: +- Rent applications on a monthly basis by needed functionality from [DEEP Marketplace](https://www.deep.mg) +- Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS +- Pay only for subscribed applications and stop paying when unsubscribing and not using anymore +- Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences +- Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP for Developers [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### [API Guide Documentation](http://docs.deep.mg) +#### [Developer Guide Documentation](https://github.com/MitocGroup/deep-framework/blob/master/docs/index.md) + +DEEP is enabling developers and architects to: +- Design microservices architecture on top of serverless environments from cloud providers like AWS +- Build distributed software that combines and manages hardware and software in the same microservice +- Use the framework's abstracted approach to build applications that could be cloud agnostic +- Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) +- Run in the cloud the software that was built by distributed teams and served self-service in large organizations +- Monetize their work of art by uploading microservices to [DEEP Marketplace](https://www.deep.mg) + +> [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with [DEEP Microservices HelloWorld](https://github.com/MitocGroup/deep-microservices-helloworld) or [DEEP Microservices ToDo App](https://github.com/MitocGroup/deep-microservices-todo-app), as well as [DEEP CLI](https://www.npmjs.com/package/deepify) (aka `deepify`). + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP Architecture on AWS [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-architecture.png) + +DEEP is using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries: + +DEEP Abstracted Library | Description | AWS Abstracted Service(s) +-------------|---------------------|-------------------------- +[deep-asset](http://docs.deep.mg/deep-asset) | Assets Management Library | Amazon S3 +[deep-cache](http://docs.deep.mg/deep-cache) | Cache Management Library | Amazon ElastiCache +[deep-core](http://docs.deep.mg/deep-core) | Core Management Library | - +[deep-db](http://docs.deep.mg/deep-db) | Database Management Library | Amazon DynamoDB, Amazon SQS +[deep-di](http://docs.deep.mg/deep-di) | Dependency Injection Management Library | - +[deep-event](http://docs.deep.mg/deep-event) | Events Management Library | Amazon Kinesis +[deep-fs](http://docs.deep.mg/deep-fs) | File System Management Library | Amazon S3 +[deep-kernel](http://docs.deep.mg/deep-kernel) | Kernel Management Library | - +[deep-log](http://docs.deep.mg/deep-log) | Logs Management Library | Amazon CloudWatch Logs +[deep-notification](http://docs.deep.mg/deep-notification) | Notifications Management Library | Amazon SNS +[deep-resource](http://docs.deep.mg/deep-resource) | Resouces Management Library | AWS Lambda, Amazon API Gateway +[deep-security](http://docs.deep.mg/deep-security) | Security Management Library | AWS IAM, Amazon Cognito +[deep-validation](http://docs.deep.mg/deep-validation) | Validation Management Library | - + +## Feedback + +We are eager to get your feedback, so please use whatever communication channel you prefer: +- [github issues](https://github.com/MitocGroup/deep-framework/issues) +- [gitter chat room](https://gitter.im/MitocGroup/deep-framework) +- [deep email address](mailto:feedback@deep.mg) + +## License + +This repository can be used under the MIT license. +> See [LICENSE](https://github.com/MitocGroup/deep-framework/blob/master/LICENSE) for more details. + +## Sponsors + +This repository is being sponsored by: +> [Mitoc Group](http://www.mitocgroup.com) diff --git a/src/deep-security/lib/Exception/AuthException.js b/src/deep-security/lib/Exception/AuthException.js new file mode 100644 index 00000000..6b86929f --- /dev/null +++ b/src/deep-security/lib/Exception/AuthException.js @@ -0,0 +1,19 @@ +/** + * Created by mgoria on 6/30/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when auth error occurs + */ +export class AuthException extends Exception { + /** + * @param {Object} error + */ + constructor(error) { + super(`Error on authentication. ${error}`); + } +} diff --git a/src/deep-security/lib/Exception/Exception.js b/src/deep-security/lib/Exception/Exception.js new file mode 100644 index 00000000..90ade1cd --- /dev/null +++ b/src/deep-security/lib/Exception/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Core from 'deep-core'; + +/** + * Thrown when any exception occurs + */ +export class Exception extends Core.Exception.Exception { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-security/lib/Exception/LoadUserException.js b/src/deep-security/lib/Exception/LoadUserException.js new file mode 100644 index 00000000..338be3d2 --- /dev/null +++ b/src/deep-security/lib/Exception/LoadUserException.js @@ -0,0 +1,20 @@ +/** + * Created by mgoria on 7/10/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when load user form db failed + */ +export class LoadUserException extends Exception { + /** + * @param {String} identityId + * @param {Object} error + */ + constructor(identityId, error) { + super(`Error on loading user ${identityId} from db. ${error}`); + } +} diff --git a/src/deep-security/lib/Exception/MissingLoginProviderException.js b/src/deep-security/lib/Exception/MissingLoginProviderException.js new file mode 100644 index 00000000..4307e305 --- /dev/null +++ b/src/deep-security/lib/Exception/MissingLoginProviderException.js @@ -0,0 +1,19 @@ +/** + * Created by mgoria on 6/23/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when requested login provider is missing + */ +export class MissingLoginProviderException extends Exception { + /** + * @param {String} providerName + */ + constructor(providerName) { + super(`Missing login provider "${providerName}" in deep-security.`); + } +} diff --git a/src/deep-security/lib/LocalToken.js b/src/deep-security/lib/LocalToken.js new file mode 100644 index 00000000..4964ca84 --- /dev/null +++ b/src/deep-security/lib/LocalToken.js @@ -0,0 +1,29 @@ +/** + * Created by mgoria on 09/01/15. + */ + +'use strict'; + +import {Token} from './Token'; + +/** + * Security token holds details about logged user + */ +export class LocalToken extends Token { + /** + * @param args + */ + constructor(...args) { + super(...args); + } + + /** + * @param {Function} callback + */ + getCredentials(callback) { + // use provider user id instead of cognito identity id for local backend + this._identityId = this._providerUserId; + + callback(null, this); + } +} diff --git a/src/deep-security/lib/Security.js b/src/deep-security/lib/Security.js new file mode 100644 index 00000000..b7530f2a --- /dev/null +++ b/src/deep-security/lib/Security.js @@ -0,0 +1,212 @@ +/** + * Created by mgoria on 6/17/15. + */ + +'use strict'; + +import Kernel from 'deep-kernel'; +import {MissingLoginProviderException} from './Exception/MissingLoginProviderException'; +import {Token} from './Token'; +import {LocalToken} from './LocalToken'; +import {UserProvider} from './UserProvider'; + +/** + * Deep Security implementation + */ +export class Security extends Kernel.ContainerAware { + /** + * Defines all class private properties + * + * @param {String} identityPoolId + * @param {Object} identityProviders + */ + constructor(identityPoolId = null, identityProviders = {}) { + super(); + + this._identityPoolId = identityPoolId; + this._identityProviders = identityProviders; + this._token = null; + this._userProvider = null; + this._userProviderEndpoint = null; + + this._onTokenAvailable = []; + } + + /** + * @param {Function} callback + * @returns {Security} + */ + onTokenAvailable(callback) { + this._onTokenAvailable.push(callback); + + return this; + } + + /** + * @returns {string} + */ + static get PROVIDER_AMAZON() { + return 'www.amazon.com'; + } + + /** + * @returns {string} + */ + static get PROVIDER_FACEBOOK() { + return 'graph.facebook.com'; + } + + /** + * @returns {string} + */ + static get PROVIDER_GOOGLE() { + return 'accounts.google.com'; + } + + /** + * @returns {Object} + */ + get identityProviders() { + return this._identityProviders; + } + + /** + * @returns {Object} + */ + get identityPoolId() { + return this._identityPoolId; + } + + /** + * @returns {UserProvider} + */ + get userProvider() { + if (!this._userProvider) { + this._userProvider = new UserProvider(this._userProviderEndpoint, this.container.get('resource')); + } + + return this._userProvider; + } + + /** + * Booting a certain service + * + * @param {Kernel} kernel + * @param {Function} callback + */ + boot(kernel, callback) { + // @todo: remove this compatibility hook + let globals = kernel.config.globals || kernel.config; + + this._identityProviders = globals.security.identityProviders; + this._userProviderEndpoint = globals.security.userProviderEndpoint; + + this._identityPoolId = kernel.config.identityPoolId; + + callback(); + } + + /** + * @param {String} name + * @returns {Object} + */ + getLoginProviderConfig(name) { + for (let providerName in this._identityProviders) { + if (!this._identityProviders.hasOwnProperty(providerName)) { + continue; + } + + if (providerName === name) { + return this._identityProviders[providerName]; + } + } + + throw new MissingLoginProviderException(name); + } + + /** + * @returns {Object} + */ + get amazonLoginProviderConfig() { + return this.getLoginProviderConfig(Security.PROVIDER_AMAZON); + } + + /** + * @returns {Object} + */ + get facebookLoginProviderConfig() { + return this.getLoginProviderConfig(Security.PROVIDER_FACEBOOK); + } + + /** + * @returns {Object} + */ + get googleLoginProviderConfig() { + return this.getLoginProviderConfig(Security.PROVIDER_GOOGLE); + } + + /** + * @returns {null|Token} + */ + get token() { + return this._token; + } + + /** + * @param {String} providerName + * @param {String} userToken + * @param {String} userId + * @param {Function} callback + * @returns {Token} + */ + login(providerName, userToken, userId, callback) { + // check if providerName is defined + this.getLoginProviderConfig(providerName); + + let TokenImplementation = this._localBackend ? LocalToken : Token; + + this._token = new TokenImplementation(this._identityPoolId, providerName, userToken, userId); + + this._token.userProvider = this.userProvider; + + this._token.getCredentials((...args) => { + for (let hookKey in this._onTokenAvailable) { + if (!this._onTokenAvailable.hasOwnProperty(hookKey)) { + continue; + } + + this._onTokenAvailable[hookKey](this._token); + } + + callback(...args); + }); + + return this._token; + } + + /** + * @param {Function} callback + * @returns {Token} + */ + anonymousLogin(callback) { + let TokenImplementation = this._localBackend ? LocalToken : Token; + + this._token = new TokenImplementation(this._identityPoolId); + + this._token.userProvider = this.userProvider; + + this._token.getCredentials((...args) => { + for (let hookKey in this._onTokenAvailable) { + if (!this._onTokenAvailable.hasOwnProperty(hookKey)) { + continue; + } + + this._onTokenAvailable[hookKey](this._token); + } + + callback(...args); + }); + + return this._token; + } +} diff --git a/src/deep-security/lib/Token.js b/src/deep-security/lib/Token.js new file mode 100644 index 00000000..3a1b5604 --- /dev/null +++ b/src/deep-security/lib/Token.js @@ -0,0 +1,157 @@ +/** + * Created by mgoria on 6/23/15. + */ + +'use strict'; + +import AWS from 'aws-sdk'; +import {AuthException} from './Exception/AuthException'; + +/** + * Security token holds details about logged user + */ +export class Token { + /** + * @param {String} identityPoolId + * @param {String} providerName + * @param {String} providerUserToken + * @param {String} providerUserId + */ + constructor(identityPoolId, providerName = null, providerUserToken = null, providerUserId = null) { + this._identityPoolId = identityPoolId; + this._providerName = providerName; + this._providerUserToken = providerUserToken; + this._providerUserId = providerUserId; + + this._user = null; + this._userProvider = null; + this._identityId = null; + this._credentials = null; + + this._isAnonymous = true; + } + + /** + * @param {Function} callback + */ + getCredentials(callback = () => null) { + // @todo: set retries in a smarter way... + AWS.config.maxRetries = 3; + + let defaultRegion = AWS.config.region; + + AWS.config.update({ + region: Token._getRegionFromIdentityPoolId(this._identityPoolId), + }); + + let cognitoParams = { + IdentityPoolId: this._identityPoolId, + }; + + if (this._providerName && this._providerUserToken) { + this._isAnonymous = false; + cognitoParams.Logins = {}; + cognitoParams.Logins[this._providerName] = this._providerUserToken; + } + + this._credentials = new AWS.CognitoIdentityCredentials(cognitoParams); + + // update AWS credentials + AWS.config.credentials = this._credentials.refresh(function(error) { + if (error) { + callback(new AuthException(error)); + return; + } + + this._identityId = this._credentials.identityId; + + AWS.config.update({ + accessKeyId: this._credentials.accessKeyId, + secretAccessKey: this._credentials.secretAccessKey, + sessionToken: this._credentials.sessionToken, + region: defaultRegion, // restore to default region + }); + + callback(null, this); + }.bind(this)); + } + + /** + * @param {String} identityPoolId + * @returns {String} + * @private + */ + static _getRegionFromIdentityPoolId(identityPoolId) { + return identityPoolId.split(':')[0]; + } + + /** + * @returns {String} + */ + get providerName() { + return this._providerName; + } + + /** + * @returns {String} + */ + get providerUserToken() { + return this._providerUserToken; + } + + /** + * @returns {String} + */ + get providerUserId() { + return this._providerUserId; + } + + /** + * @returns {String} + */ + get identityId() { + return this._identityId; + } + + /** + * @returns {Object} + */ + get credentials() { + return this._credentials; + } + + /** + * @returns {Boolean} + */ + get isAnonymous() { + return this._isAnonymous; + } + + /** + * @param {UserProvider} userProvider + */ + set userProvider(userProvider) { + this._userProvider = userProvider; + } + + /** + * @param {Function} callback + */ + getUser(callback) { + if (this.isAnonymous) { + callback(null); + } + + if (this._user === null) { + this._userProvider.loadUserByIdentityId(this.identityId, function(user) { + if (user) { + this._user = user; + } + + callback(user); + }.bind(this)); + } else { + callback(this._user); + } + } +} diff --git a/src/deep-security/lib/UserProvider.js b/src/deep-security/lib/UserProvider.js new file mode 100644 index 00000000..22eadc11 --- /dev/null +++ b/src/deep-security/lib/UserProvider.js @@ -0,0 +1,34 @@ +'use strict'; + +import {LoadUserException} from './Exception/LoadUserException'; + +/** + * Loads user from db + */ +export class UserProvider { + /** + * @param {String} retrieveUserResource + * @param {Object} deepResourceService + */ + constructor(retrieveUserResource, deepResourceService) { + this._retrieveUserResource = retrieveUserResource; + this._deepResource = deepResourceService; + } + + /** + * @param {String} id + * @param {Function} callback + * @returns {*} + */ + loadUserByIdentityId(id, callback) { + let retrieveUserResource = this._deepResource.get(this._retrieveUserResource); + + retrieveUserResource.request({Id: id}).send(function(response) { + if (response.error) { + throw new LoadUserException(id, response.error); + } + + return callback(JSON.parse(response.data.Payload)); + }); + } +} diff --git a/src/deep-security/lib/bootstrap.js b/src/deep-security/lib/bootstrap.js new file mode 100644 index 00000000..33990e75 --- /dev/null +++ b/src/deep-security/lib/bootstrap.js @@ -0,0 +1,11 @@ +/** + * Created by AlexanderC on 5/22/15. + * + * Bootstrap file loaded by npm as main + */ + +'use strict'; + +import {Security} from './Security'; + +let exports = module.exports = Security; diff --git a/src/deep-security/package.json b/src/deep-security/package.json new file mode 100644 index 00000000..f6b3d8bb --- /dev/null +++ b/src/deep-security/package.json @@ -0,0 +1,74 @@ +{ + "name": "deep-security", + "version": "1.0.1", + "description": "DEEP Security Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Security", + "Auth" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Stefan Hariton", + "email": "shariton@mitocgroup.com" + }, + { + "name": "Dragos Palade", + "email": "dpalade@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "1.0.*", + "deep-core": "1.0.*" + }, + "devDependencies": { + "aws-sdk": "2.1.*", + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true +} diff --git a/src/deep-security/test/.gitkeep b/src/deep-security/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-security/test/LocalToken.js b/src/deep-security/test/LocalToken.js new file mode 100644 index 00000000..d80bf076 --- /dev/null +++ b/src/deep-security/test/LocalToken.js @@ -0,0 +1,67 @@ +'use strict'; + +import chai from 'chai'; +import {LocalToken} from '../lib.compiled/LocalToken'; + +suite('LocalToken', function() { + let identityPoolId = 'us-west-2:identityPoolIdTest'; + let localToken = new LocalToken(identityPoolId); + let callbackFunction = (error, data) => { + return data; + }; + + test('Class LocalToken exists in LocalToken', function() { + chai.expect(typeof LocalToken).to.equal('function'); + }); + + test('Check constructor sets _identityPoolId', function() { + chai.expect(localToken._identityPoolId).to.be.equal(identityPoolId); + }); + + test('Check constructor sets _providerName=null', function() { + chai.expect(localToken.providerName).to.be.equal(null); + }); + + test('Check constructor sets _providerUserToken=null', function() { + chai.expect(localToken.providerUserToken).to.be.equal(null); + }); + + test('Check constructor sets _providerUserId=null', function() { + chai.expect(localToken.providerUserId).to.be.equal(null); + }); + + test('Check constructor sets _user=null', function() { + chai.expect(localToken._user).to.be.equal(null); + }); + + test('Check constructor sets _userProvider=null', function() { + chai.expect(localToken._userProvider).to.be.equal(null); + }); + + test('Check constructor sets _identityId=null', function() { + chai.expect(localToken.identityId).to.be.equal(null); + }); + + test('Check constructor sets _credentials=null', function() { + chai.expect(localToken.credentials).to.be.equal(null); + }); + + test('Check constructor sets _isAnonymous=true', function() { + chai.expect(localToken.isAnonymous).to.be.equal(true); + }); + + test('Check userProvider setter sets new provider', function() { + localToken.userProvider = null; + chai.expect(localToken._userProvider).to.be.equal(null); + let newUserProvider = 'userProviderTest'; + localToken.userProvider = newUserProvider; + chai.expect(localToken._userProvider).to.be.equal(newUserProvider); + }); + + test('Check getCredentials method', function() { + let providerUserId = {data: 'providerUserId'}; + localToken._providerUserId = providerUserId; + localToken.getCredentials(callbackFunction) + chai.expect(localToken.identityId).to.be.eql(providerUserId); + }); +}); \ No newline at end of file diff --git a/src/deep-security/test/Security.js b/src/deep-security/test/Security.js new file mode 100644 index 00000000..e7bf13db --- /dev/null +++ b/src/deep-security/test/Security.js @@ -0,0 +1,54 @@ +'use strict'; + +import chai from 'chai'; +import {Security} from '../lib.compiled/Security'; +import {MissingLoginProviderException} from '../lib.compiled/Exception/MissingLoginProviderException'; + +suite('Security', function() { + let identityPoolId = 'us-west-2:identityPoolIdTest'; + let security = new Security(identityPoolId); + + test('Class Security exists in Security', function() { + chai.expect(typeof Security).to.equal('function'); + }); + + test('Check constructor sets _identityPoolId', function() { + chai.expect(security.identityPoolId).to.be.equal(identityPoolId); + }); + + test('Check constructor sets _identityProviders={}', function() { + chai.expect(security.identityProviders).to.be.eql({}); + }); + + test('Check constructor sets _token=null', function() { + chai.expect(security.token).to.be.eql(null); + }); + + test('Check constructor sets _userProviderEndpoint=null', function() { + chai.expect(security._userProviderEndpoint).to.be.eql(null); + }); + + test('Check PROVIDER_AMAZON static getter returns value \'www.amazon.com\'', function() { + chai.expect(Security.PROVIDER_AMAZON).to.be.equal('www.amazon.com'); + }); + + test('Check PROVIDER_FACEBOOK static getter returns value \'graph.facebook.com\'', function() { + chai.expect(Security.PROVIDER_FACEBOOK).to.be.equal('graph.facebook.com'); + }); + + test('Check PROVIDER_GOOGLE static getter returns value \'accounts.google.com\'', function() { + chai.expect(Security.PROVIDER_GOOGLE).to.be.equal('accounts.google.com'); + }); + + test('Check getLoginProviderConfig method throws \'MissingLoginProviderException\' exception:', function() { + let error = null; + try { + security.getLoginProviderConfig(Security.PROVIDER_AMAZON); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(MissingLoginProviderException); + }); +}); diff --git a/src/deep-security/test/Token.js b/src/deep-security/test/Token.js new file mode 100644 index 00000000..8ec033f5 --- /dev/null +++ b/src/deep-security/test/Token.js @@ -0,0 +1,65 @@ +'use strict'; + +import chai from 'chai'; +import {Token} from '../lib.compiled/Token'; + +suite('Token', function() { + let identityPoolId = 'us-west-2:identityPoolIdTest'; + let token = new Token(identityPoolId); + let callbackFunction = (data) => { + return data; + }; + + test('Class Token exists in Token', function() { + chai.expect(typeof Token).to.equal('function'); + }); + + test('Check constructor sets _identityPoolId', function() { + chai.expect(token._identityPoolId).to.be.equal(identityPoolId); + }); + + test('Check constructor sets _providerName=null', function() { + chai.expect(token.providerName).to.be.equal(null); + }); + + test('Check constructor sets _providerUserToken=null', function() { + chai.expect(token.providerUserToken).to.be.equal(null); + }); + + test('Check constructor sets _providerUserId=null', function() { + chai.expect(token.providerUserId).to.be.equal(null); + }); + + test('Check constructor sets _user=null', function() { + chai.expect(token._user).to.be.equal(null); + }); + + test('Check constructor sets _userProvider=null', function() { + chai.expect(token._userProvider).to.be.equal(null); + }); + + test('Check constructor sets _identityId=null', function() { + chai.expect(token.identityId).to.be.equal(null); + }); + + test('Check constructor sets _credentials=null', function() { + chai.expect(token.credentials).to.be.equal(null); + }); + + test('Check constructor sets _isAnonymous=true', function() { + chai.expect(token.isAnonymous).to.be.equal(true); + }); + + test('Check userProvider setter sets new provider', function() { + token.userProvider = null; + chai.expect(token._userProvider).to.be.equal(null); + let newUserProvider = 'userProviderTest'; + token.userProvider = newUserProvider; + chai.expect(token._userProvider).to.be.equal(newUserProvider); + }); + + test('Check _getRegionFromIdentityPoolId returns region', function() { + let expectedResult = identityPoolId.split(':')[0]; + chai.expect(Token._getRegionFromIdentityPoolId(identityPoolId)).to.be.equal(expectedResult); + }); +}); \ No newline at end of file diff --git a/src/deep-security/test/UserProvider.js b/src/deep-security/test/UserProvider.js new file mode 100644 index 00000000..805554a3 --- /dev/null +++ b/src/deep-security/test/UserProvider.js @@ -0,0 +1,24 @@ +'use strict'; + +import chai from 'chai'; +import {UserProvider} from '../lib.compiled/UserProvider'; + +suite('UserProvider', function() { + let userProvider = null; + + test('Class UserProvider exists in UserProvider', function() { + chai.expect(typeof UserProvider).to.equal('function'); + }); + + test('Check constructor sets default values', function() { + userProvider = new UserProvider(); + chai.expect(userProvider._retrieveUserResource).to.be.equal(undefined); + chai.expect(userProvider._deepResource).to.be.equal(undefined); + }); + + test('Check constructor sets values', function() { + userProvider = new UserProvider('userResource', 'deepResource'); + chai.expect(userProvider._retrieveUserResource).to.be.equal('userResource'); + chai.expect(userProvider._deepResource).to.be.equal('deepResource'); + }); +}); diff --git a/src/deep-validation/.gitignore b/src/deep-validation/.gitignore new file mode 100644 index 00000000..59a1c5d0 --- /dev/null +++ b/src/deep-validation/.gitignore @@ -0,0 +1,106 @@ +#### joe made this: https://goel.io/joe + +#####=== JetBrains ===##### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +#####=== OSX ===##### +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +#####=== Node ===##### + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log + diff --git a/src/deep-validation/.npmignore b/src/deep-validation/.npmignore new file mode 100644 index 00000000..8219039a --- /dev/null +++ b/src/deep-validation/.npmignore @@ -0,0 +1,4 @@ +test +tests +/lib +.gitignore \ No newline at end of file diff --git a/src/deep-validation/README.md b/src/deep-validation/README.md new file mode 100644 index 00000000..81f55db9 --- /dev/null +++ b/src/deep-validation/README.md @@ -0,0 +1,83 @@ +deep-validation +=============== + +[![NPM Version](https://img.shields.io/npm/v/deep-validation.svg)](https://npmjs.org/package/deep-validation) +[![Build Status](https://travis-ci.org/MitocGroup/deep-framework.svg)](https://travis-ci.org/MitocGroup/deep-framework) +[![Coverage Status](https://coveralls.io/repos/MitocGroup/deep-framework/badge.svg?service=github&t=3QEkFa)](https://coveralls.io/github/MitocGroup/deep-framework) +[![Codacy Badge](https://api.codacy.com/project/badge/630b5f0024334dc09fd0299b1a8a0ed5)](https://www.codacy.com/app/MitocGroup/deep-framework) +[![API Docs](http://docs.deep.mg/deep-validation/badge.svg)](http://docs.deep.mg/deep-validation/) + +[deep-validation](https://www.npmjs.com/package/deep-validation) is a node.js library, part of [DEEP Framework](https://github.com/MitocGroup/deep-framework). + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-ecosystem.png) + +Digital Enterprise End-to-end Platform (also known as DEEP) is low cost and low maintenance digital platform powered by abstracted services from AWS. We enable businesses and developers to achieve more by doing less. + +## DEEP for Businesses [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### User Guide Documentation (to be updated later) + +DEEP is enabling small and medium businesses, as well as enterprises to: +- Rent applications on a monthly basis by needed functionality from [DEEP Marketplace](https://www.deep.mg) +- Choose applications by desired features and deploy them securely in their own accounts from cloud providers like AWS +- Pay only for subscribed applications and stop paying when unsubscribing and not using anymore +- Run secured, self-service applications with beautiful user interfaces and intuitively simple user experiences +- Empower none technical teams to solve business problems through technology, without waiting on technical teams' availability + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP for Developers [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +#### [API Guide Documentation](http://docs.deep.mg) +#### [Developer Guide Documentation](https://github.com/MitocGroup/deep-framework/blob/master/docs/index.md) + +DEEP is enabling developers and architects to: +- Design microservices architecture on top of serverless environments from cloud providers like AWS +- Build distributed software that combines and manages hardware and software in the same microservice +- Use the framework's abstracted approach to build applications that could be cloud agnostic +- Build cloud native JavaScript applications that combine and manage frontend, backend and database layers in the same [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) +- Run in the cloud the software that was built by distributed teams and served self-service in large organizations +- Monetize their work of art by uploading microservices to [DEEP Marketplace](https://www.deep.mg) + +> [DEEP Microservice](https://github.com/MitocGroup/deep-framework/blob/master/docs/microservice.md) is the predefined structure of a microservice (an application) in DEEP. There is clear separation between frontend, backend and database, as well as unit tests and documentation. Developers are encoraged to get started with [DEEP Microservices HelloWorld](https://github.com/MitocGroup/deep-microservices-helloworld) or [DEEP Microservices ToDo App](https://github.com/MitocGroup/deep-microservices-todo-app), as well as [DEEP CLI](https://www.npmjs.com/package/deepify) (aka `deepify`). + +> [DEEP Marketplace](https://www.deep.mg) (aka [www.deep.mg](https://www.deep.mg)) is a web application built using DEEP and published on serverless environment from [Amazon Web Services](https://aws.amazon.com) (aka [aws.amazon.com](https://aws.amazon.com)). We make it faster and easier for developers to build and publish their software, as well as for businesses to discover and test applications they are looking for. Our goal is to connect businesses with developers, and empower technical teams to build self-service software that none technical teams could use. The marketplace is like Apple's App Store for web applications that run natively on cloud providers like AWS. + +## DEEP Architecture on AWS [![Join char on gitter.im](https://img.shields.io/badge/%E2%8A%AA%20gitter%20-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/MitocGroup/deep-framework) + +![Digital Enterprise End-to-end Platform, aka DEEP](https://github.com/MitocGroup/deep-framework/blob/master/docs/deep-architecture.png) + +DEEP is using [microservices architecture](https://en.wikipedia.org/wiki/Microservices) on serverless environments from cloud providers like AWS. DEEP Framework abstracts the functionality and makes it completely developer friendly. We have the following abstracted libraries: + +DEEP Abstracted Library | Description | AWS Abstracted Service(s) +-------------|---------------------|-------------------------- +[deep-asset](http://docs.deep.mg/deep-asset) | Assets Management Library | Amazon S3 +[deep-cache](http://docs.deep.mg/deep-cache) | Cache Management Library | Amazon ElastiCache +[deep-core](http://docs.deep.mg/deep-core) | Core Management Library | - +[deep-db](http://docs.deep.mg/deep-db) | Database Management Library | Amazon DynamoDB, Amazon SQS +[deep-di](http://docs.deep.mg/deep-di) | Dependency Injection Management Library | - +[deep-event](http://docs.deep.mg/deep-event) | Events Management Library | Amazon Kinesis +[deep-fs](http://docs.deep.mg/deep-fs) | File System Management Library | Amazon S3 +[deep-kernel](http://docs.deep.mg/deep-kernel) | Kernel Management Library | - +[deep-log](http://docs.deep.mg/deep-log) | Logs Management Library | Amazon CloudWatch Logs +[deep-notification](http://docs.deep.mg/deep-notification) | Notifications Management Library | Amazon SNS +[deep-resource](http://docs.deep.mg/deep-resource) | Resouces Management Library | AWS Lambda, Amazon API Gateway +[deep-security](http://docs.deep.mg/deep-security) | Security Management Library | AWS IAM, Amazon Cognito +[deep-validation](http://docs.deep.mg/deep-validation) | Validation Management Library | - + +## Feedback + +We are eager to get your feedback, so please use whatever communication channel you prefer: +- [github issues](https://github.com/MitocGroup/deep-framework/issues) +- [gitter chat room](https://gitter.im/MitocGroup/deep-framework) +- [deep email address](mailto:feedback@deep.mg) + +## License + +This repository can be used under the MIT license. +> See [LICENSE](https://github.com/MitocGroup/deep-framework/blob/master/LICENSE) for more details. + +## Sponsors + +This repository is being sponsored by: +> [Mitoc Group](http://www.mitocgroup.com) diff --git a/src/deep-validation/lib/Exception/Exception.js b/src/deep-validation/lib/Exception/Exception.js new file mode 100644 index 00000000..90ade1cd --- /dev/null +++ b/src/deep-validation/lib/Exception/Exception.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/10/15. + */ + +'use strict'; + +import Core from 'deep-core'; + +/** + * Thrown when any exception occurs + */ +export class Exception extends Core.Exception.Exception { + /** + * @param {Array} args + */ + constructor(...args) { + super(...args); + } +} diff --git a/src/deep-validation/lib/Exception/InvalidSchemaException.js b/src/deep-validation/lib/Exception/InvalidSchemaException.js new file mode 100644 index 00000000..7355321c --- /dev/null +++ b/src/deep-validation/lib/Exception/InvalidSchemaException.js @@ -0,0 +1,20 @@ +/** + * Created by AlexanderC on 6/20/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when DB model validation schema is missing or broken + */ +export class InvalidSchemaException extends Exception { + /** + * @param {Object} model + * @param {String} errorString + */ + constructor(model, errorString) { + super(`deep-db model ${JSON.stringify(model)} validation schema fails: ${errorString}`); + } +} diff --git a/src/deep-validation/lib/Exception/ModelNotFoundException.js b/src/deep-validation/lib/Exception/ModelNotFoundException.js new file mode 100644 index 00000000..5d05b8be --- /dev/null +++ b/src/deep-validation/lib/Exception/ModelNotFoundException.js @@ -0,0 +1,19 @@ +/** + * Created by AlexanderC on 6/15/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when missing requested model + */ +export class ModelNotFoundException extends Exception { + /** + * @param {String} modelName + */ + constructor(modelName) { + super(`Model ${modelName} was not found`); + } +} diff --git a/src/deep-validation/lib/Exception/ObjectValidationFailedException.js b/src/deep-validation/lib/Exception/ObjectValidationFailedException.js new file mode 100644 index 00000000..af63f67a --- /dev/null +++ b/src/deep-validation/lib/Exception/ObjectValidationFailedException.js @@ -0,0 +1,20 @@ +/** + * Created by AlexanderC on 6/22/15. + */ + +'use strict'; + +import {Exception} from './Exception'; + +/** + * Thrown when object validation fails on a joi schema/model + */ +export class ObjectValidationFailedException extends Exception { + /** + * @param {String} schemaName + * @param {String} error + */ + constructor(schemaName, error) { + super(`Object validation failed on schema ${schemaName}: ${error}`); + } +} diff --git a/src/deep-validation/lib/Helpers/Joi.js b/src/deep-validation/lib/Helpers/Joi.js new file mode 100644 index 00000000..dfe6242c --- /dev/null +++ b/src/deep-validation/lib/Helpers/Joi.js @@ -0,0 +1,109 @@ +/** + * Created by AlexanderC on 5/25/15. + */ + +'use strict'; + +import BaseJoi from 'joi'; +import Vogels from './vogelsPolyfill'; + +/** + * Abstraction on Joi validation expressions + */ +export class Joi { + /** + * @returns {Object} + */ + static get uuid() { + return Vogels.types.uuid(); + } + + /** + * @returns {Object} + */ + static get timeUUID() { + return Vogels.types.timeUUID(); + } + + /** + * @returns {Object} + */ + static get stringSet() { + return Vogels.types.stringSet(); + } + + /** + * @returns {Object} + */ + static get numberSet() { + return Vogels.types.numberSet(); + } + + /** + * @returns {Object} + */ + static get binarySet() { + return Vogels.types.binarySet(); + } + + /** + * @returns {Object} + */ + static get binary() { + return BaseJoi.binary(); + } + + /** + * @returns {Object} + */ + static get number() { + return BaseJoi.number(); + } + + /** + * @returns {Object} + */ + static get string() { + return BaseJoi.string(); + } + + /** + * @returns {Object} + */ + static get boolean() { + return BaseJoi.boolean(); + } + + /** + * @returns {Object} + */ + static get email() { + return BaseJoi.string().email(); + } + + /** + * @returns {Object} + */ + static get website() { + return BaseJoi.string().uri(); + } + + /** + * @returns {Object} + */ + static get map() { + return BaseJoi.object(); + } + + /** + * @returns {*} + */ + static get mapSet() { + let array = BaseJoi.array(); + if (array.includes) { + return array.includes(BaseJoi.object()); + } + + return array.items(BaseJoi.object()); + } +} diff --git a/src/deep-validation/lib/Helpers/vogelsPolyfill.js b/src/deep-validation/lib/Helpers/vogelsPolyfill.js new file mode 100644 index 00000000..d0143d22 --- /dev/null +++ b/src/deep-validation/lib/Helpers/vogelsPolyfill.js @@ -0,0 +1,50 @@ +/** + * Created by AlexanderC on 6/25/15. + */ + +'use strict'; + +import Joi from 'joi'; + +let UUID_REGEXP = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/; + +export default (typeof window !== 'undefined' ? { + types: { + uuid: function() { + return Joi.string().regex(UUID_REGEXP); + }, + + timeUUID: function() { + return Joi.string().regex(UUID_REGEXP); + }, + + stringSet: function() { + return _joiVector(Joi.string()); + }, + + numberSet: function() { + return _joiVector(Joi.number()); + }, + + binarySet: function() { + return _joiVector(Joi.string()); + }, + }, +} : require('vogels')); + +/** + * Fixes weird joi exception! + * + * @param {Object} proto + * @returns {Object} + * @private + */ +function _joiVector(proto) { + let arr = Joi.array(); + + if (arr.includes) { + return arr.includes(proto); + } + + return arr.items(proto); +} diff --git a/src/deep-validation/lib/ObjectToJoi.js b/src/deep-validation/lib/ObjectToJoi.js new file mode 100644 index 00000000..f0d18491 --- /dev/null +++ b/src/deep-validation/lib/ObjectToJoi.js @@ -0,0 +1,69 @@ +/** + * Created by AlexanderC on 6/15/15. + */ + +'use strict'; + +import {Joi as JoiHelper} from './Helpers/Joi'; +import {InvalidSchemaException} from './Exception/InvalidSchemaException'; + +/** + * Exporting simple object to joi + */ +export class ObjectToJoi { + /** + * @param {Object} baseObject + */ + constructor(baseObject) { + this._baseObject = baseObject; + } + + /** + * @returns {Object} + */ + get baseObject() { + return this._baseObject; + } + + /** + * @returns {Object} + */ + transform() { + try { + return ObjectToJoi._transform(this._baseObject); + } catch (e) { + throw new InvalidSchemaException(this._baseObject, e); + } + } + + /** + * @param {Object} obj + * @returns {Object} + * @private + */ + static _transform(obj) { + let transObj = {}; + + for (let property in obj) { + if (!obj.hasOwnProperty(property)) { + continue; + } + + let value = obj[property]; + + if (typeof value === 'object') { + transObj[property] = ObjectToJoi._transform(value); + } else { + let validationSchema = JoiHelper[value]; + + if (typeof validationSchema === 'undefined') { + throw new InvalidSchemaException(obj, `Unknown field type ${value}`); + } + + transObj[property] = validationSchema; + } + } + + return transObj; + } +} diff --git a/src/deep-validation/lib/Validation.js b/src/deep-validation/lib/Validation.js new file mode 100644 index 00000000..1b5444d1 --- /dev/null +++ b/src/deep-validation/lib/Validation.js @@ -0,0 +1,175 @@ +/** + * Created by AlexanderC on 6/15/15. + */ + +'use strict'; + +import Kernel from 'deep-kernel'; +import {ObjectToJoi} from './ObjectToJoi'; +import {ModelNotFoundException} from './Exception/ModelNotFoundException'; +import Joi from 'joi'; +import {ObjectValidationFailedException} from './Exception/ObjectValidationFailedException'; +import {Exception} from './Exception/Exception'; + +/** + * Validation engine + */ +export class Validation extends Kernel.ContainerAware { + /** + * @param {Array} models + */ + constructor(models = []) { + super(); + + this._immutable = false; + this._models = this._rawModelsToSchemas(models); + } + + /** + * @param {Boolean} state + */ + set immutable(state) { + this._assureImmutable(); + + this._immutable = state; + } + + /** + * @returns {Boolean} + */ + get immutable() { + return this._immutable; + } + + /** + * @param {String} modelName + * @param {*} valueObject + * @returns {*} + */ + validate(modelName, valueObject) { + let model = this.get(modelName); + let result = Joi.validate(valueObject, Joi.object().keys(model)); + + if (result.error) { + throw new ObjectValidationFailedException(modelName, result.error); + } + + return result.value; + } + + /** + * @returns {Object[]} + */ + get models() { + return this._models; + } + + /** + * @param {String} modelName + * @param {Object} schema + * @returns {Validation} + */ + setRaw(modelName, schema) { + this._assureImmutable(); + + this._models[modelName] = Validation.normalizeSchema(schema); + + return this; + } + + /** + * @param {String} modelName + * @param {Object} schema + * @returns {Validation} + */ + set(modelName, schema) { + this._assureImmutable(); + + this._models[modelName] = schema; + + return this; + } + + /** + * @param {String} modelName + * @returns {Boolean} + */ + has(modelName) { + return typeof this._models[modelName] !== 'undefined'; + } + + /** + * @param {String} modelName + * @returns {Object} + */ + get(modelName) { + if (!this.has(modelName)) { + throw new ModelNotFoundException(modelName); + } + + return this._models[modelName]; + } + + /** + * Booting a certain service + * + * @param {Kernel} kernel + * @param {Function} callback + */ + boot(kernel, callback) { + this._assureImmutable(); + + this._models = this._rawModelsToSchemas(kernel.config.models); + + callback(); + } + + /** + * @param {Array} rawModels + * @returns {Object} + * @private + */ + _rawModelsToSchemas(rawModels) { + let modelsSchema = {}; + + for (let modelKey in rawModels) { + if (!rawModels.hasOwnProperty(modelKey)) { + continue; + } + + let backendModels = rawModels[modelKey]; + + for (let modelName in backendModels) { + if (!backendModels.hasOwnProperty(modelName)) { + continue; + } + + let schema = backendModels[modelName]; + + // @todo: move this sh*t into DB somehow... + schema.Id = schema.Id || 'timeUUID'; + + modelsSchema[modelName] = Validation.normalizeSchema(schema); + } + } + + return modelsSchema; + } + + /** + * @private + */ + _assureImmutable() { + if (this._immutable) { + throw new Exception('You are not abble to alter the state after setting it immutable'); + } + } + + /** + * @param {Object} rawSchema + * @returns {Object} + */ + static normalizeSchema(rawSchema) { + return new ObjectToJoi(rawSchema).transform(); + } +} diff --git a/src/deep-validation/lib/bootstrap.js b/src/deep-validation/lib/bootstrap.js new file mode 100644 index 00000000..e9a1e6c6 --- /dev/null +++ b/src/deep-validation/lib/bootstrap.js @@ -0,0 +1,11 @@ +/** + * Created by AlexanderC on 5/22/15. + * + * Bootstrap file loaded by npm as main + */ + +'use strict'; + +import {Validation} from './Validation'; + +let exports = module.exports = Validation; diff --git a/src/deep-validation/package.json b/src/deep-validation/package.json new file mode 100644 index 00000000..d836a36b --- /dev/null +++ b/src/deep-validation/package.json @@ -0,0 +1,75 @@ +{ + "name": "deep-validation", + "version": "1.0.1", + "description": "DEEP Validation Library", + "keywords": [ + "Digital End-To-End Enterprise Platform", + "Amazon Web Services", + "Platform-as-a-Service", + "DEEP", + "AWS", + "PaaS", + "Cloud", + "Computing", + "Microservices", + "Architecture", + "Serverless", + "Abstracted", + "Core", + "Library", + "Validation", + "Forms", + "Models" + ], + "homepage": "https://github.com/MitocGroup/deep", + "bugs": { + "url": "https://github.com/MitocGroup/deep/issues" + }, + "license": "MIT", + "author": { + "name": "Mitoc Group", + "email": "hello@mitocgroup.com", + "url": "http://www.mitocgroup.com" + }, + "contributors": [ + { + "name": "AlexanderC", + "email": "alexanderc@mitocgroup.com" + }, + { + "name": "Marcel Goria", + "email": "mgoria@mitocgroup.com" + }, + { + "name": "Stefan Hariton", + "email": "shariton@mitocgroup.com" + } + ], + "main": "lib.compiled/bootstrap.js", + "repository": { + "type": "git", + "url": "https://github.com/MitocGroup/deep.git" + }, + "scripts": { + "coverage": "babel-node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec", + "test": "mocha --ui tdd --compilers js:mocha-babel --recursive --reporter spec", + "compile": "if [ -d 'lib/' ]; then BABEL_ENV=production babel lib/ --out-dir lib.compiled/; fi", + "prepublish": "npm run compile" + }, + "dependencies": { + "deep-kernel": "1.0.*", + "deep-core": "1.0.*", + "joi": "6.6.*", + "vogels": "2.0.0-rc10" + }, + "devDependencies": { + "chai": "3.2.*", + "sinon": "1.17.0", + "sinon-chai": "2.8.0" + }, + "preferGlobal": false, + "analyze": true, + "browser": { + "vogels": false + } +} diff --git a/src/deep-validation/test/.gitkeep b/src/deep-validation/test/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/deep-validation/test/Helpers/Joi.js b/src/deep-validation/test/Helpers/Joi.js new file mode 100644 index 00000000..67c1b80e --- /dev/null +++ b/src/deep-validation/test/Helpers/Joi.js @@ -0,0 +1,113 @@ +'use strict'; + +import chai from 'chai'; +import {Joi} from '../../lib.compiled/Helpers/Joi'; +import Vogels from '../../lib.compiled/Helpers/vogelsPolyfill'; +import BaseJoi from 'joi'; + +suite('Helpers/Joi', function() { + let joi = new Joi(); + + test('Class Joi exists in Helpers/Joi', function() { + chai.expect(typeof Joi).to.equal('function'); + }); + + test('Check uuid static getter returns valid object', function() { + let actualResult = Joi.uuid; + let expectedResult = Vogels.types.uuid(); + //chai.assert.instanceOf(actualResult, Vogels, 'object is an instance of Vogels'); + //chai.expect(Joi.uuid).to.be.eql(Vogels.types.uuid()); + chai.expect(actualResult.isJoi).to.be.eql(expectedResult.isJoi); + chai.expect(actualResult._type).to.be.eql(expectedResult._type); + }); + + test('Check timeUUID static getter returns valid object', function() { + let actualResult = Joi.timeUUID; + let expectedResult = Vogels.types.timeUUID(); + chai.expect(actualResult.isJoi).to.be.eql(expectedResult.isJoi); + chai.expect(actualResult._type).to.be.eql(expectedResult._type); + }); + + test('Check stringSet static getter returns valid object', function() { + let actualResult = Joi.stringSet; + let expectedResult = Vogels.types.stringSet(); + chai.expect(actualResult.isJoi).to.be.eql(expectedResult.isJoi); + chai.expect(actualResult._type).to.be.eql(expectedResult._type); + }); + + test('Check numberSet static getter returns valid object', function() { + let actualResult = Joi.numberSet; + let expectedResult = Vogels.types.numberSet(); + chai.expect(actualResult.isJoi).to.be.eql(expectedResult.isJoi); + chai.expect(actualResult._type).to.be.eql(expectedResult._type); + }); + + test('Check binarySet static getter returns valid object', function() { + let actualResult = Joi.binarySet; + let expectedResult = Vogels.types.binarySet(); + chai.expect(actualResult.isJoi).to.be.eql(expectedResult.isJoi); + chai.expect(actualResult._type).to.be.eql(expectedResult._type); + }); + + test('Check binary static getter returns valid object', function() { + let actualResult = Joi.binary; + let expectedResult = BaseJoi.binary(); + chai.expect(actualResult.isJoi).to.be.eql(expectedResult.isJoi); + chai.expect(actualResult._type).to.be.eql(expectedResult._type); + }); + + test('Check number static getter returns valid object', function() { + let actualResult = Joi.number; + let expectedResult = BaseJoi.number(); + chai.expect(actualResult.isJoi).to.be.eql(expectedResult.isJoi); + chai.expect(actualResult._type).to.be.eql(expectedResult._type); + }); + + test('Check string static getter returns valid object', function() { + let actualResult = Joi.string; + let expectedResult = BaseJoi.string(); + chai.expect(actualResult.isJoi).to.be.eql(expectedResult.isJoi); + chai.expect(actualResult._type).to.be.eql(expectedResult._type); + }); + + test('Check boolean static getter returns valid object', function() { + let actualResult = Joi.boolean; + let expectedResult = BaseJoi.boolean(); + chai.expect(actualResult.isJoi).to.be.eql(expectedResult.isJoi); + chai.expect(actualResult._type).to.be.eql(expectedResult._type); + }); + + test('Check email static getter returns valid object', function() { + let actualResult = Joi.email; + let expectedResult = BaseJoi.string().email(); + chai.expect(actualResult.isJoi).to.be.eql(expectedResult.isJoi); + chai.expect(actualResult._type).to.be.eql(expectedResult._type); + }); + + test('Check website static getter returns valid object', function() { + let actualResult = Joi.website; + let expectedResult = BaseJoi.string().uri(); + chai.expect(actualResult.isJoi).to.be.eql(expectedResult.isJoi); + chai.expect(actualResult._type).to.be.eql(expectedResult._type); + }); + + test('Check map static getter returns valid object', function() { + let actualResult = Joi.map; + let expectedResult = BaseJoi.object(); + chai.expect(actualResult.isJoi).to.be.eql(expectedResult.isJoi); + chai.expect(actualResult._type).to.be.eql(expectedResult._type); + }); + + test('Check mapSet static getter returns valid object', function() { + let actualResult = Joi.mapSet; + let array = BaseJoi.array(); + let expectedResult = null; + if (array.includes) { + return array.includes(BaseJoi.object()); + } + + expectedResult = array.items(BaseJoi.object()); + chai.expect(actualResult.isJoi).to.be.eql(expectedResult.isJoi); + chai.expect(actualResult._type).to.be.eql(expectedResult._type); + }); +}); \ No newline at end of file diff --git a/src/deep-validation/test/Helpers/vogelsPolyfill.js b/src/deep-validation/test/Helpers/vogelsPolyfill.js new file mode 100644 index 00000000..17d0bee8 --- /dev/null +++ b/src/deep-validation/test/Helpers/vogelsPolyfill.js @@ -0,0 +1,22 @@ +'use strict'; + +import chai from 'chai'; +import {Joi} from '../../lib.compiled/Helpers/Joi'; +import Vogels from '../../lib.compiled/Helpers/vogelsPolyfill'; + +suite('Helpers/vogelsPolyfill', function() { + let joi = new Joi(); + + test('Check Vogels object exists in Helpers/vogelsPolyfill', function() { + chai.expect(typeof Vogels).to.equal('object'); + }); + + test('Check Vogels.types.stringSet is function', function() { + chai.expect(typeof Vogels.types.stringSet).to.equal('function'); + }); + + test('Check stringSet() returns valid object', function() { + let actualResult = Vogels.types.stringSet(); + chai.expect(actualResult.isJoi).to.eql(true); + }); +}); \ No newline at end of file diff --git a/src/deep-validation/test/ObjectToJoi.js b/src/deep-validation/test/ObjectToJoi.js new file mode 100644 index 00000000..ec35a9c4 --- /dev/null +++ b/src/deep-validation/test/ObjectToJoi.js @@ -0,0 +1,96 @@ +'use strict'; + +import chai from 'chai'; +import {ObjectToJoi} from '../lib.compiled/ObjectToJoi'; +import {InvalidSchemaException} from '../lib.compiled/Exception/InvalidSchemaException'; + +suite('ObjectToJoi', function() { + let baseObject = 'baseObject'; + let objectToJoi = new ObjectToJoi(baseObject); + + test('Class ObjectToJoi exists in ObjectToJoi', function() { + chai.expect(typeof ObjectToJoi).to.equal('function'); + }); + + test(`Check constructor sets _baseObject to: ${baseObject}`, function() { + chai.expect(objectToJoi.baseObject).to.be.eql(baseObject); + }); + + test('Check _transform() static method throws \'InvalidSchemaException\'', function() { + let error = null; + let actualResult = null; + let invalidObjectInput = {firstKey: 'value1'}; + try { + actualResult = ObjectToJoi._transform(invalidObjectInput); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(InvalidSchemaException); + chai.expect(error.message).to.be.equal(`deep-db model ${JSON.stringify(invalidObjectInput)} validation schema fails: Unknown field type ${invalidObjectInput.firstKey}`); + }); + + test('Check _transform() static method returns valid object', function() { + let error = null; + let actualResult = null; + let invalidObjectInput = {firstKey: 'string'}; + try { + actualResult = ObjectToJoi._transform(invalidObjectInput); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(typeof actualResult).to.be.equal('object'); + }); + + test('Check _transform(obj) static method returns valid object typeof value === \'object\'', function() { + let error = null; + let actualResult = null; + let invalidObjectInput = { + firstKey: { + name: 'string', + }, + }; + try { + actualResult = ObjectToJoi._transform(invalidObjectInput); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(typeof actualResult).to.be.equal('object'); + }); + + test('Check transform() method throws \'InvalidSchemaException\'', function() { + let error = null; + let actualResult = null; + let invalidObjectInput = {firstKey: 'value1'}; + let objectToJoiTest = new ObjectToJoi(invalidObjectInput); + try { + actualResult = objectToJoiTest.transform(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceof(InvalidSchemaException); + chai.expect(error.message).to.be.contains(`deep-db model ${JSON.stringify(invalidObjectInput)} validation schema fails`); + }); + + test('Check transform() method returns valid object', function() { + let error = null; + let actualResult = null; + let invalidObjectInput = {firstKey: 'string'}; + let objectToJoiTest = new ObjectToJoi(invalidObjectInput); + try { + actualResult = objectToJoiTest.transform(); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(typeof actualResult).to.be.equal('object'); + }); +}); \ No newline at end of file diff --git a/src/deep-validation/test/Validation.js b/src/deep-validation/test/Validation.js new file mode 100644 index 00000000..17009eb6 --- /dev/null +++ b/src/deep-validation/test/Validation.js @@ -0,0 +1,239 @@ +'use strict'; + + +import chai from 'chai'; +import sinon from 'sinon'; +import sinonChai from 'sinon-chai'; +import {Validation} from '../lib.compiled/Validation'; +import {ObjectToJoi} from '../lib.compiled/ObjectToJoi'; +import {Exception} from '../lib.compiled/Exception/Exception'; +import {ModelNotFoundException} from '../lib.compiled/Exception/ModelNotFoundException'; +import {ObjectValidationFailedException} from '../lib.compiled/Exception/ObjectValidationFailedException'; +chai.use(sinonChai); + +import Joi from 'joi'; + +suite('Validation', function() { + let validation = new Validation(); + let modelName = 'userModel'; + let modelSchema = { + username: Joi.string().min(3).max(30).required(), + password: Joi.string(), + }; + + let rawModelName = 'rawUserModel'; + let rawModelSchema = {username: 'string'}; + + test('Class Validation exists in Validation', function() { + chai.expect(typeof Validation).to.equal('function'); + }); + + test('Check contructor sets default values', function() { + chai.expect(validation.immutable).to.be.equal(false); + chai.expect(validation.models).to.be.object_; + }); + + test('Check immutable getter returns [false]', function() { + chai.expect(validation.immutable).to.be.equal(false); + }); + + test(`Check set() method sets models[\'${modelName}\']=${modelSchema} for immutable=false`, function() { + validation.set(modelName, modelSchema); + chai.expect(validation.get(modelName)).to.be.eql(modelSchema); + }); + + test(`Check setRaw() method sets models[\'${rawModelName}\']=${rawModelSchema} for immutable=false`, function() { + validation.setRaw(rawModelName, rawModelSchema); + let actualResult = validation.get(rawModelName); + chai.expect(actualResult.username._type).to.be.equal(rawModelSchema.username); + chai.expect(actualResult.username.isJoi).to.be.equal(true); + }); + + test('Check get() method returns values for existed modelNames', function() { + chai.expect(validation.get(modelName)).to.be.equal(modelSchema); + }); + + test('Check has() method returns [false] for unexisted modelNames', function() { + chai.expect(validation.has()).to.be.equal(false); + chai.expect(validation.has('exist')).to.be.equal(false); + }); + + test('Check has() method returns [true] for existed modelNames', function() { + chai.expect(validation.has(modelName)).to.be.equal(true); + }); + + test('Check get() method throws ModelNotFoundException', function() { + let error = null; + try { + validation.get('invalidModelKey'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceOf(ModelNotFoundException); + }); + + test('Check get() method throws ModelNotFoundException', function() { + let error = null; + try { + validation.get('invalidModelKey'); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceOf(ModelNotFoundException); + }); + + test('Check immutable setter can\'t change value to [false]', function() { + chai.expect(validation.immutable).to.be.equal(false); + validation.immutable = true; + chai.expect(validation.immutable).to.be.equal(true); + }); + + test('Check immutable setter sets [false]', function() { + let error; + chai.expect(validation.immutable).to.be.equal(true); + try { + validation.immutable = false; + } catch (e) { + error = e; + } + + chai.expect(error).to.be.an.instanceOf(Exception); + chai.expect(validation.immutable).to.be.equal(true); + }); + + test('Check _assureImmutable() method throws [Exception]', function() { + var error = null; + + try { + validation.immutable = true; + validation._assureImmutable(); + } catch (e) { + error = e; + } + + chai.expect(validation.immutable).to.be.equal(true); + chai.expect(error).to.be.an.instanceOf(Exception); + }); + + test('Check set() method throws Exception when immutable=true', function() { + let error = null; + try { + validation.set('newModelName', {model: 'newModelValue'}); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.an.instanceOf(Exception); + chai.expect(validation.has('newModelKey')).to.be.equal(false); + }); + + test('Check validate() method throws ObjectValidationFailedException', function() { + let error = null; + let inputObject = { + username: 'mi', + password: 'password', + }; + try { + validation.validate(modelName, inputObject); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.not.equal(null); + chai.expect(error).to.be.an.instanceOf(ObjectValidationFailedException); + chai.expect(error.message).to.be.contains('Object validation failed on schema'); + }); + + test('Check validate() returns valid object', function() { + let error = null; + let inputObject = { + username: 'mitocgroup', + password: 'password', + }; + let actualResult = null; + try { + actualResult = validation.validate(modelName, inputObject); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(actualResult).to.be.eql(inputObject); + }); + + test('Check normalizeSchema() returns valid ObjectToJoi object', function() { + let error = null; + let actualResult = null; + try { + actualResult = Validation.normalizeSchema({key: 'string'}); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(typeof actualResult).to.be.equal('object'); + chai.expect(typeof actualResult.key).to.be.equal('object'); + chai.expect(actualResult.key._type).to.be.equal('string'); + chai.expect(actualResult.key.isJoi).to.be.equal(true); + }); + + test('Check _rawModelsToSchemas() returns valid object', function() { + let error = null; + let actualResult = null; + let validRawSchema = { + Backend: { + IAM: { + Configuration: 'string', + Status: 'string', + }, + Lambda: { + Configuration: 'string', + Status: 'string', + }, + }, + }; + try { + actualResult = validation._rawModelsToSchemas(validRawSchema); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(typeof actualResult).to.be.equal('object'); + }); + + test('Check boot() returns valid object', function() { + let error = null; + let actualResult = null; + let kernel = { + config: { + models: { + Backend: { + IAM: { + Configuration: 'string', + Status: 'string', + }, + Lambda: { + Configuration: 'string', + Status: 'string', + }, + }, + }, + }, + }; + let spyCallback = sinon.spy(); + let validationInstance = new Validation(); + try { + actualResult = validationInstance.boot(kernel, spyCallback); + } catch (e) { + error = e; + } + + chai.expect(error).to.be.equal(null); + chai.expect(spyCallback).to.have.been.calledWith(); + }); +}); diff --git a/test/bin/_head.sh b/test/bin/_head.sh new file mode 100644 index 00000000..e9c46a53 --- /dev/null +++ b/test/bin/_head.sh @@ -0,0 +1,43 @@ +#!/usr/bin/env bash + +__SCRIPT_PATH=$(cd $(dirname $0); pwd -P) +__RES_PATH="${__SCRIPT_PATH}/../resources" + +__ROOT_PATH="${__SCRIPT_PATH}/../../" +__SRC_PATH="${__ROOT_PATH}src/" + +subpath_run_cmd () { + local DIR + local CMD + local EXPR + + DIR=$(cd $1 && pwd -P) + CMD=$2 + + if [ -z $3 ]; then + EXPR="*" + else + EXPR=$3 + fi + + for subpath in $DIR/$EXPR + do + if [ -d ${subpath} ]; then + cd ${subpath} && eval_or_exit "$CMD" + fi + done +} + +eval_or_exit() { + local RET_CODE + + eval "$1" + RET_CODE=$? + + if [ ${RET_CODE} == 0 ]; then + echo "[SUCCEED] $1" + else + echo "[FAILED] $1" + exit 1 + fi +} \ No newline at end of file diff --git a/test/bin/coverage.sh b/test/bin/coverage.sh new file mode 100755 index 00000000..7e334397 --- /dev/null +++ b/test/bin/coverage.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +source $(dirname $0)/_head.sh + +### Run Coverage ### + +__CMD='npm run coverage' + +subpath_run_cmd ${__SRC_PATH} "$__CMD" + +### Merge Coverage results ### + +COVERAGE_PATH=${__SCRIPT_PATH}"/../coverage" + +istanbul-combine -d ${COVERAGE_PATH} -r lcov -p none \ + ${__SRC_PATH}/*/coverage/*.json + +### Upload Coverage info to Codacy and Coveralls ### + +cat ${COVERAGE_PATH}"/lcov.info" | codacy-coverage +cat ${COVERAGE_PATH}"/lcov.info" | coveralls + +### Cleanup! ### + +__CMD='rm -rf ./coverage' + +subpath_run_cmd ${__SRC_PATH} "$__CMD" diff --git a/test/bin/generate_missing_tests.sh b/test/bin/generate_missing_tests.sh new file mode 100755 index 00000000..3195787c --- /dev/null +++ b/test/bin/generate_missing_tests.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +source $(dirname $0)/_head.sh + +### Install NPM deps ### + +__CMD='babel-node '${__SCRIPT_PATH}'/helper/generate_missing_tests.js `pwd -P`' + +subpath_run_cmd ${__SRC_PATH} "$__CMD" \ No newline at end of file diff --git a/test/bin/helper/FindClasses.js b/test/bin/helper/FindClasses.js new file mode 100644 index 00000000..c709a622 --- /dev/null +++ b/test/bin/helper/FindClasses.js @@ -0,0 +1,228 @@ +/** + * Created by AlexanderC on 9/3/15. + */ + +'use strict'; + +import path from 'path'; +import fs from 'fs'; +import os from 'os'; + +export class FindClasses { + /** + * @param {String} modulePath + */ + constructor(modulePath) { + this._modulePath = path.normalize(modulePath); + + this._libPath = path.join(this._modulePath, FindClasses.LIB_DIR); + this._realLibPath = path.join(this._modulePath, FindClasses.REAL_LIB_DIR); + this._testsPath = path.join(this._modulePath, FindClasses.TESTS_DIR); + } + + /** + * @returns {String[]} + */ + generateMissingTests() { + let generatedTests = []; + let classFiles = FindClasses._lookupClassFiles(this._libPath); + + for (let filepath of classFiles) { + let relativePath = filepath.substr(this._libPath.length + 1); + let testFilePath = path.join(this._testsPath, relativePath); + + if (!fs.existsSync(testFilePath)) { + let testContent = FindClasses._genTestSuite(relativePath); + + FindClasses._assureFileDir(testFilePath); + fs.writeFileSync(testFilePath, testContent); + + generatedTests.push(testFilePath); + } + } + + return generatedTests; + } + + /** + * @param {String} filePath + * @private + */ + static _assureFileDir(filePath) { + let dirname = path.dirname(filePath); + let dirnameVector = dirname.split('/'); + let prevDir = '/'; + + for (let i in dirnameVector) { + if (!dirnameVector.hasOwnProperty(i)) { + continue; + } + + let dir = dirnameVector[i]; + let curDir = path.join(prevDir, dir); + prevDir = curDir; + + if (!fs.existsSync(curDir)) { + fs.mkdirSync(curDir); + } + } + } + + /** + * @param {String} relativePath + * @returns {String} + * @private + */ + static _genTestSuite(relativePath) { + return FindClasses.TEST_TPL + .replace(/\{import\}/g, FindClasses._genClassInclude(relativePath)) + .replace(/\{fullClass\}/g, FindClasses._getFullClassName(relativePath)) + .replace(/\{class\}/g, FindClasses._getClassName(relativePath)); + } + + /** + * @param {String} relativePath + * @returns {String} + * @private + */ + static _genClassInclude(relativePath) { + let dotsLength = relativePath.split('/').length; + let relPathPrefix = "../".repeat(dotsLength) + FindClasses.REAL_LIB_DIR; + + return `import {${FindClasses._getClassName(relativePath)}} from '${relPathPrefix}/${FindClasses._getFullClassName(relativePath)}';`; + } + + /** + * @param {String} relativePath + * @returns {String} + * @private + */ + static _getFullClassName(relativePath) { + return relativePath.substr(0, relativePath.length - path.extname(relativePath).length); + } + + /** + * @param {String} relativePath + * @returns {String} + * @private + */ + static _getClassName(relativePath) { + return path.basename(relativePath, path.extname(relativePath)); + } + + /** + * @param {String} dir + * @param {Array} files_ + * @returns {Array} + * @private + */ + static _lookupClassFiles(dir, files_ = null) { + files_ = files_ || []; + + let files = fs.readdirSync(dir); + + for (let i in files){ + if (!files.hasOwnProperty(i)) { + continue; + } + + let filename = files[i]; + let filepath = path.join(dir, filename); + + if (fs.statSync(filepath).isDirectory()){ + FindClasses._lookupClassFiles(filepath, files_); + } else { + if (!FindClasses._isClassFile(filename)) { + continue; + } + + files_.push(filepath); + } + } + + return files_; + } + + /** + * @param {String} filename + * @returns {Boolean} + * @private + */ + static _isClassFile(filename) { + return /^[A-Z]/.test(filename) && !/exception\.js$/i.test(filename) && path.extname(filename) === '.js'; + } + + /** + * @returns {String} + */ + get testsPath() { + return this._testsPath; + } + + /** + * @returns {String} + */ + get realLibPath() { + return this._realLibPath; + } + + /** + * @returns {String} + */ + get libPath() { + return this._libPath; + } + + /** + * @returns {String} + */ + get modulePath() { + return this._modulePath; + } + + /** + * @returns {String} + * @constructor + */ + static get TEST_TPL() { + let content = []; + + content.push(`// THIS TEST WAS GENERATED AUTOMATICALLY ON ${new Date().toString()}`); + content.push(""); + content.push("'use strict';"); + content.push(""); + content.push("import chai from 'chai';"); + content.push("{import}"); + content.push(""); + content.push("// @todo: Add more advanced tests"); + content.push("suite(\"{fullClass}\", function() {"); + content.push(" test('Class {class} exists in {fullClass}', function() {"); + content.push(" chai.expect(typeof {class}).to.equal('function');"); + content.push(" });"); + content.push("});"); + content.push(""); + + return content.join(os.EOL); + } + + /** + * @returns {String} + */ + static get LIB_DIR() { + return 'lib'; + } + + /** + * @returns {String} + */ + static get REAL_LIB_DIR() { + return 'lib.compiled'; + } + + /** + * @returns {String} + */ + static get TESTS_DIR() { + return 'test'; + } +} diff --git a/test/bin/helper/generate_missing_tests.js b/test/bin/helper/generate_missing_tests.js new file mode 100644 index 00000000..4e406419 --- /dev/null +++ b/test/bin/helper/generate_missing_tests.js @@ -0,0 +1,27 @@ +/** + * Created by AlexanderC on 9/3/15. + */ + +'use strict'; + +import {FindClasses} from './FindClasses'; +import os from 'os'; +import path from 'path'; + +let modulePath = process.argv[2]; + +if (!modulePath) { + console.error('Missing NPM module path'); + process.exit(1); +} + +console.log('Start generating missing tests in', modulePath); + +let classesFinder = new FindClasses(path.resolve(modulePath)); + +console.log( + 'Generated test files:', + os.EOL, + '- ' + classesFinder.generateMissingTests().join(`${os.EOL}- `), + os.EOL +); diff --git a/test/bin/install.sh b/test/bin/install.sh new file mode 100755 index 00000000..4c2d8e59 --- /dev/null +++ b/test/bin/install.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +source $(dirname $0)/_head.sh + +### Install NPM deps ### + +__CMD='npm install' + +subpath_run_cmd ${__SRC_PATH} "$__CMD" \ No newline at end of file diff --git a/test/bin/setup_npm.sh b/test/bin/setup_npm.sh new file mode 100755 index 00000000..323ed6ad --- /dev/null +++ b/test/bin/setup_npm.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +source $(dirname $0)/_head.sh + +### Setting up NPM registry ### + +NPMRC_FILE="$__RES_PATH/.npmrc" +cp ${NPMRC_FILE} $HOME/ \ No newline at end of file diff --git a/test/bin/test.sh b/test/bin/test.sh new file mode 100755 index 00000000..be0675e3 --- /dev/null +++ b/test/bin/test.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +source $(dirname $0)/_head.sh + +### Run unit tests ### + +__CMD='npm run test' + +subpath_run_cmd ${__SRC_PATH} "$__CMD" \ No newline at end of file diff --git a/test/package.json b/test/package.json new file mode 100644 index 00000000..cf537d02 --- /dev/null +++ b/test/package.json @@ -0,0 +1,10 @@ +{ + "name": "deep", + "version": "0.0.1", + "scripts": { + "install": "if [ -f '.travis.yml' ]; then test/bin/install.sh; else bin/install.sh; fi", + "test": "if [ -f '.travis.yml' ]; then test/bin/test.sh; else bin/test.sh; fi", + "coverage": "if [ -f '.travis.yml' ]; then test/bin/coverage.sh; else bin/coverage.sh; fi", + "generate-missing-tests": "if [ -f '.travis.yml' ]; then test/bin/generate_missing_tests.sh; else bin/generate_missing_tests.sh; fi" + } +} diff --git a/test/resources/.npmrc b/test/resources/.npmrc new file mode 100644 index 00000000..554027d6 --- /dev/null +++ b/test/resources/.npmrc @@ -0,0 +1,3 @@ +//registry.npmjs.org/:_authToken=0191582c-c0ad-4be5-8b5d-5d573c526963 +scope=mitocgroup +@mitocgroup:registry=https://registry.npmjs.org/ \ No newline at end of file